blob: 0e424013c712c3e465fb27c7ae5f4f37bc234be2 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
726FIGDecodeDelegate
727EditorDelegate
728EchoDelegate
729DVIDecodeDelegate
730GVCDecodeDelegate
731DNGDecodeDelegate
732CatDelegate
733CGMDecodeDelegate
734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000737AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000738SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000739SHAREARCH_RELATIVE_PATH
740SHAREARCH_DIRNAME
741SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000742SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000743CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744DOCUMENTATION_PATH
745FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000747CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748CODER_DIRNAME
749MODULES_PATH
750MODULES_RELATIVE_PATH
751MODULES_DIRNAME
752MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000753LIB_BIN_DIR_PATH
754LIB_BIN_DIR_RELATIVE_PATH
755LIB_BIN_DIR
756LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000757LIBRARY_PATH
758EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000759INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000760INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000761PERLMAINCC
762XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763XML_DELEGATE_FALSE
764XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000765xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000766WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000767WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768WMF_DELEGATE_FALSE
769WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000770WEBP_LIBS
771WEBP_DELEGATE_FALSE
772WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000782RSVG_LIBS
783RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000784PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785PNG_DELEGATE_FALSE
786PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000787PANGOCAIRO_DELEGATE_FALSE
788PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000789PANGO_DELEGATE_FALSE
790PANGO_DELEGATE_TRUE
791PANGO_LIBS
792PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793OPENEXR_DELEGATE_FALSE
794OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795OPENEXR_LIBS
796OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000797MUPDF_LIBS
798MUPDF_DELEGATE_FALSE
799MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000800LZMA_DELEGATE_FALSE
801LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000802LZMA_LIBS
803LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000804LQR_DELEGATE_FALSE
805LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806LQR_LIBS
807LQR_CFLAGS
808LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000809LCMS_DELEGATE_FALSE
810LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812JP2_DELEGATE_FALSE
813JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815JPEG_DELEGATE_FALSE
816JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818JBIG_DELEGATE_FALSE
819JBIG_DELEGATE_TRUE
820GVC_DELEGATE_FALSE
821GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822GVC_LIBS
823GVC_CFLAGS
824GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825GS_DELEGATE_FALSE
826GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000827FREETYPE_DELEGATE_FALSE
828FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000829FREETYPE_LIBS
830FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000831FONTCONFIG_DELEGATE_FALSE
832FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FONTCONFIG_LIBS
834FONTCONFIG_CFLAGS
835FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000836FPX_DELEGATE_FALSE
837FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839FFTW_DELEGATE_FALSE
840FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842DJVU_DELEGATE_FALSE
843DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845DPS_DELEGATE_FALSE
846DPS_DELEGATE_TRUE
847AUTOTRACE_DELEGATE_FALSE
848AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849AUTOTRACE_LIBS
850AUTOTRACE_CFLAGS
851LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000852WITH_LTDL_FALSE
853WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855ZLIB_DELEGATE_FALSE
856ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857XEXT_LIBS
858X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000859X11_DELEGATE_FALSE
860X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861X_EXTRA_LIBS
862X_LIBS
863X_PRE_LIBS
864X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000865XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000866BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000867BZLIB_DELEGATE_FALSE
868BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000869CCMALLOCDelegate
870UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000871HasUMEM_FALSE
872HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000873GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_MAGICK_PLUS_PLUS_FALSE
875WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000876OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000877MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000878POW_LIB
879LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000888UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000890INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000891INT32_T
892UINT16_T
893INT16_T
894UINT8_T
895INT8_T
896LIBRARY_EXTRA_CPPFLAGS
897MODULE_EXTRA_CPPFLAGS
898LIBSTDCLDFLAGS
899PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000900MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000901MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000902QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000903LEGACY_SUPPORT_FALSE
904LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000905MAINT
906MAINTAINER_MODE_FALSE
907MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000908MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000909WITH_MODULES_FALSE
910WITH_MODULES_TRUE
911WITH_SHARED_LIBS_FALSE
912WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000914CXXCPP
915OTOOL64
916OTOOL
917LIPO
918NMEDIT
919DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000920MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000921RANLIB
cristyda16f162011-02-19 23:52:17 +0000922ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000923AR
924NM
925ac_ct_DUMPBIN
926DUMPBIN
927LIBTOOL
928OBJDUMP
929DLLTOOL
930AS
cristy3ed852e2009-09-05 21:47:34 +0000931LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000932CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000933CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000934OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000935THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PTHREAD_CFLAGS
937PTHREAD_LIBS
938PTHREAD_CC
939ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000940pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000941SHAREARCH_DIR
942INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000943WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000944USING_CL_FALSE
945USING_CL_TRUE
946CYGWIN_BUILD_FALSE
947CYGWIN_BUILD_TRUE
948WIN32_NATIVE_BUILD_FALSE
949WIN32_NATIVE_BUILD_TRUE
950WINGDI32_DELEGATE_FALSE
951WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000953HAVE_LD_VERSION_SCRIPT_FALSE
954HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000955PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000956PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000957LN_S
cristy3ed852e2009-09-05 21:47:34 +0000958LD
cristy73bd4a52010-10-05 11:24:23 +0000959FGREP
960SED
961am__fastdepCXX_FALSE
962am__fastdepCXX_TRUE
963CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000964ac_ct_CXX
965CXXFLAGS
966CXX
cristya0b81c32010-01-22 02:54:33 +0000967EGREP
968GREP
969CPP
cristy73bd4a52010-10-05 11:24:23 +0000970am__fastdepCC_FALSE
971am__fastdepCC_TRUE
972CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000973am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000974AMDEPBACKSLASH
975AMDEP_FALSE
976AMDEP_TRUE
977am__quote
978am__include
979DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000980OBJEXT
981EXEEXT
982ac_ct_CC
983CPPFLAGS
984LDFLAGS
985CFLAGS
986CC
987DIRSEP
988MAGICK_FILTER_MODULE_PATH
989MAGICK_CONFIGURE_BUILD_PATH
990MAGICK_CONFIGURE_SRC_PATH
991MAGICK_CODER_MODULE_PATH
992MAN_DIR
993INFO_DIR
994PERSISTINCLUDE_DIR
995INCLUDE_DIR
996LIB_DIR
997LOCALSTATE_DIR
998SHAREDSTATE_DIR
999SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001000DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001001DATA_DIR
1002LIBEXEC_DIR
1003SBIN_DIR
1004BIN_DIR
1005EXEC_PREFIX_DIR
1006PREFIX_DIR
1007CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001008MAGICKPP_LIB_VERSION_TEXT
1009MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001047MAGICKPP_LIBRARY_VERSION_INFO
1048MAGICKPP_LIBRARY_CURRENT_MIN
1049MAGICKPP_LIBRARY_AGE
1050MAGICKPP_LIBRARY_REVISION
1051MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001052MAGICK_LIBRARY_VERSION_INFO
1053MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001054MAGICK_LIBRARY_AGE
1055MAGICK_LIBRARY_REVISION
1056MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001057MAGICK_SVN_REVISION
1058MAGICK_VERSION
1059MAGICK_PATCHLEVEL_VERSION
1060MAGICK_MICRO_VERSION
1061MAGICK_MINOR_VERSION
1062MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001063MAGICK_TARGET_OS
1064MAGICK_TARGET_VENDOR
1065MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001066target_os
1067target_vendor
1068target_cpu
1069target
1070host_os
1071host_vendor
1072host_cpu
1073host
1074build_os
1075build_vendor
1076build_cpu
1077build
1078CONFIGURE_ARGS
1079DISTCHECK_CONFIG_FLAGS
1080target_alias
1081host_alias
1082build_alias
1083LIBS
1084ECHO_T
1085ECHO_N
1086ECHO_C
1087DEFS
1088mandir
1089localedir
1090libdir
1091psdir
1092pdfdir
1093dvidir
1094htmldir
1095infodir
1096docdir
1097oldincludedir
1098includedir
1099localstatedir
1100sharedstatedir
1101sysconfdir
1102datadir
1103datarootdir
1104libexecdir
1105sbindir
1106bindir
1107program_transform_name
1108prefix
1109exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001110PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001111PACKAGE_BUGREPORT
1112PACKAGE_STRING
1113PACKAGE_VERSION
1114PACKAGE_TARNAME
1115PACKAGE_NAME
1116PATH_SEPARATOR
1117SHELL'
1118ac_subst_files=''
1119ac_user_opts='
1120enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001121enable_silent_rules
1122enable_dependency_tracking
1123with_gnu_ld
1124with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001125with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001126enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001127enable_bounds_checking
1128enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001129with_includearch_dir
1130with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001131with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001132with_threads
1133enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001134enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001135enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001136enable_shared
1137enable_static
1138with_pic
1139enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001140with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001141enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001142with_modules
1143enable_delegate_build
1144enable_deprecated
1145enable_installed
1146enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001147enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001148enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001149enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001150enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001151enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001152enable_ccmalloc
1153enable_efence
1154enable_prof
1155enable_gprof
1156enable_gcov
1157with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001158enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001159with_quantum_depth
1160with_cache
1161with_frozenpaths
1162with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001163with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001164with_perl
1165with_perl_options
1166with_umem
1167with_libstdc
1168with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001169with_x
cristy3ed852e2009-09-05 21:47:34 +00001170with_zlib
1171with_autotrace
1172with_dps
1173with_djvu
cristy430a7312010-01-21 20:44:04 +00001174with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001175with_fftw
1176with_fpx
1177with_fontconfig
1178with_freetype
1179with_gslib
1180with_fontpath
1181with_gs_font_dir
1182with_gvc
1183with_jbig
1184with_jpeg
1185with_jp2
1186with_lcms
cristy71203402010-06-18 13:12:03 +00001187with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001188with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001189with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001190with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001191with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001192with_pango
cristy3ed852e2009-09-05 21:47:34 +00001193with_png
1194with_rsvg
1195with_tiff
cristyb1860752011-03-14 00:27:46 +00001196with_webp
cristy3ed852e2009-09-05 21:47:34 +00001197with_windows_font_dir
1198with_wmf
1199with_xml
1200'
1201 ac_precious_vars='build_alias
1202host_alias
1203target_alias
1204CC
1205CFLAGS
1206LDFLAGS
1207LIBS
1208CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001209CPP
cristy3ed852e2009-09-05 21:47:34 +00001210CXX
1211CXXFLAGS
1212CCC
cristy73bd4a52010-10-05 11:24:23 +00001213PKG_CONFIG
1214CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001215XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001216AUTOTRACE_CFLAGS
1217AUTOTRACE_LIBS
1218FONTCONFIG_CFLAGS
1219FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001220FREETYPE_CFLAGS
1221FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001222GVC_CFLAGS
1223GVC_LIBS
1224LQR_CFLAGS
1225LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001226LZMA_CFLAGS
1227LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228OPENEXR_CFLAGS
1229OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001230PANGO_CFLAGS
1231PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232RSVG_CFLAGS
1233RSVG_LIBS
1234CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001235CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001236
1237
1238# Initialize some variables set by options.
1239ac_init_help=
1240ac_init_version=false
1241ac_unrecognized_opts=
1242ac_unrecognized_sep=
1243# The variables have the same names as the options, with
1244# dashes changed to underlines.
1245cache_file=/dev/null
1246exec_prefix=NONE
1247no_create=
1248no_recursion=
1249prefix=NONE
1250program_prefix=NONE
1251program_suffix=NONE
1252program_transform_name=s,x,x,
1253silent=
1254site=
1255srcdir=
1256verbose=
1257x_includes=NONE
1258x_libraries=NONE
1259
1260# Installation directory options.
1261# These are left unexpanded so users can "make install exec_prefix=/foo"
1262# and all the variables that are supposed to be based on exec_prefix
1263# by default will actually change.
1264# Use braces instead of parens because sh, perl, etc. also accept them.
1265# (The list follows the same order as the GNU Coding Standards.)
1266bindir='${exec_prefix}/bin'
1267sbindir='${exec_prefix}/sbin'
1268libexecdir='${exec_prefix}/libexec'
1269datarootdir='${prefix}/share'
1270datadir='${datarootdir}'
1271sysconfdir='${prefix}/etc'
1272sharedstatedir='${prefix}/com'
1273localstatedir='${prefix}/var'
1274includedir='${prefix}/include'
1275oldincludedir='/usr/include'
1276docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1277infodir='${datarootdir}/info'
1278htmldir='${docdir}'
1279dvidir='${docdir}'
1280pdfdir='${docdir}'
1281psdir='${docdir}'
1282libdir='${exec_prefix}/lib'
1283localedir='${datarootdir}/locale'
1284mandir='${datarootdir}/man'
1285
1286ac_prev=
1287ac_dashdash=
1288for ac_option
1289do
1290 # If the previous option needs an argument, assign it.
1291 if test -n "$ac_prev"; then
1292 eval $ac_prev=\$ac_option
1293 ac_prev=
1294 continue
1295 fi
1296
1297 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001298 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1299 *=) ac_optarg= ;;
1300 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001301 esac
1302
1303 # Accept the important Cygnus configure options, so we can diagnose typos.
1304
1305 case $ac_dashdash$ac_option in
1306 --)
1307 ac_dashdash=yes ;;
1308
1309 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1310 ac_prev=bindir ;;
1311 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1312 bindir=$ac_optarg ;;
1313
1314 -build | --build | --buil | --bui | --bu)
1315 ac_prev=build_alias ;;
1316 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1317 build_alias=$ac_optarg ;;
1318
1319 -cache-file | --cache-file | --cache-fil | --cache-fi \
1320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1321 ac_prev=cache_file ;;
1322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1324 cache_file=$ac_optarg ;;
1325
1326 --config-cache | -C)
1327 cache_file=config.cache ;;
1328
1329 -datadir | --datadir | --datadi | --datad)
1330 ac_prev=datadir ;;
1331 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1332 datadir=$ac_optarg ;;
1333
1334 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1335 | --dataroo | --dataro | --datar)
1336 ac_prev=datarootdir ;;
1337 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1338 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1339 datarootdir=$ac_optarg ;;
1340
1341 -disable-* | --disable-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001345 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1349 *"
1350"enable_$ac_useropt"
1351"*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval enable_$ac_useropt=no ;;
1356
1357 -docdir | --docdir | --docdi | --doc | --do)
1358 ac_prev=docdir ;;
1359 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1360 docdir=$ac_optarg ;;
1361
1362 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1363 ac_prev=dvidir ;;
1364 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1365 dvidir=$ac_optarg ;;
1366
1367 -enable-* | --enable-*)
1368 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001371 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376"enable_$ac_useropt"
1377"*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval enable_$ac_useropt=\$ac_optarg ;;
1382
1383 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1384 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1385 | --exec | --exe | --ex)
1386 ac_prev=exec_prefix ;;
1387 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1388 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1389 | --exec=* | --exe=* | --ex=*)
1390 exec_prefix=$ac_optarg ;;
1391
1392 -gas | --gas | --ga | --g)
1393 # Obsolete; use --with-gas.
1394 with_gas=yes ;;
1395
1396 -help | --help | --hel | --he | -h)
1397 ac_init_help=long ;;
1398 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1399 ac_init_help=recursive ;;
1400 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1401 ac_init_help=short ;;
1402
1403 -host | --host | --hos | --ho)
1404 ac_prev=host_alias ;;
1405 -host=* | --host=* | --hos=* | --ho=*)
1406 host_alias=$ac_optarg ;;
1407
1408 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1409 ac_prev=htmldir ;;
1410 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1411 | --ht=*)
1412 htmldir=$ac_optarg ;;
1413
1414 -includedir | --includedir | --includedi | --included | --include \
1415 | --includ | --inclu | --incl | --inc)
1416 ac_prev=includedir ;;
1417 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1418 | --includ=* | --inclu=* | --incl=* | --inc=*)
1419 includedir=$ac_optarg ;;
1420
1421 -infodir | --infodir | --infodi | --infod | --info | --inf)
1422 ac_prev=infodir ;;
1423 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1424 infodir=$ac_optarg ;;
1425
1426 -libdir | --libdir | --libdi | --libd)
1427 ac_prev=libdir ;;
1428 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1429 libdir=$ac_optarg ;;
1430
1431 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1432 | --libexe | --libex | --libe)
1433 ac_prev=libexecdir ;;
1434 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1435 | --libexe=* | --libex=* | --libe=*)
1436 libexecdir=$ac_optarg ;;
1437
1438 -localedir | --localedir | --localedi | --localed | --locale)
1439 ac_prev=localedir ;;
1440 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1441 localedir=$ac_optarg ;;
1442
1443 -localstatedir | --localstatedir | --localstatedi | --localstated \
1444 | --localstate | --localstat | --localsta | --localst | --locals)
1445 ac_prev=localstatedir ;;
1446 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1447 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1448 localstatedir=$ac_optarg ;;
1449
1450 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1451 ac_prev=mandir ;;
1452 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1453 mandir=$ac_optarg ;;
1454
1455 -nfp | --nfp | --nf)
1456 # Obsolete; use --without-fp.
1457 with_fp=no ;;
1458
1459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1460 | --no-cr | --no-c | -n)
1461 no_create=yes ;;
1462
1463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1465 no_recursion=yes ;;
1466
1467 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1468 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1469 | --oldin | --oldi | --old | --ol | --o)
1470 ac_prev=oldincludedir ;;
1471 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1472 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1473 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1474 oldincludedir=$ac_optarg ;;
1475
1476 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1477 ac_prev=prefix ;;
1478 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1479 prefix=$ac_optarg ;;
1480
1481 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1482 | --program-pre | --program-pr | --program-p)
1483 ac_prev=program_prefix ;;
1484 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1485 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1486 program_prefix=$ac_optarg ;;
1487
1488 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1489 | --program-suf | --program-su | --program-s)
1490 ac_prev=program_suffix ;;
1491 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1492 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1493 program_suffix=$ac_optarg ;;
1494
1495 -program-transform-name | --program-transform-name \
1496 | --program-transform-nam | --program-transform-na \
1497 | --program-transform-n | --program-transform- \
1498 | --program-transform | --program-transfor \
1499 | --program-transfo | --program-transf \
1500 | --program-trans | --program-tran \
1501 | --progr-tra | --program-tr | --program-t)
1502 ac_prev=program_transform_name ;;
1503 -program-transform-name=* | --program-transform-name=* \
1504 | --program-transform-nam=* | --program-transform-na=* \
1505 | --program-transform-n=* | --program-transform-=* \
1506 | --program-transform=* | --program-transfor=* \
1507 | --program-transfo=* | --program-transf=* \
1508 | --program-trans=* | --program-tran=* \
1509 | --progr-tra=* | --program-tr=* | --program-t=*)
1510 program_transform_name=$ac_optarg ;;
1511
1512 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1513 ac_prev=pdfdir ;;
1514 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1515 pdfdir=$ac_optarg ;;
1516
1517 -psdir | --psdir | --psdi | --psd | --ps)
1518 ac_prev=psdir ;;
1519 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1520 psdir=$ac_optarg ;;
1521
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 silent=yes ;;
1525
1526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1527 ac_prev=sbindir ;;
1528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1529 | --sbi=* | --sb=*)
1530 sbindir=$ac_optarg ;;
1531
1532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1534 | --sharedst | --shareds | --shared | --share | --shar \
1535 | --sha | --sh)
1536 ac_prev=sharedstatedir ;;
1537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1540 | --sha=* | --sh=*)
1541 sharedstatedir=$ac_optarg ;;
1542
1543 -site | --site | --sit)
1544 ac_prev=site ;;
1545 -site=* | --site=* | --sit=*)
1546 site=$ac_optarg ;;
1547
1548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1549 ac_prev=srcdir ;;
1550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1551 srcdir=$ac_optarg ;;
1552
1553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1554 | --syscon | --sysco | --sysc | --sys | --sy)
1555 ac_prev=sysconfdir ;;
1556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1558 sysconfdir=$ac_optarg ;;
1559
1560 -target | --target | --targe | --targ | --tar | --ta | --t)
1561 ac_prev=target_alias ;;
1562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1563 target_alias=$ac_optarg ;;
1564
1565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1566 verbose=yes ;;
1567
1568 -version | --version | --versio | --versi | --vers | -V)
1569 ac_init_version=: ;;
1570
1571 -with-* | --with-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001575 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=\$ac_optarg ;;
1586
1587 -without-* | --without-*)
1588 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1589 # Reject names that are not valid shell variable names.
1590 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001591 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001592 ac_useropt_orig=$ac_useropt
1593 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1594 case $ac_user_opts in
1595 *"
1596"with_$ac_useropt"
1597"*) ;;
1598 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1599 ac_unrecognized_sep=', ';;
1600 esac
1601 eval with_$ac_useropt=no ;;
1602
1603 --x)
1604 # Obsolete; use --with-x.
1605 with_x=yes ;;
1606
1607 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1608 | --x-incl | --x-inc | --x-in | --x-i)
1609 ac_prev=x_includes ;;
1610 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1611 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1612 x_includes=$ac_optarg ;;
1613
1614 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1615 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1616 ac_prev=x_libraries ;;
1617 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1618 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1619 x_libraries=$ac_optarg ;;
1620
cristy98dddb52010-11-04 00:30:15 +00001621 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1622Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001623 ;;
1624
1625 *=*)
1626 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1627 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001628 case $ac_envvar in #(
1629 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001630 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001631 esac
cristy3ed852e2009-09-05 21:47:34 +00001632 eval $ac_envvar=\$ac_optarg
1633 export $ac_envvar ;;
1634
1635 *)
1636 # FIXME: should be removed in autoconf 3.0.
1637 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1638 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1639 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001640 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001641 ;;
1642
1643 esac
1644done
1645
1646if test -n "$ac_prev"; then
1647 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001649fi
1650
1651if test -n "$ac_unrecognized_opts"; then
1652 case $enable_option_checking in
1653 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001654 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001655 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1656 esac
1657fi
1658
1659# Check all directory arguments for consistency.
1660for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1661 datadir sysconfdir sharedstatedir localstatedir includedir \
1662 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1663 libdir localedir mandir
1664do
1665 eval ac_val=\$$ac_var
1666 # Remove trailing slashes.
1667 case $ac_val in
1668 */ )
1669 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1670 eval $ac_var=\$ac_val;;
1671 esac
1672 # Be sure to have absolute directory names.
1673 case $ac_val in
1674 [\\/$]* | ?:[\\/]* ) continue;;
1675 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1676 esac
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001678done
1679
1680# There might be people who depend on the old broken behavior: `$host'
1681# used to hold the argument of --host etc.
1682# FIXME: To remove some day.
1683build=$build_alias
1684host=$host_alias
1685target=$target_alias
1686
1687# FIXME: To remove some day.
1688if test "x$host_alias" != x; then
1689 if test "x$build_alias" = x; then
1690 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001691 elif test "x$build_alias" != "x$host_alias"; then
1692 cross_compiling=yes
1693 fi
1694fi
1695
1696ac_tool_prefix=
1697test -n "$host_alias" && ac_tool_prefix=$host_alias-
1698
1699test "$silent" = yes && exec 6>/dev/null
1700
1701
1702ac_pwd=`pwd` && test -n "$ac_pwd" &&
1703ac_ls_di=`ls -di .` &&
1704ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001705 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001706test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001708
1709
1710# Find the source files, if location was not specified.
1711if test -z "$srcdir"; then
1712 ac_srcdir_defaulted=yes
1713 # Try the directory containing this script, then the parent directory.
1714 ac_confdir=`$as_dirname -- "$as_myself" ||
1715$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1716 X"$as_myself" : 'X\(//\)[^/]' \| \
1717 X"$as_myself" : 'X\(//\)$' \| \
1718 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1719$as_echo X"$as_myself" |
1720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)[^/].*/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)$/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\).*/{
1733 s//\1/
1734 q
1735 }
1736 s/.*/./; q'`
1737 srcdir=$ac_confdir
1738 if test ! -r "$srcdir/$ac_unique_file"; then
1739 srcdir=..
1740 fi
1741else
1742 ac_srcdir_defaulted=no
1743fi
1744if test ! -r "$srcdir/$ac_unique_file"; then
1745 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001746 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001747fi
1748ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1749ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001750 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001751 pwd)`
1752# When building in place, set srcdir=.
1753if test "$ac_abs_confdir" = "$ac_pwd"; then
1754 srcdir=.
1755fi
1756# Remove unnecessary trailing slashes from srcdir.
1757# Double slashes in file names in object file debugging info
1758# mess up M-x gdb in Emacs.
1759case $srcdir in
1760*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1761esac
1762for ac_var in $ac_precious_vars; do
1763 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1764 eval ac_env_${ac_var}_value=\$${ac_var}
1765 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1766 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1767done
1768
1769#
1770# Report the --help message.
1771#
1772if test "$ac_init_help" = "long"; then
1773 # Omit some internal or obsolete options to make the list less imposing.
1774 # This message is too long to be a string in the A/UX 3.1 sh.
1775 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001776\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001777
1778Usage: $0 [OPTION]... [VAR=VALUE]...
1779
1780To assign environment variables (e.g., CC, CFLAGS...), specify them as
1781VAR=VALUE. See below for descriptions of some of the useful variables.
1782
1783Defaults for the options are specified in brackets.
1784
1785Configuration:
1786 -h, --help display this help and exit
1787 --help=short display options specific to this package
1788 --help=recursive display the short help of all the included packages
1789 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001790 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001791 --cache-file=FILE cache test results in FILE [disabled]
1792 -C, --config-cache alias for \`--cache-file=config.cache'
1793 -n, --no-create do not create output files
1794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1795
1796Installation directories:
1797 --prefix=PREFIX install architecture-independent files in PREFIX
1798 [$ac_default_prefix]
1799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1800 [PREFIX]
1801
1802By default, \`make install' will install all the files in
1803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1805for instance \`--prefix=\$HOME'.
1806
1807For better control, use the options below.
1808
1809Fine tuning of the installation directories:
1810 --bindir=DIR user executables [EPREFIX/bin]
1811 --sbindir=DIR system admin executables [EPREFIX/sbin]
1812 --libexecdir=DIR program executables [EPREFIX/libexec]
1813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1816 --libdir=DIR object code libraries [EPREFIX/lib]
1817 --includedir=DIR C header files [PREFIX/include]
1818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1819 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1820 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1821 --infodir=DIR info documentation [DATAROOTDIR/info]
1822 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1823 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001824 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001825 --htmldir=DIR html documentation [DOCDIR]
1826 --dvidir=DIR dvi documentation [DOCDIR]
1827 --pdfdir=DIR pdf documentation [DOCDIR]
1828 --psdir=DIR ps documentation [DOCDIR]
1829_ACEOF
1830
1831 cat <<\_ACEOF
1832
cristy73bd4a52010-10-05 11:24:23 +00001833Program names:
1834 --program-prefix=PREFIX prepend PREFIX to installed program names
1835 --program-suffix=SUFFIX append SUFFIX to installed program names
1836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1837
cristy3ed852e2009-09-05 21:47:34 +00001838X features:
1839 --x-includes=DIR X include files are in DIR
1840 --x-libraries=DIR X library files are in DIR
1841
1842System types:
1843 --build=BUILD configure for building on BUILD [guessed]
1844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1845 --target=TARGET configure for building compilers for TARGET [HOST]
1846_ACEOF
1847fi
1848
1849if test -n "$ac_init_help"; then
1850 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001851 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001852 esac
1853 cat <<\_ACEOF
1854
1855Optional Features:
1856 --disable-option-checking ignore unrecognized --enable/--with options
1857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001859 --enable-silent-rules less verbose build output (undo: "make V=1")
1860 --disable-silent-rules verbose build output (undo: "make V=0")
1861 --enable-dependency-tracking
1862 do not reject slow dependency extractors
1863 --disable-dependency-tracking
1864 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001865 --enable-ld-version-script
1866 enable linker version script (default is enabled
1867 when possible)
cristya3824692012-03-30 17:22:07 +00001868 --enable-bounds-checking
1869 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001870 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001871 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001872 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001873 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001875 --enable-shared[=PKGS] build shared libraries [default=yes]
1876 --enable-static[=PKGS] build static libraries [default=yes]
1877 --enable-fast-install[=PKGS]
1878 optimize for fast installation [default=yes]
1879 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-delegate-build look for delegate libraries in build directory
1881 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001882 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001883 --disable-installed Formally install ImageMagick under PREFIX
1884 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001885 --enable-zero-configuration
1886 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001887 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001888 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001889 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001891 --enable-maintainer-mode
1892 enable make rules and dependencies not useful (and
1893 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001894 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001895 --enable-ccmalloc enable 'ccmalloc' memory debug support
1896 --enable-efence enable 'efence' memory debug support
1897 --enable-prof enable 'prof' profiling support
1898 --enable-gprof enable 'gprof' profiling support
1899 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001900 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001901 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001902
1903Optional Packages:
1904 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1905 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001906 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001907 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001908 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1909 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001910 --includearch-dir=DIR ARCH specific include directory
1911 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001912 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001914 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001915 both]
cristyda16f162011-02-19 23:52:17 +00001916 --with-sysroot=DIR Search for dependent libraries within DIR
1917 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-modules enable building dynamically loadable modules
1919 --with-method-prefix=PREFIX
1920 prefix MagickCore API methods
1921 --with-quantum-depth=DEPTH
1922 number of bits in a pixel quantum (default 16)
1923 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1924 memory)
1925 --with-frozenpaths freeze delegate paths
1926 --without-magick-plus-plus
1927 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001928 --with-package-release-name=NAME
1929 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001930 --with-perl enable build/install of PerlMagick
1931 --with-perl-options=OPTIONS
1932 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001933 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001934 --with-umem enable umem memory allocation library support
1935 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1936 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001937 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-zlib disable ZLIB support
1939 --with-autotrace enable autotrace support
1940 --without-dps disable Display Postscript support
1941 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001942 --with-dejavu-font-dir=DIR
1943 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-fftw disable FFTW support
1945 --without-fpx disable FlashPIX support
1946 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001947 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001948 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001949 --with-fontpath=DIR prepend to default font search path
1950 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001951 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001952 --without-jbig disable JBIG support
1953 --without-jpeg disable JPEG support
1954 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001955 --without-lcms disable lcms (v1.1X) support
1956 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001957 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001958 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001959 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001961 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001963 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001965 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001966 --with-windows-font-dir=DIR
1967 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001968 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-xml disable XML support
1970
1971Some influential environment variables:
1972 CC C compiler command
1973 CFLAGS C compiler flags
1974 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1975 nonstandard directory <lib dir>
1976 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001977 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001978 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001979 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001980 CXX C++ compiler command
1981 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001982 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001983 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001984 XMKMF Path to xmkmf, Makefile generator for X Window System
1985 AUTOTRACE_CFLAGS
1986 C compiler flags for AUTOTRACE, overriding pkg-config
1987 AUTOTRACE_LIBS
1988 linker flags for AUTOTRACE, overriding pkg-config
1989 FONTCONFIG_CFLAGS
1990 C compiler flags for FONTCONFIG, overriding pkg-config
1991 FONTCONFIG_LIBS
1992 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001993 FREETYPE_CFLAGS
1994 C compiler flags for FREETYPE, overriding pkg-config
1995 FREETYPE_LIBS
1996 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001997 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1998 GVC_LIBS linker flags for GVC, overriding pkg-config
1999 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2000 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002001 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2002 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 OPENEXR_CFLAGS
2004 C compiler flags for OPENEXR, overriding pkg-config
2005 OPENEXR_LIBS
2006 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002007 PANGO_CFLAGS
2008 C compiler flags for PANGO, overriding pkg-config
2009 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002010 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2011 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2012 CAIRO_SVG_CFLAGS
2013 C compiler flags for CAIRO_SVG, overriding pkg-config
2014 CAIRO_SVG_LIBS
2015 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002016
2017Use these variables to override the choices made by `configure' or to help
2018it to find libraries and programs with nonstandard names/locations.
2019
2020Report bugs to <http://www.imagemagick.org>.
2021_ACEOF
2022ac_status=$?
2023fi
2024
2025if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2030 continue
2031 ac_builddir=.
2032
2033case "$ac_dir" in
2034.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035*)
2036 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2042 esac ;;
2043esac
2044ac_abs_top_builddir=$ac_pwd
2045ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046# for backward compatibility:
2047ac_top_builddir=$ac_top_build_prefix
2048
2049case $srcdir in
2050 .) # We are building in place.
2051 ac_srcdir=.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2058 *) # Relative name.
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2062esac
2063ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for guested configure.
2067 if test -f "$ac_srcdir/configure.gnu"; then
2068 echo &&
2069 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2070 elif test -f "$ac_srcdir/configure"; then
2071 echo &&
2072 $SHELL "$ac_srcdir/configure" --help=recursive
2073 else
2074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2075 fi || ac_status=$?
2076 cd "$ac_pwd" || { ac_status=$?; break; }
2077 done
2078fi
2079
2080test -n "$ac_init_help" && exit $ac_status
2081if $ac_init_version; then
2082 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002083ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002084generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002085
cristy14fefe52012-05-21 00:59:18 +00002086Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002087This configure script is free software; the Free Software Foundation
2088gives unlimited permission to copy, distribute and modify it.
2089_ACEOF
2090 exit
2091fi
cristy8b350f62009-11-15 23:12:43 +00002092
2093## ------------------------ ##
2094## Autoconf initialization. ##
2095## ------------------------ ##
2096
2097# ac_fn_c_try_compile LINENO
2098# --------------------------
2099# Try to compile conftest.$ac_ext, and return whether this succeeded.
2100ac_fn_c_try_compile ()
2101{
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext
2104 if { { ac_try="$ac_compile"
2105case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108esac
2109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110$as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.$ac_objext; then :
2123 ac_retval=0
2124else
2125 $as_echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 ac_retval=1
2129fi
cristyda16f162011-02-19 23:52:17 +00002130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002131 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002132
2133} # ac_fn_c_try_compile
2134
cristy95646052009-11-28 23:05:30 +00002135# ac_fn_c_try_cpp LINENO
2136# ----------------------
2137# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138ac_fn_c_try_cpp ()
2139{
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002156 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2158 test ! -s conftest.err
2159 }; then :
2160 ac_retval=0
2161else
2162 $as_echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_retval=1
2166fi
cristyda16f162011-02-19 23:52:17 +00002167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002168 as_fn_set_status $ac_retval
2169
2170} # ac_fn_c_try_cpp
2171
cristy8b350f62009-11-15 23:12:43 +00002172# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2173# -------------------------------------------------------
2174# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175# the include files in INCLUDES and setting the cache variable VAR
2176# accordingly.
2177ac_fn_c_check_header_mongrel ()
2178{
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002180 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002183if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002184 $as_echo_n "(cached) " >&6
2185fi
2186eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188$as_echo "$ac_res" >&6; }
2189else
2190 # Is the header compilable?
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192$as_echo_n "checking $2 usability... " >&6; }
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196#include <$2>
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_header_compiler=yes
2200else
2201 ac_header_compiler=no
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205$as_echo "$ac_header_compiler" >&6; }
2206
2207# Is the header present?
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209$as_echo_n "checking $2 presence... " >&6; }
2210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h. */
2212#include <$2>
2213_ACEOF
2214if ac_fn_c_try_cpp "$LINENO"; then :
2215 ac_header_preproc=yes
2216else
2217 ac_header_preproc=no
2218fi
cristyda16f162011-02-19 23:52:17 +00002219rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221$as_echo "$ac_header_preproc" >&6; }
2222
2223# So? What about this header?
2224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225 yes:no: )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ;;
2231 no:yes:* )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2235$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2239$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002242( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002243## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002244## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002245 ) | sed "s/^/$as_me: WARNING: /" >&2
2246 ;;
2247esac
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002250if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002251 $as_echo_n "(cached) " >&6
2252else
2253 eval "$3=\$ac_header_compiler"
2254fi
2255eval ac_res=\$$3
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257$as_echo "$ac_res" >&6; }
2258fi
cristyda16f162011-02-19 23:52:17 +00002259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002260
2261} # ac_fn_c_check_header_mongrel
2262
2263# ac_fn_c_try_run LINENO
2264# ----------------------
2265# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2266# that executables *can* be run.
2267ac_fn_c_try_run ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_link"
2271case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276$as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>&5
2278 ac_status=$?
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2281 { { case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_try") 2>&5
2288 ac_status=$?
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; }; }; then :
2291 ac_retval=0
2292else
2293 $as_echo "$as_me: program exited with status $ac_status" >&5
2294 $as_echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 ac_retval=$ac_status
2298fi
2299 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002301 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002302
2303} # ac_fn_c_try_run
2304
2305# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2306# -------------------------------------------------------
2307# Tests whether HEADER exists and can be compiled using the include files in
2308# INCLUDES, setting the cache variable VAR accordingly.
2309ac_fn_c_check_header_compile ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002314if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002315 $as_echo_n "(cached) " >&6
2316else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319$4
2320#include <$2>
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$3=yes"
2324else
2325 eval "$3=no"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002333
2334} # ac_fn_c_check_header_compile
2335
cristya0b81c32010-01-22 02:54:33 +00002336# ac_fn_cxx_try_compile LINENO
2337# ----------------------------
2338# Try to compile conftest.$ac_ext, and return whether this succeeded.
2339ac_fn_cxx_try_compile ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 rm -f conftest.$ac_objext
2343 if { { ac_try="$ac_compile"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
2348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349$as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_compile") 2>conftest.err
2351 ac_status=$?
2352 if test -s conftest.err; then
2353 grep -v '^ *+' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2355 mv -f conftest.er1 conftest.err
2356 fi
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && {
2359 test -z "$ac_cxx_werror_flag" ||
2360 test ! -s conftest.err
2361 } && test -s conftest.$ac_objext; then :
2362 ac_retval=0
2363else
2364 $as_echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 ac_retval=1
2368fi
cristyda16f162011-02-19 23:52:17 +00002369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002370 as_fn_set_status $ac_retval
2371
2372} # ac_fn_cxx_try_compile
2373
cristy8b350f62009-11-15 23:12:43 +00002374# ac_fn_c_try_link LINENO
2375# -----------------------
2376# Try to link conftest.$ac_ext, and return whether this succeeded.
2377ac_fn_c_try_link ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2382case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385esac
2386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387$as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2389 ac_status=$?
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2394 fi
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest$ac_exeext && {
2400 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002401 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002402 }; then :
2403 ac_retval=0
2404else
2405 $as_echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_retval=1
2409fi
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002416 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002417
2418} # ac_fn_c_try_link
2419
cristy73bd4a52010-10-05 11:24:23 +00002420# ac_fn_c_check_func LINENO FUNC VAR
2421# ----------------------------------
2422# Tests whether FUNC exists, setting the cache variable VAR accordingly
2423ac_fn_c_check_func ()
2424{
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002428if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002429 $as_echo_n "(cached) " >&6
2430else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432/* end confdefs.h. */
2433/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2435#define $2 innocuous_$2
2436
2437/* System header to define __stub macros and hopefully few prototypes,
2438 which can conflict with char $2 (); below.
2439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 <limits.h> exists even on freestanding compilers. */
2441
2442#ifdef __STDC__
2443# include <limits.h>
2444#else
2445# include <assert.h>
2446#endif
2447
2448#undef $2
2449
2450/* Override any GCC internal prototype to avoid an error.
2451 Use char because int might match the return type of a GCC
2452 builtin and then its argument prototype would still apply. */
2453#ifdef __cplusplus
2454extern "C"
2455#endif
2456char $2 ();
2457/* The GNU C library defines this for functions which it implements
2458 to always fail with ENOSYS. Some functions are actually named
2459 something starting with __ and the normal name is an alias. */
2460#if defined __stub_$2 || defined __stub___$2
2461choke me
2462#endif
2463
2464int
2465main ()
2466{
2467return $2 ();
2468 ;
2469 return 0;
2470}
2471_ACEOF
2472if ac_fn_c_try_link "$LINENO"; then :
2473 eval "$3=yes"
2474else
2475 eval "$3=no"
2476fi
2477rm -f core conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479fi
2480eval ac_res=\$$3
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002484
2485} # ac_fn_c_check_func
2486
2487# ac_fn_cxx_try_cpp LINENO
2488# ------------------------
2489# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2490ac_fn_cxx_try_cpp ()
2491{
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if { { ac_try="$ac_cpp conftest.$ac_ext"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499$as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2501 ac_status=$?
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2506 fi
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002508 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002509 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2510 test ! -s conftest.err
2511 }; then :
2512 ac_retval=0
2513else
2514 $as_echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 ac_retval=1
2518fi
cristyda16f162011-02-19 23:52:17 +00002519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002520 as_fn_set_status $ac_retval
2521
2522} # ac_fn_cxx_try_cpp
2523
2524# ac_fn_cxx_try_link LINENO
2525# -------------------------
2526# Try to link conftest.$ac_ext, and return whether this succeeded.
2527ac_fn_cxx_try_link ()
2528{
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { { ac_try="$ac_link"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537$as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link") 2>conftest.err
2539 ac_status=$?
2540 if test -s conftest.err; then
2541 grep -v '^ *+' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2543 mv -f conftest.er1 conftest.err
2544 fi
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; } && {
2547 test -z "$ac_cxx_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest$ac_exeext && {
2550 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002551 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002552 }; then :
2553 ac_retval=0
2554else
2555 $as_echo "$as_me: failed program was:" >&5
2556sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 ac_retval=1
2559fi
2560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2562 # interfere with the next link command; also delete a directory that is
2563 # left behind by Apple's compiler. We do this before executing the actions.
2564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002566 as_fn_set_status $ac_retval
2567
2568} # ac_fn_cxx_try_link
2569
cristy8b350f62009-11-15 23:12:43 +00002570# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571# -------------------------------------------
2572# Tests whether TYPE exists after having included INCLUDES, setting cache
2573# variable VAR accordingly.
2574ac_fn_c_check_type ()
2575{
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002579if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002580 $as_echo_n "(cached) " >&6
2581else
2582 eval "$3=no"
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int
2587main ()
2588{
2589if (sizeof ($2))
2590 return 0;
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595if ac_fn_c_try_compile "$LINENO"; then :
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599int
2600main ()
2601{
2602if (sizeof (($2)))
2603 return 0;
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608if ac_fn_c_try_compile "$LINENO"; then :
2609
2610else
2611 eval "$3=yes"
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616fi
2617eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002621
2622} # ac_fn_c_check_type
2623
cristy92703d82010-04-26 00:18:18 +00002624# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625# ----------------------------------------------------
2626# Tries to find if the field MEMBER exists in type AGGR, after including
2627# INCLUDES, setting cache variable VAR accordingly.
2628ac_fn_c_check_member ()
2629{
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002633if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002634 $as_echo_n "(cached) " >&6
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$5
2655int
2656main ()
2657{
2658static $2 ac_aggr;
2659if (sizeof ac_aggr.$3)
2660return 0;
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 eval "$4=yes"
2667else
2668 eval "$4=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673fi
2674eval ac_res=\$$4
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002678
2679} # ac_fn_c_check_member
2680
cristy5eef09f2012-10-16 12:08:28 +00002681# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2682# ---------------------------------------------
2683# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2684# accordingly.
2685ac_fn_c_check_decl ()
2686{
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 as_decl_name=`echo $2|sed 's/ *(.*//'`
2689 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2691$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2692if eval \${$3+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696/* end confdefs.h. */
2697$4
2698int
2699main ()
2700{
2701#ifndef $as_decl_name
2702#ifdef __cplusplus
2703 (void) $as_decl_use;
2704#else
2705 (void) $as_decl_name;
2706#endif
2707#endif
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713if ac_fn_c_try_compile "$LINENO"; then :
2714 eval "$3=yes"
2715else
2716 eval "$3=no"
2717fi
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi
2720eval ac_res=\$$3
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722$as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724
2725} # ac_fn_c_check_decl
2726
cristy501c8042011-05-26 17:46:28 +00002727# ac_fn_c_find_intX_t LINENO BITS VAR
2728# -----------------------------------
2729# Finds a signed integer type with width BITS, setting cache variable VAR
2730# accordingly.
2731ac_fn_c_find_intX_t ()
2732{
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2735$as_echo_n "checking for int$2_t... " >&6; }
2736if eval \${$3+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 eval "$3=no"
2740 # Order is important - never check a type that is potentially smaller
2741 # than half of the expected target width.
2742 for ac_type in int$2_t 'int' 'long int' \
2743 'long long int' 'short int' 'signed char'; do
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$ac_includes_default
2747 enum { N = $2 / 2 - 1 };
2748int
2749main ()
2750{
2751static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002752test_array [0] = 0;
2753return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759if ac_fn_c_try_compile "$LINENO"; then :
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$ac_includes_default
2763 enum { N = $2 / 2 - 1 };
2764int
2765main ()
2766{
2767static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2768 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002769test_array [0] = 0;
2770return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
2777
2778else
2779 case $ac_type in #(
2780 int$2_t) :
2781 eval "$3=yes" ;; #(
2782 *) :
2783 eval "$3=\$ac_type" ;;
2784esac
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 if eval test \"x\$"$3"\" = x"no"; then :
2790
2791else
2792 break
2793fi
2794 done
2795fi
2796eval ac_res=\$$3
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798$as_echo "$ac_res" >&6; }
2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800
2801} # ac_fn_c_find_intX_t
2802
2803# ac_fn_c_find_uintX_t LINENO BITS VAR
2804# ------------------------------------
2805# Finds an unsigned integer type with width BITS, setting cache variable VAR
2806# accordingly.
2807ac_fn_c_find_uintX_t ()
2808{
2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2811$as_echo_n "checking for uint$2_t... " >&6; }
2812if eval \${$3+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 eval "$3=no"
2816 # Order is important - never check a type that is potentially smaller
2817 # than half of the expected target width.
2818 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2819 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h. */
2822$ac_includes_default
2823int
2824main ()
2825{
2826static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002827test_array [0] = 0;
2828return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 case $ac_type in #(
2836 uint$2_t) :
2837 eval "$3=yes" ;; #(
2838 *) :
2839 eval "$3=\$ac_type" ;;
2840esac
2841fi
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 if eval test \"x\$"$3"\" = x"no"; then :
2844
2845else
2846 break
2847fi
2848 done
2849fi
2850eval ac_res=\$$3
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852$as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854
2855} # ac_fn_c_find_uintX_t
2856
cristy8b350f62009-11-15 23:12:43 +00002857# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2858# --------------------------------------------
2859# Tries to find the compile-time value of EXPR in a program that includes
2860# INCLUDES, setting VAR accordingly. Returns whether the value could be
2861# computed
2862ac_fn_c_compute_int ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if test "$cross_compiling" = yes; then
2866 # Depending upon the size, compute the lo and hi bounds.
2867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h. */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002874test_array [0] = 0;
2875return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_lo=0 ac_mid=0
2883 while :; do
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885/* end confdefs.h. */
2886$4
2887int
2888main ()
2889{
2890static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002891test_array [0] = 0;
2892return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_hi=$ac_mid; break
2900else
2901 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2902 if test $ac_lo -le $ac_mid; then
2903 ac_lo= ac_hi=
2904 break
2905 fi
2906 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 done
2910else
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h. */
2913$4
2914int
2915main ()
2916{
2917static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002918test_array [0] = 0;
2919return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_hi=-1 ac_mid=-1
2927 while :; do
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930$4
2931int
2932main ()
2933{
2934static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002935test_array [0] = 0;
2936return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942if ac_fn_c_try_compile "$LINENO"; then :
2943 ac_lo=$ac_mid; break
2944else
2945 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2946 if test $ac_mid -le $ac_hi; then
2947 ac_lo= ac_hi=
2948 break
2949 fi
2950 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 done
2954else
2955 ac_lo= ac_hi=
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960# Binary search between lo and hi bounds.
2961while test "x$ac_lo" != "x$ac_hi"; do
2962 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965$4
2966int
2967main ()
2968{
2969static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002970test_array [0] = 0;
2971return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_hi=$ac_mid
2979else
2980 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2981fi
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983done
2984case $ac_lo in #((
2985?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2986'') ac_retval=1 ;;
2987esac
2988 else
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990/* end confdefs.h. */
2991$4
2992static long int longval () { return $2; }
2993static unsigned long int ulongval () { return $2; }
2994#include <stdio.h>
2995#include <stdlib.h>
2996int
2997main ()
2998{
2999
3000 FILE *f = fopen ("conftest.val", "w");
3001 if (! f)
3002 return 1;
3003 if (($2) < 0)
3004 {
3005 long int i = longval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%ld", i);
3009 }
3010 else
3011 {
3012 unsigned long int i = ulongval ();
3013 if (i != ($2))
3014 return 1;
3015 fprintf (f, "%lu", i);
3016 }
3017 /* Do not output a trailing newline, as this causes \r\n confusion
3018 on some platforms. */
3019 return ferror (f) || fclose (f) != 0;
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_run "$LINENO"; then :
3026 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3027else
3028 ac_retval=1
3029fi
3030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3031 conftest.$ac_objext conftest.beam conftest.$ac_ext
3032rm -f conftest.val
3033
3034 fi
cristyda16f162011-02-19 23:52:17 +00003035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003036 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003037
3038} # ac_fn_c_compute_int
3039
3040# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3041# ---------------------------------------------------------
3042# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3043# the include files in INCLUDES and setting the cache variable VAR
3044# accordingly.
3045ac_fn_cxx_check_header_mongrel ()
3046{
3047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003048 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3050$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003051if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003052 $as_echo_n "(cached) " >&6
3053fi
3054eval ac_res=\$$3
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3056$as_echo "$ac_res" >&6; }
3057else
3058 # Is the header compilable?
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3060$as_echo_n "checking $2 usability... " >&6; }
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h. */
3063$4
3064#include <$2>
3065_ACEOF
3066if ac_fn_cxx_try_compile "$LINENO"; then :
3067 ac_header_compiler=yes
3068else
3069 ac_header_compiler=no
3070fi
3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3073$as_echo "$ac_header_compiler" >&6; }
3074
3075# Is the header present?
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3077$as_echo_n "checking $2 presence... " >&6; }
3078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079/* end confdefs.h. */
3080#include <$2>
3081_ACEOF
3082if ac_fn_cxx_try_cpp "$LINENO"; then :
3083 ac_header_preproc=yes
3084else
3085 ac_header_preproc=no
3086fi
cristyda16f162011-02-19 23:52:17 +00003087rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3089$as_echo "$ac_header_preproc" >&6; }
3090
3091# So? What about this header?
3092case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3093 yes:no: )
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3095$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3098 ;;
3099 no:yes:* )
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3101$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3103$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3105$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3107$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3109$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003110( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003111## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003112## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003113 ) | sed "s/^/$as_me: WARNING: /" >&2
3114 ;;
3115esac
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3117$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003118if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003119 $as_echo_n "(cached) " >&6
3120else
3121 eval "$3=\$ac_header_compiler"
3122fi
3123eval ac_res=\$$3
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3125$as_echo "$ac_res" >&6; }
3126fi
cristyda16f162011-02-19 23:52:17 +00003127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003128
3129} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003130cat >config.log <<_ACEOF
3131This file contains any messages produced by compilers while
3132running configure, to aid debugging if configure makes a mistake.
3133
cristy29eb34e2011-10-16 00:46:08 +00003134It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003135generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003136
3137 $ $0 $@
3138
3139_ACEOF
3140exec 5>>config.log
3141{
3142cat <<_ASUNAME
3143## --------- ##
3144## Platform. ##
3145## --------- ##
3146
3147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3148uname -m = `(uname -m) 2>/dev/null || echo unknown`
3149uname -r = `(uname -r) 2>/dev/null || echo unknown`
3150uname -s = `(uname -s) 2>/dev/null || echo unknown`
3151uname -v = `(uname -v) 2>/dev/null || echo unknown`
3152
3153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3154/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3155
3156/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3157/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3159/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3160/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3161/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3162/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3163
3164_ASUNAME
3165
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003171 $as_echo "PATH: $as_dir"
3172 done
cristy3ed852e2009-09-05 21:47:34 +00003173IFS=$as_save_IFS
3174
3175} >&5
3176
3177cat >&5 <<_ACEOF
3178
3179
3180## ----------- ##
3181## Core tests. ##
3182## ----------- ##
3183
3184_ACEOF
3185
3186
3187# Keep a trace of the command line.
3188# Strip out --no-create and --no-recursion so they do not pile up.
3189# Strip out --silent because we don't want to record it for future runs.
3190# Also quote any args containing shell meta-characters.
3191# Make two passes to allow for proper duplicate-argument suppression.
3192ac_configure_args=
3193ac_configure_args0=
3194ac_configure_args1=
3195ac_must_keep_next=false
3196for ac_pass in 1 2
3197do
3198 for ac_arg
3199 do
3200 case $ac_arg in
3201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3203 | -silent | --silent | --silen | --sile | --sil)
3204 continue ;;
3205 *\'*)
3206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3207 esac
3208 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003210 2)
cristy8b350f62009-11-15 23:12:43 +00003211 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003212 if test $ac_must_keep_next = true; then
3213 ac_must_keep_next=false # Got value, back to normal.
3214 else
3215 case $ac_arg in
3216 *=* | --config-cache | -C | -disable-* | --disable-* \
3217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3219 | -with-* | --with-* | -without-* | --without-* | --x)
3220 case "$ac_configure_args0 " in
3221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3222 esac
3223 ;;
3224 -* ) ac_must_keep_next=true ;;
3225 esac
3226 fi
cristy8b350f62009-11-15 23:12:43 +00003227 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003228 ;;
3229 esac
3230 done
3231done
cristy8b350f62009-11-15 23:12:43 +00003232{ ac_configure_args0=; unset ac_configure_args0;}
3233{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003234
3235# When interrupted or exit'd, cleanup temporary files, and complete
3236# config.log. We remove comments because anyway the quotes in there
3237# would cause problems or look ugly.
3238# WARNING: Use '\'' to represent an apostrophe within the trap.
3239# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3240trap 'exit_status=$?
3241 # Save into config.log some information that might help in debugging.
3242 {
3243 echo
3244
cristy98dddb52010-11-04 00:30:15 +00003245 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003246## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003247## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003248 echo
3249 # The following way of writing the cache mishandles newlines in values,
3250(
3251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3252 eval ac_val=\$$ac_var
3253 case $ac_val in #(
3254 *${as_nl}*)
3255 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3258 esac
3259 case $ac_var in #(
3260 _ | IFS | as_nl) ;; #(
3261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003262 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003263 esac ;;
3264 esac
3265 done
3266 (set) 2>&1 |
3267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3268 *${as_nl}ac_space=\ *)
3269 sed -n \
3270 "s/'\''/'\''\\\\'\'''\''/g;
3271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3272 ;; #(
3273 *)
3274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3275 ;;
3276 esac |
3277 sort
3278)
3279 echo
3280
cristy98dddb52010-11-04 00:30:15 +00003281 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003282## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003283## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003284 echo
3285 for ac_var in $ac_subst_vars
3286 do
3287 eval ac_val=\$$ac_var
3288 case $ac_val in
3289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3290 esac
3291 $as_echo "$ac_var='\''$ac_val'\''"
3292 done | sort
3293 echo
3294
3295 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003296 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003297## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003298## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003299 echo
3300 for ac_var in $ac_subst_files
3301 do
3302 eval ac_val=\$$ac_var
3303 case $ac_val in
3304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3305 esac
3306 $as_echo "$ac_var='\''$ac_val'\''"
3307 done | sort
3308 echo
3309 fi
3310
3311 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003312 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003313## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003314## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003315 echo
3316 cat confdefs.h
3317 echo
3318 fi
3319 test "$ac_signal" != 0 &&
3320 $as_echo "$as_me: caught signal $ac_signal"
3321 $as_echo "$as_me: exit $exit_status"
3322 } >&5
3323 rm -f core *.core core.conftest.* &&
3324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3325 exit $exit_status
3326' 0
3327for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003329done
3330ac_signal=0
3331
3332# confdefs.h avoids OS command line length limits that DEFS can exceed.
3333rm -f -r conftest* confdefs.h
3334
cristy8b350f62009-11-15 23:12:43 +00003335$as_echo "/* confdefs.h */" > confdefs.h
3336
cristy3ed852e2009-09-05 21:47:34 +00003337# Predefined preprocessor variables.
3338
3339cat >>confdefs.h <<_ACEOF
3340#define PACKAGE_NAME "$PACKAGE_NAME"
3341_ACEOF
3342
cristy3ed852e2009-09-05 21:47:34 +00003343cat >>confdefs.h <<_ACEOF
3344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3345_ACEOF
3346
cristy3ed852e2009-09-05 21:47:34 +00003347cat >>confdefs.h <<_ACEOF
3348#define PACKAGE_VERSION "$PACKAGE_VERSION"
3349_ACEOF
3350
cristy3ed852e2009-09-05 21:47:34 +00003351cat >>confdefs.h <<_ACEOF
3352#define PACKAGE_STRING "$PACKAGE_STRING"
3353_ACEOF
3354
cristy3ed852e2009-09-05 21:47:34 +00003355cat >>confdefs.h <<_ACEOF
3356#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3357_ACEOF
3358
cristy8b350f62009-11-15 23:12:43 +00003359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE_URL "$PACKAGE_URL"
3361_ACEOF
3362
cristy3ed852e2009-09-05 21:47:34 +00003363
3364# Let the site file select an alternate cache file if it wants to.
3365# Prefer an explicitly selected file to automatically selected ones.
3366ac_site_file1=NONE
3367ac_site_file2=NONE
3368if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003369 # We do not want a PATH search for config.site.
3370 case $CONFIG_SITE in #((
3371 -*) ac_site_file1=./$CONFIG_SITE;;
3372 */*) ac_site_file1=$CONFIG_SITE;;
3373 *) ac_site_file1=./$CONFIG_SITE;;
3374 esac
cristy3ed852e2009-09-05 21:47:34 +00003375elif test "x$prefix" != xNONE; then
3376 ac_site_file1=$prefix/share/config.site
3377 ac_site_file2=$prefix/etc/config.site
3378else
3379 ac_site_file1=$ac_default_prefix/share/config.site
3380 ac_site_file2=$ac_default_prefix/etc/config.site
3381fi
3382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3383do
3384 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3388 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003389 . "$ac_site_file" \
3390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "failed to load site script $ac_site_file
3393See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003394 fi
3395done
3396
3397if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003398 # Some versions of bash will fail to source /dev/null (special files
3399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: loading cache $cache_file" >&6;}
3403 case $cache_file in
3404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3405 *) . "./$cache_file";;
3406 esac
3407 fi
3408else
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: creating cache $cache_file" >&6;}
3411 >$cache_file
3412fi
3413
cristycd4c5312009-11-22 01:19:08 +00003414as_fn_append ac_header_list " stdlib.h"
3415as_fn_append ac_header_list " unistd.h"
3416as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003417# Check that the precious variables saved in the cache have kept the same
3418# value.
3419ac_cache_corrupted=false
3420for ac_var in $ac_precious_vars; do
3421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3422 eval ac_new_set=\$ac_env_${ac_var}_set
3423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3424 eval ac_new_val=\$ac_env_${ac_var}_value
3425 case $ac_old_set,$ac_new_set in
3426 set,)
cristy8b350f62009-11-15 23:12:43 +00003427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3429 ac_cache_corrupted=: ;;
3430 ,set)
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3433 ac_cache_corrupted=: ;;
3434 ,);;
3435 *)
3436 if test "x$ac_old_val" != "x$ac_new_val"; then
3437 # differences in whitespace do not lead to failure.
3438 ac_old_val_w=`echo x $ac_old_val`
3439 ac_new_val_w=`echo x $ac_new_val`
3440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3443 ac_cache_corrupted=:
3444 else
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3447 eval $ac_var=\$ac_old_val
3448 fi
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3453 fi;;
3454 esac
3455 # Pass precious variables to config.status.
3456 if test "$ac_new_set" = set; then
3457 case $ac_new_val in
3458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3459 *) ac_arg=$ac_var=$ac_new_val ;;
3460 esac
3461 case " $ac_configure_args " in
3462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003464 esac
3465 fi
3466done
3467if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473fi
cristy8b350f62009-11-15 23:12:43 +00003474## -------------------- ##
3475## Main body of script. ##
3476## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485
3486ac_aux_dir=
3487for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003488 if test -f "$ac_dir/install-sh"; then
3489 ac_aux_dir=$ac_dir
3490 ac_install_sh="$ac_aux_dir/install-sh -c"
3491 break
3492 elif test -f "$ac_dir/install.sh"; then
3493 ac_aux_dir=$ac_dir
3494 ac_install_sh="$ac_aux_dir/install.sh -c"
3495 break
3496 elif test -f "$ac_dir/shtool"; then
3497 ac_aux_dir=$ac_dir
3498 ac_install_sh="$ac_aux_dir/shtool install -c"
3499 break
3500 fi
cristy3ed852e2009-09-05 21:47:34 +00003501done
3502if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003504fi
3505
3506# These three variables are undocumented and unsupported,
3507# and are intended to be withdrawn in a future Autoconf release.
3508# They can cause serious problems if a builder's source tree is in a directory
3509# whose full name contains unusual characters.
3510ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3511ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3512ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3513
3514
3515
3516
3517ac_config_headers="$ac_config_headers config/config.h"
3518
cristy24fc1fe2010-10-23 21:13:01 +00003519
cristy01ff9f32012-12-01 18:15:29 +00003520ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003521
cristy8d0ff762013-03-10 20:33:28 +00003522ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003523
3524
3525#
3526# Save initial user-tunable values
3527#
3528USER_LIBS=$LIBS
3529for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3530 eval isset=\${$var+set}
3531 if test "$isset" = 'set'; then
3532 eval val=$`echo $var`
3533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3534 fi
3535done
3536
3537
3538CONFIGURE_ARGS="$0 ${ac_configure_args}"
3539
3540
3541# Source file containing package/library versioning information.
3542. ${srcdir}/version.sh
3543
cristy15a88782010-01-31 23:24:49 +00003544echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003545# Make sure we can run config.sub.
3546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003548
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003551if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003552 $as_echo_n "(cached) " >&6
3553else
3554 ac_build_alias=$build_alias
3555test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003561
3562fi
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo "$ac_cv_build" >&6; }
3565case $ac_cv_build in
3566*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003567*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003568esac
3569build=$ac_cv_build
3570ac_save_IFS=$IFS; IFS='-'
3571set x $ac_cv_build
3572shift
3573build_cpu=$1
3574build_vendor=$2
3575shift; shift
3576# Remember, the first character of IFS is used to create $*,
3577# except with old shells:
3578build_os=$*
3579IFS=$ac_save_IFS
3580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581
3582
cristy8b350f62009-11-15 23:12:43 +00003583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003584$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003585if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003586 $as_echo_n "(cached) " >&6
3587else
3588 if test "x$host_alias" = x; then
3589 ac_cv_host=$ac_cv_build
3590else
3591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003593fi
3594
3595fi
cristy8b350f62009-11-15 23:12:43 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo "$ac_cv_host" >&6; }
3598case $ac_cv_host in
3599*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003600*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003601esac
3602host=$ac_cv_host
3603ac_save_IFS=$IFS; IFS='-'
3604set x $ac_cv_host
3605shift
3606host_cpu=$1
3607host_vendor=$2
3608shift; shift
3609# Remember, the first character of IFS is used to create $*,
3610# except with old shells:
3611host_os=$*
3612IFS=$ac_save_IFS
3613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
cristy8b350f62009-11-15 23:12:43 +00003616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003617$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003618if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003619 $as_echo_n "(cached) " >&6
3620else
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3623else
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003626fi
3627
3628fi
cristy8b350f62009-11-15 23:12:43 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003630$as_echo "$ac_cv_target" >&6; }
3631case $ac_cv_target in
3632*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003633*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003634esac
3635target=$ac_cv_target
3636ac_save_IFS=$IFS; IFS='-'
3637set x $ac_cv_target
3638shift
3639target_cpu=$1
3640target_vendor=$2
3641shift; shift
3642# Remember, the first character of IFS is used to create $*,
3643# except with old shells:
3644target_os=$*
3645IFS=$ac_save_IFS
3646case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3647
3648
3649# The aliases save the names the user supplied, while $host etc.
3650# will get canonicalized.
3651test -n "$target_alias" &&
3652 test "$program_prefix$program_suffix$program_transform_name" = \
3653 NONENONEs,x,x, &&
3654 program_prefix=${target_alias}-
3655
cristy837d6dc2010-02-27 01:16:57 +00003656
3657
3658
cristy8be34142012-06-17 14:07:18 +00003659
cristy19615b82011-04-13 20:02:01 +00003660MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003661
3662
cristy27d53d62012-07-29 23:30:07 +00003663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3665_ACEOF
3666
3667
cristy19615b82011-04-13 20:02:01 +00003668MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003669
3670
cristy27d53d62012-07-29 23:30:07 +00003671cat >>confdefs.h <<_ACEOF
3672#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3673_ACEOF
3674
3675
cristy19615b82011-04-13 20:02:01 +00003676MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003677
3678
cristy27d53d62012-07-29 23:30:07 +00003679cat >>confdefs.h <<_ACEOF
3680#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3681_ACEOF
3682
3683
cristy37442762013-02-10 21:07:23 +00003684
3685# Substitute versioning
3686MAGICK_MAJOR_VERSION=7
3687
3688MAGICK_MINOR_VERSION=0
3689
3690MAGICK_MICRO_VERSION=0
3691
3692MAGICK_PATCHLEVEL_VERSION=0
3693
3694MAGICK_VERSION=7.0.0-0
3695
cristyfdc7d122013-08-17 20:46:45 +00003696MAGICK_SVN_REVISION=13015:13034M
cristy37442762013-02-10 21:07:23 +00003697
3698
cristy3ed852e2009-09-05 21:47:34 +00003699# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003700MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3701
3702MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3703
cristy37442762013-02-10 21:07:23 +00003704
cristy5ed9c6e2013-07-14 21:20:31 +00003705MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3706
3707MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3708
3709
cristyd694ca32011-03-27 21:42:54 +00003710
cristy3ed852e2009-09-05 21:47:34 +00003711# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3713$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003714# Reject unsafe characters in $srcdir or the absolute working directory
3715# name. Accept space and tab only in the latter.
3716am_lf='
3717'
3718case `pwd` in
3719 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003720 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003721esac
3722case $srcdir in
3723 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003724 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003725esac
cristy3ed852e2009-09-05 21:47:34 +00003726
cristyc0890a62012-07-19 00:18:20 +00003727# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003728# arguments. Must try -L first in case configure is actually a
3729# symlink; some systems play weird games with the mod time of symlinks
3730# (eg FreeBSD returns the mod time of the symlink's containing
3731# directory).
3732if (
cristyc0890a62012-07-19 00:18:20 +00003733 am_has_slept=no
3734 for am_try in 1 2; do
3735 echo "timestamp, slept: $am_has_slept" > conftest.file
3736 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3737 if test "$*" = "X"; then
3738 # -L didn't work.
3739 set X `ls -t "$srcdir/configure" conftest.file`
3740 fi
3741 if test "$*" != "X $srcdir/configure conftest.file" \
3742 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003743
cristyc0890a62012-07-19 00:18:20 +00003744 # If neither matched, then we have a broken ls. This can happen
3745 # if, for instance, CONFIG_SHELL is bash and it inherits a
3746 # broken ls alias from the environment. This has actually
3747 # happened. Such a system could not be considered "sane".
3748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3749 alias in your environment" "$LINENO" 5
3750 fi
3751 if test "$2" = conftest.file || test $am_try -eq 2; then
3752 break
3753 fi
3754 # Just in case.
3755 sleep 1
3756 am_has_slept=yes
3757 done
cristy73bd4a52010-10-05 11:24:23 +00003758 test "$2" = conftest.file
3759 )
3760then
3761 # Ok.
3762 :
3763else
cristy98dddb52010-11-04 00:30:15 +00003764 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003765Check your system clock" "$LINENO" 5
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003769# If we didn't sleep, we still need to ensure time stamps of config.status and
3770# generated files are strictly newer.
3771am_sleep_pid=
3772if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3773 ( sleep 1 ) &
3774 am_sleep_pid=$!
3775fi
cristy73bd4a52010-10-05 11:24:23 +00003776
cristyc0890a62012-07-19 00:18:20 +00003777rm -f conftest.file
3778
3779
cristy58d34aa2013-01-24 15:11:54 +00003780am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003781
3782# Find a good install program. We prefer a C program (faster),
3783# so one script is as good as another. But avoid the broken or
3784# incompatible versions:
3785# SysV /etc/install, /usr/sbin/install
3786# SunOS /usr/etc/install
3787# IRIX /sbin/install
3788# AIX /bin/install
3789# AmigaOS /C/install, which installs bootblocks on floppy discs
3790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3793# OS/2's system install, which has a completely different semantic
3794# ./install, which can be erroneously created by make from ./install.sh.
3795# Reject install programs that cannot install multiple files.
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3797$as_echo_n "checking for a BSD-compatible install... " >&6; }
3798if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003799if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003800 $as_echo_n "(cached) " >&6
3801else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 # Account for people who put trailing slashes in PATH elements.
3808case $as_dir/ in #((
3809 ./ | .// | /[cC]/* | \
3810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3812 /usr/ucb/* ) ;;
3813 *)
3814 # OSF1 and SCO ODT 3.0 have their own names for install.
3815 # Don't use installbsd from OSF since it installs stuff as root
3816 # by default.
3817 for ac_prog in ginstall scoinst install; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003820 if test $ac_prog = install &&
3821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3822 # AIX install. It has an incompatible calling convention.
3823 :
3824 elif test $ac_prog = install &&
3825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # program-specific install script used by HP pwplus--don't use.
3827 :
3828 else
3829 rm -rf conftest.one conftest.two conftest.dir
3830 echo one > conftest.one
3831 echo two > conftest.two
3832 mkdir conftest.dir
3833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3834 test -s conftest.one && test -s conftest.two &&
3835 test -s conftest.dir/conftest.one &&
3836 test -s conftest.dir/conftest.two
3837 then
3838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3839 break 3
3840 fi
3841 fi
3842 fi
3843 done
3844 done
3845 ;;
3846esac
3847
3848 done
3849IFS=$as_save_IFS
3850
3851rm -rf conftest.one conftest.two conftest.dir
3852
3853fi
3854 if test "${ac_cv_path_install+set}" = set; then
3855 INSTALL=$ac_cv_path_install
3856 else
3857 # As a last resort, use the slow shell script. Don't cache a
3858 # value for INSTALL within a source directory, because that will
3859 # break other packages using the cache if that directory is
3860 # removed, or if the value is a relative name.
3861 INSTALL=$ac_install_sh
3862 fi
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3865$as_echo "$INSTALL" >&6; }
3866
3867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3868# It thinks the first close brace ends the variable substitution.
3869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3870
3871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3872
3873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874
3875test "$program_prefix" != NONE &&
3876 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3877# Use a double $ so make ignores it.
3878test "$program_suffix" != NONE &&
3879 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3880# Double any \ or $.
3881# By default was `s,x,x', remove it if useless.
3882ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3883program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3884
3885# expand $ac_aux_dir to an absolute path
3886am_aux_dir=`cd $ac_aux_dir && pwd`
3887
3888if test x"${MISSING+set}" != xset; then
3889 case $am_aux_dir in
3890 *\ * | *\ *)
3891 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3892 *)
3893 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3894 esac
3895fi
3896# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003897if eval "$MISSING --is-lightweight"; then
3898 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003899else
3900 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3902$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003903fi
3904
3905if test x"${install_sh}" != xset; then
3906 case $am_aux_dir in
3907 *\ * | *\ *)
3908 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3909 *)
3910 install_sh="\${SHELL} $am_aux_dir/install-sh"
3911 esac
3912fi
3913
cristyc0890a62012-07-19 00:18:20 +00003914# Installed binaries are usually stripped using 'strip' when the user
3915# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003916# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003917# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003918if test "$cross_compiling" != no; then
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3921set dummy ${ac_tool_prefix}strip; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003924if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003925 $as_echo_n "(cached) " >&6
3926else
3927 if test -n "$STRIP"; then
3928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942 done
3943IFS=$as_save_IFS
3944
3945fi
3946fi
3947STRIP=$ac_cv_prog_STRIP
3948if test -n "$STRIP"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3950$as_echo "$STRIP" >&6; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956
3957fi
3958if test -z "$ac_cv_prog_STRIP"; then
3959 ac_ct_STRIP=$STRIP
3960 # Extract the first word of "strip", so it can be a program name with args.
3961set dummy strip; ac_word=$2
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003964if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003965 $as_echo_n "(cached) " >&6
3966else
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003977 ac_cv_prog_ac_ct_STRIP="strip"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982 done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988if test -n "$ac_ct_STRIP"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3990$as_echo "$ac_ct_STRIP" >&6; }
3991else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994fi
3995
3996 if test "x$ac_ct_STRIP" = x; then
3997 STRIP=":"
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 STRIP=$ac_ct_STRIP
4006 fi
4007else
4008 STRIP="$ac_cv_prog_STRIP"
4009fi
4010
4011fi
4012INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4015$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4016if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004017 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004018 $as_echo_n "(cached) " >&6
4019else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in mkdir gmkdir; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004027 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004028 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4029 'mkdir (GNU coreutils) '* | \
4030 'mkdir (coreutils) '* | \
4031 'mkdir (fileutils) '4.1*)
4032 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4033 break 3;;
4034 esac
4035 done
4036 done
4037 done
4038IFS=$as_save_IFS
4039
4040fi
4041
4042 test -d ./--version && rmdir ./--version
4043 if test "${ac_cv_path_mkdir+set}" = set; then
4044 MKDIR_P="$ac_cv_path_mkdir -p"
4045 else
4046 # As a last resort, use the slow shell script. Don't cache a
4047 # value for MKDIR_P within a source directory, because that will
4048 # break other packages using the cache if that directory is
4049 # removed, or if the value is a relative name.
4050 MKDIR_P="$ac_install_sh -d"
4051 fi
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4054$as_echo "$MKDIR_P" >&6; }
4055
cristy73bd4a52010-10-05 11:24:23 +00004056for ac_prog in gawk mawk nawk awk
4057do
4058 # Extract the first word of "$ac_prog", so it can be a program name with args.
4059set dummy $ac_prog; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004062if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004063 $as_echo_n "(cached) " >&6
4064else
4065 if test -n "$AWK"; then
4066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004075 ac_cv_prog_AWK="$ac_prog"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079done
4080 done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085AWK=$ac_cv_prog_AWK
4086if test -n "$AWK"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4088$as_echo "$AWK" >&6; }
4089else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092fi
4093
4094
4095 test -n "$AWK" && break
4096done
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4099$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4100set x ${MAKE-make}
4101ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004102if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004103 $as_echo_n "(cached) " >&6
4104else
4105 cat >conftest.make <<\_ACEOF
4106SHELL = /bin/sh
4107all:
4108 @echo '@@@%%%=$(MAKE)=@@@%%%'
4109_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004111case `${MAKE-make} -f conftest.make 2>/dev/null` in
4112 *@@@%%%=?*=@@@%%%*)
4113 eval ac_cv_prog_make_${ac_make}_set=yes;;
4114 *)
4115 eval ac_cv_prog_make_${ac_make}_set=no;;
4116esac
4117rm -f conftest.make
4118fi
4119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121$as_echo "yes" >&6; }
4122 SET_MAKE=
4123else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
4126 SET_MAKE="MAKE=${MAKE-make}"
4127fi
4128
4129rm -rf .tst 2>/dev/null
4130mkdir .tst 2>/dev/null
4131if test -d .tst; then
4132 am__leading_dot=.
4133else
4134 am__leading_dot=_
4135fi
4136rmdir .tst 2>/dev/null
4137
cristya448bd22011-10-14 12:38:13 +00004138# Check whether --enable-silent-rules was given.
4139if test "${enable_silent_rules+set}" = set; then :
4140 enableval=$enable_silent_rules;
4141fi
4142
cristyc0890a62012-07-19 00:18:20 +00004143case $enable_silent_rules in # (((
4144 yes) AM_DEFAULT_VERBOSITY=0;;
4145 no) AM_DEFAULT_VERBOSITY=1;;
4146 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004147esac
cristyc3fb77b2012-02-06 01:49:41 +00004148am_make=${MAKE-make}
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4150$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4151if ${am_cv_make_support_nested_variables+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153else
4154 if $as_echo 'TRUE=$(BAR$(V))
4155BAR0=false
4156BAR1=true
4157V=1
4158am__doit:
4159 @$(TRUE)
4160.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4161 am_cv_make_support_nested_variables=yes
4162else
4163 am_cv_make_support_nested_variables=no
4164fi
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4167$as_echo "$am_cv_make_support_nested_variables" >&6; }
4168if test $am_cv_make_support_nested_variables = yes; then
4169 AM_V='$(V)'
4170 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4171else
4172 AM_V=$AM_DEFAULT_VERBOSITY
4173 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4174fi
cristya448bd22011-10-14 12:38:13 +00004175AM_BACKSLASH='\'
4176
cristy73bd4a52010-10-05 11:24:23 +00004177if test "`cd $srcdir && pwd`" != "`pwd`"; then
4178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4179 # is not polluted with repeated "-I."
4180 am__isrc=' -I$(srcdir)'
4181 # test to see if srcdir already configured
4182 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004183 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004184 fi
4185fi
4186
4187# test whether we have cygpath
4188if test -z "$CYGPATH_W"; then
4189 if (cygpath --version) >/dev/null 2>/dev/null; then
4190 CYGPATH_W='cygpath -w'
4191 else
4192 CYGPATH_W=echo
4193 fi
4194fi
4195
4196
4197# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004198 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004199 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004200
4201
cristya448bd22011-10-14 12:38:13 +00004202cat >>confdefs.h <<_ACEOF
4203#define PACKAGE "$PACKAGE"
4204_ACEOF
4205
4206
4207cat >>confdefs.h <<_ACEOF
4208#define VERSION "$VERSION"
4209_ACEOF
4210
cristy73bd4a52010-10-05 11:24:23 +00004211# Some tools Automake needs.
4212
4213ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4214
4215
4216AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4217
4218
4219AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4220
4221
4222AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4223
4224
4225MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4226
cristyc0890a62012-07-19 00:18:20 +00004227# For better backward compatibility. To be removed once Automake 1.9.x
4228# dies out for good. For more background, see:
4229# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4230# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4231mkdir_p='$(MKDIR_P)'
4232
cristy73bd4a52010-10-05 11:24:23 +00004233# We need awk for the "check" target. The system "awk" is bad on
4234# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004235# Always define AMTAR for backward compatibility. Yes, it's still used
4236# in the wild :-( We should find a proper way to deprecate it ...
4237AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004238
cristye69bdbe2013-05-03 21:40:44 +00004239
4240# We'll loop over all known methods to create a tar archive until one works.
4241_am_tools='gnutar pax cpio none'
4242
cristyc3fb77b2012-02-06 01:49:41 +00004243am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004244
4245
4246
4247
4248
cristy3ed852e2009-09-05 21:47:34 +00004249
cristye69bdbe2013-05-03 21:40:44 +00004250
cristy3ed852e2009-09-05 21:47:34 +00004251# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004252# Check whether --enable-silent-rules was given.
4253if test "${enable_silent_rules+set}" = set; then :
4254 enableval=$enable_silent_rules;
4255fi
4256
cristyc0890a62012-07-19 00:18:20 +00004257case $enable_silent_rules in # (((
4258 yes) AM_DEFAULT_VERBOSITY=0;;
4259 no) AM_DEFAULT_VERBOSITY=1;;
4260 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004261esac
cristyc3fb77b2012-02-06 01:49:41 +00004262am_make=${MAKE-make}
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4264$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4265if ${am_cv_make_support_nested_variables+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 if $as_echo 'TRUE=$(BAR$(V))
4269BAR0=false
4270BAR1=true
4271V=1
4272am__doit:
4273 @$(TRUE)
4274.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4275 am_cv_make_support_nested_variables=yes
4276else
4277 am_cv_make_support_nested_variables=no
4278fi
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4281$as_echo "$am_cv_make_support_nested_variables" >&6; }
4282if test $am_cv_make_support_nested_variables = yes; then
4283 AM_V='$(V)'
4284 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4285else
4286 AM_V=$AM_DEFAULT_VERBOSITY
4287 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4288fi
cristy73bd4a52010-10-05 11:24:23 +00004289AM_BACKSLASH='\'
4290
cristy3ed852e2009-09-05 21:47:34 +00004291
cristy5ed9c6e2013-07-14 21:20:31 +00004292# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004293MAGICK_LIB_VERSION="0x"
4294if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4295 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4296fi
4297MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4298if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4299 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4300fi
4301MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4302if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4303 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4304fi
4305MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4306
4307
4308# Definition used to define MagickLibVersionText in version.h
4309MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4310
4311
4312# Definition used to define MagickLibVersionNumber in version.h
4313MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4314
4315
cristy5ed9c6e2013-07-14 21:20:31 +00004316MAGICKPP_LIB_VERSION="0x"
4317if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4318 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4319fi
4320MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4321if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4322 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4323fi
4324MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4325if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4326 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4327fi
4328MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4329
4330
4331# Definition used to define MagickLibVersionText in version.h
4332MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4333
4334
4335# Definition used to define MagickLibVersionNumber in version.h
4336MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4337
4338
4339
4340
cristy3ed852e2009-09-05 21:47:34 +00004341# Regenerate config.status if ChangeLog or version.sh is updated.
4342CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4343
4344
4345PERLMAINCC=$CC
4346
4347MAGICK_CFLAGS=''
4348MAGICK_CPPFLAGS=$CPPFLAGS_USER
4349MAGICK_PCFLAGS=$CPPFLAGS_USER
4350MAGICK_LDFLAGS=''
4351MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004352MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004353
4354#
4355# Evaluate shell variable equivalents to Makefile directory variables
4356#
4357if test "x$prefix" = xNONE; then
4358 prefix=$ac_default_prefix
4359fi
4360# Let make expand exec_prefix.
4361if test "x$exec_prefix" = xNONE; then
4362 exec_prefix='${prefix}'
4363fi
4364
4365#
4366eval "eval PREFIX_DIR=${prefix}"
4367
4368eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4369
4370eval "eval BIN_DIR=$bindir"
4371
4372eval "eval SBIN_DIR=$sbindir"
4373
4374eval "eval LIBEXEC_DIR=$libexecdir"
4375
4376eval "eval DATA_DIR=$datadir"
4377
cristy4e65ec22012-04-08 01:33:27 +00004378eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004379
cristy3ed852e2009-09-05 21:47:34 +00004380eval "eval SYSCONF_DIR=$sysconfdir"
4381
4382eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4383
4384eval "eval LOCALSTATE_DIR=$localstatedir"
4385
4386eval "eval LIB_DIR=$libdir"
4387
4388eval "eval INCLUDE_DIR=$includedir"
4389
4390eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4391
4392eval "eval INFO_DIR=$infodir"
4393
4394eval "eval MAN_DIR=$mandir"
4395
4396
4397# Get full paths to source and build directories
4398srcdirfull="`cd $srcdir && pwd`"
4399builddir="`pwd`"
4400
4401#
4402# Compute variables useful for running uninstalled software.
4403#
4404MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4405MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4406MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4407MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4408DIRSEP=':'
4409case "${build_os}" in
4410 mingw* )
4411 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4412 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4413 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4414 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4415 DIRSEP=';'
4416 ;;
4417esac
4418case "${host_os}" in
4419 mingw* )
4420 DIRSEP=';'
4421 ;;
4422esac
4423
4424
4425
4426
4427
4428
cristya0b81c32010-01-22 02:54:33 +00004429
4430#
4431# Enable OS features.
4432#
cristy73bd4a52010-10-05 11:24:23 +00004433DEPDIR="${am__leading_dot}deps"
4434
4435ac_config_commands="$ac_config_commands depfiles"
4436
4437
4438am_make=${MAKE-make}
4439cat > confinc << 'END'
4440am__doit:
4441 @echo this is the am__doit target
4442.PHONY: am__doit
4443END
4444# If we don't find an include directive, just comment out the code.
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4446$as_echo_n "checking for style of include used by $am_make... " >&6; }
4447am__include="#"
4448am__quote=
4449_am_result=none
4450# First try GNU make style include.
4451echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004452# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004453case `$am_make -s -f confmf 2> /dev/null` in #(
4454*the\ am__doit\ target*)
4455 am__include=include
4456 am__quote=
4457 _am_result=GNU
4458 ;;
4459esac
4460# Now try BSD make style include.
4461if test "$am__include" = "#"; then
4462 echo '.include "confinc"' > confmf
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=.include
4466 am__quote="\""
4467 _am_result=BSD
4468 ;;
4469 esac
4470fi
4471
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4474$as_echo "$_am_result" >&6; }
4475rm -f confinc confmf
4476
4477# Check whether --enable-dependency-tracking was given.
4478if test "${enable_dependency_tracking+set}" = set; then :
4479 enableval=$enable_dependency_tracking;
4480fi
4481
4482if test "x$enable_dependency_tracking" != xno; then
4483 am_depcomp="$ac_aux_dir/depcomp"
4484 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004485 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004486fi
4487 if test "x$enable_dependency_tracking" != xno; then
4488 AMDEP_TRUE=
4489 AMDEP_FALSE='#'
4490else
4491 AMDEP_TRUE='#'
4492 AMDEP_FALSE=
4493fi
4494
4495
cristy3ed852e2009-09-05 21:47:34 +00004496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4503set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004506if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004507 $as_echo_n "(cached) " >&6
4508else
4509 if test -n "$CC"; then
4510 ac_cv_prog_CC="$CC" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521 break 2
4522 fi
4523done
cristy8b350f62009-11-15 23:12:43 +00004524 done
cristy3ed852e2009-09-05 21:47:34 +00004525IFS=$as_save_IFS
4526
4527fi
4528fi
4529CC=$ac_cv_prog_CC
4530if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$CC" >&6; }
4533else
cristy8b350f62009-11-15 23:12:43 +00004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004535$as_echo "no" >&6; }
4536fi
4537
4538
4539fi
4540if test -z "$ac_cv_prog_CC"; then
4541 ac_ct_CC=$CC
4542 # Extract the first word of "gcc", so it can be a program name with args.
4543set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004546if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004547 $as_echo_n "(cached) " >&6
4548else
4549 if test -n "$ac_ct_CC"; then
4550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004559 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004561 break 2
4562 fi
4563done
cristy8b350f62009-11-15 23:12:43 +00004564 done
cristy3ed852e2009-09-05 21:47:34 +00004565IFS=$as_save_IFS
4566
4567fi
4568fi
4569ac_ct_CC=$ac_cv_prog_ac_ct_CC
4570if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572$as_echo "$ac_ct_CC" >&6; }
4573else
cristy8b350f62009-11-15 23:12:43 +00004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "no" >&6; }
4576fi
4577
4578 if test "x$ac_ct_CC" = x; then
4579 CC=""
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582yes:)
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585ac_tool_warned=yes ;;
4586esac
4587 CC=$ac_ct_CC
4588 fi
4589else
4590 CC="$ac_cv_prog_CC"
4591fi
4592
4593if test -z "$CC"; then
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4596set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004599if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004600 $as_echo_n "(cached) " >&6
4601else
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC="$CC" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004612 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614 break 2
4615 fi
4616done
cristy8b350f62009-11-15 23:12:43 +00004617 done
cristy3ed852e2009-09-05 21:47:34 +00004618IFS=$as_save_IFS
4619
4620fi
4621fi
4622CC=$ac_cv_prog_CC
4623if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "$CC" >&6; }
4626else
cristy8b350f62009-11-15 23:12:43 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "no" >&6; }
4629fi
4630
4631
4632 fi
4633fi
4634if test -z "$CC"; then
4635 # Extract the first word of "cc", so it can be a program name with args.
4636set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004639if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645 ac_prog_rejected=no
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4654 ac_prog_rejected=yes
4655 continue
4656 fi
4657 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659 break 2
4660 fi
4661done
cristy8b350f62009-11-15 23:12:43 +00004662 done
cristy3ed852e2009-09-05 21:47:34 +00004663IFS=$as_save_IFS
4664
4665if test $ac_prog_rejected = yes; then
4666 # We found a bogon in the path, so make sure we never use it.
4667 set dummy $ac_cv_prog_CC
4668 shift
4669 if test $# != 0; then
4670 # We chose a different compiler from the bogus one.
4671 # However, it has the same basename, so the bogon will be chosen
4672 # first if we set CC to just the basename; use the full file name.
4673 shift
4674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4675 fi
4676fi
4677fi
4678fi
4679CC=$ac_cv_prog_CC
4680if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$CC" >&6; }
4683else
cristy8b350f62009-11-15 23:12:43 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "no" >&6; }
4686fi
4687
4688
4689fi
4690if test -z "$CC"; then
4691 if test -n "$ac_tool_prefix"; then
4692 for ac_prog in cl.exe
4693 do
4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004698if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713 break 2
4714 fi
4715done
cristy8b350f62009-11-15 23:12:43 +00004716 done
cristy3ed852e2009-09-05 21:47:34 +00004717IFS=$as_save_IFS
4718
4719fi
4720fi
4721CC=$ac_cv_prog_CC
4722if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004724$as_echo "$CC" >&6; }
4725else
cristy8b350f62009-11-15 23:12:43 +00004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "no" >&6; }
4728fi
4729
4730
4731 test -n "$CC" && break
4732 done
4733fi
4734if test -z "$CC"; then
4735 ac_ct_CC=$CC
4736 for ac_prog in cl.exe
4737do
4738 # Extract the first word of "$ac_prog", so it can be a program name with args.
4739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004742if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 $as_echo_n "(cached) " >&6
4744else
4745 if test -n "$ac_ct_CC"; then
4746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004755 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004757 break 2
4758 fi
4759done
cristy8b350f62009-11-15 23:12:43 +00004760 done
cristy3ed852e2009-09-05 21:47:34 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765ac_ct_CC=$ac_cv_prog_ac_ct_CC
4766if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_ct_CC" >&6; }
4769else
cristy8b350f62009-11-15 23:12:43 +00004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004771$as_echo "no" >&6; }
4772fi
4773
4774
4775 test -n "$ac_ct_CC" && break
4776done
4777
4778 if test "x$ac_ct_CC" = x; then
4779 CC=""
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782yes:)
cristy8b350f62009-11-15 23:12:43 +00004783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785ac_tool_warned=yes ;;
4786esac
4787 CC=$ac_ct_CC
4788 fi
4789fi
4790
4791fi
4792
4793
cristy8b350f62009-11-15 23:12:43 +00004794test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004796as_fn_error $? "no acceptable C compiler found in \$PATH
4797See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004798
4799# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801set X $ac_compile
4802ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004803for ac_option in --version -v -V -qversion; do
4804 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004805case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808esac
cristy8b350f62009-11-15 23:12:43 +00004809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810$as_echo "$ac_try_echo"; } >&5
4811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004812 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004813 if test -s conftest.err; then
4814 sed '10a\
4815... rest of stderr output deleted ...
4816 10q' conftest.err >conftest.er1
4817 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004818 fi
cristycd4c5312009-11-22 01:19:08 +00004819 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822done
cristy3ed852e2009-09-05 21:47:34 +00004823
cristy8b350f62009-11-15 23:12:43 +00004824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004825/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004826
cristy3ed852e2009-09-05 21:47:34 +00004827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004836ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004837# Try to create an executable without -o first, disregard a.out.
4838# It will help us diagnose broken compilers, and finding out an intuition
4839# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4841$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004842ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4843
4844# The possible output files:
4845ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4846
4847ac_rmfiles=
4848for ac_file in $ac_files
4849do
4850 case $ac_file in
4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4853 esac
4854done
4855rm -f $ac_rmfiles
4856
cristy8b350f62009-11-15 23:12:43 +00004857if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
cristy8b350f62009-11-15 23:12:43 +00004862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004864 (eval "$ac_link_default") 2>&5
4865 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4869# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4870# in a Makefile. We should not override ac_cv_exeext if it was cached,
4871# so that the user can short-circuit this test for compilers unknown to
4872# Autoconf.
4873for ac_file in $ac_files ''
4874do
4875 test -f "$ac_file" || continue
4876 case $ac_file in
4877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4878 ;;
4879 [ab].out )
4880 # We found the default executable, but exeext='' is most
4881 # certainly right.
4882 break;;
4883 *.* )
cristy8b350f62009-11-15 23:12:43 +00004884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004885 then :; else
4886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4887 fi
4888 # We set ac_cv_exeext here because the later test for it is not
4889 # safe: cross compilers may not add the suffix if given an `-o'
4890 # argument, so we may need to know it at that point already.
4891 # Even if this section looks crufty: it has the advantage of
4892 # actually working.
4893 break;;
4894 * )
4895 break;;
4896 esac
4897done
4898test "$ac_cv_exeext" = no && ac_cv_exeext=
4899
4900else
4901 ac_file=''
4902fi
cristy8b350f62009-11-15 23:12:43 +00004903if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004907sed 's/^/| /' conftest.$ac_ext >&5
4908
cristy8b350f62009-11-15 23:12:43 +00004909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004911as_fn_error 77 "C compiler cannot create executables
4912See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004913else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004916fi
cristycd4c5312009-11-22 01:19:08 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4918$as_echo_n "checking for C compiler default output file name... " >&6; }
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4920$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004921ac_exeext=$ac_cv_exeext
4922
cristycd4c5312009-11-22 01:19:08 +00004923rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004924ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004926$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004927if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004928case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
cristy8b350f62009-11-15 23:12:43 +00004932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004934 (eval "$ac_link") 2>&5
4935 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4939# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4940# work properly (i.e., refer to `conftest.exe'), while it won't with
4941# `rm'.
4942for ac_file in conftest.exe conftest conftest.*; do
4943 test -f "$ac_file" || continue
4944 case $ac_file in
4945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4947 break;;
4948 * ) break;;
4949 esac
4950done
4951else
cristy8b350f62009-11-15 23:12:43 +00004952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004954as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4955See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004956fi
cristycd4c5312009-11-22 01:19:08 +00004957rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo "$ac_cv_exeext" >&6; }
4960
4961rm -f conftest.$ac_ext
4962EXEEXT=$ac_cv_exeext
4963ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h. */
4966#include <stdio.h>
4967int
4968main ()
4969{
4970FILE *f = fopen ("conftest.out", "w");
4971 return ferror (f) || fclose (f) != 0;
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977ac_clean_files="$ac_clean_files conftest.out"
4978# Check that the compiler produces executables we can run. If not, either
4979# the compiler is broken, or we cross compile.
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4981$as_echo_n "checking whether we are cross compiling... " >&6; }
4982if test "$cross_compiling" != yes; then
4983 { { ac_try="$ac_link"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989$as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }
4994 if { ac_try='./conftest$ac_cv_exeext'
4995 { { case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000$as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_try") 2>&5
5002 ac_status=$?
5003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }; }; then
5005 cross_compiling=no
5006 else
5007 if test "$cross_compiling" = maybe; then
5008 cross_compiling=yes
5009 else
5010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005012as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005013If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005014See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005015 fi
5016 fi
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5019$as_echo "$cross_compiling" >&6; }
5020
5021rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5022ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005025if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 $as_echo_n "(cached) " >&6
5027else
cristy8b350f62009-11-15 23:12:43 +00005028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005029/* end confdefs.h. */
5030
5031int
5032main ()
5033{
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005040if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
cristy8b350f62009-11-15 23:12:43 +00005045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005047 (eval "$ac_compile") 2>&5
5048 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005051 for ac_file in conftest.o conftest.obj conftest.*; do
5052 test -f "$ac_file" || continue;
5053 case $ac_file in
5054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5056 break;;
5057 esac
5058done
5059else
5060 $as_echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
cristy8b350f62009-11-15 23:12:43 +00005063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005065as_fn_error $? "cannot compute suffix of object files: cannot compile
5066See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005067fi
cristy3ed852e2009-09-05 21:47:34 +00005068rm -f conftest.$ac_cv_objext conftest.$ac_ext
5069fi
cristy8b350f62009-11-15 23:12:43 +00005070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005071$as_echo "$ac_cv_objext" >&6; }
5072OBJEXT=$ac_cv_objext
5073ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005076if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005077 $as_echo_n "(cached) " >&6
5078else
cristy8b350f62009-11-15 23:12:43 +00005079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005080/* end confdefs.h. */
5081
5082int
5083main ()
5084{
5085#ifndef __GNUC__
5086 choke me
5087#endif
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005094 ac_compiler_gnu=yes
5095else
cristy8b350f62009-11-15 23:12:43 +00005096 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005097fi
cristy3ed852e2009-09-05 21:47:34 +00005098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099ac_cv_c_compiler_gnu=$ac_compiler_gnu
5100
5101fi
cristy8b350f62009-11-15 23:12:43 +00005102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005103$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5104if test $ac_compiler_gnu = yes; then
5105 GCC=yes
5106else
5107 GCC=
5108fi
5109ac_test_CFLAGS=${CFLAGS+set}
5110ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005112$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005113if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005114 $as_echo_n "(cached) " >&6
5115else
5116 ac_save_c_werror_flag=$ac_c_werror_flag
5117 ac_c_werror_flag=yes
5118 ac_cv_prog_cc_g=no
5119 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005121/* end confdefs.h. */
5122
5123int
5124main ()
5125{
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005132 ac_cv_prog_cc_g=yes
5133else
cristy8b350f62009-11-15 23:12:43 +00005134 CFLAGS=""
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005136/* end confdefs.h. */
5137
5138int
5139main ()
5140{
5141
5142 ;
5143 return 0;
5144}
5145_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005146if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005147
cristy8b350f62009-11-15 23:12:43 +00005148else
5149 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005150 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005152/* end confdefs.h. */
5153
5154int
5155main ()
5156{
5157
5158 ;
5159 return 0;
5160}
5161_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005163 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005164fi
cristy3ed852e2009-09-05 21:47:34 +00005165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
cristy3ed852e2009-09-05 21:47:34 +00005167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
cristy3ed852e2009-09-05 21:47:34 +00005169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_c_werror_flag=$ac_save_c_werror_flag
5171fi
cristy8b350f62009-11-15 23:12:43 +00005172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005173$as_echo "$ac_cv_prog_cc_g" >&6; }
5174if test "$ac_test_CFLAGS" = set; then
5175 CFLAGS=$ac_save_CFLAGS
5176elif test $ac_cv_prog_cc_g = yes; then
5177 if test "$GCC" = yes; then
5178 CFLAGS="-g -O2"
5179 else
5180 CFLAGS="-g"
5181 fi
5182else
5183 if test "$GCC" = yes; then
5184 CFLAGS="-O2"
5185 else
5186 CFLAGS=
5187 fi
5188fi
cristy8b350f62009-11-15 23:12:43 +00005189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005190$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005191if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005192 $as_echo_n "(cached) " >&6
5193else
5194 ac_cv_prog_cc_c89=no
5195ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005197/* end confdefs.h. */
5198#include <stdarg.h>
5199#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005200struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5202struct buf { int x; };
5203FILE * (*rcsopen) (struct buf *, struct stat *, int);
5204static char *e (p, i)
5205 char **p;
5206 int i;
5207{
5208 return p[i];
5209}
5210static char *f (char * (*g) (char **, int), char **p, ...)
5211{
5212 char *s;
5213 va_list v;
5214 va_start (v,p);
5215 s = g (p, va_arg (v,int));
5216 va_end (v);
5217 return s;
5218}
5219
5220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5221 function prototypes and stuff, but not '\xHH' hex character constants.
5222 These don't provoke an error unfortunately, instead are silently treated
5223 as 'x'. The following induces an error, until -std is added to get
5224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5225 array size at least. It's necessary to write '\x00'==0 to get something
5226 that's true only with -std. */
5227int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5228
5229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5230 inside strings and character constants. */
5231#define FOO(x) 'x'
5232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5233
5234int test (int i, double x);
5235struct s1 {int (*f) (int a);};
5236struct s2 {int (*f) (double a);};
5237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5238int argc;
5239char **argv;
5240int
5241main ()
5242{
5243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5250do
5251 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005252 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005253 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005254fi
cristy3ed852e2009-09-05 21:47:34 +00005255rm -f core conftest.err conftest.$ac_objext
5256 test "x$ac_cv_prog_cc_c89" != "xno" && break
5257done
5258rm -f conftest.$ac_ext
5259CC=$ac_save_CC
5260
5261fi
5262# AC_CACHE_VAL
5263case "x$ac_cv_prog_cc_c89" in
5264 x)
cristy8b350f62009-11-15 23:12:43 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005266$as_echo "none needed" >&6; } ;;
5267 xno)
cristy8b350f62009-11-15 23:12:43 +00005268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005269$as_echo "unsupported" >&6; } ;;
5270 *)
5271 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005273$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5274esac
cristy8b350f62009-11-15 23:12:43 +00005275if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005276
cristy8b350f62009-11-15 23:12:43 +00005277fi
cristy3ed852e2009-09-05 21:47:34 +00005278
5279ac_ext=c
5280ac_cpp='$CPP $CPPFLAGS'
5281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005284
cristy73bd4a52010-10-05 11:24:23 +00005285depcc="$CC" am_compiler_list=
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5288$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005289if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005290 $as_echo_n "(cached) " >&6
5291else
5292 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5293 # We make a subdir and do the tests there. Otherwise we can end up
5294 # making bogus files that we don't know about and never remove. For
5295 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005296 # making a dummy file named 'D' -- because '-MD' means "put the output
5297 # in D".
cristy7247bba2012-02-05 16:37:27 +00005298 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005299 mkdir conftest.dir
5300 # Copy depcomp to subdir because otherwise we won't find it if we're
5301 # using a relative directory.
5302 cp "$am_depcomp" conftest.dir
5303 cd conftest.dir
5304 # We will build objects and dependencies in a subdirectory because
5305 # it helps to detect inapplicable dependency modes. For instance
5306 # both Tru64's cc and ICC support -MD to output dependencies as a
5307 # side effect of compilation, but ICC will put the dependencies in
5308 # the current directory while Tru64 will put them in the object
5309 # directory.
5310 mkdir sub
5311
5312 am_cv_CC_dependencies_compiler_type=none
5313 if test "$am_compiler_list" = ""; then
5314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5315 fi
5316 am__universal=false
5317 case " $depcc " in #(
5318 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5319 esac
5320
5321 for depmode in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5325 #
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5329 : > sub/conftest.c
5330 for i in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005332 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5333 # Solaris 10 /bin/sh.
5334 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005335 done
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5337
cristyc0890a62012-07-19 00:18:20 +00005338 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005339 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005340 # handle '-M -o', and we need to detect this. Also, some Intel
5341 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005342 am__obj=sub/conftest.${OBJEXT-o}
5343 am__minus_obj="-o $am__obj"
5344 case $depmode in
5345 gcc)
5346 # This depmode causes a compiler race in universal mode.
5347 test "$am__universal" = false || continue
5348 ;;
5349 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005350 # After this tag, mechanisms are not by side-effect, so they'll
5351 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005352 if test "x$enable_dependency_tracking" = xyes; then
5353 continue
5354 else
5355 break
5356 fi
5357 ;;
cristy7247bba2012-02-05 16:37:27 +00005358 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005359 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005360 # not run yet. These depmodes are late enough in the game, and
5361 # so weak that their functioning should not be impacted.
5362 am__obj=conftest.${OBJEXT-o}
5363 am__minus_obj=
5364 ;;
5365 none) break ;;
5366 esac
5367 if depmode=$depmode \
5368 source=sub/conftest.c object=$am__obj \
5369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5371 >/dev/null 2>conftest.err &&
5372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5376 # icc doesn't choke on unknown options, it will just issue warnings
5377 # or remarks (even with -Werror). So we grep stderr for any message
5378 # that says an option was ignored or not supported.
5379 # When given -MP, icc 7.0 and 7.1 complain thusly:
5380 # icc: Command line warning: ignoring option '-M'; no argument required
5381 # The diagnosis changed in icc 8.0:
5382 # icc: Command line remark: option '-MP' not supported
5383 if (grep 'ignoring option' conftest.err ||
5384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5385 am_cv_CC_dependencies_compiler_type=$depmode
5386 break
5387 fi
5388 fi
5389 done
5390
5391 cd ..
5392 rm -rf conftest.dir
5393else
5394 am_cv_CC_dependencies_compiler_type=none
5395fi
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5399$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5400CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5401
5402 if
5403 test "x$enable_dependency_tracking" != xno \
5404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5405 am__fastdepCC_TRUE=
5406 am__fastdepCC_FALSE='#'
5407else
5408 am__fastdepCC_TRUE='#'
5409 am__fastdepCC_FALSE=
5410fi
5411
5412
cristy3ed852e2009-09-05 21:47:34 +00005413
cristya0b81c32010-01-22 02:54:33 +00005414ac_ext=c
5415ac_cpp='$CPP $CPPFLAGS'
5416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5420$as_echo_n "checking how to run the C preprocessor... " >&6; }
5421# On Suns, sometimes $CPP names a directory.
5422if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5424fi
5425if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005426 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005427 $as_echo_n "(cached) " >&6
5428else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5431 do
5432 ac_preproc_ok=false
5433for ac_c_preproc_warn_flag in '' yes
5434do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h. */
5443#ifdef __STDC__
5444# include <limits.h>
5445#else
5446# include <assert.h>
5447#endif
5448 Syntax error
5449_ACEOF
5450if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452else
5453 # Broken: fails on valid input.
5454continue
5455fi
cristyda16f162011-02-19 23:52:17 +00005456rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <ac_nonexistent.h>
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5466continue
5467else
5468 # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
cristyda16f162011-02-19 23:52:17 +00005472rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005476rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005477if $ac_preproc_ok; then :
5478 break
5479fi
5480
5481 done
5482 ac_cv_prog_CPP=$CPP
5483
5484fi
5485 CPP=$ac_cv_prog_CPP
5486else
5487 ac_cv_prog_CPP=$CPP
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5490$as_echo "$CPP" >&6; }
5491ac_preproc_ok=false
5492for ac_c_preproc_warn_flag in '' yes
5493do
5494 # Use a header file that comes with gcc, so configuring glibc
5495 # with a fresh cross-compiler works.
5496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497 # <limits.h> exists even on freestanding compilers.
5498 # On the NeXT, cc -E runs the code through the compiler's parser,
5499 # not just through cpp. "Syntax error" is here to catch this case.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h. */
5502#ifdef __STDC__
5503# include <limits.h>
5504#else
5505# include <assert.h>
5506#endif
5507 Syntax error
5508_ACEOF
5509if ac_fn_c_try_cpp "$LINENO"; then :
5510
5511else
5512 # Broken: fails on valid input.
5513continue
5514fi
cristyda16f162011-02-19 23:52:17 +00005515rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005516
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <ac_nonexistent.h>
5522_ACEOF
5523if ac_fn_c_try_cpp "$LINENO"; then :
5524 # Broken: success on invalid input.
5525continue
5526else
5527 # Passes both tests.
5528ac_preproc_ok=:
5529break
5530fi
cristyda16f162011-02-19 23:52:17 +00005531rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005532
5533done
5534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005535rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005536if $ac_preproc_ok; then :
5537
5538else
5539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005541as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5542See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005543fi
5544
5545ac_ext=c
5546ac_cpp='$CPP $CPPFLAGS'
5547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5553$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005554if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005555 $as_echo_n "(cached) " >&6
5556else
5557 if test -z "$GREP"; then
5558 ac_path_GREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in grep ggrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005568 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005569# Check for GNU ac_path_GREP and select it if it is found.
5570 # Check for GNU $ac_path_GREP
5571case `"$ac_path_GREP" --version 2>&1` in
5572*GNU*)
5573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5574*)
5575 ac_count=0
5576 $as_echo_n 0123456789 >"conftest.in"
5577 while :
5578 do
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo 'GREP' >> "conftest.nl"
5583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_GREP="$ac_path_GREP"
5589 ac_path_GREP_max=$ac_count
5590 fi
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5593 done
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595esac
5596
5597 $ac_path_GREP_found && break 3
5598 done
5599 done
5600 done
5601IFS=$as_save_IFS
5602 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005603 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005604 fi
5605else
5606 ac_cv_path_GREP=$GREP
5607fi
5608
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5611$as_echo "$ac_cv_path_GREP" >&6; }
5612 GREP="$ac_cv_path_GREP"
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5616$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005617if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005618 $as_echo_n "(cached) " >&6
5619else
5620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5621 then ac_cv_path_EGREP="$GREP -E"
5622 else
5623 if test -z "$EGREP"; then
5624 ac_path_EGREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_prog in egrep; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005634 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005635# Check for GNU ac_path_EGREP and select it if it is found.
5636 # Check for GNU $ac_path_EGREP
5637case `"$ac_path_EGREP" --version 2>&1` in
5638*GNU*)
5639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5640*)
5641 ac_count=0
5642 $as_echo_n 0123456789 >"conftest.in"
5643 while :
5644 do
5645 cat "conftest.in" "conftest.in" >"conftest.tmp"
5646 mv "conftest.tmp" "conftest.in"
5647 cp "conftest.in" "conftest.nl"
5648 $as_echo 'EGREP' >> "conftest.nl"
5649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651 as_fn_arith $ac_count + 1 && ac_count=$as_val
5652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5653 # Best one so far, save it but keep looking for a better one
5654 ac_cv_path_EGREP="$ac_path_EGREP"
5655 ac_path_EGREP_max=$ac_count
5656 fi
5657 # 10*(2^10) chars as input seems more than enough
5658 test $ac_count -gt 10 && break
5659 done
5660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5661esac
5662
5663 $ac_path_EGREP_found && break 3
5664 done
5665 done
5666 done
5667IFS=$as_save_IFS
5668 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005669 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005670 fi
5671else
5672 ac_cv_path_EGREP=$EGREP
5673fi
5674
5675 fi
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5678$as_echo "$ac_cv_path_EGREP" >&6; }
5679 EGREP="$ac_cv_path_EGREP"
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5683$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005684if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005685 $as_echo_n "(cached) " >&6
5686else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689#include <stdlib.h>
5690#include <stdarg.h>
5691#include <string.h>
5692#include <float.h>
5693
5694int
5695main ()
5696{
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_cv_header_stdc=yes
5704else
5705 ac_cv_header_stdc=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708
5709if test $ac_cv_header_stdc = yes; then
5710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h. */
5713#include <string.h>
5714
5715_ACEOF
5716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "memchr" >/dev/null 2>&1; then :
5718
5719else
5720 ac_cv_header_stdc=no
5721fi
5722rm -f conftest*
5723
5724fi
5725
5726if test $ac_cv_header_stdc = yes; then
5727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h. */
5730#include <stdlib.h>
5731
5732_ACEOF
5733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5734 $EGREP "free" >/dev/null 2>&1; then :
5735
5736else
5737 ac_cv_header_stdc=no
5738fi
5739rm -f conftest*
5740
5741fi
5742
5743if test $ac_cv_header_stdc = yes; then
5744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5745 if test "$cross_compiling" = yes; then :
5746 :
5747else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h. */
5750#include <ctype.h>
5751#include <stdlib.h>
5752#if ((' ' & 0x0FF) == 0x020)
5753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5755#else
5756# define ISLOWER(c) \
5757 (('a' <= (c) && (c) <= 'i') \
5758 || ('j' <= (c) && (c) <= 'r') \
5759 || ('s' <= (c) && (c) <= 'z'))
5760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5761#endif
5762
5763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5764int
5765main ()
5766{
5767 int i;
5768 for (i = 0; i < 256; i++)
5769 if (XOR (islower (i), ISLOWER (i))
5770 || toupper (i) != TOUPPER (i))
5771 return 2;
5772 return 0;
5773}
5774_ACEOF
5775if ac_fn_c_try_run "$LINENO"; then :
5776
5777else
5778 ac_cv_header_stdc=no
5779fi
5780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5781 conftest.$ac_objext conftest.beam conftest.$ac_ext
5782fi
5783
5784fi
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5787$as_echo "$ac_cv_header_stdc" >&6; }
5788if test $ac_cv_header_stdc = yes; then
5789
5790$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5791
5792fi
5793
5794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796 inttypes.h stdint.h unistd.h
5797do :
5798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5800"
cristy98dddb52010-11-04 00:30:15 +00005801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005802 cat >>confdefs.h <<_ACEOF
5803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804_ACEOF
5805
5806fi
5807
5808done
5809
5810
5811
5812 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005813if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005814 MINIX=yes
5815else
5816 MINIX=
5817fi
5818
5819
5820 if test "$MINIX" = yes; then
5821
5822$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5823
5824
5825$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5826
5827
5828$as_echo "#define _MINIX 1" >>confdefs.h
5829
5830 fi
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5834$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005835if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005836 $as_echo_n "(cached) " >&6
5837else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840
cristy14fefe52012-05-21 00:59:18 +00005841# define __EXTENSIONS__ 1
5842 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005843int
5844main ()
5845{
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_cv_safe_to_define___extensions__=yes
5853else
5854 ac_cv_safe_to_define___extensions__=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5859$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5860 test $ac_cv_safe_to_define___extensions__ = yes &&
5861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5862
5863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5864
5865 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5866
5867 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5868
5869 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5870
5871
5872
5873# Check for programs
5874ac_ext=c
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5881set dummy ${ac_tool_prefix}gcc; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005884if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005885 $as_echo_n "(cached) " >&6
5886else
5887 if test -n "$CC"; then
5888 ac_cv_prog_CC="$CC" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902 done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907CC=$ac_cv_prog_CC
5908if test -n "$CC"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5910$as_echo "$CC" >&6; }
5911else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916
5917fi
5918if test -z "$ac_cv_prog_CC"; then
5919 ac_ct_CC=$CC
5920 # Extract the first word of "gcc", so it can be a program name with args.
5921set dummy gcc; ac_word=$2
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005924if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005925 $as_echo_n "(cached) " >&6
5926else
5927 if test -n "$ac_ct_CC"; then
5928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005937 ac_cv_prog_ac_ct_CC="gcc"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942 done
5943IFS=$as_save_IFS
5944
5945fi
5946fi
5947ac_ct_CC=$ac_cv_prog_ac_ct_CC
5948if test -n "$ac_ct_CC"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5950$as_echo "$ac_ct_CC" >&6; }
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955
5956 if test "x$ac_ct_CC" = x; then
5957 CC=""
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960yes:)
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965 CC=$ac_ct_CC
5966 fi
5967else
5968 CC="$ac_cv_prog_CC"
5969fi
5970
5971if test -z "$CC"; then
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5974set dummy ${ac_tool_prefix}cc; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005977if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005978 $as_echo_n "(cached) " >&6
5979else
5980 if test -n "$CC"; then
5981 ac_cv_prog_CC="$CC" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005990 ac_cv_prog_CC="${ac_tool_prefix}cc"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994done
5995 done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000CC=$ac_cv_prog_CC
6001if test -n "$CC"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6003$as_echo "$CC" >&6; }
6004else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010 fi
6011fi
6012if test -z "$CC"; then
6013 # Extract the first word of "cc", so it can be a program name with args.
6014set dummy cc; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006017if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$CC"; then
6021 ac_cv_prog_CC="$CC" # Let the user override the test.
6022else
6023 ac_prog_rejected=no
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6032 ac_prog_rejected=yes
6033 continue
6034 fi
6035 ac_cv_prog_CC="cc"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043if test $ac_prog_rejected = yes; then
6044 # We found a bogon in the path, so make sure we never use it.
6045 set dummy $ac_cv_prog_CC
6046 shift
6047 if test $# != 0; then
6048 # We chose a different compiler from the bogus one.
6049 # However, it has the same basename, so the bogon will be chosen
6050 # first if we set CC to just the basename; use the full file name.
6051 shift
6052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6053 fi
6054fi
6055fi
6056fi
6057CC=$ac_cv_prog_CC
6058if test -n "$CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6060$as_echo "$CC" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066
6067fi
6068if test -z "$CC"; then
6069 if test -n "$ac_tool_prefix"; then
6070 for ac_prog in cl.exe
6071 do
6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006076if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 if test -n "$CC"; then
6080 ac_cv_prog_CC="$CC" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094 done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099CC=$ac_cv_prog_CC
6100if test -n "$CC"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6102$as_echo "$CC" >&6; }
6103else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109 test -n "$CC" && break
6110 done
6111fi
6112if test -z "$CC"; then
6113 ac_ct_CC=$CC
6114 for ac_prog in cl.exe
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006120if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$ac_ct_CC"; then
6124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006133 ac_cv_prog_ac_ct_CC="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143ac_ct_CC=$ac_cv_prog_ac_ct_CC
6144if test -n "$ac_ct_CC"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6146$as_echo "$ac_ct_CC" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153 test -n "$ac_ct_CC" && break
6154done
6155
6156 if test "x$ac_ct_CC" = x; then
6157 CC=""
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 CC=$ac_ct_CC
6166 fi
6167fi
6168
6169fi
6170
6171
6172test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006174as_fn_error $? "no acceptable C compiler found in \$PATH
6175See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006176
6177# Provide some information about the compiler.
6178$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6179set X $ac_compile
6180ac_compiler=$2
6181for ac_option in --version -v -V -qversion; do
6182 { { ac_try="$ac_compiler $ac_option >&5"
6183case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6188$as_echo "$ac_try_echo"; } >&5
6189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6190 ac_status=$?
6191 if test -s conftest.err; then
6192 sed '10a\
6193... rest of stderr output deleted ...
6194 10q' conftest.err >conftest.er1
6195 cat conftest.er1 >&5
6196 fi
6197 rm -f conftest.er1 conftest.err
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }
6200done
6201
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6203$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006204if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006205 $as_echo_n "(cached) " >&6
6206else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h. */
6209
6210int
6211main ()
6212{
6213#ifndef __GNUC__
6214 choke me
6215#endif
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_compiler_gnu=yes
6223else
6224 ac_compiler_gnu=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227ac_cv_c_compiler_gnu=$ac_compiler_gnu
6228
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6231$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6232if test $ac_compiler_gnu = yes; then
6233 GCC=yes
6234else
6235 GCC=
6236fi
6237ac_test_CFLAGS=${CFLAGS+set}
6238ac_save_CFLAGS=$CFLAGS
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6240$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006241if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006242 $as_echo_n "(cached) " >&6
6243else
6244 ac_save_c_werror_flag=$ac_c_werror_flag
6245 ac_c_werror_flag=yes
6246 ac_cv_prog_cc_g=no
6247 CFLAGS="-g"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250
6251int
6252main ()
6253{
6254
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_prog_cc_g=yes
6261else
6262 CFLAGS=""
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h. */
6265
6266int
6267main ()
6268{
6269
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_compile "$LINENO"; then :
6275
6276else
6277 ac_c_werror_flag=$ac_save_c_werror_flag
6278 CFLAGS="-g"
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h. */
6281
6282int
6283main ()
6284{
6285
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_prog_cc_g=yes
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 ac_c_werror_flag=$ac_save_c_werror_flag
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6301$as_echo "$ac_cv_prog_cc_g" >&6; }
6302if test "$ac_test_CFLAGS" = set; then
6303 CFLAGS=$ac_save_CFLAGS
6304elif test $ac_cv_prog_cc_g = yes; then
6305 if test "$GCC" = yes; then
6306 CFLAGS="-g -O2"
6307 else
6308 CFLAGS="-g"
6309 fi
6310else
6311 if test "$GCC" = yes; then
6312 CFLAGS="-O2"
6313 else
6314 CFLAGS=
6315 fi
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6318$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006319if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006320 $as_echo_n "(cached) " >&6
6321else
6322 ac_cv_prog_cc_c89=no
6323ac_save_CC=$CC
6324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326#include <stdarg.h>
6327#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006328struct stat;
cristya0b81c32010-01-22 02:54:33 +00006329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6330struct buf { int x; };
6331FILE * (*rcsopen) (struct buf *, struct stat *, int);
6332static char *e (p, i)
6333 char **p;
6334 int i;
6335{
6336 return p[i];
6337}
6338static char *f (char * (*g) (char **, int), char **p, ...)
6339{
6340 char *s;
6341 va_list v;
6342 va_start (v,p);
6343 s = g (p, va_arg (v,int));
6344 va_end (v);
6345 return s;
6346}
6347
6348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6349 function prototypes and stuff, but not '\xHH' hex character constants.
6350 These don't provoke an error unfortunately, instead are silently treated
6351 as 'x'. The following induces an error, until -std is added to get
6352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6353 array size at least. It's necessary to write '\x00'==0 to get something
6354 that's true only with -std. */
6355int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6356
6357/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6358 inside strings and character constants. */
6359#define FOO(x) 'x'
6360int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6361
6362int test (int i, double x);
6363struct s1 {int (*f) (int a);};
6364struct s2 {int (*f) (double a);};
6365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6366int argc;
6367char **argv;
6368int
6369main ()
6370{
6371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6378do
6379 CC="$ac_save_CC $ac_arg"
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 ac_cv_prog_cc_c89=$ac_arg
6382fi
6383rm -f core conftest.err conftest.$ac_objext
6384 test "x$ac_cv_prog_cc_c89" != "xno" && break
6385done
6386rm -f conftest.$ac_ext
6387CC=$ac_save_CC
6388
6389fi
6390# AC_CACHE_VAL
6391case "x$ac_cv_prog_cc_c89" in
6392 x)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6394$as_echo "none needed" >&6; } ;;
6395 xno)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6397$as_echo "unsupported" >&6; } ;;
6398 *)
6399 CC="$CC $ac_cv_prog_cc_c89"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6401$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6402esac
6403if test "x$ac_cv_prog_cc_c89" != xno; then :
6404
6405fi
6406
6407ac_ext=c
6408ac_cpp='$CPP $CPPFLAGS'
6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
cristy73bd4a52010-10-05 11:24:23 +00006413depcc="$CC" am_compiler_list=
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6416$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006417if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006418 $as_echo_n "(cached) " >&6
6419else
6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6421 # We make a subdir and do the tests there. Otherwise we can end up
6422 # making bogus files that we don't know about and never remove. For
6423 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006424 # making a dummy file named 'D' -- because '-MD' means "put the output
6425 # in D".
cristy7247bba2012-02-05 16:37:27 +00006426 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006427 mkdir conftest.dir
6428 # Copy depcomp to subdir because otherwise we won't find it if we're
6429 # using a relative directory.
6430 cp "$am_depcomp" conftest.dir
6431 cd conftest.dir
6432 # We will build objects and dependencies in a subdirectory because
6433 # it helps to detect inapplicable dependency modes. For instance
6434 # both Tru64's cc and ICC support -MD to output dependencies as a
6435 # side effect of compilation, but ICC will put the dependencies in
6436 # the current directory while Tru64 will put them in the object
6437 # directory.
6438 mkdir sub
6439
6440 am_cv_CC_dependencies_compiler_type=none
6441 if test "$am_compiler_list" = ""; then
6442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6443 fi
6444 am__universal=false
6445 case " $depcc " in #(
6446 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6447 esac
6448
6449 for depmode in $am_compiler_list; do
6450 # Setup a source with many dependencies, because some compilers
6451 # like to wrap large dependency lists on column 80 (with \), and
6452 # we should not choose a depcomp mode which is confused by this.
6453 #
6454 # We need to recreate these files for each test, as the compiler may
6455 # overwrite some of them when testing with obscure command lines.
6456 # This happens at least with the AIX C compiler.
6457 : > sub/conftest.c
6458 for i in 1 2 3 4 5 6; do
6459 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006460 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6461 # Solaris 10 /bin/sh.
6462 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006463 done
6464 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6465
cristyc0890a62012-07-19 00:18:20 +00006466 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006467 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006468 # handle '-M -o', and we need to detect this. Also, some Intel
6469 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006470 am__obj=sub/conftest.${OBJEXT-o}
6471 am__minus_obj="-o $am__obj"
6472 case $depmode in
6473 gcc)
6474 # This depmode causes a compiler race in universal mode.
6475 test "$am__universal" = false || continue
6476 ;;
6477 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006478 # After this tag, mechanisms are not by side-effect, so they'll
6479 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006480 if test "x$enable_dependency_tracking" = xyes; then
6481 continue
6482 else
6483 break
6484 fi
6485 ;;
cristy7247bba2012-02-05 16:37:27 +00006486 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006487 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006488 # not run yet. These depmodes are late enough in the game, and
6489 # so weak that their functioning should not be impacted.
6490 am__obj=conftest.${OBJEXT-o}
6491 am__minus_obj=
6492 ;;
6493 none) break ;;
6494 esac
6495 if depmode=$depmode \
6496 source=sub/conftest.c object=$am__obj \
6497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6498 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6499 >/dev/null 2>conftest.err &&
6500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6502 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6504 # icc doesn't choke on unknown options, it will just issue warnings
6505 # or remarks (even with -Werror). So we grep stderr for any message
6506 # that says an option was ignored or not supported.
6507 # When given -MP, icc 7.0 and 7.1 complain thusly:
6508 # icc: Command line warning: ignoring option '-M'; no argument required
6509 # The diagnosis changed in icc 8.0:
6510 # icc: Command line remark: option '-MP' not supported
6511 if (grep 'ignoring option' conftest.err ||
6512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6513 am_cv_CC_dependencies_compiler_type=$depmode
6514 break
6515 fi
6516 fi
6517 done
6518
6519 cd ..
6520 rm -rf conftest.dir
6521else
6522 am_cv_CC_dependencies_compiler_type=none
6523fi
6524
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6527$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6528CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6529
6530 if
6531 test "x$enable_dependency_tracking" != xno \
6532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6533 am__fastdepCC_TRUE=
6534 am__fastdepCC_FALSE='#'
6535else
6536 am__fastdepCC_TRUE='#'
6537 am__fastdepCC_FALSE=
6538fi
6539
6540
cristy95646052009-11-28 23:05:30 +00006541ac_ext=cpp
6542ac_cpp='$CXXCPP $CPPFLAGS'
6543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6546if test -z "$CXX"; then
6547 if test -n "$CCC"; then
6548 CXX=$CCC
6549 else
6550 if test -n "$ac_tool_prefix"; then
6551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6552 do
6553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006557if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006558 $as_echo_n "(cached) " >&6
6559else
6560 if test -n "$CXX"; then
6561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575 done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580CXX=$ac_cv_prog_CXX
6581if test -n "$CXX"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6583$as_echo "$CXX" >&6; }
6584else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589
6590 test -n "$CXX" && break
6591 done
6592fi
6593if test -z "$CXX"; then
6594 ac_ct_CXX=$CXX
6595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6596do
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598set dummy $ac_prog; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006601if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006602 $as_echo_n "(cached) " >&6
6603else
6604 if test -n "$ac_ct_CXX"; then
6605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006614 ac_cv_prog_ac_ct_CXX="$ac_prog"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619 done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6625if test -n "$ac_ct_CXX"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6627$as_echo "$ac_ct_CXX" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634 test -n "$ac_ct_CXX" && break
6635done
6636
6637 if test "x$ac_ct_CXX" = x; then
6638 CXX="g++"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 CXX=$ac_ct_CXX
6647 fi
6648fi
6649
6650 fi
6651fi
6652# Provide some information about the compiler.
6653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6654set X $ac_compile
6655ac_compiler=$2
6656for ac_option in --version -v -V -qversion; do
6657 { { ac_try="$ac_compiler $ac_option >&5"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6663$as_echo "$ac_try_echo"; } >&5
6664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6665 ac_status=$?
6666 if test -s conftest.err; then
6667 sed '10a\
6668... rest of stderr output deleted ...
6669 10q' conftest.err >conftest.er1
6670 cat conftest.er1 >&5
6671 fi
6672 rm -f conftest.er1 conftest.err
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }
6675done
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6678$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006679if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006680 $as_echo_n "(cached) " >&6
6681else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684
6685int
6686main ()
6687{
6688#ifndef __GNUC__
6689 choke me
6690#endif
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697 ac_compiler_gnu=yes
6698else
6699 ac_compiler_gnu=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6703
6704fi
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6706$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6707if test $ac_compiler_gnu = yes; then
6708 GXX=yes
6709else
6710 GXX=
6711fi
6712ac_test_CXXFLAGS=${CXXFLAGS+set}
6713ac_save_CXXFLAGS=$CXXFLAGS
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6715$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006716if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006717 $as_echo_n "(cached) " >&6
6718else
6719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6720 ac_cxx_werror_flag=yes
6721 ac_cv_prog_cxx_g=no
6722 CXXFLAGS="-g"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h. */
6725
6726int
6727main ()
6728{
6729
6730 ;
6731 return 0;
6732}
6733_ACEOF
6734if ac_fn_cxx_try_compile "$LINENO"; then :
6735 ac_cv_prog_cxx_g=yes
6736else
6737 CXXFLAGS=""
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h. */
6740
6741int
6742main ()
6743{
6744
6745 ;
6746 return 0;
6747}
6748_ACEOF
6749if ac_fn_cxx_try_compile "$LINENO"; then :
6750
6751else
6752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6753 CXXFLAGS="-g"
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h. */
6756
6757int
6758main ()
6759{
6760
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_cxx_try_compile "$LINENO"; then :
6766 ac_cv_prog_cxx_g=yes
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6776$as_echo "$ac_cv_prog_cxx_g" >&6; }
6777if test "$ac_test_CXXFLAGS" = set; then
6778 CXXFLAGS=$ac_save_CXXFLAGS
6779elif test $ac_cv_prog_cxx_g = yes; then
6780 if test "$GXX" = yes; then
6781 CXXFLAGS="-g -O2"
6782 else
6783 CXXFLAGS="-g"
6784 fi
6785else
6786 if test "$GXX" = yes; then
6787 CXXFLAGS="-O2"
6788 else
6789 CXXFLAGS=
6790 fi
6791fi
6792ac_ext=c
6793ac_cpp='$CPP $CPPFLAGS'
6794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
cristy73bd4a52010-10-05 11:24:23 +00006798depcc="$CXX" am_compiler_list=
6799
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6801$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006802if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006803 $as_echo_n "(cached) " >&6
6804else
6805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6806 # We make a subdir and do the tests there. Otherwise we can end up
6807 # making bogus files that we don't know about and never remove. For
6808 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006809 # making a dummy file named 'D' -- because '-MD' means "put the output
6810 # in D".
cristy7247bba2012-02-05 16:37:27 +00006811 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006812 mkdir conftest.dir
6813 # Copy depcomp to subdir because otherwise we won't find it if we're
6814 # using a relative directory.
6815 cp "$am_depcomp" conftest.dir
6816 cd conftest.dir
6817 # We will build objects and dependencies in a subdirectory because
6818 # it helps to detect inapplicable dependency modes. For instance
6819 # both Tru64's cc and ICC support -MD to output dependencies as a
6820 # side effect of compilation, but ICC will put the dependencies in
6821 # the current directory while Tru64 will put them in the object
6822 # directory.
6823 mkdir sub
6824
6825 am_cv_CXX_dependencies_compiler_type=none
6826 if test "$am_compiler_list" = ""; then
6827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6828 fi
6829 am__universal=false
6830 case " $depcc " in #(
6831 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6832 esac
6833
6834 for depmode in $am_compiler_list; do
6835 # Setup a source with many dependencies, because some compilers
6836 # like to wrap large dependency lists on column 80 (with \), and
6837 # we should not choose a depcomp mode which is confused by this.
6838 #
6839 # We need to recreate these files for each test, as the compiler may
6840 # overwrite some of them when testing with obscure command lines.
6841 # This happens at least with the AIX C compiler.
6842 : > sub/conftest.c
6843 for i in 1 2 3 4 5 6; do
6844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006845 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6846 # Solaris 10 /bin/sh.
6847 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006848 done
6849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6850
cristyc0890a62012-07-19 00:18:20 +00006851 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006852 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006853 # handle '-M -o', and we need to detect this. Also, some Intel
6854 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006855 am__obj=sub/conftest.${OBJEXT-o}
6856 am__minus_obj="-o $am__obj"
6857 case $depmode in
6858 gcc)
6859 # This depmode causes a compiler race in universal mode.
6860 test "$am__universal" = false || continue
6861 ;;
6862 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006863 # After this tag, mechanisms are not by side-effect, so they'll
6864 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006865 if test "x$enable_dependency_tracking" = xyes; then
6866 continue
6867 else
6868 break
6869 fi
6870 ;;
cristy7247bba2012-02-05 16:37:27 +00006871 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006872 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006873 # not run yet. These depmodes are late enough in the game, and
6874 # so weak that their functioning should not be impacted.
6875 am__obj=conftest.${OBJEXT-o}
6876 am__minus_obj=
6877 ;;
6878 none) break ;;
6879 esac
6880 if depmode=$depmode \
6881 source=sub/conftest.c object=$am__obj \
6882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6883 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6884 >/dev/null 2>conftest.err &&
6885 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6887 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6889 # icc doesn't choke on unknown options, it will just issue warnings
6890 # or remarks (even with -Werror). So we grep stderr for any message
6891 # that says an option was ignored or not supported.
6892 # When given -MP, icc 7.0 and 7.1 complain thusly:
6893 # icc: Command line warning: ignoring option '-M'; no argument required
6894 # The diagnosis changed in icc 8.0:
6895 # icc: Command line remark: option '-MP' not supported
6896 if (grep 'ignoring option' conftest.err ||
6897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6898 am_cv_CXX_dependencies_compiler_type=$depmode
6899 break
6900 fi
6901 fi
6902 done
6903
6904 cd ..
6905 rm -rf conftest.dir
6906else
6907 am_cv_CXX_dependencies_compiler_type=none
6908fi
6909
6910fi
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6912$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6913CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6914
6915 if
6916 test "x$enable_dependency_tracking" != xno \
6917 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6918 am__fastdepCXX_TRUE=
6919 am__fastdepCXX_FALSE='#'
6920else
6921 am__fastdepCXX_TRUE='#'
6922 am__fastdepCXX_FALSE=
6923fi
6924
6925
cristy8b350f62009-11-15 23:12:43 +00006926 case $ac_cv_prog_cc_stdc in #(
6927 no) :
6928 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6929 *) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006931$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006932if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006933 $as_echo_n "(cached) " >&6
6934else
6935 ac_cv_prog_cc_c99=no
6936ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006938/* end confdefs.h. */
6939#include <stdarg.h>
6940#include <stdbool.h>
6941#include <stdlib.h>
6942#include <wchar.h>
6943#include <stdio.h>
6944
6945// Check varargs macros. These examples are taken from C99 6.10.3.5.
6946#define debug(...) fprintf (stderr, __VA_ARGS__)
6947#define showlist(...) puts (#__VA_ARGS__)
6948#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6949static void
6950test_varargs_macros (void)
6951{
6952 int x = 1234;
6953 int y = 5678;
6954 debug ("Flag");
6955 debug ("X = %d\n", x);
6956 showlist (The first, second, and third items.);
6957 report (x>y, "x is %d but y is %d", x, y);
6958}
6959
6960// Check long long types.
6961#define BIG64 18446744073709551615ull
6962#define BIG32 4294967295ul
6963#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6964#if !BIG_OK
6965 your preprocessor is broken;
6966#endif
6967#if BIG_OK
6968#else
6969 your preprocessor is broken;
6970#endif
6971static long long int bignum = -9223372036854775807LL;
6972static unsigned long long int ubignum = BIG64;
6973
6974struct incomplete_array
6975{
6976 int datasize;
6977 double data[];
6978};
6979
6980struct named_init {
6981 int number;
6982 const wchar_t *name;
6983 double average;
6984};
6985
6986typedef const char *ccp;
6987
6988static inline int
6989test_restrict (ccp restrict text)
6990{
6991 // See if C++-style comments work.
6992 // Iterate through items via the restricted pointer.
6993 // Also check for declarations in for loops.
6994 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6995 continue;
6996 return 0;
6997}
6998
6999// Check varargs and va_copy.
7000static void
7001test_varargs (const char *format, ...)
7002{
7003 va_list args;
7004 va_start (args, format);
7005 va_list args_copy;
7006 va_copy (args_copy, args);
7007
7008 const char *str;
7009 int number;
7010 float fnumber;
7011
7012 while (*format)
7013 {
7014 switch (*format++)
7015 {
7016 case 's': // string
7017 str = va_arg (args_copy, const char *);
7018 break;
7019 case 'd': // int
7020 number = va_arg (args_copy, int);
7021 break;
7022 case 'f': // float
7023 fnumber = va_arg (args_copy, double);
7024 break;
7025 default:
7026 break;
7027 }
7028 }
7029 va_end (args_copy);
7030 va_end (args);
7031}
7032
7033int
7034main ()
7035{
7036
7037 // Check bool.
7038 _Bool success = false;
7039
7040 // Check restrict.
7041 if (test_restrict ("String literal") == 0)
7042 success = true;
7043 char *restrict newvar = "Another string";
7044
7045 // Check varargs.
7046 test_varargs ("s, d' f .", "string", 65, 34.234);
7047 test_varargs_macros ();
7048
7049 // Check flexible array members.
7050 struct incomplete_array *ia =
7051 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7052 ia->datasize = 10;
7053 for (int i = 0; i < ia->datasize; ++i)
7054 ia->data[i] = i * 1.234;
7055
7056 // Check named initializers.
7057 struct named_init ni = {
7058 .number = 34,
7059 .name = L"Test wide string",
7060 .average = 543.34343,
7061 };
7062
7063 ni.number = 58;
7064
7065 int dynamic_array[ni.number];
7066 dynamic_array[ni.number - 1] = 543;
7067
7068 // work around unused variable warnings
7069 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7070 || dynamic_array[ni.number - 1] != 543);
7071
7072 ;
7073 return 0;
7074}
7075_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007076for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007077do
7078 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007079 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007081fi
cristy3ed852e2009-09-05 21:47:34 +00007082rm -f core conftest.err conftest.$ac_objext
7083 test "x$ac_cv_prog_cc_c99" != "xno" && break
7084done
7085rm -f conftest.$ac_ext
7086CC=$ac_save_CC
7087
7088fi
7089# AC_CACHE_VAL
7090case "x$ac_cv_prog_cc_c99" in
7091 x)
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "none needed" >&6; } ;;
7094 xno)
cristy8b350f62009-11-15 23:12:43 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007096$as_echo "unsupported" >&6; } ;;
7097 *)
7098 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7101esac
cristy8b350f62009-11-15 23:12:43 +00007102if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7104else
cristy8b350f62009-11-15 23:12:43 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007107if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007108 $as_echo_n "(cached) " >&6
7109else
7110 ac_cv_prog_cc_c89=no
7111ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007113/* end confdefs.h. */
7114#include <stdarg.h>
7115#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007116struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7118struct buf { int x; };
7119FILE * (*rcsopen) (struct buf *, struct stat *, int);
7120static char *e (p, i)
7121 char **p;
7122 int i;
7123{
7124 return p[i];
7125}
7126static char *f (char * (*g) (char **, int), char **p, ...)
7127{
7128 char *s;
7129 va_list v;
7130 va_start (v,p);
7131 s = g (p, va_arg (v,int));
7132 va_end (v);
7133 return s;
7134}
7135
7136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7137 function prototypes and stuff, but not '\xHH' hex character constants.
7138 These don't provoke an error unfortunately, instead are silently treated
7139 as 'x'. The following induces an error, until -std is added to get
7140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7141 array size at least. It's necessary to write '\x00'==0 to get something
7142 that's true only with -std. */
7143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7144
7145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7146 inside strings and character constants. */
7147#define FOO(x) 'x'
7148int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7149
7150int test (int i, double x);
7151struct s1 {int (*f) (int a);};
7152struct s2 {int (*f) (double a);};
7153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7154int argc;
7155char **argv;
7156int
7157main ()
7158{
7159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7160 ;
7161 return 0;
7162}
7163_ACEOF
7164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7166do
7167 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007169 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007170fi
cristy3ed852e2009-09-05 21:47:34 +00007171rm -f core conftest.err conftest.$ac_objext
7172 test "x$ac_cv_prog_cc_c89" != "xno" && break
7173done
7174rm -f conftest.$ac_ext
7175CC=$ac_save_CC
7176
7177fi
7178# AC_CACHE_VAL
7179case "x$ac_cv_prog_cc_c89" in
7180 x)
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo "none needed" >&6; } ;;
7183 xno)
cristy8b350f62009-11-15 23:12:43 +00007184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007185$as_echo "unsupported" >&6; } ;;
7186 *)
7187 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7190esac
cristy8b350f62009-11-15 23:12:43 +00007191if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7193else
7194 ac_cv_prog_cc_stdc=no
7195fi
7196
cristy3ed852e2009-09-05 21:47:34 +00007197fi
cristy3ed852e2009-09-05 21:47:34 +00007198 ;;
7199esac
cristy8b350f62009-11-15 23:12:43 +00007200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007201$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007202 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 $as_echo_n "(cached) " >&6
7204fi
7205
cristy8b350f62009-11-15 23:12:43 +00007206 case $ac_cv_prog_cc_stdc in #(
7207 no) :
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7209$as_echo "unsupported" >&6; } ;; #(
7210 '') :
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7212$as_echo "none needed" >&6; } ;; #(
7213 *) :
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7216esac
7217
cristy3ed852e2009-09-05 21:47:34 +00007218ac_ext=c
7219ac_cpp='$CPP $CPPFLAGS'
7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007224$as_echo_n "checking how to run the C preprocessor... " >&6; }
7225# On Suns, sometimes $CPP names a directory.
7226if test -n "$CPP" && test -d "$CPP"; then
7227 CPP=
7228fi
7229if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007230 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007231 $as_echo_n "(cached) " >&6
7232else
7233 # Double quotes because CPP needs to be expanded
7234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7235 do
7236 ac_preproc_ok=false
7237for ac_c_preproc_warn_flag in '' yes
7238do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007246/* end confdefs.h. */
7247#ifdef __STDC__
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252 Syntax error
7253_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007254if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007255
cristy8b350f62009-11-15 23:12:43 +00007256else
cristy3ed852e2009-09-05 21:47:34 +00007257 # Broken: fails on valid input.
7258continue
7259fi
cristyda16f162011-02-19 23:52:17 +00007260rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007265/* end confdefs.h. */
7266#include <ac_nonexistent.h>
7267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007268if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007269 # Broken: success on invalid input.
7270continue
7271else
cristy3ed852e2009-09-05 21:47:34 +00007272 # Passes both tests.
7273ac_preproc_ok=:
7274break
7275fi
cristyda16f162011-02-19 23:52:17 +00007276rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277
7278done
7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007280rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007281if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007282 break
7283fi
7284
7285 done
7286 ac_cv_prog_CPP=$CPP
7287
7288fi
7289 CPP=$ac_cv_prog_CPP
7290else
7291 ac_cv_prog_CPP=$CPP
7292fi
cristy8b350f62009-11-15 23:12:43 +00007293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007294$as_echo "$CPP" >&6; }
7295ac_preproc_ok=false
7296for ac_c_preproc_warn_flag in '' yes
7297do
7298 # Use a header file that comes with gcc, so configuring glibc
7299 # with a fresh cross-compiler works.
7300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7301 # <limits.h> exists even on freestanding compilers.
7302 # On the NeXT, cc -E runs the code through the compiler's parser,
7303 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007305/* end confdefs.h. */
7306#ifdef __STDC__
7307# include <limits.h>
7308#else
7309# include <assert.h>
7310#endif
7311 Syntax error
7312_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007313if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007314
cristy8b350f62009-11-15 23:12:43 +00007315else
cristy3ed852e2009-09-05 21:47:34 +00007316 # Broken: fails on valid input.
7317continue
7318fi
cristyda16f162011-02-19 23:52:17 +00007319rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007320
7321 # OK, works on sane cases. Now check whether nonexistent headers
7322 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007324/* end confdefs.h. */
7325#include <ac_nonexistent.h>
7326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007327if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007328 # Broken: success on invalid input.
7329continue
7330else
cristy3ed852e2009-09-05 21:47:34 +00007331 # Passes both tests.
7332ac_preproc_ok=:
7333break
7334fi
cristyda16f162011-02-19 23:52:17 +00007335rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007336
7337done
7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007339rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007340if $ac_preproc_ok; then :
7341
cristy3ed852e2009-09-05 21:47:34 +00007342else
cristy8b350f62009-11-15 23:12:43 +00007343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007345as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7346See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007347fi
7348
7349ac_ext=c
7350ac_cpp='$CPP $CPPFLAGS'
7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
cristy73bd4a52010-10-05 11:24:23 +00007355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7356$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007357if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7361 for ac_i in 1 2 3 4 5 6 7; do
7362 ac_script="$ac_script$as_nl$ac_script"
7363 done
7364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7365 { ac_script=; unset ac_script;}
7366 if test -z "$SED"; then
7367 ac_path_SED_found=false
7368 # Loop through the user's path and test for each of PROGNAME-LIST
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_prog in sed gsed; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007377 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007378# Check for GNU ac_path_SED and select it if it is found.
7379 # Check for GNU $ac_path_SED
7380case `"$ac_path_SED" --version 2>&1` in
7381*GNU*)
7382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7383*)
7384 ac_count=0
7385 $as_echo_n 0123456789 >"conftest.in"
7386 while :
7387 do
7388 cat "conftest.in" "conftest.in" >"conftest.tmp"
7389 mv "conftest.tmp" "conftest.in"
7390 cp "conftest.in" "conftest.nl"
7391 $as_echo '' >> "conftest.nl"
7392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7394 as_fn_arith $ac_count + 1 && ac_count=$as_val
7395 if test $ac_count -gt ${ac_path_SED_max-0}; then
7396 # Best one so far, save it but keep looking for a better one
7397 ac_cv_path_SED="$ac_path_SED"
7398 ac_path_SED_max=$ac_count
7399 fi
7400 # 10*(2^10) chars as input seems more than enough
7401 test $ac_count -gt 10 && break
7402 done
7403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7404esac
7405
7406 $ac_path_SED_found && break 3
7407 done
7408 done
7409 done
7410IFS=$as_save_IFS
7411 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007412 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007413 fi
7414else
7415 ac_cv_path_SED=$SED
7416fi
7417
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7420$as_echo "$ac_cv_path_SED" >&6; }
7421 SED="$ac_cv_path_SED"
7422 rm -f conftest.sed
7423
7424test -z "$SED" && SED=sed
7425Xsed="$SED -e 1s/^X//"
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7438$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007439if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007440 $as_echo_n "(cached) " >&6
7441else
7442 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7443 then ac_cv_path_FGREP="$GREP -F"
7444 else
7445 if test -z "$FGREP"; then
7446 ac_path_FGREP_found=false
7447 # Loop through the user's path and test for each of PROGNAME-LIST
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_prog in fgrep; do
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007456 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007457# Check for GNU ac_path_FGREP and select it if it is found.
7458 # Check for GNU $ac_path_FGREP
7459case `"$ac_path_FGREP" --version 2>&1` in
7460*GNU*)
7461 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7462*)
7463 ac_count=0
7464 $as_echo_n 0123456789 >"conftest.in"
7465 while :
7466 do
7467 cat "conftest.in" "conftest.in" >"conftest.tmp"
7468 mv "conftest.tmp" "conftest.in"
7469 cp "conftest.in" "conftest.nl"
7470 $as_echo 'FGREP' >> "conftest.nl"
7471 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7473 as_fn_arith $ac_count + 1 && ac_count=$as_val
7474 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7475 # Best one so far, save it but keep looking for a better one
7476 ac_cv_path_FGREP="$ac_path_FGREP"
7477 ac_path_FGREP_max=$ac_count
7478 fi
7479 # 10*(2^10) chars as input seems more than enough
7480 test $ac_count -gt 10 && break
7481 done
7482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7483esac
7484
7485 $ac_path_FGREP_found && break 3
7486 done
7487 done
7488 done
7489IFS=$as_save_IFS
7490 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007491 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007492 fi
7493else
7494 ac_cv_path_FGREP=$FGREP
7495fi
7496
7497 fi
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7500$as_echo "$ac_cv_path_FGREP" >&6; }
7501 FGREP="$ac_cv_path_FGREP"
7502
7503
7504test -z "$GREP" && GREP=grep
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
cristy0c60a692010-11-04 01:09:47 +00007522ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7524ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7525
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7527$as_echo_n "checking how to print strings... " >&6; }
7528# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007529if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007530 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7531 ECHO='print -r --'
7532elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7533 ECHO='printf %s\n'
7534else
7535 # Use this function as a fallback that always works.
7536 func_fallback_echo ()
7537 {
7538 eval 'cat <<_LTECHO_EOF
7539$1
7540_LTECHO_EOF'
7541 }
7542 ECHO='func_fallback_echo'
7543fi
7544
7545# func_echo_all arg...
7546# Invoke $ECHO with all args, space-separated.
7547func_echo_all ()
7548{
7549 $ECHO ""
7550}
7551
7552case "$ECHO" in
7553 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7554$as_echo "printf" >&6; } ;;
7555 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7556$as_echo "print -r" >&6; } ;;
7557 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7558$as_echo "cat" >&6; } ;;
7559esac
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
cristy73bd4a52010-10-05 11:24:23 +00007574
7575
7576# Check whether --with-gnu-ld was given.
7577if test "${with_gnu_ld+set}" = set; then :
7578 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7579else
7580 with_gnu_ld=no
7581fi
7582
7583ac_prog=ld
7584if test "$GCC" = yes; then
7585 # Check if gcc -print-prog-name=ld gives a path.
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7587$as_echo_n "checking for ld used by $CC... " >&6; }
7588 case $host in
7589 *-*-mingw*)
7590 # gcc leaves a trailing carriage return which upsets mingw
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7592 *)
7593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7594 esac
7595 case $ac_prog in
7596 # Accept absolute paths.
7597 [\\/]* | ?:[\\/]*)
7598 re_direlt='/[^/][^/]*/\.\./'
7599 # Canonicalize the pathname of ld
7600 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7601 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7602 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7603 done
7604 test -z "$LD" && LD="$ac_prog"
7605 ;;
7606 "")
7607 # If it fails, then pretend we aren't using GCC.
7608 ac_prog=ld
7609 ;;
7610 *)
7611 # If it is relative, then search for the first ld in PATH.
7612 with_gnu_ld=unknown
7613 ;;
7614 esac
7615elif test "$with_gnu_ld" = yes; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7617$as_echo_n "checking for GNU ld... " >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7620$as_echo_n "checking for non-GNU ld... " >&6; }
7621fi
cristyda16f162011-02-19 23:52:17 +00007622if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007623 $as_echo_n "(cached) " >&6
7624else
7625 if test -z "$LD"; then
7626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627 for ac_dir in $PATH; do
7628 IFS="$lt_save_ifs"
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7631 lt_cv_path_LD="$ac_dir/$ac_prog"
7632 # Check to see if the program is GNU ld. I'd rather use --version,
7633 # but apparently some variants of GNU ld only accept -v.
7634 # Break only if it was the GNU/non-GNU ld that we prefer.
7635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7636 *GNU* | *'with BFD'*)
7637 test "$with_gnu_ld" != no && break
7638 ;;
7639 *)
7640 test "$with_gnu_ld" != yes && break
7641 ;;
7642 esac
7643 fi
7644 done
7645 IFS="$lt_save_ifs"
7646else
7647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7648fi
7649fi
7650
7651LD="$lt_cv_path_LD"
7652if test -n "$LD"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7654$as_echo "$LD" >&6; }
7655else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
cristy98dddb52010-11-04 00:30:15 +00007659test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7661$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007662if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007663 $as_echo_n "(cached) " >&6
7664else
7665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7666case `$LD -v 2>&1 </dev/null` in
7667*GNU* | *'with BFD'*)
7668 lt_cv_prog_gnu_ld=yes
7669 ;;
7670*)
7671 lt_cv_prog_gnu_ld=no
7672 ;;
7673esac
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7676$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7677with_gnu_ld=$lt_cv_prog_gnu_ld
7678
7679
7680
7681
7682
7683
7684
7685
7686
cristy3ed852e2009-09-05 21:47:34 +00007687
cristy837d6dc2010-02-27 01:16:57 +00007688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7689$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007690if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007691 $as_echo_n "(cached) " >&6
7692else
7693 ac_cv_prog_cc_c99=no
7694ac_save_CC=$CC
7695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h. */
7697#include <stdarg.h>
7698#include <stdbool.h>
7699#include <stdlib.h>
7700#include <wchar.h>
7701#include <stdio.h>
7702
7703// Check varargs macros. These examples are taken from C99 6.10.3.5.
7704#define debug(...) fprintf (stderr, __VA_ARGS__)
7705#define showlist(...) puts (#__VA_ARGS__)
7706#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7707static void
7708test_varargs_macros (void)
7709{
7710 int x = 1234;
7711 int y = 5678;
7712 debug ("Flag");
7713 debug ("X = %d\n", x);
7714 showlist (The first, second, and third items.);
7715 report (x>y, "x is %d but y is %d", x, y);
7716}
7717
7718// Check long long types.
7719#define BIG64 18446744073709551615ull
7720#define BIG32 4294967295ul
7721#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7722#if !BIG_OK
7723 your preprocessor is broken;
7724#endif
7725#if BIG_OK
7726#else
7727 your preprocessor is broken;
7728#endif
7729static long long int bignum = -9223372036854775807LL;
7730static unsigned long long int ubignum = BIG64;
7731
7732struct incomplete_array
7733{
7734 int datasize;
7735 double data[];
7736};
7737
7738struct named_init {
7739 int number;
7740 const wchar_t *name;
7741 double average;
7742};
7743
7744typedef const char *ccp;
7745
7746static inline int
7747test_restrict (ccp restrict text)
7748{
7749 // See if C++-style comments work.
7750 // Iterate through items via the restricted pointer.
7751 // Also check for declarations in for loops.
7752 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7753 continue;
7754 return 0;
7755}
7756
7757// Check varargs and va_copy.
7758static void
7759test_varargs (const char *format, ...)
7760{
7761 va_list args;
7762 va_start (args, format);
7763 va_list args_copy;
7764 va_copy (args_copy, args);
7765
7766 const char *str;
7767 int number;
7768 float fnumber;
7769
7770 while (*format)
7771 {
7772 switch (*format++)
7773 {
7774 case 's': // string
7775 str = va_arg (args_copy, const char *);
7776 break;
7777 case 'd': // int
7778 number = va_arg (args_copy, int);
7779 break;
7780 case 'f': // float
7781 fnumber = va_arg (args_copy, double);
7782 break;
7783 default:
7784 break;
7785 }
7786 }
7787 va_end (args_copy);
7788 va_end (args);
7789}
7790
7791int
7792main ()
7793{
7794
7795 // Check bool.
7796 _Bool success = false;
7797
7798 // Check restrict.
7799 if (test_restrict ("String literal") == 0)
7800 success = true;
7801 char *restrict newvar = "Another string";
7802
7803 // Check varargs.
7804 test_varargs ("s, d' f .", "string", 65, 34.234);
7805 test_varargs_macros ();
7806
7807 // Check flexible array members.
7808 struct incomplete_array *ia =
7809 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7810 ia->datasize = 10;
7811 for (int i = 0; i < ia->datasize; ++i)
7812 ia->data[i] = i * 1.234;
7813
7814 // Check named initializers.
7815 struct named_init ni = {
7816 .number = 34,
7817 .name = L"Test wide string",
7818 .average = 543.34343,
7819 };
7820
7821 ni.number = 58;
7822
7823 int dynamic_array[ni.number];
7824 dynamic_array[ni.number - 1] = 543;
7825
7826 // work around unused variable warnings
7827 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7828 || dynamic_array[ni.number - 1] != 543);
7829
7830 ;
7831 return 0;
7832}
7833_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007834for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007835do
7836 CC="$ac_save_CC $ac_arg"
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 ac_cv_prog_cc_c99=$ac_arg
7839fi
7840rm -f core conftest.err conftest.$ac_objext
7841 test "x$ac_cv_prog_cc_c99" != "xno" && break
7842done
7843rm -f conftest.$ac_ext
7844CC=$ac_save_CC
7845
7846fi
7847# AC_CACHE_VAL
7848case "x$ac_cv_prog_cc_c99" in
7849 x)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7851$as_echo "none needed" >&6; } ;;
7852 xno)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7854$as_echo "unsupported" >&6; } ;;
7855 *)
7856 CC="$CC $ac_cv_prog_cc_c99"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7858$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7859esac
7860if test "x$ac_cv_prog_cc_c99" != xno; then :
7861
7862fi
7863
7864
cristy73bd4a52010-10-05 11:24:23 +00007865if test "x$CC" != xcc; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7867$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7870$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7871fi
7872set dummy $CC; ac_cc=`$as_echo "$2" |
7873 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007874if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007875 $as_echo_n "(cached) " >&6
7876else
cristy73bd4a52010-10-05 11:24:23 +00007877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h. */
7879
7880int
7881main ()
7882{
7883
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888# Make sure it works both with $CC and with simple cc.
7889# We do the test twice because some compilers refuse to overwrite an
7890# existing .o file with -o, though they will create one.
7891ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7892rm -f conftest2.*
7893if { { case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7898$as_echo "$ac_try_echo"; } >&5
7899 (eval "$ac_try") 2>&5
7900 ac_status=$?
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; } &&
7903 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7908$as_echo "$ac_try_echo"; } >&5
7909 (eval "$ac_try") 2>&5
7910 ac_status=$?
7911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7912 test $ac_status = 0; };
7913then
7914 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7915 if test "x$CC" != xcc; then
7916 # Test first that cc exists at all.
7917 if { ac_try='cc -c conftest.$ac_ext >&5'
7918 { { case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921esac
7922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7923$as_echo "$ac_try_echo"; } >&5
7924 (eval "$ac_try") 2>&5
7925 ac_status=$?
7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927 test $ac_status = 0; }; }; then
7928 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7929 rm -f conftest2.*
7930 if { { case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7935$as_echo "$ac_try_echo"; } >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; } &&
7940 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943esac
7944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7945$as_echo "$ac_try_echo"; } >&5
7946 (eval "$ac_try") 2>&5
7947 ac_status=$?
7948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949 test $ac_status = 0; };
7950 then
7951 # cc works too.
7952 :
7953 else
7954 # cc exists but doesn't like -o.
7955 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7956 fi
7957 fi
7958 fi
7959else
7960 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7961fi
7962rm -f core conftest*
7963
7964fi
7965if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967$as_echo "yes" >&6; }
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971
7972$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7973
7974fi
7975
7976# FIXME: we rely on the cache variable name because
7977# there is no other way.
7978set dummy $CC
7979am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7980eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7981if test "$am_t" != yes; then
7982 # Losing compiler, so override with the script.
7983 # FIXME: It is wrong to rewrite CC.
7984 # But if we don't then we get into trouble of one sort or another.
7985 # A longer-term fix would be to have automake use am__CC in this case,
7986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7987 CC="$am_aux_dir/compile $CC"
7988fi
7989
7990
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7992$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007993if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007994 $as_echo_n "(cached) " >&6
7995else
7996 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003 ac_save_CFLAGS="$CFLAGS"
8004for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
8005do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h. */
8008
8009int
8010main ()
8011{
cristy24fc1fe2010-10-23 21:13:01 +00008012
cristy73bd4a52010-10-05 11:24:23 +00008013 ;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"; then :
8018 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021done
8022 CFLAGS="$ac_save_CFLAGS"
8023 ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8032$as_echo "$ac_cv_cflags_warn_all" >&6; }
8033case ".$ac_cv_cflags_warn_all" in
8034 .ok|.ok,*) ;;
8035 .|.no|.no,*)
8036 ;;
8037 *)
8038 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8039 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8040 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8041 ac_status=$?
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }
8044 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8045 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8046 ac_status=$?
8047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048 test $ac_status = 0; }
8049 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8050 fi
8051 ;;
nicolas6237c462010-10-05 06:11:49 +00008052esac
cristy3ed852e2009-09-05 21:47:34 +00008053
cristy016e8b82012-12-26 12:11:06 +00008054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8055$as_echo_n "checking for C compiler vendor... " >&6; }
8056if ${ax_cv_c_compiler_vendor+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058else
8059 # note: don't check for gcc first since some other compilers define __GNUC__
8060 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8061 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8062 pathscale: __PATHCC__,__PATHSCALE__
8063 clang: __clang__
8064 gnu: __GNUC__
8065 sun: __SUNPRO_C,__SUNPRO_CC
8066 hp: __HP_cc,__HP_aCC
8067 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8068 borland: __BORLANDC__,__TURBOC__
8069 comeau: __COMO__
8070 cray: _CRAYC
8071 kai: __KCC
8072 lcc: __LCC__
8073 sgi: __sgi,sgi
8074 microsoft: _MSC_VER
8075 metrowerks: __MWERKS__
8076 watcom: __WATCOMC__
8077 portland: __PGI
8078 unknown: UNKNOWN"
8079 for ventest in $vendors; do
8080 case $ventest in
8081 *:) vendor=$ventest; continue ;;
8082 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8083 esac
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h. */
8086
8087int
8088main ()
8089{
8090
8091 #if !($vencpp)
8092 thisisanerror;
8093 #endif
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_compile "$LINENO"; then :
8100 break
8101fi
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 done
8104 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8105
8106fi
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8108$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8109
cristya0b81c32010-01-22 02:54:33 +00008110
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8112$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8113set x ${MAKE-make}
8114ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008115if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 cat >conftest.make <<\_ACEOF
8119SHELL = /bin/sh
8120all:
8121 @echo '@@@%%%=$(MAKE)=@@@%%%'
8122_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008123# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008124case `${MAKE-make} -f conftest.make 2>/dev/null` in
8125 *@@@%%%=?*=@@@%%%*)
8126 eval ac_cv_prog_make_${ac_make}_set=yes;;
8127 *)
8128 eval ac_cv_prog_make_${ac_make}_set=no;;
8129esac
8130rm -f conftest.make
8131fi
8132if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8134$as_echo "yes" >&6; }
8135 SET_MAKE=
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139 SET_MAKE="MAKE=${MAKE-make}"
8140fi
8141
cristy8b350f62009-11-15 23:12:43 +00008142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143$as_echo_n "checking whether ln -s works... " >&6; }
8144LN_S=$as_ln_s
8145if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008147$as_echo "yes" >&6; }
8148else
cristy8b350f62009-11-15 23:12:43 +00008149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008150$as_echo "no, using $LN_S" >&6; }
8151fi
8152
cristy8d0ff762013-03-10 20:33:28 +00008153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8154$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8155if ${ac_cv_path_SED+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8159 for ac_i in 1 2 3 4 5 6 7; do
8160 ac_script="$ac_script$as_nl$ac_script"
8161 done
8162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8163 { ac_script=; unset ac_script;}
8164 if test -z "$SED"; then
8165 ac_path_SED_found=false
8166 # Loop through the user's path and test for each of PROGNAME-LIST
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_prog in sed gsed; do
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8175 as_fn_executable_p "$ac_path_SED" || continue
8176# Check for GNU ac_path_SED and select it if it is found.
8177 # Check for GNU $ac_path_SED
8178case `"$ac_path_SED" --version 2>&1` in
8179*GNU*)
8180 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8181*)
8182 ac_count=0
8183 $as_echo_n 0123456789 >"conftest.in"
8184 while :
8185 do
8186 cat "conftest.in" "conftest.in" >"conftest.tmp"
8187 mv "conftest.tmp" "conftest.in"
8188 cp "conftest.in" "conftest.nl"
8189 $as_echo '' >> "conftest.nl"
8190 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8192 as_fn_arith $ac_count + 1 && ac_count=$as_val
8193 if test $ac_count -gt ${ac_path_SED_max-0}; then
8194 # Best one so far, save it but keep looking for a better one
8195 ac_cv_path_SED="$ac_path_SED"
8196 ac_path_SED_max=$ac_count
8197 fi
8198 # 10*(2^10) chars as input seems more than enough
8199 test $ac_count -gt 10 && break
8200 done
8201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8202esac
8203
8204 $ac_path_SED_found && break 3
8205 done
8206 done
8207 done
8208IFS=$as_save_IFS
8209 if test -z "$ac_cv_path_SED"; then
8210 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8211 fi
8212else
8213 ac_cv_path_SED=$SED
8214fi
8215
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8218$as_echo "$ac_cv_path_SED" >&6; }
8219 SED="$ac_cv_path_SED"
8220 rm -f conftest.sed
8221
cristybc556452012-08-17 19:44:03 +00008222for ac_prog in gawk mawk nawk awk
8223do
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if ${ac_cv_prog_AWK+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230else
8231 if test -n "$AWK"; then
8232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_AWK="$ac_prog"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245done
8246 done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251AWK=$ac_cv_prog_AWK
8252if test -n "$AWK"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8254$as_echo "$AWK" >&6; }
8255else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260
8261 test -n "$AWK" && break
8262done
8263
cristy73bd4a52010-10-05 11:24:23 +00008264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8265$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8266
8267# Check whether --with-dmalloc was given.
8268if test "${with_dmalloc+set}" = set; then :
8269 withval=$with_dmalloc; if test "$withval" = yes; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271$as_echo "yes" >&6; }
8272
8273$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8274
8275 LIBS="$LIBS -ldmalloc"
8276 LDFLAGS="$LDFLAGS -g"
8277else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8289$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008290if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008291 $as_echo_n "(cached) " >&6
8292else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h. */
8295#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008296 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008297 static void
8298 foo(void) {
8299 exit(1);
8300 }
8301
8302int
8303main ()
8304{
8305
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310if ac_fn_c_try_compile "$LINENO"; then :
8311 ax_cv___attribute__=yes
8312else
8313 ax_cv___attribute__=no
8314
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8320$as_echo "$ax_cv___attribute__" >&6; }
8321 if test "$ax_cv___attribute__" = "yes"; then
8322
8323$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8324
8325 fi
8326
8327
8328
cristy37110d62012-03-01 18:38:20 +00008329
8330
8331# Check whether --with-gcc-arch was given.
8332if test "${with_gcc_arch+set}" = set; then :
8333 withval=$with_gcc_arch; ax_gcc_arch=$withval
8334else
cristya32d1812012-03-02 19:24:21 +00008335 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008336fi
8337
8338
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8340$as_echo_n "checking for gcc architecture flag... " >&6; }
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8342$as_echo "" >&6; }
8343if ${ax_cv_gcc_archflag+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346
8347ax_cv_gcc_archflag="unknown"
8348
8349if test "$GCC" = yes; then
8350
8351if test "x$ax_gcc_arch" = xyes; then
8352ax_gcc_arch=""
8353if test "$cross_compiling" = no; then
8354case $host_cpu in
8355 i[3456]86*|x86_64*) # use cpuid codes
8356
8357ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8364$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8365if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367else
8368 if test "$cross_compiling" = yes; then :
8369 ax_cv_gcc_x86_cpuid_0=unknown
8370else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h. */
8373#include <stdio.h>
8374int
8375main ()
8376{
8377
8378 int op = 0, eax, ebx, ecx, edx;
8379 FILE *f;
8380 __asm__("cpuid"
8381 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8382 : "a" (op));
8383 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8384 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8385 fclose(f);
8386 return 0;
8387
8388 ;
8389 return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_run "$LINENO"; then :
8393 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8394else
8395 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8396fi
8397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8398 conftest.$ac_objext conftest.beam conftest.$ac_ext
8399fi
8400
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8403$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8404ac_ext=c
8405ac_cpp='$CPP $CPPFLAGS'
8406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411
8412ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8419$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8420if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422else
8423 if test "$cross_compiling" = yes; then :
8424 ax_cv_gcc_x86_cpuid_1=unknown
8425else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h. */
8428#include <stdio.h>
8429int
8430main ()
8431{
8432
8433 int op = 1, eax, ebx, ecx, edx;
8434 FILE *f;
8435 __asm__("cpuid"
8436 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8437 : "a" (op));
8438 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8439 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8440 fclose(f);
8441 return 0;
8442
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447if ac_fn_c_try_run "$LINENO"; then :
8448 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8449else
8450 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8451fi
8452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8454fi
8455
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8458$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8459ac_ext=c
8460ac_cpp='$CPP $CPPFLAGS'
8461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463ac_compiler_gnu=$ac_cv_c_compiler_gnu
8464
8465
8466 case $ax_cv_gcc_x86_cpuid_0 in
8467 *:756e6547:*:*) # Intel
8468 case $ax_cv_gcc_x86_cpuid_1 in
8469 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8470 *5??:*:*:*) ax_gcc_arch=pentium ;;
8471 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8472 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8473 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8474 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8475 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8476 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8477 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8478 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8479 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8480 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8481 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8482 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8483 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8484 case $host_cpu in
8485 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8486 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8487 esac ;;
8488 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8489 esac ;;
8490 *:68747541:*:*) # AMD
8491 case $ax_cv_gcc_x86_cpuid_1 in
8492 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8493 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8494 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8495 *60?:*:*:*) ax_gcc_arch=k7 ;;
8496 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8497 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8498 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8499 *6[68a]?:*:*:*)
8500
8501ac_ext=c
8502ac_cpp='$CPP $CPPFLAGS'
8503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505ac_compiler_gnu=$ac_cv_c_compiler_gnu
8506
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8508$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8509if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511else
8512 if test "$cross_compiling" = yes; then :
8513 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8514else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h. */
8517#include <stdio.h>
8518int
8519main ()
8520{
8521
8522 int op = 0x80000006, eax, ebx, ecx, edx;
8523 FILE *f;
8524 __asm__("cpuid"
8525 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8526 : "a" (op));
8527 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8528 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8529 fclose(f);
8530 return 0;
8531
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_run "$LINENO"; then :
8537 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8538else
8539 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8540fi
8541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 conftest.$ac_objext conftest.beam conftest.$ac_ext
8543fi
8544
8545fi
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8547$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8548ac_ext=c
8549ac_cpp='$CPP $CPPFLAGS'
8550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553
8554 # L2 cache size
8555 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8556 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8557 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8558 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8559 esac ;;
8560 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8561 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8562 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8563 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8564 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8565 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8566 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8567 esac ;;
8568 *:746e6543:*:*) # IDT
8569 case $ax_cv_gcc_x86_cpuid_1 in
8570 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8571 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8572 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8573 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8574 esac ;;
8575 esac
8576 if test x"$ax_gcc_arch" = x; then # fallback
8577 case $host_cpu in
8578 i586*) ax_gcc_arch=pentium ;;
8579 i686*) ax_gcc_arch=pentiumpro ;;
8580 esac
8581 fi
8582 ;;
8583
8584 sparc*)
8585 # Extract the first word of "prtdiag", so it can be a program name with args.
8586set dummy prtdiag; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if ${ac_cv_path_PRTDIAG+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 case $PRTDIAG in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8595 ;;
8596 *)
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8599for as_dir in $as_dummy
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008605 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610 done
8611IFS=$as_save_IFS
8612
8613 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8614 ;;
8615esac
8616fi
8617PRTDIAG=$ac_cv_path_PRTDIAG
8618if test -n "$PRTDIAG"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8620$as_echo "$PRTDIAG" >&6; }
8621else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
8624fi
8625
8626
8627 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8628 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8629 case $cputype in
8630 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8631 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8632 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8633 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8634 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8635 *cypress*) ax_gcc_arch=cypress ;;
8636 esac ;;
8637
8638 alphaev5) ax_gcc_arch=ev5 ;;
8639 alphaev56) ax_gcc_arch=ev56 ;;
8640 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8641 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8642 alphaev6) ax_gcc_arch=ev6 ;;
8643 alphaev67) ax_gcc_arch=ev67 ;;
8644 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8645 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8646 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8647 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8648
8649 powerpc*)
8650 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8651 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8652 case $cputype in
8653 *750*) ax_gcc_arch="750 G3" ;;
8654 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8655 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8656 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8657 *970*) ax_gcc_arch="970 G5 power4";;
8658 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8659 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8660 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8661 *) ax_gcc_arch=$cputype ;;
8662 esac
8663 ax_gcc_arch="$ax_gcc_arch powerpc"
8664 ;;
8665esac
8666fi # not cross-compiling
8667fi # guess arch
8668
8669if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8670for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008671 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008672 flags="-mtune=$arch"
8673 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8674 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8675 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8676 else
8677 flags="-march=$arch -mcpu=$arch -m$arch"
8678 fi
8679 for flag in $flags; do
8680 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8682$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8683if eval \${$as_CACHEVAR+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685else
8686
8687 ax_check_save_flags=$CFLAGS
8688 CFLAGS="$CFLAGS $flag"
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691
8692int
8693main ()
8694{
8695
8696 ;
8697 return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_compile "$LINENO"; then :
8701 eval "$as_CACHEVAR=yes"
8702else
8703 eval "$as_CACHEVAR=no"
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 CFLAGS=$ax_check_save_flags
8707fi
8708eval ac_res=\$$as_CACHEVAR
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8710$as_echo "$ac_res" >&6; }
8711if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8712 ax_cv_gcc_archflag=$flag; break
8713else
8714 :
8715fi
8716
8717 done
8718 test "x$ax_cv_gcc_archflag" = xunknown || break
8719done
8720fi
8721
8722fi # $GCC=yes
8723
8724fi
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8727$as_echo_n "checking for gcc architecture flag... " >&6; }
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8729$as_echo "$ax_cv_gcc_archflag" >&6; }
8730if test "x$ax_cv_gcc_archflag" = xunknown; then
8731 :
8732else
8733 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8734fi
8735
8736
8737
cristy73bd4a52010-10-05 11:24:23 +00008738if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8741set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008744if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008745 $as_echo_n "(cached) " >&6
8746else
8747 case $PKG_CONFIG in
8748 [\\/]* | ?:[\\/]*)
8749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8750 ;;
8751 *)
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008759 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764 done
8765IFS=$as_save_IFS
8766
8767 ;;
8768esac
8769fi
8770PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8771if test -n "$PKG_CONFIG"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8773$as_echo "$PKG_CONFIG" >&6; }
8774else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778
8779
8780fi
8781if test -z "$ac_cv_path_PKG_CONFIG"; then
8782 ac_pt_PKG_CONFIG=$PKG_CONFIG
8783 # Extract the first word of "pkg-config", so it can be a program name with args.
8784set dummy pkg-config; ac_word=$2
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008787if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008788 $as_echo_n "(cached) " >&6
8789else
8790 case $ac_pt_PKG_CONFIG in
8791 [\\/]* | ?:[\\/]*)
8792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8793 ;;
8794 *)
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008802 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807 done
8808IFS=$as_save_IFS
8809
8810 ;;
8811esac
8812fi
8813ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8814if test -n "$ac_pt_PKG_CONFIG"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8816$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8817else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
8820fi
8821
8822 if test "x$ac_pt_PKG_CONFIG" = x; then
8823 PKG_CONFIG=""
8824 else
8825 case $cross_compiling:$ac_tool_warned in
8826yes:)
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8829ac_tool_warned=yes ;;
8830esac
8831 PKG_CONFIG=$ac_pt_PKG_CONFIG
8832 fi
8833else
8834 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8835fi
8836
8837fi
8838if test -n "$PKG_CONFIG"; then
8839 _pkg_min_version=0.9.0
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8841$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8842 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8844$as_echo "yes" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848 PKG_CONFIG=""
8849 fi
8850
8851fi
cristy3ed852e2009-09-05 21:47:34 +00008852
cristy9b86f202012-11-28 21:55:35 +00008853# Check for linker script support
8854
8855 # Check whether --enable-ld-version-script was given.
8856if test "${enable_ld_version_script+set}" = set; then :
8857 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8858fi
8859
8860 if test -z "$have_ld_version_script"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8862$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8865 cat > conftest.map <<EOF
8866foo
8867EOF
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h. */
8870
8871int
8872main ()
8873{
8874
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879if ac_fn_c_try_link "$LINENO"; then :
8880 accepts_syntax_errors=yes
8881else
8882 accepts_syntax_errors=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 if test "$accepts_syntax_errors" = no; then
8887 cat > conftest.map <<EOF
8888VERS_1 {
8889 global: sym;
8890};
8891
8892VERS_2 {
8893 global: sym;
8894} VERS_1;
8895EOF
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h. */
8898
8899int
8900main ()
8901{
8902
8903 ;
8904 return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then :
8908 have_ld_version_script=yes
8909else
8910 have_ld_version_script=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914 else
8915 have_ld_version_script=no
8916 fi
8917 rm -f conftest.map
8918 LDFLAGS="$save_LDFLAGS"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8920$as_echo "$have_ld_version_script" >&6; }
8921 fi
8922 if test "$have_ld_version_script" = "yes"; then
8923 HAVE_LD_VERSION_SCRIPT_TRUE=
8924 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8925else
8926 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8927 HAVE_LD_VERSION_SCRIPT_FALSE=
8928fi
8929
8930
8931
cristy3ed852e2009-09-05 21:47:34 +00008932#
cristy3ed852e2009-09-05 21:47:34 +00008933# Enable run-time checking.
8934#
8935# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008936if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008937 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8938else
8939 enable_bounds_checking='no'
8940fi
8941
8942
8943if test "$enable_bounds_checking" = yes; then
8944
cristy8b350f62009-11-15 23:12:43 +00008945$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008946
8947fi
8948
8949#
8950# Tests for Windows
8951#
8952
8953
8954
8955GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008956native_win32_build='no'
8957cygwin_build='no'
8958case "${host_os}" in
8959 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008960 cygwin_build='yes'
8961 GDI32_LIBS='-lgdi32'
8962 ;;
8963 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008964 native_win32_build='yes'
8965 GDI32_LIBS='-lgdi32'
8966 ;;
8967esac
8968if test "${GDI32_LIBS}x" != 'x'; then
8969
cristy8b350f62009-11-15 23:12:43 +00008970$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008971
8972fi
8973
cristy73bd4a52010-10-05 11:24:23 +00008974 if test "${GDI32_LIBS}x" != 'x' ; then
8975 WINGDI32_DELEGATE_TRUE=
8976 WINGDI32_DELEGATE_FALSE='#'
8977else
8978 WINGDI32_DELEGATE_TRUE='#'
8979 WINGDI32_DELEGATE_FALSE=
8980fi
8981
8982 if test "${native_win32_build}" = 'yes' ; then
8983 WIN32_NATIVE_BUILD_TRUE=
8984 WIN32_NATIVE_BUILD_FALSE='#'
8985else
8986 WIN32_NATIVE_BUILD_TRUE='#'
8987 WIN32_NATIVE_BUILD_FALSE=
8988fi
8989
8990 if test "${cygwin_build}" = 'yes' ; then
8991 CYGWIN_BUILD_TRUE=
8992 CYGWIN_BUILD_FALSE='#'
8993else
8994 CYGWIN_BUILD_TRUE='#'
8995 CYGWIN_BUILD_FALSE=
8996fi
8997
8998 if test "x${CC}" = 'xcl.exe' ; then
8999 USING_CL_TRUE=
9000 USING_CL_FALSE='#'
9001else
9002 USING_CL_TRUE='#'
9003 USING_CL_FALSE=
9004fi
9005
cristy3ed852e2009-09-05 21:47:34 +00009006
9007WinPathScript="${srcdirfull}/winpath.sh"
9008
9009
9010#
9011# Compiler flags tweaks
9012#
9013if test "${GCC}" != "yes"; then
9014 case "${host}" in
9015 *-*-hpux* )
9016 # aCC: HP ANSI C++ B3910B A.03.34
9017 CFLAGS="${CFLAGS} -Wp,-H30000"
9018 if test -n "${CXXFLAGS}"; then
9019 CXXFLAGS='-AA'
9020 else
9021 CXXFLAGS="${CXXFLAGS} -AA"
9022 fi
9023 ;;
9024 *-dec-osf5.* )
9025 # Compaq alphaev68-dec-osf5.1 compiler
9026 if test -n "${CXXFLAGS}"; then
9027 CXXFLAGS='-std strict_ansi -noimplicit_include'
9028 else
9029 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9030 fi
9031 esac
9032fi
9033
9034# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009036$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009037if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009038 $as_echo_n "(cached) " >&6
9039else
9040
9041im_cv_ld_lazyload='none'
9042case "${host}" in
9043 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9044 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9045 im_cv_ld_lazyload='-Wl,-zlazyload'
9046 fi
9047 ;;
9048esac
9049
9050fi
cristy8b350f62009-11-15 23:12:43 +00009051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009052$as_echo "$im_cv_ld_lazyload" >&6; }
9053if test "${im_cv_ld_lazyload}" != 'none' ; then
9054 if test -z "${LDFLAGS}" ; then
9055 LDFLAGS="${im_cv_ld_lazyload}"
9056 else
9057 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9058 fi
9059fi
9060
9061case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009062 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009063 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009064 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009065if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009066 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9067else
9068 build_osxuniversal=no
9069fi
9070
9071
cristyc37574e2013-02-16 01:04:55 +00009072 if test "${build_osxuniversal}" != no ; then
9073 if test "$enable_dependency_tracking" != no ; then
9074 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009075Please re-run configure with these options:
9076 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009077 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009078 fi
9079 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9080 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9081 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009082 fi
9083 ;;
9084esac
9085
cristy0151ae12011-10-28 16:32:29 +00009086#
9087# ARCH specific include directory
9088#
9089
cristy670aa3c2011-11-03 00:54:00 +00009090# Check whether --with-includearch-dir was given.
9091if test "${with_includearch_dir+set}" = set; then :
9092 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009093else
cristy670aa3c2011-11-03 00:54:00 +00009094 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009095fi
9096
9097
cristyd286fd72013-02-24 19:25:33 +00009098eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009099
cristy0151ae12011-10-28 16:32:29 +00009100
9101#
9102# ARCH specific configuration directory
9103#
9104
cristy670aa3c2011-11-03 00:54:00 +00009105# Check whether --with-sharearch-dir was given.
9106if test "${with_sharearch_dir+set}" = set; then :
9107 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009108else
cristy408ebcd2011-11-14 01:36:57 +00009109 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009110fi
9111
9112
cristy670aa3c2011-11-03 00:54:00 +00009113eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009114
cristy0151ae12011-10-28 16:32:29 +00009115
cristy2ec87cc2013-02-18 17:46:50 +00009116# Path to the pkgconfig folder
9117
9118# Check whether --with-pkgconfigdir was given.
9119if test "${with_pkgconfigdir+set}" = set; then :
9120 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9121else
9122 pkgconfigdir='${libdir}/pkgconfig'
9123fi
9124
9125
9126
cristy0151ae12011-10-28 16:32:29 +00009127#
cristy3ed852e2009-09-05 21:47:34 +00009128# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009129#
9130# Find Posix threads library
9131#
cristy3ed852e2009-09-05 21:47:34 +00009132
9133# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009134if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009135 withval=$with_threads; with_threads=$withval
9136else
9137 with_threads='yes'
9138fi
9139
9140
cristy1ae5c992013-07-30 14:55:07 +00009141THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009142have_threads=no
9143if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009144
9145
cristy73bd4a52010-10-05 11:24:23 +00009146ac_ext=c
9147ac_cpp='$CPP $CPPFLAGS'
9148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150ac_compiler_gnu=$ac_cv_c_compiler_gnu
9151
9152ax_pthread_ok=no
9153
9154# We used to check for pthread.h first, but this fails if pthread.h
9155# requires special compiler flags (e.g. on True64 or Sequent).
9156# It gets checked for in the link test anyway.
9157
9158# First of all, check if the user has set any of the PTHREAD_LIBS,
9159# etcetera environment variables, and if threads linking works using
9160# them:
9161if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9162 save_CFLAGS="$CFLAGS"
9163 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9164 save_LIBS="$LIBS"
9165 LIBS="$PTHREAD_LIBS $LIBS"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9167$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h. */
9170
9171/* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174#ifdef __cplusplus
9175extern "C"
9176#endif
9177char pthread_join ();
9178int
9179main ()
9180{
9181return pthread_join ();
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187 ax_pthread_ok=yes
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9192$as_echo "$ax_pthread_ok" >&6; }
9193 if test x"$ax_pthread_ok" = xno; then
9194 PTHREAD_LIBS=""
9195 PTHREAD_CFLAGS=""
9196 fi
9197 LIBS="$save_LIBS"
9198 CFLAGS="$save_CFLAGS"
9199fi
9200
9201# We must check for the threads library under a number of different
9202# names; the ordering is very important because some systems
9203# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9204# libraries is broken (non-POSIX).
9205
9206# Create a list of thread flags to try. Items starting with a "-" are
9207# C compiler flags, and other items are library names, except for "none"
9208# which indicates that we try without any flags at all, and "pthread-config"
9209# which is a program returning the flags for the Pth emulation library.
9210
cristy2ec87cc2013-02-18 17:46:50 +00009211ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009212
9213# The ordering *is* (sometimes) important. Some notes on the
9214# individual items follow:
9215
9216# pthreads: AIX (must check this before -lpthread)
9217# none: in case threads are in libc; should be tried before -Kthread and
9218# other compiler flags to prevent continual compiler warnings
9219# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9220# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9221# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9222# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9223# -pthreads: Solaris/gcc
9224# -mthreads: Mingw32/gcc, Lynx/gcc
9225# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9226# doesn't hurt to check since this sometimes defines pthreads too;
9227# also defines -D_REENTRANT)
9228# ... -mt is also the pthreads flag for HP/aCC
9229# pthread: Linux, etcetera
9230# --thread-safe: KAI C++
9231# pthread-config: use pthread-config program (for GNU Pth library)
9232
cristy2ec87cc2013-02-18 17:46:50 +00009233case ${host_os} in
9234 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009235
9236 # On Solaris (at least, for some versions), libc contains stubbed
9237 # (non-functional) versions of the pthreads routines, so link-based
9238 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9239 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9240 # a function called by this macro, so we could check for that, but
9241 # who knows whether they'll stub that too in a future libc.) So,
9242 # we'll just look for -pthreads and -lpthread first:
9243
9244 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9245 ;;
9246
cristy2ec87cc2013-02-18 17:46:50 +00009247 darwin*)
cristya316db12011-10-24 00:49:45 +00009248 ax_pthread_flags="-pthread $ax_pthread_flags"
9249 ;;
cristy73bd4a52010-10-05 11:24:23 +00009250esac
9251
9252if test x"$ax_pthread_ok" = xno; then
9253for flag in $ax_pthread_flags; do
9254
9255 case $flag in
9256 none)
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9258$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9259 ;;
9260
9261 -*)
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9263$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9264 PTHREAD_CFLAGS="$flag"
9265 ;;
9266
cristya316db12011-10-24 00:49:45 +00009267 pthread-config)
9268 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009269set dummy pthread-config; ac_word=$2
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009272if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009273 $as_echo_n "(cached) " >&6
9274else
9275 if test -n "$ax_pthread_config"; then
9276 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9277else
9278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009285 ac_cv_prog_ax_pthread_config="yes"
9286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9288 fi
9289done
9290 done
9291IFS=$as_save_IFS
9292
9293 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9294fi
9295fi
9296ax_pthread_config=$ac_cv_prog_ax_pthread_config
9297if test -n "$ax_pthread_config"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9299$as_echo "$ax_pthread_config" >&6; }
9300else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
cristya316db12011-10-24 00:49:45 +00009306 if test x"$ax_pthread_config" = xno; then continue; fi
9307 PTHREAD_CFLAGS="`pthread-config --cflags`"
9308 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9309 ;;
cristy73bd4a52010-10-05 11:24:23 +00009310
9311 *)
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9313$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9314 PTHREAD_LIBS="-l$flag"
9315 ;;
9316 esac
9317
9318 save_LIBS="$LIBS"
9319 save_CFLAGS="$CFLAGS"
9320 LIBS="$PTHREAD_LIBS $LIBS"
9321 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9322
9323 # Check for various functions. We must include pthread.h,
9324 # since some functions may be macros. (On the Sequent, we
9325 # need a special flag -Kthread to make this header compile.)
9326 # We check for pthread_join because it is in -lpthread on IRIX
9327 # while pthread_create is in libc. We check for pthread_attr_init
9328 # due to DEC craziness with -lpthreads. We check for
9329 # pthread_cleanup_push because it is one of the few pthread
9330 # functions on Solaris that doesn't have a non-functional libc stub.
9331 # We try pthread_create on general principles.
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009335 static void routine(void *a) { a = 0; }
9336 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009337int
9338main ()
9339{
9340pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009341 pthread_create(&th, 0, start_routine, 0);
9342 pthread_join(th, 0);
9343 pthread_attr_init(&attr);
9344 pthread_cleanup_push(routine, 0);
9345 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009346 ;
9347 return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_link "$LINENO"; then :
9351 ax_pthread_ok=yes
9352fi
9353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355
9356 LIBS="$save_LIBS"
9357 CFLAGS="$save_CFLAGS"
9358
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9360$as_echo "$ax_pthread_ok" >&6; }
9361 if test "x$ax_pthread_ok" = xyes; then
9362 break;
9363 fi
9364
9365 PTHREAD_LIBS=""
9366 PTHREAD_CFLAGS=""
9367done
9368fi
9369
9370# Various other checks:
9371if test "x$ax_pthread_ok" = xyes; then
9372 save_LIBS="$LIBS"
9373 LIBS="$PTHREAD_LIBS $LIBS"
9374 save_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9376
9377 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009379$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009380 attr_name=unknown
9381 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009383/* end confdefs.h. */
9384#include <pthread.h>
9385int
9386main ()
9387{
cristya316db12011-10-24 00:49:45 +00009388int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 attr_name=$attr; break
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009398 done
cristy73bd4a52010-10-05 11:24:23 +00009399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9400$as_echo "$attr_name" >&6; }
9401 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9402
9403cat >>confdefs.h <<_ACEOF
9404#define PTHREAD_CREATE_JOINABLE $attr_name
9405_ACEOF
9406
9407 fi
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9410$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9411 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009412 case ${host_os} in
9413 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9414 osf* | hpux*) flag="-D_REENTRANT";;
9415 solaris*)
9416 if test "$GCC" = "yes"; then
9417 flag="-D_REENTRANT"
9418 else
9419 flag="-mt -D_REENTRANT"
9420 fi
9421 ;;
cristy73bd4a52010-10-05 11:24:23 +00009422 esac
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9424$as_echo "${flag}" >&6; }
9425 if test "x$flag" != xno; then
9426 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9427 fi
9428
cristya316db12011-10-24 00:49:45 +00009429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9430$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9431if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433else
9434
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h. */
9437
9438 #include <pthread.h>
9439int
9440main ()
9441{
9442int i = PTHREAD_PRIO_INHERIT;
9443 ;
9444 return 0;
9445}
9446_ACEOF
9447if ac_fn_c_try_link "$LINENO"; then :
9448 ax_cv_PTHREAD_PRIO_INHERIT=yes
9449else
9450 ax_cv_PTHREAD_PRIO_INHERIT=no
9451fi
9452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9457$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9458 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9459
9460$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9461
9462fi
9463
cristy73bd4a52010-10-05 11:24:23 +00009464 LIBS="$save_LIBS"
9465 CFLAGS="$save_CFLAGS"
9466
cristy23493c42013-04-11 16:04:59 +00009467 # More AIX lossage: compile with *_r variant
9468 if test "x$GCC" != xyes; then
9469 case $host_os in
9470 aix*)
9471 case "x/$CC" in #(
9472 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9473 #handle absolute path differently from PATH based program lookup
9474 case "x$CC" in #(
9475 x/*) :
9476 if as_fn_executable_p ${CC}_r; then :
9477 PTHREAD_CC="${CC}_r"
9478fi ;; #(
9479 *) :
9480 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009481do
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483set dummy $ac_prog; ac_word=$2
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009486if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009487 $as_echo_n "(cached) " >&6
9488else
9489 if test -n "$PTHREAD_CC"; then
9490 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9491else
9492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493for as_dir in $PATH
9494do
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009499 ac_cv_prog_PTHREAD_CC="$ac_prog"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9502 fi
9503done
9504 done
9505IFS=$as_save_IFS
9506
9507fi
9508fi
9509PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9510if test -n "$PTHREAD_CC"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9512$as_echo "$PTHREAD_CC" >&6; }
9513else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515$as_echo "no" >&6; }
9516fi
9517
9518
9519 test -n "$PTHREAD_CC" && break
9520done
cristy23493c42013-04-11 16:04:59 +00009521test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9522 ;;
9523esac ;; #(
9524 *) :
9525 ;;
9526esac
9527 ;;
9528 esac
cristya316db12011-10-24 00:49:45 +00009529 fi
cristy73bd4a52010-10-05 11:24:23 +00009530fi
9531
cristy23493c42013-04-11 16:04:59 +00009532test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9533
cristy73bd4a52010-10-05 11:24:23 +00009534
9535
9536
9537
9538# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9539if test x"$ax_pthread_ok" = xyes; then
9540
9541$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9542
9543 :
9544else
9545 ax_pthread_ok=no
9546
9547fi
9548ac_ext=c
9549ac_cpp='$CPP $CPPFLAGS'
9550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553
9554
cristy7acf8fb2010-09-23 19:58:53 +00009555 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009556 have_threads=yes
9557 DEF_THREAD="$PTHREAD_CFLAGS"
9558 CFLAGS="$CFLAGS $DEF_THREAD"
9559 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009560 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009561 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00009563$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9564 CC="$PTHREAD_CC"
9565 fi
cristy55bf91c2010-09-24 00:29:41 +00009566
9567$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9568
cristy3ed852e2009-09-05 21:47:34 +00009569 fi
9570fi
cristy1ae5c992013-07-30 14:55:07 +00009571LIBS="$LIBS $THREAD_LIBS"
9572
cristy3ed852e2009-09-05 21:47:34 +00009573
9574# Enable support for OpenMP
9575if test "$have_threads" != 'yes'; then
9576 ac_cv_prog_c_openmp=unsupported
9577fi
9578
9579 OPENMP_CFLAGS=
9580 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009581if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009582 enableval=$enable_openmp;
9583fi
9584
9585 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009588if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009589 $as_echo_n "(cached) " >&6
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009593
9594#ifndef _OPENMP
9595 choke me
9596#endif
9597#include <omp.h>
9598int main () { return omp_get_num_threads (); }
9599
9600_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009602 ac_cv_prog_c_openmp='none needed'
9603else
cristy8b350f62009-11-15 23:12:43 +00009604 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009605 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9606 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009607 ac_save_CFLAGS=$CFLAGS
9608 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009611
9612#ifndef _OPENMP
9613 choke me
9614#endif
9615#include <omp.h>
9616int main () { return omp_get_num_threads (); }
9617
9618_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009621fi
cristy8b350f62009-11-15 23:12:43 +00009622rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009624 CFLAGS=$ac_save_CFLAGS
9625 if test "$ac_cv_prog_c_openmp" != unsupported; then
9626 break
9627 fi
9628 done
9629fi
cristy8b350f62009-11-15 23:12:43 +00009630rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009632fi
cristy8b350f62009-11-15 23:12:43 +00009633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009634$as_echo "$ac_cv_prog_c_openmp" >&6; }
9635 case $ac_cv_prog_c_openmp in #(
9636 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009637 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009638 *)
cristy8b350f62009-11-15 23:12:43 +00009639 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009640 esac
9641 fi
9642
9643
9644CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9645MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9646
cristy391f1ce2010-09-09 17:23:28 +00009647if test "$enable_openmp" != no; then
9648 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9649 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9650 fi
9651fi
cristy3ed852e2009-09-05 21:47:34 +00009652
cristy736173a2009-09-20 21:18:22 +00009653# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009654
9655
cristy73bd4a52010-10-05 11:24:23 +00009656ac_ext=c
9657ac_cpp='$CPP $CPPFLAGS'
9658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660ac_compiler_gnu=$ac_cv_c_compiler_gnu
9661
9662ax_pthread_ok=no
9663
9664# We used to check for pthread.h first, but this fails if pthread.h
9665# requires special compiler flags (e.g. on True64 or Sequent).
9666# It gets checked for in the link test anyway.
9667
9668# First of all, check if the user has set any of the PTHREAD_LIBS,
9669# etcetera environment variables, and if threads linking works using
9670# them:
9671if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9672 save_CFLAGS="$CFLAGS"
9673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9674 save_LIBS="$LIBS"
9675 LIBS="$PTHREAD_LIBS $LIBS"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9677$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
9680
9681/* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684#ifdef __cplusplus
9685extern "C"
9686#endif
9687char pthread_join ();
9688int
9689main ()
9690{
9691return pthread_join ();
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697 ax_pthread_ok=yes
9698fi
9699rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9702$as_echo "$ax_pthread_ok" >&6; }
9703 if test x"$ax_pthread_ok" = xno; then
9704 PTHREAD_LIBS=""
9705 PTHREAD_CFLAGS=""
9706 fi
9707 LIBS="$save_LIBS"
9708 CFLAGS="$save_CFLAGS"
9709fi
9710
9711# We must check for the threads library under a number of different
9712# names; the ordering is very important because some systems
9713# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9714# libraries is broken (non-POSIX).
9715
9716# Create a list of thread flags to try. Items starting with a "-" are
9717# C compiler flags, and other items are library names, except for "none"
9718# which indicates that we try without any flags at all, and "pthread-config"
9719# which is a program returning the flags for the Pth emulation library.
9720
cristy2ec87cc2013-02-18 17:46:50 +00009721ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009722
9723# The ordering *is* (sometimes) important. Some notes on the
9724# individual items follow:
9725
9726# pthreads: AIX (must check this before -lpthread)
9727# none: in case threads are in libc; should be tried before -Kthread and
9728# other compiler flags to prevent continual compiler warnings
9729# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9730# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9731# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9732# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9733# -pthreads: Solaris/gcc
9734# -mthreads: Mingw32/gcc, Lynx/gcc
9735# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9736# doesn't hurt to check since this sometimes defines pthreads too;
9737# also defines -D_REENTRANT)
9738# ... -mt is also the pthreads flag for HP/aCC
9739# pthread: Linux, etcetera
9740# --thread-safe: KAI C++
9741# pthread-config: use pthread-config program (for GNU Pth library)
9742
cristy2ec87cc2013-02-18 17:46:50 +00009743case ${host_os} in
9744 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009745
9746 # On Solaris (at least, for some versions), libc contains stubbed
9747 # (non-functional) versions of the pthreads routines, so link-based
9748 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9749 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9750 # a function called by this macro, so we could check for that, but
9751 # who knows whether they'll stub that too in a future libc.) So,
9752 # we'll just look for -pthreads and -lpthread first:
9753
9754 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9755 ;;
9756
cristy2ec87cc2013-02-18 17:46:50 +00009757 darwin*)
cristya316db12011-10-24 00:49:45 +00009758 ax_pthread_flags="-pthread $ax_pthread_flags"
9759 ;;
cristy73bd4a52010-10-05 11:24:23 +00009760esac
9761
9762if test x"$ax_pthread_ok" = xno; then
9763for flag in $ax_pthread_flags; do
9764
9765 case $flag in
9766 none)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9768$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9769 ;;
9770
9771 -*)
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9773$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9774 PTHREAD_CFLAGS="$flag"
9775 ;;
9776
cristya316db12011-10-24 00:49:45 +00009777 pthread-config)
9778 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009779set dummy pthread-config; ac_word=$2
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009782if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009783 $as_echo_n "(cached) " >&6
9784else
9785 if test -n "$ax_pthread_config"; then
9786 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009795 ac_cv_prog_ax_pthread_config="yes"
9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800 done
9801IFS=$as_save_IFS
9802
9803 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9804fi
9805fi
9806ax_pthread_config=$ac_cv_prog_ax_pthread_config
9807if test -n "$ax_pthread_config"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9809$as_echo "$ax_pthread_config" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
cristya316db12011-10-24 00:49:45 +00009816 if test x"$ax_pthread_config" = xno; then continue; fi
9817 PTHREAD_CFLAGS="`pthread-config --cflags`"
9818 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9819 ;;
cristy73bd4a52010-10-05 11:24:23 +00009820
9821 *)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9823$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9824 PTHREAD_LIBS="-l$flag"
9825 ;;
9826 esac
9827
9828 save_LIBS="$LIBS"
9829 save_CFLAGS="$CFLAGS"
9830 LIBS="$PTHREAD_LIBS $LIBS"
9831 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9832
9833 # Check for various functions. We must include pthread.h,
9834 # since some functions may be macros. (On the Sequent, we
9835 # need a special flag -Kthread to make this header compile.)
9836 # We check for pthread_join because it is in -lpthread on IRIX
9837 # while pthread_create is in libc. We check for pthread_attr_init
9838 # due to DEC craziness with -lpthreads. We check for
9839 # pthread_cleanup_push because it is one of the few pthread
9840 # functions on Solaris that doesn't have a non-functional libc stub.
9841 # We try pthread_create on general principles.
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h. */
9844#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009845 static void routine(void *a) { a = 0; }
9846 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009847int
9848main ()
9849{
9850pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009851 pthread_create(&th, 0, start_routine, 0);
9852 pthread_join(th, 0);
9853 pthread_attr_init(&attr);
9854 pthread_cleanup_push(routine, 0);
9855 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009856 ;
9857 return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861 ax_pthread_ok=yes
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865
9866 LIBS="$save_LIBS"
9867 CFLAGS="$save_CFLAGS"
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9870$as_echo "$ax_pthread_ok" >&6; }
9871 if test "x$ax_pthread_ok" = xyes; then
9872 break;
9873 fi
9874
9875 PTHREAD_LIBS=""
9876 PTHREAD_CFLAGS=""
9877done
9878fi
9879
9880# Various other checks:
9881if test "x$ax_pthread_ok" = xyes; then
9882 save_LIBS="$LIBS"
9883 LIBS="$PTHREAD_LIBS $LIBS"
9884 save_CFLAGS="$CFLAGS"
9885 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9886
9887 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009889$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009890 attr_name=unknown
9891 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009893/* end confdefs.h. */
9894#include <pthread.h>
9895int
9896main ()
9897{
cristya316db12011-10-24 00:49:45 +00009898int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009899 ;
9900 return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904 attr_name=$attr; break
9905fi
9906rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009908 done
cristy73bd4a52010-10-05 11:24:23 +00009909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9910$as_echo "$attr_name" >&6; }
9911 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9912
9913cat >>confdefs.h <<_ACEOF
9914#define PTHREAD_CREATE_JOINABLE $attr_name
9915_ACEOF
9916
9917 fi
9918
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9920$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9921 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009922 case ${host_os} in
9923 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9924 osf* | hpux*) flag="-D_REENTRANT";;
9925 solaris*)
9926 if test "$GCC" = "yes"; then
9927 flag="-D_REENTRANT"
9928 else
9929 flag="-mt -D_REENTRANT"
9930 fi
9931 ;;
cristy73bd4a52010-10-05 11:24:23 +00009932 esac
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9934$as_echo "${flag}" >&6; }
9935 if test "x$flag" != xno; then
9936 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9937 fi
9938
cristya316db12011-10-24 00:49:45 +00009939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9940$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9941if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943else
9944
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946/* end confdefs.h. */
9947
9948 #include <pthread.h>
9949int
9950main ()
9951{
9952int i = PTHREAD_PRIO_INHERIT;
9953 ;
9954 return 0;
9955}
9956_ACEOF
9957if ac_fn_c_try_link "$LINENO"; then :
9958 ax_cv_PTHREAD_PRIO_INHERIT=yes
9959else
9960 ax_cv_PTHREAD_PRIO_INHERIT=no
9961fi
9962rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9967$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9968 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9969
9970$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9971
9972fi
9973
cristy73bd4a52010-10-05 11:24:23 +00009974 LIBS="$save_LIBS"
9975 CFLAGS="$save_CFLAGS"
9976
cristy23493c42013-04-11 16:04:59 +00009977 # More AIX lossage: compile with *_r variant
9978 if test "x$GCC" != xyes; then
9979 case $host_os in
9980 aix*)
9981 case "x/$CC" in #(
9982 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9983 #handle absolute path differently from PATH based program lookup
9984 case "x$CC" in #(
9985 x/*) :
9986 if as_fn_executable_p ${CC}_r; then :
9987 PTHREAD_CC="${CC}_r"
9988fi ;; #(
9989 *) :
9990 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009991do
9992 # Extract the first word of "$ac_prog", so it can be a program name with args.
9993set dummy $ac_prog; ac_word=$2
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009996if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009997 $as_echo_n "(cached) " >&6
9998else
9999 if test -n "$PTHREAD_CC"; then
10000 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010009 ac_cv_prog_PTHREAD_CC="$ac_prog"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014 done
10015IFS=$as_save_IFS
10016
10017fi
10018fi
10019PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10020if test -n "$PTHREAD_CC"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10022$as_echo "$PTHREAD_CC" >&6; }
10023else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
10026fi
10027
10028
10029 test -n "$PTHREAD_CC" && break
10030done
cristy23493c42013-04-11 16:04:59 +000010031test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10032 ;;
10033esac ;; #(
10034 *) :
10035 ;;
10036esac
10037 ;;
10038 esac
cristya316db12011-10-24 00:49:45 +000010039 fi
cristy73bd4a52010-10-05 11:24:23 +000010040fi
10041
cristy23493c42013-04-11 16:04:59 +000010042test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10043
cristy73bd4a52010-10-05 11:24:23 +000010044
10045
10046
10047
10048# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10049if test x"$ax_pthread_ok" = xyes; then
10050
10051$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10052
10053 :
10054else
10055 ax_pthread_ok=no
10056
10057fi
10058ac_ext=c
10059ac_cpp='$CPP $CPPFLAGS'
10060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10062ac_compiler_gnu=$ac_cv_c_compiler_gnu
10063
10064
10065
10066# Check whether --enable-opencl was given.
10067if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010068 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010069else
cristy48794642012-09-02 15:19:08 +000010070 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010071fi
10072
10073
cristy48794642012-09-02 15:19:08 +000010074if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010075 ac_ext=c
10076ac_cpp='$CPP $CPPFLAGS'
10077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10079ac_compiler_gnu=$ac_cv_c_compiler_gnu
10080
cristy75314cc2012-09-15 23:08:29 +000010081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10082$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10083if ${ax_cv_c_compiler_ms+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
10088
10089int
10090main ()
10091{
10092#ifndef _MSC_VER
10093 choke me
10094#endif
10095
10096 ;
10097 return 0;
10098}
10099_ACEOF
10100if ac_fn_c_try_compile "$LINENO"; then :
10101 ax_compiler_ms=yes
10102else
10103 ax_compiler_ms=no
10104fi
10105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106ax_cv_c_compiler_ms=$ax_compiler_ms
10107
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10110$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010111 if test X$ax_compiler_ms = Xno; then :
10112 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10113fi
10114
10115 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010116 ax_save_CL_CFLAGS=$CL_CFLAGS
10117
10118 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010119 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10120 for ac_header in CL/cl.h OpenCL/cl.h
10121do :
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010125 cat >>confdefs.h <<_ACEOF
10126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10127_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010128 found_opencl_header='yes'
10129 break;
10130else
10131 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010132fi
10133
10134done
10135
cristyfdc7d122013-08-17 20:46:45 +000010136
10137 if test X$found_opencl_header = Xno; then :
10138 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10139 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10140 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10141 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10142 for ac_header in CL/cl.h OpenCL/cl.h
10143do :
10144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10147 cat >>confdefs.h <<_ACEOF
10148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10149_ACEOF
10150 found_opencl_header='yes'
10151 break;
10152else
10153 found_opencl_header='no'
10154fi
10155
10156done
10157
10158
10159fi
10160
10161 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010162
10163 for ac_header in windows.h
10164do :
10165 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010166if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010167 cat >>confdefs.h <<_ACEOF
10168#define HAVE_WINDOWS_H 1
10169_ACEOF
10170
10171fi
10172
10173done
10174
10175
10176
10177
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10179$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010180if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010181 $as_echo_n "(cached) " >&6
10182else
10183 ax_cv_check_cl_libcl=no
10184 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010185 x86_64) ax_check_cl_libdir=lib64
10186 ax_check_cl_amd_libdir=x86_64
10187 ;;
10188 *) ax_check_cl_libdir=lib
10189 ax_check_cl_amd_libdir=x86
10190 ;;
cristy73bd4a52010-10-05 11:24:23 +000010191 esac
10192 ax_save_CPPFLAGS=$CPPFLAGS
10193 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10194 ax_save_LIBS=$LIBS
10195 LIBS=""
10196 ax_check_libs="-lOpenCL -lCL -lclparser"
10197 for ax_lib in $ax_check_libs; do
10198 if test X$ax_compiler_ms = Xyes; then :
10199 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10200else
10201 ax_try_lib=$ax_lib
10202fi
10203 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205/* end confdefs.h. */
10206
10207 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10208 # include <windows.h>
10209 # endif
10210 # ifdef HAVE_CL_CL_H
10211 # include <CL/cl.h>
10212 # elif defined(HAVE_OPENCL_CL_H)
10213 # include <OpenCL/cl.h>
10214 # else
10215 # error no CL.h
10216 # endif
10217int
10218main ()
10219{
10220clCreateContextFromType(0,0,0,0,0)
10221 ;
10222 return 0;
10223}
10224_ACEOF
10225if ac_fn_c_try_link "$LINENO"; then :
10226 ax_cv_check_cl_libcl=$ax_try_lib; break
10227else
10228 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h. */
10231
10232 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10233 # include <windows.h>
10234 # endif
10235 # ifdef HAVE_CL_CL_H
10236 # include <CL/cl.h>
10237 # elif defined(HAVE_OPENCL_CL_H)
10238 # include <OpenCL/cl.h>
10239 # else
10240 # error no CL.h
10241 # endif
10242int
10243main ()
10244{
10245clCreateContextFromType(0,0,0,0,0)
10246 ;
10247 return 0;
10248}
10249_ACEOF
10250if ac_fn_c_try_link "$LINENO"; then :
10251 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10252else
cristy78c5a0c2010-12-04 20:00:59 +000010253 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy73bd4a52010-10-05 11:24:23 +000010254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h. */
10256
10257 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10258 # include <windows.h>
10259 # endif
10260 # ifdef HAVE_CL_CL_H
10261 # include <CL/cl.h>
10262 # elif defined(HAVE_OPENCL_CL_H)
10263 # include <OpenCL/cl.h>
10264 # else
10265 # error no CL.h
10266 # endif
10267int
10268main ()
10269{
10270clCreateContextFromType(0,0,0,0,0)
10271 ;
10272 return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"; then :
10276 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010277else
10278 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h. */
10281
10282 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10283 # include <windows.h>
10284 # endif
10285 # ifdef HAVE_CL_CL_H
10286 # include <CL/cl.h>
10287 # elif defined(HAVE_OPENCL_CL_H)
10288 # include <OpenCL/cl.h>
10289 # else
10290 # error no CL.h
10291 # endif
10292int
10293main ()
10294{
10295clCreateContextFromType(0,0,0,0,0)
10296 ;
10297 return 0;
10298}
10299_ACEOF
10300if ac_fn_c_try_link "$LINENO"; then :
10301 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10302
10303fi
10304rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306
10307
cristy73bd4a52010-10-05 11:24:23 +000010308fi
10309rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311fi
10312rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314fi
10315rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 done
10318
cristyc3f8b8e2011-12-22 14:55:16 +000010319 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010320 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h. */
10323
10324 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10325 # include <windows.h>
10326 # endif
10327 # ifdef HAVE_CL_CL_H
10328 # include <CL/cl.h>
10329 # elif defined(HAVE_OPENCL_CL_H)
10330 # include <OpenCL/cl.h>
10331 # else
10332 # error no CL.h
10333 # endif
10334int
10335main ()
10336{
10337clCreateContextFromType(0,0,0,0,0)
10338 ;
10339 return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_link "$LINENO"; then :
10343 ax_cv_check_cl_libcl=$LIBS
10344fi
10345rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347fi
10348
10349 LIBS=$ax_save_LIBS
10350 CPPFLAGS=$ax_save_CPPFLAGS
10351fi
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10353$as_echo "$ax_cv_check_cl_libcl" >&6; }
10354
10355 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10356 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10357else
10358 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10359$as_echo "#define _OPENCL 1" >>confdefs.h
10360
10361fi
10362 ac_ext=c
10363ac_cpp='$CPP $CPPFLAGS'
10364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10366ac_compiler_gnu=$ac_cv_c_compiler_gnu
10367
10368fi
10369
10370
10371
10372
cristyc7083c12009-10-14 03:16:55 +000010373CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010374CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010375LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010376
cristy391f1ce2010-09-09 17:23:28 +000010377if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010378 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010379 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10380 fi
cristyfd9dcd42010-08-08 18:07:02 +000010381fi
cristy2e8b51d2009-10-17 18:26:15 +000010382
cristy3ed852e2009-09-05 21:47:34 +000010383########
10384#
10385# Check for large file support
10386#
10387########
10388# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010389if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010390 enableval=$enable_largefile;
10391fi
10392
10393if test "$enable_largefile" != no; then
10394
cristy8b350f62009-11-15 23:12:43 +000010395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010396$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010397if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010398 $as_echo_n "(cached) " >&6
10399else
10400 ac_cv_sys_largefile_CC=no
10401 if test "$GCC" != yes; then
10402 ac_save_CC=$CC
10403 while :; do
10404 # IRIX 6.2 and later do not support large files by default,
10405 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010407/* end confdefs.h. */
10408#include <sys/types.h>
10409 /* Check that off_t can represent 2**63 - 1 correctly.
10410 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10411 since some C++ compilers masquerading as C compilers
10412 incorrectly reject 9223372036854775807. */
10413#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10414 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10415 && LARGE_OFF_T % 2147483647 == 1)
10416 ? 1 : -1];
10417int
10418main ()
10419{
10420
10421 ;
10422 return 0;
10423}
10424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010425 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010426 break
cristy3ed852e2009-09-05 21:47:34 +000010427fi
cristy3ed852e2009-09-05 21:47:34 +000010428rm -f core conftest.err conftest.$ac_objext
10429 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010430 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010431 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010432fi
cristy3ed852e2009-09-05 21:47:34 +000010433rm -f core conftest.err conftest.$ac_objext
10434 break
10435 done
10436 CC=$ac_save_CC
10437 rm -f conftest.$ac_ext
10438 fi
10439fi
cristy8b350f62009-11-15 23:12:43 +000010440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010441$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10442 if test "$ac_cv_sys_largefile_CC" != no; then
10443 CC=$CC$ac_cv_sys_largefile_CC
10444 fi
10445
cristy8b350f62009-11-15 23:12:43 +000010446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010447$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010448if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010449 $as_echo_n "(cached) " >&6
10450else
10451 while :; do
cristy8b350f62009-11-15 23:12:43 +000010452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010453/* end confdefs.h. */
10454#include <sys/types.h>
10455 /* Check that off_t can represent 2**63 - 1 correctly.
10456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10457 since some C++ compilers masquerading as C compilers
10458 incorrectly reject 9223372036854775807. */
10459#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10461 && LARGE_OFF_T % 2147483647 == 1)
10462 ? 1 : -1];
10463int
10464main ()
10465{
10466
10467 ;
10468 return 0;
10469}
10470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010472 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010473fi
cristy3ed852e2009-09-05 21:47:34 +000010474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010476/* end confdefs.h. */
10477#define _FILE_OFFSET_BITS 64
10478#include <sys/types.h>
10479 /* Check that off_t can represent 2**63 - 1 correctly.
10480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10481 since some C++ compilers masquerading as C compilers
10482 incorrectly reject 9223372036854775807. */
10483#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10485 && LARGE_OFF_T % 2147483647 == 1)
10486 ? 1 : -1];
10487int
10488main ()
10489{
10490
10491 ;
10492 return 0;
10493}
10494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010496 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010497fi
cristy3ed852e2009-09-05 21:47:34 +000010498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 ac_cv_sys_file_offset_bits=unknown
10500 break
10501done
10502fi
cristy8b350f62009-11-15 23:12:43 +000010503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10505case $ac_cv_sys_file_offset_bits in #(
10506 no | unknown) ;;
10507 *)
10508cat >>confdefs.h <<_ACEOF
10509#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10510_ACEOF
10511;;
10512esac
10513rm -rf conftest*
10514 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010516$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010517if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010518 $as_echo_n "(cached) " >&6
10519else
10520 while :; do
cristy8b350f62009-11-15 23:12:43 +000010521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010522/* end confdefs.h. */
10523#include <sys/types.h>
10524 /* Check that off_t can represent 2**63 - 1 correctly.
10525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10526 since some C++ compilers masquerading as C compilers
10527 incorrectly reject 9223372036854775807. */
10528#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10530 && LARGE_OFF_T % 2147483647 == 1)
10531 ? 1 : -1];
10532int
10533main ()
10534{
10535
10536 ;
10537 return 0;
10538}
10539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010540if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010541 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010542fi
cristy3ed852e2009-09-05 21:47:34 +000010543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010545/* end confdefs.h. */
10546#define _LARGE_FILES 1
10547#include <sys/types.h>
10548 /* Check that off_t can represent 2**63 - 1 correctly.
10549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10550 since some C++ compilers masquerading as C compilers
10551 incorrectly reject 9223372036854775807. */
10552#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10554 && LARGE_OFF_T % 2147483647 == 1)
10555 ? 1 : -1];
10556int
10557main ()
10558{
10559
10560 ;
10561 return 0;
10562}
10563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010564if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010565 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010566fi
cristy3ed852e2009-09-05 21:47:34 +000010567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 ac_cv_sys_large_files=unknown
10569 break
10570done
10571fi
cristy8b350f62009-11-15 23:12:43 +000010572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010573$as_echo "$ac_cv_sys_large_files" >&6; }
10574case $ac_cv_sys_large_files in #(
10575 no | unknown) ;;
10576 *)
10577cat >>confdefs.h <<_ACEOF
10578#define _LARGE_FILES $ac_cv_sys_large_files
10579_ACEOF
10580;;
10581esac
10582rm -rf conftest*
10583 fi
cristy14fefe52012-05-21 00:59:18 +000010584
10585
cristy3ed852e2009-09-05 21:47:34 +000010586fi
10587
cristy8b350f62009-11-15 23:12:43 +000010588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010589$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010590if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010591 $as_echo_n "(cached) " >&6
10592else
10593 while :; do
cristy8b350f62009-11-15 23:12:43 +000010594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010595/* end confdefs.h. */
10596#include <sys/types.h> /* for off_t */
10597 #include <stdio.h>
10598int
10599main ()
10600{
10601int (*fp) (FILE *, off_t, int) = fseeko;
10602 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10603 ;
10604 return 0;
10605}
10606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010608 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010609fi
cristy8b350f62009-11-15 23:12:43 +000010610rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010613/* end confdefs.h. */
10614#define _LARGEFILE_SOURCE 1
10615#include <sys/types.h> /* for off_t */
10616 #include <stdio.h>
10617int
10618main ()
10619{
10620int (*fp) (FILE *, off_t, int) = fseeko;
10621 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10622 ;
10623 return 0;
10624}
10625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010627 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010628fi
cristy8b350f62009-11-15 23:12:43 +000010629rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010631 ac_cv_sys_largefile_source=unknown
10632 break
10633done
10634fi
cristy8b350f62009-11-15 23:12:43 +000010635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010636$as_echo "$ac_cv_sys_largefile_source" >&6; }
10637case $ac_cv_sys_largefile_source in #(
10638 no | unknown) ;;
10639 *)
10640cat >>confdefs.h <<_ACEOF
10641#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10642_ACEOF
10643;;
10644esac
10645rm -rf conftest*
10646
10647# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10648# in glibc 2.1.3, but that breaks too many other things.
10649# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10650if test $ac_cv_sys_largefile_source != unknown; then
10651
cristy8b350f62009-11-15 23:12:43 +000010652$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010653
10654fi
10655
10656LFS_CPPFLAGS=''
10657if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010658 case $ac_cv_sys_file_offset_bits in
10659 no)
10660 # nothing to do here as the host supports LFS fine
10661 ;;
10662 unknown)
cristy8b350f62009-11-15 23:12:43 +000010663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010664$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010665 if test "$cross_compiling" = yes; then :
10666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010668as_fn_error $? "cannot run test program while cross compiling
10669See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010670else
cristy8b350f62009-11-15 23:12:43 +000010671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010673#include <unistd.h>
10674 main () {
10675 exit(!(sizeof(off_t) == 8));
10676 }
cristyda16f162011-02-19 23:52:17 +000010677int
10678main ()
10679{
10680
10681 ;
10682 return 0;
10683}
cristy3ed852e2009-09-05 21:47:34 +000010684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010685if ac_fn_c_try_run "$LINENO"; then :
10686 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010687
cristyad38abe2012-12-23 23:03:21 +000010688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010690else
cristyad38abe2012-12-23 23:03:21 +000010691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010693fi
cristy8b350f62009-11-15 23:12:43 +000010694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10695 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010696fi
10697
cristyc1e0cc12011-09-21 16:41:16 +000010698 ;;
10699 *)
10700 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10701 ;;
10702 esac
cristy3ed852e2009-09-05 21:47:34 +000010703 if test "$ac_cv_sys_large_files" != 'no'; then
10704 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10705 fi
10706 if test "$ac_cv_sys_largefile_source" != 'no'; then
10707 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10708 fi
10709fi
10710
10711
cristy3ed852e2009-09-05 21:47:34 +000010712# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010713enable_dlopen=yes
10714
10715
10716
10717case `pwd` in
10718 *\ * | *\ *)
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10720$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10721esac
10722
10723
10724
cristy99bd5232011-12-07 14:38:20 +000010725macro_version='2.4.2'
10726macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740ltmain="$ac_aux_dir/ltmain.sh"
10741
cristy0c60a692010-11-04 01:09:47 +000010742# Backslashify metacharacters that are still active within
10743# double-quoted strings.
10744sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10745
10746# Same as above, but do not quote variable references.
10747double_quote_subst='s/\(["`\\]\)/\\\1/g'
10748
10749# Sed substitution to delay expansion of an escaped shell variable in a
10750# double_quote_subst'ed string.
10751delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10752
10753# Sed substitution to delay expansion of an escaped single quote.
10754delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10755
10756# Sed substitution to avoid accidental globbing in evaled expressions
10757no_glob_subst='s/\*/\\\*/g'
10758
cristy73bd4a52010-10-05 11:24:23 +000010759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10760$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010761if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010762 $as_echo_n "(cached) " >&6
10763else
10764 if test -n "$NM"; then
10765 # Let the user override the test.
10766 lt_cv_path_NM="$NM"
10767else
10768 lt_nm_to_check="${ac_tool_prefix}nm"
10769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10770 lt_nm_to_check="$lt_nm_to_check nm"
10771 fi
10772 for lt_tmp_nm in $lt_nm_to_check; do
10773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10775 IFS="$lt_save_ifs"
10776 test -z "$ac_dir" && ac_dir=.
10777 tmp_nm="$ac_dir/$lt_tmp_nm"
10778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10779 # Check to see if the nm accepts a BSD-compat flag.
10780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10781 # nm: unknown option "B" ignored
10782 # Tru64's nm complains that /dev/null is an invalid object file
10783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10784 */dev/null* | *'Invalid file or object type'*)
10785 lt_cv_path_NM="$tmp_nm -B"
10786 break
10787 ;;
10788 *)
10789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10790 */dev/null*)
10791 lt_cv_path_NM="$tmp_nm -p"
10792 break
10793 ;;
10794 *)
10795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10796 continue # so that we can try to find one that supports BSD flags
10797 ;;
10798 esac
10799 ;;
10800 esac
10801 fi
10802 done
10803 IFS="$lt_save_ifs"
10804 done
10805 : ${lt_cv_path_NM=no}
10806fi
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10809$as_echo "$lt_cv_path_NM" >&6; }
10810if test "$lt_cv_path_NM" != "no"; then
10811 NM="$lt_cv_path_NM"
10812else
10813 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010814 if test -n "$DUMPBIN"; then :
10815 # Let the user override the test.
10816 else
10817 if test -n "$ac_tool_prefix"; then
10818 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010819 do
10820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010824if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010825 $as_echo_n "(cached) " >&6
10826else
10827 if test -n "$DUMPBIN"; then
10828 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10829else
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010837 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10840 fi
10841done
10842 done
10843IFS=$as_save_IFS
10844
10845fi
10846fi
10847DUMPBIN=$ac_cv_prog_DUMPBIN
10848if test -n "$DUMPBIN"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10850$as_echo "$DUMPBIN" >&6; }
10851else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
10854fi
10855
10856
10857 test -n "$DUMPBIN" && break
10858 done
10859fi
10860if test -z "$DUMPBIN"; then
10861 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010862 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010863do
10864 # Extract the first word of "$ac_prog", so it can be a program name with args.
10865set dummy $ac_prog; ac_word=$2
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010868if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010869 $as_echo_n "(cached) " >&6
10870else
10871 if test -n "$ac_ct_DUMPBIN"; then
10872 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10873else
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010881 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885done
10886 done
10887IFS=$as_save_IFS
10888
10889fi
10890fi
10891ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10892if test -n "$ac_ct_DUMPBIN"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10894$as_echo "$ac_ct_DUMPBIN" >&6; }
10895else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897$as_echo "no" >&6; }
10898fi
10899
10900
10901 test -n "$ac_ct_DUMPBIN" && break
10902done
10903
10904 if test "x$ac_ct_DUMPBIN" = x; then
10905 DUMPBIN=":"
10906 else
10907 case $cross_compiling:$ac_tool_warned in
10908yes:)
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10911ac_tool_warned=yes ;;
10912esac
10913 DUMPBIN=$ac_ct_DUMPBIN
10914 fi
10915fi
10916
cristy0c60a692010-11-04 01:09:47 +000010917 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10918 *COFF*)
10919 DUMPBIN="$DUMPBIN -symbols"
10920 ;;
10921 *)
10922 DUMPBIN=:
10923 ;;
10924 esac
10925 fi
cristy73bd4a52010-10-05 11:24:23 +000010926
10927 if test "$DUMPBIN" != ":"; then
10928 NM="$DUMPBIN"
10929 fi
10930fi
10931test -z "$NM" && NM=nm
10932
10933
10934
10935
10936
10937
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10939$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010940if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010941 $as_echo_n "(cached) " >&6
10942else
10943 lt_cv_nm_interface="BSD nm"
10944 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010945 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010946 (eval "$ac_compile" 2>conftest.err)
10947 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010948 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010949 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10950 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010951 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010952 cat conftest.out >&5
10953 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10954 lt_cv_nm_interface="MS dumpbin"
10955 fi
10956 rm -f conftest*
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10959$as_echo "$lt_cv_nm_interface" >&6; }
10960
10961# find the maximum length of command line arguments
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10963$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010964if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010965 $as_echo_n "(cached) " >&6
10966else
10967 i=0
10968 teststring="ABCD"
10969
10970 case $build_os in
10971 msdosdjgpp*)
10972 # On DJGPP, this test can blow up pretty badly due to problems in libc
10973 # (any single argument exceeding 2000 bytes causes a buffer overrun
10974 # during glob expansion). Even if it were fixed, the result of this
10975 # check would be larger than it should be.
10976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10977 ;;
10978
10979 gnu*)
10980 # Under GNU Hurd, this test is not required because there is
10981 # no limit to the length of command line arguments.
10982 # Libtool will interpret -1 as no limit whatsoever
10983 lt_cv_sys_max_cmd_len=-1;
10984 ;;
10985
10986 cygwin* | mingw* | cegcc*)
10987 # On Win9x/ME, this test blows up -- it succeeds, but takes
10988 # about 5 minutes as the teststring grows exponentially.
10989 # Worse, since 9x/ME are not pre-emptively multitasking,
10990 # you end up with a "frozen" computer, even though with patience
10991 # the test eventually succeeds (with a max line length of 256k).
10992 # Instead, let's just punt: use the minimum linelength reported by
10993 # all of the supported platforms: 8192 (on NT/2K/XP).
10994 lt_cv_sys_max_cmd_len=8192;
10995 ;;
10996
cristy0c60a692010-11-04 01:09:47 +000010997 mint*)
10998 # On MiNT this can take a long time and run out of memory.
10999 lt_cv_sys_max_cmd_len=8192;
11000 ;;
11001
cristy73bd4a52010-10-05 11:24:23 +000011002 amigaos*)
11003 # On AmigaOS with pdksh, this test takes hours, literally.
11004 # So we just punt and use a minimum line length of 8192.
11005 lt_cv_sys_max_cmd_len=8192;
11006 ;;
11007
11008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11009 # This has been around since 386BSD, at least. Likely further.
11010 if test -x /sbin/sysctl; then
11011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11012 elif test -x /usr/sbin/sysctl; then
11013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11014 else
11015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11016 fi
11017 # And add a safety zone
11018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11020 ;;
11021
11022 interix*)
11023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11024 lt_cv_sys_max_cmd_len=196608
11025 ;;
11026
cristy99bd5232011-12-07 14:38:20 +000011027 os2*)
11028 # The test takes a long time on OS/2.
11029 lt_cv_sys_max_cmd_len=8192
11030 ;;
11031
cristy73bd4a52010-10-05 11:24:23 +000011032 osf*)
11033 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11034 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11035 # nice to cause kernel panics so lets avoid the loop below.
11036 # First set a reasonable default.
11037 lt_cv_sys_max_cmd_len=16384
11038 #
11039 if test -x /sbin/sysconfig; then
11040 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11041 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11042 esac
11043 fi
11044 ;;
11045 sco3.2v5*)
11046 lt_cv_sys_max_cmd_len=102400
11047 ;;
11048 sysv5* | sco5v6* | sysv4.2uw2*)
11049 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11050 if test -n "$kargmax"; then
11051 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11052 else
11053 lt_cv_sys_max_cmd_len=32768
11054 fi
11055 ;;
11056 *)
11057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11058 if test -n "$lt_cv_sys_max_cmd_len"; then
11059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11061 else
11062 # Make teststring a little bigger before we do anything with it.
11063 # a 1K string should be a reasonable start.
11064 for i in 1 2 3 4 5 6 7 8 ; do
11065 teststring=$teststring$teststring
11066 done
11067 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11068 # If test is not a shell built-in, we'll probably end up computing a
11069 # maximum length that is only half of the actual maximum length, but
11070 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011071 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011072 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011073 test $i != 17 # 1/2 MB should be enough
11074 do
11075 i=`expr $i + 1`
11076 teststring=$teststring$teststring
11077 done
11078 # Only check the string length outside the loop.
11079 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11080 teststring=
11081 # Add a significant safety factor because C++ compilers can tack on
11082 # massive amounts of additional arguments before passing them to the
11083 # linker. It appears as though 1/2 is a usable value.
11084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11085 fi
11086 ;;
11087 esac
11088
11089fi
11090
11091if test -n $lt_cv_sys_max_cmd_len ; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11093$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11094else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11096$as_echo "none" >&6; }
11097fi
11098max_cmd_len=$lt_cv_sys_max_cmd_len
11099
11100
11101
11102
11103
11104
11105: ${CP="cp -f"}
11106: ${MV="mv -f"}
11107: ${RM="rm -f"}
11108
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11110$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11111# Try some XSI features
11112xsi_shell=no
11113( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011114 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11115 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011116 && eval 'test $(( 1 + 1 )) -eq 2 \
11117 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11118 && xsi_shell=yes
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11120$as_echo "$xsi_shell" >&6; }
11121
11122
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11124$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11125lt_shell_append=no
11126( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11127 >/dev/null 2>&1 \
11128 && lt_shell_append=yes
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11130$as_echo "$lt_shell_append" >&6; }
11131
11132
11133if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11134 lt_unset=unset
11135else
11136 lt_unset=false
11137fi
11138
11139
11140
11141
11142
11143# test EBCDIC or ASCII
11144case `echo X|tr X '\101'` in
11145 A) # ASCII based system
11146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11147 lt_SP2NL='tr \040 \012'
11148 lt_NL2SP='tr \015\012 \040\040'
11149 ;;
11150 *) # EBCDIC based system
11151 lt_SP2NL='tr \100 \n'
11152 lt_NL2SP='tr \r\n \100\100'
11153 ;;
11154esac
11155
11156
11157
11158
11159
11160
11161
11162
11163
cristyda16f162011-02-19 23:52:17 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11165$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11166if ${lt_cv_to_host_file_cmd+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168else
11169 case $host in
11170 *-*-mingw* )
11171 case $build in
11172 *-*-mingw* ) # actually msys
11173 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11174 ;;
11175 *-*-cygwin* )
11176 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11177 ;;
11178 * ) # otherwise, assume *nix
11179 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11180 ;;
11181 esac
11182 ;;
11183 *-*-cygwin* )
11184 case $build in
11185 *-*-mingw* ) # actually msys
11186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11187 ;;
11188 *-*-cygwin* )
11189 lt_cv_to_host_file_cmd=func_convert_file_noop
11190 ;;
11191 * ) # otherwise, assume *nix
11192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11193 ;;
11194 esac
11195 ;;
11196 * ) # unhandled hosts (and "normal" native builds)
11197 lt_cv_to_host_file_cmd=func_convert_file_noop
11198 ;;
11199esac
11200
11201fi
11202
11203to_host_file_cmd=$lt_cv_to_host_file_cmd
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11205$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11206
11207
11208
11209
11210
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11212$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11213if ${lt_cv_to_tool_file_cmd+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215else
11216 #assume ordinary cross tools, or native build.
11217lt_cv_to_tool_file_cmd=func_convert_file_noop
11218case $host in
11219 *-*-mingw* )
11220 case $build in
11221 *-*-mingw* ) # actually msys
11222 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11223 ;;
11224 esac
11225 ;;
11226esac
11227
11228fi
11229
11230to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11232$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11233
11234
11235
11236
11237
cristy73bd4a52010-10-05 11:24:23 +000011238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11239$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011240if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011241 $as_echo_n "(cached) " >&6
11242else
11243 lt_cv_ld_reload_flag='-r'
11244fi
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11246$as_echo "$lt_cv_ld_reload_flag" >&6; }
11247reload_flag=$lt_cv_ld_reload_flag
11248case $reload_flag in
11249"" | " "*) ;;
11250*) reload_flag=" $reload_flag" ;;
11251esac
11252reload_cmds='$LD$reload_flag -o $output$reload_objs'
11253case $host_os in
cristyda16f162011-02-19 23:52:17 +000011254 cygwin* | mingw* | pw32* | cegcc*)
11255 if test "$GCC" != yes; then
11256 reload_cmds=false
11257 fi
11258 ;;
cristy73bd4a52010-10-05 11:24:23 +000011259 darwin*)
11260 if test "$GCC" = yes; then
11261 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11262 else
11263 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11264 fi
11265 ;;
11266esac
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276if test -n "$ac_tool_prefix"; then
11277 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11278set dummy ${ac_tool_prefix}objdump; ac_word=$2
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011281if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011282 $as_echo_n "(cached) " >&6
11283else
11284 if test -n "$OBJDUMP"; then
11285 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11286else
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011294 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11297 fi
11298done
11299 done
11300IFS=$as_save_IFS
11301
11302fi
11303fi
11304OBJDUMP=$ac_cv_prog_OBJDUMP
11305if test -n "$OBJDUMP"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11307$as_echo "$OBJDUMP" >&6; }
11308else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
11311fi
11312
11313
11314fi
11315if test -z "$ac_cv_prog_OBJDUMP"; then
11316 ac_ct_OBJDUMP=$OBJDUMP
11317 # Extract the first word of "objdump", so it can be a program name with args.
11318set dummy objdump; ac_word=$2
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011321if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011322 $as_echo_n "(cached) " >&6
11323else
11324 if test -n "$ac_ct_OBJDUMP"; then
11325 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11326else
11327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011334 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338done
11339 done
11340IFS=$as_save_IFS
11341
11342fi
11343fi
11344ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11345if test -n "$ac_ct_OBJDUMP"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11347$as_echo "$ac_ct_OBJDUMP" >&6; }
11348else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352
11353 if test "x$ac_ct_OBJDUMP" = x; then
11354 OBJDUMP="false"
11355 else
11356 case $cross_compiling:$ac_tool_warned in
11357yes:)
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11360ac_tool_warned=yes ;;
11361esac
11362 OBJDUMP=$ac_ct_OBJDUMP
11363 fi
11364else
11365 OBJDUMP="$ac_cv_prog_OBJDUMP"
11366fi
11367
11368test -z "$OBJDUMP" && OBJDUMP=objdump
11369
11370
11371
11372
11373
11374
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11376$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011377if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011378 $as_echo_n "(cached) " >&6
11379else
11380 lt_cv_file_magic_cmd='$MAGIC_CMD'
11381lt_cv_file_magic_test_file=
11382lt_cv_deplibs_check_method='unknown'
11383# Need to set the preceding variable on all platforms that support
11384# interlibrary dependencies.
11385# 'none' -- dependencies not supported.
11386# `unknown' -- same as none, but documents that we really don't know.
11387# 'pass_all' -- all dependencies passed with no checks.
11388# 'test_compile' -- check by making test program.
11389# 'file_magic [[regex]]' -- check by looking for files in library path
11390# which responds to the $file_magic_cmd with a given extended regex.
11391# If you have `file' or equivalent on your system and you're not sure
11392# whether `pass_all' will *always* work, you probably want this one.
11393
11394case $host_os in
11395aix[4-9]*)
11396 lt_cv_deplibs_check_method=pass_all
11397 ;;
11398
11399beos*)
11400 lt_cv_deplibs_check_method=pass_all
11401 ;;
11402
11403bsdi[45]*)
11404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11405 lt_cv_file_magic_cmd='/usr/bin/file -L'
11406 lt_cv_file_magic_test_file=/shlib/libc.so
11407 ;;
11408
11409cygwin*)
11410 # func_win32_libid is a shell function defined in ltmain.sh
11411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11412 lt_cv_file_magic_cmd='func_win32_libid'
11413 ;;
11414
11415mingw* | pw32*)
11416 # Base MSYS/MinGW do not provide the 'file' command needed by
11417 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11418 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011419 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11420 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011421 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11422 lt_cv_file_magic_cmd='func_win32_libid'
11423 else
cristy0c60a692010-11-04 01:09:47 +000011424 # Keep this pattern in sync with the one in func_win32_libid.
11425 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000011426 lt_cv_file_magic_cmd='$OBJDUMP -f'
11427 fi
11428 ;;
11429
cristy0c60a692010-11-04 01:09:47 +000011430cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011431 # use the weaker test based on 'objdump'. See mingw*.
11432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11433 lt_cv_file_magic_cmd='$OBJDUMP -f'
11434 ;;
11435
11436darwin* | rhapsody*)
11437 lt_cv_deplibs_check_method=pass_all
11438 ;;
11439
11440freebsd* | dragonfly*)
11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11442 case $host_cpu in
11443 i*86 )
11444 # Not sure whether the presence of OpenBSD here was a mistake.
11445 # Let's accept both of them until this is cleared up.
11446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11447 lt_cv_file_magic_cmd=/usr/bin/file
11448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11449 ;;
11450 esac
11451 else
11452 lt_cv_deplibs_check_method=pass_all
11453 fi
11454 ;;
11455
11456gnu*)
11457 lt_cv_deplibs_check_method=pass_all
11458 ;;
11459
cristy0c60a692010-11-04 01:09:47 +000011460haiku*)
11461 lt_cv_deplibs_check_method=pass_all
11462 ;;
11463
cristy73bd4a52010-10-05 11:24:23 +000011464hpux10.20* | hpux11*)
11465 lt_cv_file_magic_cmd=/usr/bin/file
11466 case $host_cpu in
11467 ia64*)
11468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11470 ;;
11471 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000011473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11474 ;;
11475 *)
cristy0c60a692010-11-04 01:09:47 +000011476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11478 ;;
11479 esac
11480 ;;
11481
11482interix[3-9]*)
11483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11485 ;;
11486
11487irix5* | irix6* | nonstopux*)
11488 case $LD in
11489 *-32|*"-32 ") libmagic=32-bit;;
11490 *-n32|*"-n32 ") libmagic=N32;;
11491 *-64|*"-64 ") libmagic=64-bit;;
11492 *) libmagic=never-match;;
11493 esac
11494 lt_cv_deplibs_check_method=pass_all
11495 ;;
11496
cristy99bd5232011-12-07 14:38:20 +000011497# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011498linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011499 lt_cv_deplibs_check_method=pass_all
11500 ;;
11501
11502netbsd*)
11503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11505 else
11506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11507 fi
11508 ;;
11509
11510newos6*)
11511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11512 lt_cv_file_magic_cmd=/usr/bin/file
11513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11514 ;;
11515
11516*nto* | *qnx*)
11517 lt_cv_deplibs_check_method=pass_all
11518 ;;
11519
11520openbsd*)
11521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11523 else
11524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11525 fi
11526 ;;
11527
11528osf3* | osf4* | osf5*)
11529 lt_cv_deplibs_check_method=pass_all
11530 ;;
11531
11532rdos*)
11533 lt_cv_deplibs_check_method=pass_all
11534 ;;
11535
11536solaris*)
11537 lt_cv_deplibs_check_method=pass_all
11538 ;;
11539
11540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11541 lt_cv_deplibs_check_method=pass_all
11542 ;;
11543
11544sysv4 | sysv4.3*)
11545 case $host_vendor in
11546 motorola)
11547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
11548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11549 ;;
11550 ncr)
11551 lt_cv_deplibs_check_method=pass_all
11552 ;;
11553 sequent)
11554 lt_cv_file_magic_cmd='/bin/file'
11555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11556 ;;
11557 sni)
11558 lt_cv_file_magic_cmd='/bin/file'
11559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11560 lt_cv_file_magic_test_file=/lib/libc.so
11561 ;;
11562 siemens)
11563 lt_cv_deplibs_check_method=pass_all
11564 ;;
11565 pc)
11566 lt_cv_deplibs_check_method=pass_all
11567 ;;
11568 esac
11569 ;;
11570
11571tpf*)
11572 lt_cv_deplibs_check_method=pass_all
11573 ;;
11574esac
11575
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11578$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011579
11580file_magic_glob=
11581want_nocaseglob=no
11582if test "$build" = "$host"; then
11583 case $host_os in
11584 mingw* | pw32*)
11585 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11586 want_nocaseglob=yes
11587 else
11588 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11589 fi
11590 ;;
11591 esac
11592fi
11593
cristy73bd4a52010-10-05 11:24:23 +000011594file_magic_cmd=$lt_cv_file_magic_cmd
11595deplibs_check_method=$lt_cv_deplibs_check_method
11596test -z "$deplibs_check_method" && deplibs_check_method=unknown
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
cristyda16f162011-02-19 23:52:17 +000011609
11610
11611
11612
11613
11614
11615
11616
11617
11618
cristy73bd4a52010-10-05 11:24:23 +000011619if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011620 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11621set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011624if ${ac_cv_prog_DLLTOOL+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626else
11627 if test -n "$DLLTOOL"; then
11628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11629else
11630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631for as_dir in $PATH
11632do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011637 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11640 fi
11641done
11642 done
11643IFS=$as_save_IFS
11644
11645fi
11646fi
11647DLLTOOL=$ac_cv_prog_DLLTOOL
11648if test -n "$DLLTOOL"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11650$as_echo "$DLLTOOL" >&6; }
11651else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
11654fi
11655
11656
11657fi
11658if test -z "$ac_cv_prog_DLLTOOL"; then
11659 ac_ct_DLLTOOL=$DLLTOOL
11660 # Extract the first word of "dlltool", so it can be a program name with args.
11661set dummy dlltool; ac_word=$2
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
11664if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11665 $as_echo_n "(cached) " >&6
11666else
11667 if test -n "$ac_ct_DLLTOOL"; then
11668 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11669else
11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $PATH
11672do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011677 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11680 fi
11681done
11682 done
11683IFS=$as_save_IFS
11684
11685fi
11686fi
11687ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11688if test -n "$ac_ct_DLLTOOL"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11690$as_echo "$ac_ct_DLLTOOL" >&6; }
11691else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693$as_echo "no" >&6; }
11694fi
11695
11696 if test "x$ac_ct_DLLTOOL" = x; then
11697 DLLTOOL="false"
11698 else
11699 case $cross_compiling:$ac_tool_warned in
11700yes:)
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11703ac_tool_warned=yes ;;
11704esac
11705 DLLTOOL=$ac_ct_DLLTOOL
11706 fi
11707else
11708 DLLTOOL="$ac_cv_prog_DLLTOOL"
11709fi
11710
11711test -z "$DLLTOOL" && DLLTOOL=dlltool
11712
11713
11714
11715
11716
11717
11718
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11720$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11721if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723else
11724 lt_cv_sharedlib_from_linklib_cmd='unknown'
11725
11726case $host_os in
11727cygwin* | mingw* | pw32* | cegcc*)
11728 # two different shell functions defined in ltmain.sh
11729 # decide which to use based on capabilities of $DLLTOOL
11730 case `$DLLTOOL --help 2>&1` in
11731 *--identify-strict*)
11732 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11733 ;;
11734 *)
11735 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11736 ;;
11737 esac
11738 ;;
11739*)
11740 # fallback: assume linklib IS sharedlib
11741 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11742 ;;
11743esac
11744
11745fi
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11747$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11748sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11749test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11750
11751
11752
11753
11754
11755
11756
11757if test -n "$ac_tool_prefix"; then
11758 for ac_prog in ar
11759 do
11760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763$as_echo_n "checking for $ac_word... " >&6; }
11764if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011765 $as_echo_n "(cached) " >&6
11766else
11767 if test -n "$AR"; then
11768 ac_cv_prog_AR="$AR" # Let the user override the test.
11769else
11770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771for as_dir in $PATH
11772do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011777 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11780 fi
11781done
11782 done
11783IFS=$as_save_IFS
11784
11785fi
11786fi
11787AR=$ac_cv_prog_AR
11788if test -n "$AR"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11790$as_echo "$AR" >&6; }
11791else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793$as_echo "no" >&6; }
11794fi
11795
11796
cristyda16f162011-02-19 23:52:17 +000011797 test -n "$AR" && break
11798 done
cristy73bd4a52010-10-05 11:24:23 +000011799fi
cristyda16f162011-02-19 23:52:17 +000011800if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011801 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011802 for ac_prog in ar
11803do
11804 # Extract the first word of "$ac_prog", so it can be a program name with args.
11805set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011808if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011809 $as_echo_n "(cached) " >&6
11810else
11811 if test -n "$ac_ct_AR"; then
11812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011821 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825done
11826 done
11827IFS=$as_save_IFS
11828
11829fi
11830fi
11831ac_ct_AR=$ac_cv_prog_ac_ct_AR
11832if test -n "$ac_ct_AR"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11834$as_echo "$ac_ct_AR" >&6; }
11835else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
11838fi
11839
cristyda16f162011-02-19 23:52:17 +000011840
11841 test -n "$ac_ct_AR" && break
11842done
11843
cristy73bd4a52010-10-05 11:24:23 +000011844 if test "x$ac_ct_AR" = x; then
11845 AR="false"
11846 else
11847 case $cross_compiling:$ac_tool_warned in
11848yes:)
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851ac_tool_warned=yes ;;
11852esac
11853 AR=$ac_ct_AR
11854 fi
cristy73bd4a52010-10-05 11:24:23 +000011855fi
11856
cristyda16f162011-02-19 23:52:17 +000011857: ${AR=ar}
11858: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
cristyda16f162011-02-19 23:52:17 +000011870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11871$as_echo_n "checking for archiver @FILE support... " >&6; }
11872if ${lt_cv_ar_at_file+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874else
11875 lt_cv_ar_at_file=no
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877/* end confdefs.h. */
11878
11879int
11880main ()
11881{
11882
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_compile "$LINENO"; then :
11888 echo conftest.$ac_objext > conftest.lst
11889 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11891 (eval $lt_ar_try) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; }
11895 if test "$ac_status" -eq 0; then
11896 # Ensure the archiver fails upon bogus file names.
11897 rm -f conftest.$ac_objext libconftest.a
11898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11899 (eval $lt_ar_try) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; }
11903 if test "$ac_status" -ne 0; then
11904 lt_cv_ar_at_file=@
11905 fi
11906 fi
11907 rm -f conftest.* libconftest.a
11908
11909fi
11910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11914$as_echo "$lt_cv_ar_at_file" >&6; }
11915
11916if test "x$lt_cv_ar_at_file" = xno; then
11917 archiver_list_spec=
11918else
11919 archiver_list_spec=$lt_cv_ar_at_file
11920fi
11921
11922
11923
11924
11925
11926
11927
cristy73bd4a52010-10-05 11:24:23 +000011928if test -n "$ac_tool_prefix"; then
11929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11930set dummy ${ac_tool_prefix}strip; ac_word=$2
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011933if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011934 $as_echo_n "(cached) " >&6
11935else
11936 if test -n "$STRIP"; then
11937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11938else
11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940for as_dir in $PATH
11941do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11949 fi
11950done
11951 done
11952IFS=$as_save_IFS
11953
11954fi
11955fi
11956STRIP=$ac_cv_prog_STRIP
11957if test -n "$STRIP"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11959$as_echo "$STRIP" >&6; }
11960else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
11963fi
11964
11965
11966fi
11967if test -z "$ac_cv_prog_STRIP"; then
11968 ac_ct_STRIP=$STRIP
11969 # Extract the first word of "strip", so it can be a program name with args.
11970set dummy strip; ac_word=$2
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011973if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011974 $as_echo_n "(cached) " >&6
11975else
11976 if test -n "$ac_ct_STRIP"; then
11977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11978else
11979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980for as_dir in $PATH
11981do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011986 ac_cv_prog_ac_ct_STRIP="strip"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11989 fi
11990done
11991 done
11992IFS=$as_save_IFS
11993
11994fi
11995fi
11996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11997if test -n "$ac_ct_STRIP"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11999$as_echo "$ac_ct_STRIP" >&6; }
12000else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002$as_echo "no" >&6; }
12003fi
12004
12005 if test "x$ac_ct_STRIP" = x; then
12006 STRIP=":"
12007 else
12008 case $cross_compiling:$ac_tool_warned in
12009yes:)
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12012ac_tool_warned=yes ;;
12013esac
12014 STRIP=$ac_ct_STRIP
12015 fi
12016else
12017 STRIP="$ac_cv_prog_STRIP"
12018fi
12019
12020test -z "$STRIP" && STRIP=:
12021
12022
12023
12024
12025
12026
12027if test -n "$ac_tool_prefix"; then
12028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012032if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012033 $as_echo_n "(cached) " >&6
12034else
12035 if test -n "$RANLIB"; then
12036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12037else
12038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039for as_dir in $PATH
12040do
12041 IFS=$as_save_IFS
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 break 2
12048 fi
12049done
12050 done
12051IFS=$as_save_IFS
12052
12053fi
12054fi
12055RANLIB=$ac_cv_prog_RANLIB
12056if test -n "$RANLIB"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12058$as_echo "$RANLIB" >&6; }
12059else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061$as_echo "no" >&6; }
12062fi
12063
12064
12065fi
12066if test -z "$ac_cv_prog_RANLIB"; then
12067 ac_ct_RANLIB=$RANLIB
12068 # Extract the first word of "ranlib", so it can be a program name with args.
12069set dummy ranlib; ac_word=$2
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012072if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012073 $as_echo_n "(cached) " >&6
12074else
12075 if test -n "$ac_ct_RANLIB"; then
12076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12077else
12078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079for as_dir in $PATH
12080do
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012085 ac_cv_prog_ac_ct_RANLIB="ranlib"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12088 fi
12089done
12090 done
12091IFS=$as_save_IFS
12092
12093fi
12094fi
12095ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12096if test -n "$ac_ct_RANLIB"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12098$as_echo "$ac_ct_RANLIB" >&6; }
12099else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
12102fi
12103
12104 if test "x$ac_ct_RANLIB" = x; then
12105 RANLIB=":"
12106 else
12107 case $cross_compiling:$ac_tool_warned in
12108yes:)
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12111ac_tool_warned=yes ;;
12112esac
12113 RANLIB=$ac_ct_RANLIB
12114 fi
12115else
12116 RANLIB="$ac_cv_prog_RANLIB"
12117fi
12118
12119test -z "$RANLIB" && RANLIB=:
12120
12121
12122
12123
12124
12125
12126# Determine commands to create old-style static archives.
12127old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12128old_postinstall_cmds='chmod 644 $oldlib'
12129old_postuninstall_cmds=
12130
12131if test -n "$RANLIB"; then
12132 case $host_os in
12133 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012135 ;;
12136 *)
cristy99bd5232011-12-07 14:38:20 +000012137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012138 ;;
12139 esac
cristy99bd5232011-12-07 14:38:20 +000012140 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012141fi
12142
cristy0c60a692010-11-04 01:09:47 +000012143case $host_os in
12144 darwin*)
12145 lock_old_archive_extraction=yes ;;
12146 *)
12147 lock_old_archive_extraction=no ;;
12148esac
12149
12150
12151
12152
12153
12154
cristy73bd4a52010-10-05 11:24:23 +000012155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188# If no C compiler was specified, use CC.
12189LTCC=${LTCC-"$CC"}
12190
12191# If no C compiler flags were specified, use CFLAGS.
12192LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12193
12194# Allow CC to be a program name with arguments.
12195compiler=$CC
12196
12197
12198# Check for command to grab the raw symbol name followed by C symbol from nm.
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12200$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012201if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012202 $as_echo_n "(cached) " >&6
12203else
12204
12205# These are sane defaults that work on at least a few old systems.
12206# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12207
12208# Character class describing NM global symbol codes.
12209symcode='[BCDEGRST]'
12210
12211# Regexp to match symbols that can be accessed directly from C.
12212sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12213
12214# Define system-specific variables.
12215case $host_os in
12216aix*)
12217 symcode='[BCDT]'
12218 ;;
12219cygwin* | mingw* | pw32* | cegcc*)
12220 symcode='[ABCDGISTW]'
12221 ;;
12222hpux*)
12223 if test "$host_cpu" = ia64; then
12224 symcode='[ABCDEGRST]'
12225 fi
12226 ;;
12227irix* | nonstopux*)
12228 symcode='[BCDEGRST]'
12229 ;;
12230osf*)
12231 symcode='[BCDEGQRST]'
12232 ;;
12233solaris*)
12234 symcode='[BDRT]'
12235 ;;
12236sco3.2v5*)
12237 symcode='[DT]'
12238 ;;
12239sysv4.2uw2*)
12240 symcode='[DT]'
12241 ;;
12242sysv5* | sco5v6* | unixware* | OpenUNIX*)
12243 symcode='[ABDT]'
12244 ;;
12245sysv4)
12246 symcode='[DFNSTU]'
12247 ;;
12248esac
12249
12250# If we're using GNU nm, then use its standard symbol codes.
12251case `$NM -V 2>&1` in
12252*GNU* | *'with BFD'*)
12253 symcode='[ABCDGIRSTW]' ;;
12254esac
12255
12256# Transform an extracted symbol line into a proper C declaration.
12257# Some systems (esp. on ia64) link data and code symbols differently,
12258# so use this general approach.
12259lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12260
12261# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012262lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12263lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
cristy73bd4a52010-10-05 11:24:23 +000012264
12265# Handle CRLF in mingw tool chain
12266opt_cr=
12267case $build_os in
12268mingw*)
12269 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12270 ;;
12271esac
12272
12273# Try without a prefix underscore, then with it.
12274for ac_symprfx in "" "_"; do
12275
12276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12277 symxfrm="\\1 $ac_symprfx\\2 \\2"
12278
12279 # Write the raw and C identifiers.
12280 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12281 # Fake it for dumpbin and say T for any non-static function
12282 # and D for any global variable.
12283 # Also find C++ and __fastcall symbols from MSVC++,
12284 # which start with @ or ?.
12285 lt_cv_sys_global_symbol_pipe="$AWK '"\
12286" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012287" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012288" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12289" \$ 0!~/External *\|/{next};"\
12290" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12291" {if(hide[section]) next};"\
12292" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12293" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12294" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12295" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12296" ' prfx=^$ac_symprfx"
12297 else
12298 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12299 fi
cristyda16f162011-02-19 23:52:17 +000012300 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012301
12302 # Check to see that the pipe works correctly.
12303 pipe_works=no
12304
12305 rm -f conftest*
12306 cat > conftest.$ac_ext <<_LT_EOF
12307#ifdef __cplusplus
12308extern "C" {
12309#endif
12310char nm_test_var;
12311void nm_test_func(void);
12312void nm_test_func(void){}
12313#ifdef __cplusplus
12314}
12315#endif
12316int main(){nm_test_var='a';nm_test_func();return(0);}
12317_LT_EOF
12318
12319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12320 (eval $ac_compile) 2>&5
12321 ac_status=$?
12322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12323 test $ac_status = 0; }; then
12324 # Now try to grab the symbols.
12325 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12327 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012328 ac_status=$?
12329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12330 test $ac_status = 0; } && test -s "$nlist"; then
12331 # Try sorting and uniquifying the output.
12332 if sort "$nlist" | uniq > "$nlist"T; then
12333 mv -f "$nlist"T "$nlist"
12334 else
12335 rm -f "$nlist"T
12336 fi
12337
12338 # Make sure that we snagged all the symbols we need.
12339 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12340 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12341 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012342/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12343#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12344/* DATA imports from DLLs on WIN32 con't be const, because runtime
12345 relocations are performed -- see ld's documentation on pseudo-relocs. */
12346# define LT_DLSYM_CONST
12347#elif defined(__osf__)
12348/* This system does not cope well with relocations in const data. */
12349# define LT_DLSYM_CONST
12350#else
12351# define LT_DLSYM_CONST const
12352#endif
12353
cristy73bd4a52010-10-05 11:24:23 +000012354#ifdef __cplusplus
12355extern "C" {
12356#endif
12357
12358_LT_EOF
12359 # Now generate the symbol file.
12360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12361
12362 cat <<_LT_EOF >> conftest.$ac_ext
12363
12364/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012365LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012366 const char *name;
12367 void *address;
12368}
12369lt__PROGRAM__LTX_preloaded_symbols[] =
12370{
12371 { "@PROGRAM@", (void *) 0 },
12372_LT_EOF
12373 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12374 cat <<\_LT_EOF >> conftest.$ac_ext
12375 {0, (void *) 0}
12376};
12377
12378/* This works around a problem in FreeBSD linker */
12379#ifdef FREEBSD_WORKAROUND
12380static const void *lt_preloaded_setup() {
12381 return lt__PROGRAM__LTX_preloaded_symbols;
12382}
12383#endif
12384
12385#ifdef __cplusplus
12386}
12387#endif
12388_LT_EOF
12389 # Now try linking the two files.
12390 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012391 lt_globsym_save_LIBS=$LIBS
12392 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012393 LIBS="conftstm.$ac_objext"
12394 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12396 (eval $ac_link) 2>&5
12397 ac_status=$?
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12400 pipe_works=yes
12401 fi
cristyda16f162011-02-19 23:52:17 +000012402 LIBS=$lt_globsym_save_LIBS
12403 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012404 else
12405 echo "cannot find nm_test_func in $nlist" >&5
12406 fi
12407 else
12408 echo "cannot find nm_test_var in $nlist" >&5
12409 fi
12410 else
12411 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12412 fi
12413 else
12414 echo "$progname: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 fi
12417 rm -rf conftest* conftst*
12418
12419 # Do not use the global_symbol_pipe unless it works.
12420 if test "$pipe_works" = yes; then
12421 break
12422 else
12423 lt_cv_sys_global_symbol_pipe=
12424 fi
12425done
12426
12427fi
12428
12429if test -z "$lt_cv_sys_global_symbol_pipe"; then
12430 lt_cv_sys_global_symbol_to_cdecl=
12431fi
12432if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12434$as_echo "failed" >&6; }
12435else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12437$as_echo "ok" >&6; }
12438fi
12439
cristyda16f162011-02-19 23:52:17 +000012440# Response file support.
12441if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12442 nm_file_list_spec='@'
12443elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12444 nm_file_list_spec='@'
12445fi
cristy73bd4a52010-10-05 11:24:23 +000012446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
cristyda16f162011-02-19 23:52:17 +000012467
12468
12469
12470
12471
12472
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12474$as_echo_n "checking for sysroot... " >&6; }
12475
12476# Check whether --with-sysroot was given.
12477if test "${with_sysroot+set}" = set; then :
12478 withval=$with_sysroot;
12479else
12480 with_sysroot=no
12481fi
12482
12483
12484lt_sysroot=
12485case ${with_sysroot} in #(
12486 yes)
12487 if test "$GCC" = yes; then
12488 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12489 fi
12490 ;; #(
12491 /*)
12492 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12493 ;; #(
12494 no|'')
12495 ;; #(
12496 *)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12498$as_echo "${with_sysroot}" >&6; }
12499 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12500 ;;
12501esac
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12504$as_echo "${lt_sysroot:-no}" >&6; }
12505
12506
12507
12508
12509
cristy73bd4a52010-10-05 11:24:23 +000012510# Check whether --enable-libtool-lock was given.
12511if test "${enable_libtool_lock+set}" = set; then :
12512 enableval=$enable_libtool_lock;
12513fi
12514
12515test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12516
12517# Some flags need to be propagated to the compiler or linker for good
12518# libtool support.
12519case $host in
12520ia64-*-hpux*)
12521 # Find out which ABI we are using.
12522 echo 'int i;' > conftest.$ac_ext
12523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12524 (eval $ac_compile) 2>&5
12525 ac_status=$?
12526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527 test $ac_status = 0; }; then
12528 case `/usr/bin/file conftest.$ac_objext` in
12529 *ELF-32*)
12530 HPUX_IA64_MODE="32"
12531 ;;
12532 *ELF-64*)
12533 HPUX_IA64_MODE="64"
12534 ;;
12535 esac
12536 fi
12537 rm -rf conftest*
12538 ;;
12539*-*-irix6*)
12540 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012541 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12543 (eval $ac_compile) 2>&5
12544 ac_status=$?
12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; }; then
12547 if test "$lt_cv_prog_gnu_ld" = yes; then
12548 case `/usr/bin/file conftest.$ac_objext` in
12549 *32-bit*)
12550 LD="${LD-ld} -melf32bsmip"
12551 ;;
12552 *N32*)
12553 LD="${LD-ld} -melf32bmipn32"
12554 ;;
12555 *64-bit*)
12556 LD="${LD-ld} -melf64bmip"
12557 ;;
12558 esac
12559 else
12560 case `/usr/bin/file conftest.$ac_objext` in
12561 *32-bit*)
12562 LD="${LD-ld} -32"
12563 ;;
12564 *N32*)
12565 LD="${LD-ld} -n32"
12566 ;;
12567 *64-bit*)
12568 LD="${LD-ld} -64"
12569 ;;
12570 esac
12571 fi
12572 fi
12573 rm -rf conftest*
12574 ;;
12575
12576x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12577s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12578 # Find out which ABI we are using.
12579 echo 'int i;' > conftest.$ac_ext
12580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12581 (eval $ac_compile) 2>&5
12582 ac_status=$?
12583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584 test $ac_status = 0; }; then
12585 case `/usr/bin/file conftest.o` in
12586 *32-bit*)
12587 case $host in
12588 x86_64-*kfreebsd*-gnu)
12589 LD="${LD-ld} -m elf_i386_fbsd"
12590 ;;
12591 x86_64-*linux*)
12592 LD="${LD-ld} -m elf_i386"
12593 ;;
12594 ppc64-*linux*|powerpc64-*linux*)
12595 LD="${LD-ld} -m elf32ppclinux"
12596 ;;
12597 s390x-*linux*)
12598 LD="${LD-ld} -m elf_s390"
12599 ;;
12600 sparc64-*linux*)
12601 LD="${LD-ld} -m elf32_sparc"
12602 ;;
12603 esac
12604 ;;
12605 *64-bit*)
12606 case $host in
12607 x86_64-*kfreebsd*-gnu)
12608 LD="${LD-ld} -m elf_x86_64_fbsd"
12609 ;;
12610 x86_64-*linux*)
12611 LD="${LD-ld} -m elf_x86_64"
12612 ;;
12613 ppc*-*linux*|powerpc*-*linux*)
12614 LD="${LD-ld} -m elf64ppc"
12615 ;;
12616 s390*-*linux*|s390*-*tpf*)
12617 LD="${LD-ld} -m elf64_s390"
12618 ;;
12619 sparc*-*linux*)
12620 LD="${LD-ld} -m elf64_sparc"
12621 ;;
12622 esac
12623 ;;
12624 esac
12625 fi
12626 rm -rf conftest*
12627 ;;
12628
12629*-*-sco3.2v5*)
12630 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12631 SAVE_CFLAGS="$CFLAGS"
12632 CFLAGS="$CFLAGS -belf"
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12634$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012635if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012636 $as_echo_n "(cached) " >&6
12637else
12638 ac_ext=c
12639ac_cpp='$CPP $CPPFLAGS'
12640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12642ac_compiler_gnu=$ac_cv_c_compiler_gnu
12643
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h. */
12646
12647int
12648main ()
12649{
12650
12651 ;
12652 return 0;
12653}
12654_ACEOF
12655if ac_fn_c_try_link "$LINENO"; then :
12656 lt_cv_cc_needs_belf=yes
12657else
12658 lt_cv_cc_needs_belf=no
12659fi
12660rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 ac_ext=c
12663ac_cpp='$CPP $CPPFLAGS'
12664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667
12668fi
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12670$as_echo "$lt_cv_cc_needs_belf" >&6; }
12671 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12672 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12673 CFLAGS="$SAVE_CFLAGS"
12674 fi
12675 ;;
cristy99bd5232011-12-07 14:38:20 +000012676*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012677 # Find out which ABI we are using.
12678 echo 'int i;' > conftest.$ac_ext
12679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12680 (eval $ac_compile) 2>&5
12681 ac_status=$?
12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12683 test $ac_status = 0; }; then
12684 case `/usr/bin/file conftest.o` in
12685 *64-bit*)
12686 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012687 yes*)
12688 case $host in
12689 i?86-*-solaris*)
12690 LD="${LD-ld} -m elf_x86_64"
12691 ;;
12692 sparc*-*-solaris*)
12693 LD="${LD-ld} -m elf64_sparc"
12694 ;;
12695 esac
12696 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12697 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12698 LD="${LD-ld}_sol2"
12699 fi
12700 ;;
cristy73bd4a52010-10-05 11:24:23 +000012701 *)
12702 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12703 LD="${LD-ld} -64"
12704 fi
12705 ;;
12706 esac
12707 ;;
12708 esac
12709 fi
12710 rm -rf conftest*
12711 ;;
12712esac
12713
12714need_locks="$enable_libtool_lock"
12715
cristyda16f162011-02-19 23:52:17 +000012716if test -n "$ac_tool_prefix"; then
12717 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12718set dummy ${ac_tool_prefix}mt; ac_word=$2
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720$as_echo_n "checking for $ac_word... " >&6; }
12721if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723else
12724 if test -n "$MANIFEST_TOOL"; then
12725 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12726else
12727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $PATH
12729do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012734 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738done
12739 done
12740IFS=$as_save_IFS
12741
12742fi
12743fi
12744MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12745if test -n "$MANIFEST_TOOL"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12747$as_echo "$MANIFEST_TOOL" >&6; }
12748else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
12751fi
12752
12753
12754fi
12755if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12756 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12757 # Extract the first word of "mt", so it can be a program name with args.
12758set dummy mt; ac_word=$2
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760$as_echo_n "checking for $ac_word... " >&6; }
12761if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12762 $as_echo_n "(cached) " >&6
12763else
12764 if test -n "$ac_ct_MANIFEST_TOOL"; then
12765 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12766else
12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012774 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12777 fi
12778done
12779 done
12780IFS=$as_save_IFS
12781
12782fi
12783fi
12784ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12785if test -n "$ac_ct_MANIFEST_TOOL"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12787$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12788else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
12791fi
12792
12793 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12794 MANIFEST_TOOL=":"
12795 else
12796 case $cross_compiling:$ac_tool_warned in
12797yes:)
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12800ac_tool_warned=yes ;;
12801esac
12802 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12803 fi
12804else
12805 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12806fi
12807
12808test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12810$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12811if ${lt_cv_path_mainfest_tool+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 lt_cv_path_mainfest_tool=no
12815 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12816 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12817 cat conftest.err >&5
12818 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12819 lt_cv_path_mainfest_tool=yes
12820 fi
12821 rm -f conftest*
12822fi
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12824$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12825if test "x$lt_cv_path_mainfest_tool" != xyes; then
12826 MANIFEST_TOOL=:
12827fi
12828
12829
12830
12831
12832
cristy73bd4a52010-10-05 11:24:23 +000012833
12834 case $host_os in
12835 rhapsody* | darwin*)
12836 if test -n "$ac_tool_prefix"; then
12837 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12838set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012841if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012842 $as_echo_n "(cached) " >&6
12843else
12844 if test -n "$DSYMUTIL"; then
12845 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12846else
12847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
12852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012854 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12856 break 2
12857 fi
12858done
12859 done
12860IFS=$as_save_IFS
12861
12862fi
12863fi
12864DSYMUTIL=$ac_cv_prog_DSYMUTIL
12865if test -n "$DSYMUTIL"; then
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12867$as_echo "$DSYMUTIL" >&6; }
12868else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870$as_echo "no" >&6; }
12871fi
12872
12873
12874fi
12875if test -z "$ac_cv_prog_DSYMUTIL"; then
12876 ac_ct_DSYMUTIL=$DSYMUTIL
12877 # Extract the first word of "dsymutil", so it can be a program name with args.
12878set dummy dsymutil; ac_word=$2
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012881if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012882 $as_echo_n "(cached) " >&6
12883else
12884 if test -n "$ac_ct_DSYMUTIL"; then
12885 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12886else
12887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012894 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 break 2
12897 fi
12898done
12899 done
12900IFS=$as_save_IFS
12901
12902fi
12903fi
12904ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12905if test -n "$ac_ct_DSYMUTIL"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12907$as_echo "$ac_ct_DSYMUTIL" >&6; }
12908else
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
12911fi
12912
12913 if test "x$ac_ct_DSYMUTIL" = x; then
12914 DSYMUTIL=":"
12915 else
12916 case $cross_compiling:$ac_tool_warned in
12917yes:)
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12920ac_tool_warned=yes ;;
12921esac
12922 DSYMUTIL=$ac_ct_DSYMUTIL
12923 fi
12924else
12925 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12926fi
12927
12928 if test -n "$ac_tool_prefix"; then
12929 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12930set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012933if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012934 $as_echo_n "(cached) " >&6
12935else
12936 if test -n "$NMEDIT"; then
12937 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12938else
12939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940for as_dir in $PATH
12941do
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012946 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948 break 2
12949 fi
12950done
12951 done
12952IFS=$as_save_IFS
12953
12954fi
12955fi
12956NMEDIT=$ac_cv_prog_NMEDIT
12957if test -n "$NMEDIT"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12959$as_echo "$NMEDIT" >&6; }
12960else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962$as_echo "no" >&6; }
12963fi
12964
12965
12966fi
12967if test -z "$ac_cv_prog_NMEDIT"; then
12968 ac_ct_NMEDIT=$NMEDIT
12969 # Extract the first word of "nmedit", so it can be a program name with args.
12970set dummy nmedit; ac_word=$2
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012973if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012974 $as_echo_n "(cached) " >&6
12975else
12976 if test -n "$ac_ct_NMEDIT"; then
12977 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12978else
12979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980for as_dir in $PATH
12981do
12982 IFS=$as_save_IFS
12983 test -z "$as_dir" && as_dir=.
12984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012986 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 break 2
12989 fi
12990done
12991 done
12992IFS=$as_save_IFS
12993
12994fi
12995fi
12996ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12997if test -n "$ac_ct_NMEDIT"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12999$as_echo "$ac_ct_NMEDIT" >&6; }
13000else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002$as_echo "no" >&6; }
13003fi
13004
13005 if test "x$ac_ct_NMEDIT" = x; then
13006 NMEDIT=":"
13007 else
13008 case $cross_compiling:$ac_tool_warned in
13009yes:)
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13012ac_tool_warned=yes ;;
13013esac
13014 NMEDIT=$ac_ct_NMEDIT
13015 fi
13016else
13017 NMEDIT="$ac_cv_prog_NMEDIT"
13018fi
13019
13020 if test -n "$ac_tool_prefix"; then
13021 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13022set dummy ${ac_tool_prefix}lipo; ac_word=$2
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013025if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013026 $as_echo_n "(cached) " >&6
13027else
13028 if test -n "$LIPO"; then
13029 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13030else
13031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032for as_dir in $PATH
13033do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013038 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042done
13043 done
13044IFS=$as_save_IFS
13045
13046fi
13047fi
13048LIPO=$ac_cv_prog_LIPO
13049if test -n "$LIPO"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13051$as_echo "$LIPO" >&6; }
13052else
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054$as_echo "no" >&6; }
13055fi
13056
13057
13058fi
13059if test -z "$ac_cv_prog_LIPO"; then
13060 ac_ct_LIPO=$LIPO
13061 # Extract the first word of "lipo", so it can be a program name with args.
13062set dummy lipo; ac_word=$2
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013065if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013066 $as_echo_n "(cached) " >&6
13067else
13068 if test -n "$ac_ct_LIPO"; then
13069 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013078 ac_cv_prog_ac_ct_LIPO="lipo"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082done
13083 done
13084IFS=$as_save_IFS
13085
13086fi
13087fi
13088ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13089if test -n "$ac_ct_LIPO"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13091$as_echo "$ac_ct_LIPO" >&6; }
13092else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
13095fi
13096
13097 if test "x$ac_ct_LIPO" = x; then
13098 LIPO=":"
13099 else
13100 case $cross_compiling:$ac_tool_warned in
13101yes:)
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13104ac_tool_warned=yes ;;
13105esac
13106 LIPO=$ac_ct_LIPO
13107 fi
13108else
13109 LIPO="$ac_cv_prog_LIPO"
13110fi
13111
13112 if test -n "$ac_tool_prefix"; then
13113 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13114set dummy ${ac_tool_prefix}otool; ac_word=$2
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013117if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013118 $as_echo_n "(cached) " >&6
13119else
13120 if test -n "$OTOOL"; then
13121 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13122else
13123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124for as_dir in $PATH
13125do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134done
13135 done
13136IFS=$as_save_IFS
13137
13138fi
13139fi
13140OTOOL=$ac_cv_prog_OTOOL
13141if test -n "$OTOOL"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13143$as_echo "$OTOOL" >&6; }
13144else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147fi
13148
13149
13150fi
13151if test -z "$ac_cv_prog_OTOOL"; then
13152 ac_ct_OTOOL=$OTOOL
13153 # Extract the first word of "otool", so it can be a program name with args.
13154set dummy otool; ac_word=$2
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013157if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013158 $as_echo_n "(cached) " >&6
13159else
13160 if test -n "$ac_ct_OTOOL"; then
13161 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13162else
13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164for as_dir in $PATH
13165do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013170 ac_cv_prog_ac_ct_OTOOL="otool"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174done
13175 done
13176IFS=$as_save_IFS
13177
13178fi
13179fi
13180ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13181if test -n "$ac_ct_OTOOL"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13183$as_echo "$ac_ct_OTOOL" >&6; }
13184else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
13187fi
13188
13189 if test "x$ac_ct_OTOOL" = x; then
13190 OTOOL=":"
13191 else
13192 case $cross_compiling:$ac_tool_warned in
13193yes:)
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13196ac_tool_warned=yes ;;
13197esac
13198 OTOOL=$ac_ct_OTOOL
13199 fi
13200else
13201 OTOOL="$ac_cv_prog_OTOOL"
13202fi
13203
13204 if test -n "$ac_tool_prefix"; then
13205 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13206set dummy ${ac_tool_prefix}otool64; ac_word=$2
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013209if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013210 $as_echo_n "(cached) " >&6
13211else
13212 if test -n "$OTOOL64"; then
13213 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013222 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226done
13227 done
13228IFS=$as_save_IFS
13229
13230fi
13231fi
13232OTOOL64=$ac_cv_prog_OTOOL64
13233if test -n "$OTOOL64"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13235$as_echo "$OTOOL64" >&6; }
13236else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239fi
13240
13241
13242fi
13243if test -z "$ac_cv_prog_OTOOL64"; then
13244 ac_ct_OTOOL64=$OTOOL64
13245 # Extract the first word of "otool64", so it can be a program name with args.
13246set dummy otool64; ac_word=$2
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013249if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013250 $as_echo_n "(cached) " >&6
13251else
13252 if test -n "$ac_ct_OTOOL64"; then
13253 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13254else
13255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256for as_dir in $PATH
13257do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013262 ac_cv_prog_ac_ct_OTOOL64="otool64"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266done
13267 done
13268IFS=$as_save_IFS
13269
13270fi
13271fi
13272ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13273if test -n "$ac_ct_OTOOL64"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13275$as_echo "$ac_ct_OTOOL64" >&6; }
13276else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278$as_echo "no" >&6; }
13279fi
13280
13281 if test "x$ac_ct_OTOOL64" = x; then
13282 OTOOL64=":"
13283 else
13284 case $cross_compiling:$ac_tool_warned in
13285yes:)
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13288ac_tool_warned=yes ;;
13289esac
13290 OTOOL64=$ac_ct_OTOOL64
13291 fi
13292else
13293 OTOOL64="$ac_cv_prog_OTOOL64"
13294fi
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13323$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013324if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013325 $as_echo_n "(cached) " >&6
13326else
13327 lt_cv_apple_cc_single_mod=no
13328 if test -z "${LT_MULTI_MODULE}"; then
13329 # By default we will add the -single_module flag. You can override
13330 # by either setting the environment variable LT_MULTI_MODULE
13331 # non-empty at configure time, or by adding -multi_module to the
13332 # link flags.
13333 rm -rf libconftest.dylib*
13334 echo "int foo(void){return 1;}" > conftest.c
13335 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13336-dynamiclib -Wl,-single_module conftest.c" >&5
13337 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13338 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13339 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013340 # If there is a non-empty error log, and "single_module"
13341 # appears in it, assume the flag caused a linker warning
13342 if test -s conftest.err && $GREP single_module conftest.err; then
13343 cat conftest.err >&5
13344 # Otherwise, if the output was created with a 0 exit code from
13345 # the compiler, it worked.
13346 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013347 lt_cv_apple_cc_single_mod=yes
13348 else
13349 cat conftest.err >&5
13350 fi
13351 rm -rf libconftest.dylib*
13352 rm -f conftest.*
13353 fi
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13356$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013357
cristy73bd4a52010-10-05 11:24:23 +000013358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13359$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013360if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013361 $as_echo_n "(cached) " >&6
13362else
13363 lt_cv_ld_exported_symbols_list=no
13364 save_LDFLAGS=$LDFLAGS
13365 echo "_main" > conftest.sym
13366 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h. */
13369
13370int
13371main ()
13372{
13373
13374 ;
13375 return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_link "$LINENO"; then :
13379 lt_cv_ld_exported_symbols_list=yes
13380else
13381 lt_cv_ld_exported_symbols_list=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 LDFLAGS="$save_LDFLAGS"
13386
13387fi
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13389$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013390
cristy0c60a692010-11-04 01:09:47 +000013391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13392$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013393if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013394 $as_echo_n "(cached) " >&6
13395else
13396 lt_cv_ld_force_load=no
13397 cat > conftest.c << _LT_EOF
13398int forced_loaded() { return 2;}
13399_LT_EOF
13400 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13401 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13402 echo "$AR cru libconftest.a conftest.o" >&5
13403 $AR cru libconftest.a conftest.o 2>&5
13404 echo "$RANLIB libconftest.a" >&5
13405 $RANLIB libconftest.a 2>&5
13406 cat > conftest.c << _LT_EOF
13407int main() { return 0;}
13408_LT_EOF
13409 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13410 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13411 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013412 if test -s conftest.err && $GREP force_load conftest.err; then
13413 cat conftest.err >&5
13414 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013415 lt_cv_ld_force_load=yes
13416 else
13417 cat conftest.err >&5
13418 fi
13419 rm -f conftest.err libconftest.a conftest conftest.c
13420 rm -rf conftest.dSYM
13421
13422fi
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13424$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013425 case $host_os in
13426 rhapsody* | darwin1.[012])
13427 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13428 darwin1.*)
13429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13430 darwin*) # darwin 5.x on
13431 # if running on 10.5 or later, the deployment target defaults
13432 # to the OS version, if on x86, and 10.4, the deployment
13433 # target defaults to 10.4. Don't you love it?
13434 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13435 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13437 10.[012]*)
13438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13439 10.*)
13440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13441 esac
13442 ;;
13443 esac
13444 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13445 _lt_dar_single_mod='$single_module'
13446 fi
13447 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13448 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13449 else
13450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13451 fi
cristy0c60a692010-11-04 01:09:47 +000013452 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013453 _lt_dsymutil='~$DSYMUTIL $lib || :'
13454 else
13455 _lt_dsymutil=
13456 fi
13457 ;;
13458 esac
13459
13460for ac_header in dlfcn.h
13461do :
13462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13463"
cristyda16f162011-02-19 23:52:17 +000013464if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013465 cat >>confdefs.h <<_ACEOF
13466#define HAVE_DLFCN_H 1
13467_ACEOF
13468
13469fi
13470
13471done
13472
13473
13474
cristy73bd4a52010-10-05 11:24:23 +000013475
cristyda16f162011-02-19 23:52:17 +000013476func_stripname_cnf ()
13477{
13478 case ${2} in
13479 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13480 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13481 esac
13482} # func_stripname_cnf
13483
13484
13485
cristy73bd4a52010-10-05 11:24:23 +000013486
13487
13488# Set options
13489enable_win32_dll=yes
13490
13491case $host in
cristy0c60a692010-11-04 01:09:47 +000013492*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013493 if test -n "$ac_tool_prefix"; then
13494 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13495set dummy ${ac_tool_prefix}as; ac_word=$2
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013498if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013499 $as_echo_n "(cached) " >&6
13500else
13501 if test -n "$AS"; then
13502 ac_cv_prog_AS="$AS" # Let the user override the test.
13503else
13504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505for as_dir in $PATH
13506do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013511 ac_cv_prog_AS="${ac_tool_prefix}as"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515done
13516 done
13517IFS=$as_save_IFS
13518
13519fi
13520fi
13521AS=$ac_cv_prog_AS
13522if test -n "$AS"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13524$as_echo "$AS" >&6; }
13525else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527$as_echo "no" >&6; }
13528fi
13529
13530
13531fi
13532if test -z "$ac_cv_prog_AS"; then
13533 ac_ct_AS=$AS
13534 # Extract the first word of "as", so it can be a program name with args.
13535set dummy as; ac_word=$2
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013538if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013539 $as_echo_n "(cached) " >&6
13540else
13541 if test -n "$ac_ct_AS"; then
13542 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13543else
13544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013551 ac_cv_prog_ac_ct_AS="as"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555done
13556 done
13557IFS=$as_save_IFS
13558
13559fi
13560fi
13561ac_ct_AS=$ac_cv_prog_ac_ct_AS
13562if test -n "$ac_ct_AS"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13564$as_echo "$ac_ct_AS" >&6; }
13565else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569
13570 if test "x$ac_ct_AS" = x; then
13571 AS="false"
13572 else
13573 case $cross_compiling:$ac_tool_warned in
13574yes:)
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13577ac_tool_warned=yes ;;
13578esac
13579 AS=$ac_ct_AS
13580 fi
13581else
13582 AS="$ac_cv_prog_AS"
13583fi
13584
13585 if test -n "$ac_tool_prefix"; then
13586 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13587set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013590if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013591 $as_echo_n "(cached) " >&6
13592else
13593 if test -n "$DLLTOOL"; then
13594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13595else
13596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597for as_dir in $PATH
13598do
13599 IFS=$as_save_IFS
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013603 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 break 2
13606 fi
13607done
13608 done
13609IFS=$as_save_IFS
13610
13611fi
13612fi
13613DLLTOOL=$ac_cv_prog_DLLTOOL
13614if test -n "$DLLTOOL"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13616$as_echo "$DLLTOOL" >&6; }
13617else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
13620fi
13621
13622
13623fi
13624if test -z "$ac_cv_prog_DLLTOOL"; then
13625 ac_ct_DLLTOOL=$DLLTOOL
13626 # Extract the first word of "dlltool", so it can be a program name with args.
13627set dummy dlltool; ac_word=$2
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013630if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013631 $as_echo_n "(cached) " >&6
13632else
13633 if test -n "$ac_ct_DLLTOOL"; then
13634 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13635else
13636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013643 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13646 fi
13647done
13648 done
13649IFS=$as_save_IFS
13650
13651fi
13652fi
13653ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13654if test -n "$ac_ct_DLLTOOL"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13656$as_echo "$ac_ct_DLLTOOL" >&6; }
13657else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659$as_echo "no" >&6; }
13660fi
13661
13662 if test "x$ac_ct_DLLTOOL" = x; then
13663 DLLTOOL="false"
13664 else
13665 case $cross_compiling:$ac_tool_warned in
13666yes:)
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13669ac_tool_warned=yes ;;
13670esac
13671 DLLTOOL=$ac_ct_DLLTOOL
13672 fi
13673else
13674 DLLTOOL="$ac_cv_prog_DLLTOOL"
13675fi
13676
13677 if test -n "$ac_tool_prefix"; then
13678 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13679set dummy ${ac_tool_prefix}objdump; ac_word=$2
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013682if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013683 $as_echo_n "(cached) " >&6
13684else
13685 if test -n "$OBJDUMP"; then
13686 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13687else
13688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689for as_dir in $PATH
13690do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013695 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699done
13700 done
13701IFS=$as_save_IFS
13702
13703fi
13704fi
13705OBJDUMP=$ac_cv_prog_OBJDUMP
13706if test -n "$OBJDUMP"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13708$as_echo "$OBJDUMP" >&6; }
13709else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711$as_echo "no" >&6; }
13712fi
13713
13714
13715fi
13716if test -z "$ac_cv_prog_OBJDUMP"; then
13717 ac_ct_OBJDUMP=$OBJDUMP
13718 # Extract the first word of "objdump", so it can be a program name with args.
13719set dummy objdump; ac_word=$2
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013722if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013723 $as_echo_n "(cached) " >&6
13724else
13725 if test -n "$ac_ct_OBJDUMP"; then
13726 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13727else
13728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729for as_dir in $PATH
13730do
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013735 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 break 2
13738 fi
13739done
13740 done
13741IFS=$as_save_IFS
13742
13743fi
13744fi
13745ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13746if test -n "$ac_ct_OBJDUMP"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13748$as_echo "$ac_ct_OBJDUMP" >&6; }
13749else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751$as_echo "no" >&6; }
13752fi
13753
13754 if test "x$ac_ct_OBJDUMP" = x; then
13755 OBJDUMP="false"
13756 else
13757 case $cross_compiling:$ac_tool_warned in
13758yes:)
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13761ac_tool_warned=yes ;;
13762esac
13763 OBJDUMP=$ac_ct_OBJDUMP
13764 fi
13765else
13766 OBJDUMP="$ac_cv_prog_OBJDUMP"
13767fi
13768
13769 ;;
13770esac
13771
13772test -z "$AS" && AS=as
13773
13774
13775
13776
13777
13778test -z "$DLLTOOL" && DLLTOOL=dlltool
13779
13780
13781
13782
13783
13784test -z "$OBJDUMP" && OBJDUMP=objdump
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 # Check whether --enable-shared was given.
13795if test "${enable_shared+set}" = set; then :
13796 enableval=$enable_shared; p=${PACKAGE-default}
13797 case $enableval in
13798 yes) enable_shared=yes ;;
13799 no) enable_shared=no ;;
13800 *)
13801 enable_shared=no
13802 # Look at the argument we got. We use all the common list separators.
13803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13804 for pkg in $enableval; do
13805 IFS="$lt_save_ifs"
13806 if test "X$pkg" = "X$p"; then
13807 enable_shared=yes
13808 fi
13809 done
13810 IFS="$lt_save_ifs"
13811 ;;
13812 esac
13813else
13814 enable_shared=yes
13815fi
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825 # Check whether --enable-static was given.
13826if test "${enable_static+set}" = set; then :
13827 enableval=$enable_static; p=${PACKAGE-default}
13828 case $enableval in
13829 yes) enable_static=yes ;;
13830 no) enable_static=no ;;
13831 *)
13832 enable_static=no
13833 # Look at the argument we got. We use all the common list separators.
13834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13835 for pkg in $enableval; do
13836 IFS="$lt_save_ifs"
13837 if test "X$pkg" = "X$p"; then
13838 enable_static=yes
13839 fi
13840 done
13841 IFS="$lt_save_ifs"
13842 ;;
13843 esac
13844else
13845 enable_static=yes
13846fi
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857# Check whether --with-pic was given.
13858if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013859 withval=$with_pic; lt_p=${PACKAGE-default}
13860 case $withval in
13861 yes|no) pic_mode=$withval ;;
13862 *)
13863 pic_mode=default
13864 # Look at the argument we got. We use all the common list separators.
13865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13866 for lt_pkg in $withval; do
13867 IFS="$lt_save_ifs"
13868 if test "X$lt_pkg" = "X$lt_p"; then
13869 pic_mode=yes
13870 fi
13871 done
13872 IFS="$lt_save_ifs"
13873 ;;
13874 esac
cristy73bd4a52010-10-05 11:24:23 +000013875else
13876 pic_mode=default
13877fi
13878
13879
13880test -z "$pic_mode" && pic_mode=default
13881
13882
13883
13884
13885
13886
13887
13888 # Check whether --enable-fast-install was given.
13889if test "${enable_fast_install+set}" = set; then :
13890 enableval=$enable_fast_install; p=${PACKAGE-default}
13891 case $enableval in
13892 yes) enable_fast_install=yes ;;
13893 no) enable_fast_install=no ;;
13894 *)
13895 enable_fast_install=no
13896 # Look at the argument we got. We use all the common list separators.
13897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13898 for pkg in $enableval; do
13899 IFS="$lt_save_ifs"
13900 if test "X$pkg" = "X$p"; then
13901 enable_fast_install=yes
13902 fi
13903 done
13904 IFS="$lt_save_ifs"
13905 ;;
13906 esac
13907else
13908 enable_fast_install=yes
13909fi
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921# This can be used to rebuild libtool when needed
13922LIBTOOL_DEPS="$ltmain"
13923
13924# Always use our own libtool.
13925LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
cristy0c60a692010-11-04 01:09:47 +000013951
cristy99bd5232011-12-07 14:38:20 +000013952
13953
13954
13955
cristy73bd4a52010-10-05 11:24:23 +000013956test -z "$LN_S" && LN_S="ln -s"
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971if test -n "${ZSH_VERSION+set}" ; then
13972 setopt NO_GLOB_SUBST
13973fi
13974
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13976$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013977if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013978 $as_echo_n "(cached) " >&6
13979else
13980 rm -f .libs 2>/dev/null
13981mkdir .libs 2>/dev/null
13982if test -d .libs; then
13983 lt_cv_objdir=.libs
13984else
13985 # MS-DOS does not allow filenames that begin with a dot.
13986 lt_cv_objdir=_libs
13987fi
13988rmdir .libs 2>/dev/null
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13991$as_echo "$lt_cv_objdir" >&6; }
13992objdir=$lt_cv_objdir
13993
13994
13995
13996
13997
13998cat >>confdefs.h <<_ACEOF
13999#define LT_OBJDIR "$lt_cv_objdir/"
14000_ACEOF
14001
14002
14003
14004
cristy73bd4a52010-10-05 11:24:23 +000014005case $host_os in
14006aix3*)
14007 # AIX sometimes has problems with the GCC collect2 program. For some
14008 # reason, if we set the COLLECT_NAMES environment variable, the problems
14009 # vanish in a puff of smoke.
14010 if test "X${COLLECT_NAMES+set}" != Xset; then
14011 COLLECT_NAMES=
14012 export COLLECT_NAMES
14013 fi
14014 ;;
14015esac
14016
cristy73bd4a52010-10-05 11:24:23 +000014017# Global variables:
14018ofile=libtool
14019can_build_shared=yes
14020
14021# All known linkers require a `.a' archive for static linking (except MSVC,
14022# which needs '.lib').
14023libext=a
14024
14025with_gnu_ld="$lt_cv_prog_gnu_ld"
14026
14027old_CC="$CC"
14028old_CFLAGS="$CFLAGS"
14029
14030# Set sane defaults for various variables
14031test -z "$CC" && CC=cc
14032test -z "$LTCC" && LTCC=$CC
14033test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14034test -z "$LD" && LD=ld
14035test -z "$ac_objext" && ac_objext=o
14036
14037for cc_temp in $compiler""; do
14038 case $cc_temp in
14039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14041 \-*) ;;
14042 *) break;;
14043 esac
14044done
cristy0c60a692010-11-04 01:09:47 +000014045cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014046
14047
14048# Only perform the check for file, if the check method requires it
14049test -z "$MAGIC_CMD" && MAGIC_CMD=file
14050case $deplibs_check_method in
14051file_magic*)
14052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14054$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014055if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014056 $as_echo_n "(cached) " >&6
14057else
14058 case $MAGIC_CMD in
14059[\\/*] | ?:[\\/]*)
14060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14061 ;;
14062*)
14063 lt_save_MAGIC_CMD="$MAGIC_CMD"
14064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14066 for ac_dir in $ac_dummy; do
14067 IFS="$lt_save_ifs"
14068 test -z "$ac_dir" && ac_dir=.
14069 if test -f $ac_dir/${ac_tool_prefix}file; then
14070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14071 if test -n "$file_magic_test_file"; then
14072 case $deplibs_check_method in
14073 "file_magic "*)
14074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14077 $EGREP "$file_magic_regex" > /dev/null; then
14078 :
14079 else
14080 cat <<_LT_EOF 1>&2
14081
14082*** Warning: the command libtool uses to detect shared libraries,
14083*** $file_magic_cmd, produces output that libtool cannot recognize.
14084*** The result is that libtool may fail to recognize shared libraries
14085*** as such. This will affect the creation of libtool libraries that
14086*** depend on shared libraries, but programs linked with such libtool
14087*** libraries will work regardless of this problem. Nevertheless, you
14088*** may want to report the problem to your system manager and/or to
14089*** bug-libtool@gnu.org
14090
14091_LT_EOF
14092 fi ;;
14093 esac
14094 fi
14095 break
14096 fi
14097 done
14098 IFS="$lt_save_ifs"
14099 MAGIC_CMD="$lt_save_MAGIC_CMD"
14100 ;;
14101esac
14102fi
14103
14104MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14105if test -n "$MAGIC_CMD"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14107$as_echo "$MAGIC_CMD" >&6; }
14108else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111fi
14112
14113
14114
14115
14116
14117if test -z "$lt_cv_path_MAGIC_CMD"; then
14118 if test -n "$ac_tool_prefix"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14120$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014121if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014122 $as_echo_n "(cached) " >&6
14123else
14124 case $MAGIC_CMD in
14125[\\/*] | ?:[\\/]*)
14126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14127 ;;
14128*)
14129 lt_save_MAGIC_CMD="$MAGIC_CMD"
14130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14132 for ac_dir in $ac_dummy; do
14133 IFS="$lt_save_ifs"
14134 test -z "$ac_dir" && ac_dir=.
14135 if test -f $ac_dir/file; then
14136 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14137 if test -n "$file_magic_test_file"; then
14138 case $deplibs_check_method in
14139 "file_magic "*)
14140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14143 $EGREP "$file_magic_regex" > /dev/null; then
14144 :
14145 else
14146 cat <<_LT_EOF 1>&2
14147
14148*** Warning: the command libtool uses to detect shared libraries,
14149*** $file_magic_cmd, produces output that libtool cannot recognize.
14150*** The result is that libtool may fail to recognize shared libraries
14151*** as such. This will affect the creation of libtool libraries that
14152*** depend on shared libraries, but programs linked with such libtool
14153*** libraries will work regardless of this problem. Nevertheless, you
14154*** may want to report the problem to your system manager and/or to
14155*** bug-libtool@gnu.org
14156
14157_LT_EOF
14158 fi ;;
14159 esac
14160 fi
14161 break
14162 fi
14163 done
14164 IFS="$lt_save_ifs"
14165 MAGIC_CMD="$lt_save_MAGIC_CMD"
14166 ;;
14167esac
14168fi
14169
14170MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14171if test -n "$MAGIC_CMD"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14173$as_echo "$MAGIC_CMD" >&6; }
14174else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176$as_echo "no" >&6; }
14177fi
14178
14179
14180 else
14181 MAGIC_CMD=:
14182 fi
14183fi
14184
14185 fi
14186 ;;
14187esac
14188
14189# Use C for the default configuration in the libtool script
14190
14191lt_save_CC="$CC"
14192ac_ext=c
14193ac_cpp='$CPP $CPPFLAGS'
14194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14196ac_compiler_gnu=$ac_cv_c_compiler_gnu
14197
14198
14199# Source file extension for C test sources.
14200ac_ext=c
14201
14202# Object file extension for compiled C test sources.
14203objext=o
14204objext=$objext
14205
14206# Code to be used in simple compile tests
14207lt_simple_compile_test_code="int some_variable = 0;"
14208
14209# Code to be used in simple link tests
14210lt_simple_link_test_code='int main(){return(0);}'
14211
14212
14213
14214
14215
14216
14217
14218# If no C compiler was specified, use CC.
14219LTCC=${LTCC-"$CC"}
14220
14221# If no C compiler flags were specified, use CFLAGS.
14222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14223
14224# Allow CC to be a program name with arguments.
14225compiler=$CC
14226
14227# Save the default compiler, since it gets overwritten when the other
14228# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14229compiler_DEFAULT=$CC
14230
14231# save warnings/boilerplate of simple test code
14232ac_outfile=conftest.$ac_objext
14233echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14235_lt_compiler_boilerplate=`cat conftest.err`
14236$RM conftest*
14237
14238ac_outfile=conftest.$ac_objext
14239echo "$lt_simple_link_test_code" >conftest.$ac_ext
14240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14241_lt_linker_boilerplate=`cat conftest.err`
14242$RM -r conftest*
14243
14244
14245## CAVEAT EMPTOR:
14246## There is no encapsulation within the following macros, do not change
14247## the running order or otherwise move them around unless you know exactly
14248## what you are doing...
14249if test -n "$compiler"; then
14250
14251lt_prog_compiler_no_builtin_flag=
14252
14253if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014254 case $cc_basename in
14255 nvcc*)
14256 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14257 *)
14258 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14259 esac
cristy73bd4a52010-10-05 11:24:23 +000014260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14262$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014263if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014264 $as_echo_n "(cached) " >&6
14265else
14266 lt_cv_prog_compiler_rtti_exceptions=no
14267 ac_outfile=conftest.$ac_objext
14268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14269 lt_compiler_flag="-fno-rtti -fno-exceptions"
14270 # Insert the option either (1) after the last *FLAGS variable, or
14271 # (2) before a word containing "conftest.", or (3) at the end.
14272 # Note that $ac_compile itself does not contain backslashes and begins
14273 # with a dollar sign (not a hyphen), so the echo should work correctly.
14274 # The option is referenced via a variable to avoid confusing sed.
14275 lt_compile=`echo "$ac_compile" | $SED \
14276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14278 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014280 (eval "$lt_compile" 2>conftest.err)
14281 ac_status=$?
14282 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014284 if (exit $ac_status) && test -s "$ac_outfile"; then
14285 # The compiler can only warn and ignore the option if not recognized
14286 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14290 lt_cv_prog_compiler_rtti_exceptions=yes
14291 fi
14292 fi
14293 $RM conftest*
14294
14295fi
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14297$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14298
14299if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14300 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14301else
14302 :
14303fi
14304
14305fi
14306
14307
14308
14309
14310
14311
14312 lt_prog_compiler_wl=
14313lt_prog_compiler_pic=
14314lt_prog_compiler_static=
14315
cristy73bd4a52010-10-05 11:24:23 +000014316
14317 if test "$GCC" = yes; then
14318 lt_prog_compiler_wl='-Wl,'
14319 lt_prog_compiler_static='-static'
14320
14321 case $host_os in
14322 aix*)
14323 # All AIX code is PIC.
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 now supports IA64 processor
14326 lt_prog_compiler_static='-Bstatic'
14327 fi
14328 ;;
14329
14330 amigaos*)
14331 case $host_cpu in
14332 powerpc)
14333 # see comment about AmigaOS4 .so support
14334 lt_prog_compiler_pic='-fPIC'
14335 ;;
14336 m68k)
14337 # FIXME: we need at least 68020 code to build shared libraries, but
14338 # adding the `-m68020' flag to GCC prevents building anything better,
14339 # like `-m68040'.
14340 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14341 ;;
14342 esac
14343 ;;
14344
14345 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14346 # PIC is the default for these OSes.
14347 ;;
14348
14349 mingw* | cygwin* | pw32* | os2* | cegcc*)
14350 # This hack is so that the source file can tell whether it is being
14351 # built for inclusion in a dll (and should export symbols for example).
14352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14353 # (--disable-auto-import) libraries
14354 lt_prog_compiler_pic='-DDLL_EXPORT'
14355 ;;
14356
14357 darwin* | rhapsody*)
14358 # PIC is the default on this platform
14359 # Common symbols not allowed in MH_DYLIB files
14360 lt_prog_compiler_pic='-fno-common'
14361 ;;
14362
cristy0c60a692010-11-04 01:09:47 +000014363 haiku*)
14364 # PIC is the default for Haiku.
14365 # The "-static" flag exists, but is broken.
14366 lt_prog_compiler_static=
14367 ;;
14368
cristy73bd4a52010-10-05 11:24:23 +000014369 hpux*)
14370 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14371 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14372 # sets the default TLS model and affects inlining.
14373 case $host_cpu in
14374 hppa*64*)
14375 # +Z the default
14376 ;;
14377 *)
14378 lt_prog_compiler_pic='-fPIC'
14379 ;;
14380 esac
14381 ;;
14382
14383 interix[3-9]*)
14384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14385 # Instead, we relocate shared libraries at runtime.
14386 ;;
14387
14388 msdosdjgpp*)
14389 # Just because we use GCC doesn't mean we suddenly get shared libraries
14390 # on systems that don't support them.
14391 lt_prog_compiler_can_build_shared=no
14392 enable_shared=no
14393 ;;
14394
14395 *nto* | *qnx*)
14396 # QNX uses GNU C++, but need to define -shared option too, otherwise
14397 # it will coredump.
14398 lt_prog_compiler_pic='-fPIC -shared'
14399 ;;
14400
14401 sysv4*MP*)
14402 if test -d /usr/nec; then
14403 lt_prog_compiler_pic=-Kconform_pic
14404 fi
14405 ;;
14406
14407 *)
14408 lt_prog_compiler_pic='-fPIC'
14409 ;;
14410 esac
cristy0c60a692010-11-04 01:09:47 +000014411
14412 case $cc_basename in
14413 nvcc*) # Cuda Compiler Driver 2.2
14414 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014415 if test -n "$lt_prog_compiler_pic"; then
14416 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14417 fi
cristy0c60a692010-11-04 01:09:47 +000014418 ;;
14419 esac
cristy73bd4a52010-10-05 11:24:23 +000014420 else
14421 # PORTME Check for flag to pass linker flags through the system compiler.
14422 case $host_os in
14423 aix*)
14424 lt_prog_compiler_wl='-Wl,'
14425 if test "$host_cpu" = ia64; then
14426 # AIX 5 now supports IA64 processor
14427 lt_prog_compiler_static='-Bstatic'
14428 else
14429 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14430 fi
14431 ;;
14432
14433 mingw* | cygwin* | pw32* | os2* | cegcc*)
14434 # This hack is so that the source file can tell whether it is being
14435 # built for inclusion in a dll (and should export symbols for example).
14436 lt_prog_compiler_pic='-DDLL_EXPORT'
14437 ;;
14438
14439 hpux9* | hpux10* | hpux11*)
14440 lt_prog_compiler_wl='-Wl,'
14441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14442 # not for PA HP-UX.
14443 case $host_cpu in
14444 hppa*64*|ia64*)
14445 # +Z the default
14446 ;;
14447 *)
14448 lt_prog_compiler_pic='+Z'
14449 ;;
14450 esac
14451 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14452 lt_prog_compiler_static='${wl}-a ${wl}archive'
14453 ;;
14454
14455 irix5* | irix6* | nonstopux*)
14456 lt_prog_compiler_wl='-Wl,'
14457 # PIC (with -KPIC) is the default.
14458 lt_prog_compiler_static='-non_shared'
14459 ;;
14460
cristy0c60a692010-11-04 01:09:47 +000014461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014462 case $cc_basename in
14463 # old Intel for x86_64 which still supported -KPIC.
14464 ecc*)
14465 lt_prog_compiler_wl='-Wl,'
14466 lt_prog_compiler_pic='-KPIC'
14467 lt_prog_compiler_static='-static'
14468 ;;
14469 # icc used to be incompatible with GCC.
14470 # ICC 10 doesn't accept -KPIC any more.
14471 icc* | ifort*)
14472 lt_prog_compiler_wl='-Wl,'
14473 lt_prog_compiler_pic='-fPIC'
14474 lt_prog_compiler_static='-static'
14475 ;;
14476 # Lahey Fortran 8.1.
14477 lf95*)
14478 lt_prog_compiler_wl='-Wl,'
14479 lt_prog_compiler_pic='--shared'
14480 lt_prog_compiler_static='--static'
14481 ;;
cristyda16f162011-02-19 23:52:17 +000014482 nagfor*)
14483 # NAG Fortran compiler
14484 lt_prog_compiler_wl='-Wl,-Wl,,'
14485 lt_prog_compiler_pic='-PIC'
14486 lt_prog_compiler_static='-Bstatic'
14487 ;;
cristy0c60a692010-11-04 01:09:47 +000014488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014489 # Portland Group compilers (*not* the Pentium gcc compiler,
14490 # which looks to be a dead project)
14491 lt_prog_compiler_wl='-Wl,'
14492 lt_prog_compiler_pic='-fpic'
14493 lt_prog_compiler_static='-Bstatic'
14494 ;;
14495 ccc*)
14496 lt_prog_compiler_wl='-Wl,'
14497 # All Alpha code is PIC.
14498 lt_prog_compiler_static='-non_shared'
14499 ;;
cristy0c60a692010-11-04 01:09:47 +000014500 xl* | bgxl* | bgf* | mpixl*)
14501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014502 lt_prog_compiler_wl='-Wl,'
14503 lt_prog_compiler_pic='-qpic'
14504 lt_prog_compiler_static='-qstaticlink'
14505 ;;
14506 *)
14507 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014508 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14510 lt_prog_compiler_pic='-KPIC'
14511 lt_prog_compiler_static='-Bstatic'
14512 lt_prog_compiler_wl=''
14513 ;;
cristy99bd5232011-12-07 14:38:20 +000014514 *Sun\ F* | *Sun*Fortran*)
14515 lt_prog_compiler_pic='-KPIC'
14516 lt_prog_compiler_static='-Bstatic'
14517 lt_prog_compiler_wl='-Qoption ld '
14518 ;;
cristy73bd4a52010-10-05 11:24:23 +000014519 *Sun\ C*)
14520 # Sun C 5.9
14521 lt_prog_compiler_pic='-KPIC'
14522 lt_prog_compiler_static='-Bstatic'
14523 lt_prog_compiler_wl='-Wl,'
14524 ;;
cristy99bd5232011-12-07 14:38:20 +000014525 *Intel*\ [CF]*Compiler*)
14526 lt_prog_compiler_wl='-Wl,'
14527 lt_prog_compiler_pic='-fPIC'
14528 lt_prog_compiler_static='-static'
14529 ;;
14530 *Portland\ Group*)
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_pic='-fpic'
14533 lt_prog_compiler_static='-Bstatic'
14534 ;;
cristy73bd4a52010-10-05 11:24:23 +000014535 esac
14536 ;;
14537 esac
14538 ;;
14539
14540 newsos6)
14541 lt_prog_compiler_pic='-KPIC'
14542 lt_prog_compiler_static='-Bstatic'
14543 ;;
14544
14545 *nto* | *qnx*)
14546 # QNX uses GNU C++, but need to define -shared option too, otherwise
14547 # it will coredump.
14548 lt_prog_compiler_pic='-fPIC -shared'
14549 ;;
14550
14551 osf3* | osf4* | osf5*)
14552 lt_prog_compiler_wl='-Wl,'
14553 # All OSF/1 code is PIC.
14554 lt_prog_compiler_static='-non_shared'
14555 ;;
14556
14557 rdos*)
14558 lt_prog_compiler_static='-non_shared'
14559 ;;
14560
14561 solaris*)
14562 lt_prog_compiler_pic='-KPIC'
14563 lt_prog_compiler_static='-Bstatic'
14564 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014566 lt_prog_compiler_wl='-Qoption ld ';;
14567 *)
14568 lt_prog_compiler_wl='-Wl,';;
14569 esac
14570 ;;
14571
14572 sunos4*)
14573 lt_prog_compiler_wl='-Qoption ld '
14574 lt_prog_compiler_pic='-PIC'
14575 lt_prog_compiler_static='-Bstatic'
14576 ;;
14577
14578 sysv4 | sysv4.2uw2* | sysv4.3*)
14579 lt_prog_compiler_wl='-Wl,'
14580 lt_prog_compiler_pic='-KPIC'
14581 lt_prog_compiler_static='-Bstatic'
14582 ;;
14583
14584 sysv4*MP*)
14585 if test -d /usr/nec ;then
14586 lt_prog_compiler_pic='-Kconform_pic'
14587 lt_prog_compiler_static='-Bstatic'
14588 fi
14589 ;;
14590
14591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14592 lt_prog_compiler_wl='-Wl,'
14593 lt_prog_compiler_pic='-KPIC'
14594 lt_prog_compiler_static='-Bstatic'
14595 ;;
14596
14597 unicos*)
14598 lt_prog_compiler_wl='-Wl,'
14599 lt_prog_compiler_can_build_shared=no
14600 ;;
14601
14602 uts4*)
14603 lt_prog_compiler_pic='-pic'
14604 lt_prog_compiler_static='-Bstatic'
14605 ;;
14606
14607 *)
14608 lt_prog_compiler_can_build_shared=no
14609 ;;
14610 esac
14611 fi
14612
14613case $host_os in
14614 # For platforms which do not support PIC, -DPIC is meaningless:
14615 *djgpp*)
14616 lt_prog_compiler_pic=
14617 ;;
14618 *)
14619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14620 ;;
14621esac
cristy73bd4a52010-10-05 11:24:23 +000014622
cristyda16f162011-02-19 23:52:17 +000014623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14624$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14625if ${lt_cv_prog_compiler_pic+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627else
14628 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14629fi
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14631$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14632lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014633
14634#
14635# Check to make sure the PIC flag actually works.
14636#
14637if test -n "$lt_prog_compiler_pic"; then
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14639$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014640if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014641 $as_echo_n "(cached) " >&6
14642else
14643 lt_cv_prog_compiler_pic_works=no
14644 ac_outfile=conftest.$ac_objext
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14647 # Insert the option either (1) after the last *FLAGS variable, or
14648 # (2) before a word containing "conftest.", or (3) at the end.
14649 # Note that $ac_compile itself does not contain backslashes and begins
14650 # with a dollar sign (not a hyphen), so the echo should work correctly.
14651 # The option is referenced via a variable to avoid confusing sed.
14652 lt_compile=`echo "$ac_compile" | $SED \
14653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014657 (eval "$lt_compile" 2>conftest.err)
14658 ac_status=$?
14659 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014661 if (exit $ac_status) && test -s "$ac_outfile"; then
14662 # The compiler can only warn and ignore the option if not recognized
14663 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14667 lt_cv_prog_compiler_pic_works=yes
14668 fi
14669 fi
14670 $RM conftest*
14671
14672fi
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14674$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14675
14676if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14677 case $lt_prog_compiler_pic in
14678 "" | " "*) ;;
14679 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14680 esac
14681else
14682 lt_prog_compiler_pic=
14683 lt_prog_compiler_can_build_shared=no
14684fi
14685
14686fi
14687
14688
14689
14690
14691
14692
cristyda16f162011-02-19 23:52:17 +000014693
14694
14695
14696
14697
cristy73bd4a52010-10-05 11:24:23 +000014698#
14699# Check to make sure the static flag actually works.
14700#
14701wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14703$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014704if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014705 $as_echo_n "(cached) " >&6
14706else
14707 lt_cv_prog_compiler_static_works=no
14708 save_LDFLAGS="$LDFLAGS"
14709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14712 # The linker can only warn and ignore the option if not recognized
14713 # So say no if there are warnings
14714 if test -s conftest.err; then
14715 # Append any errors to the config.log.
14716 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14719 if diff conftest.exp conftest.er2 >/dev/null; then
14720 lt_cv_prog_compiler_static_works=yes
14721 fi
14722 else
14723 lt_cv_prog_compiler_static_works=yes
14724 fi
14725 fi
14726 $RM -r conftest*
14727 LDFLAGS="$save_LDFLAGS"
14728
14729fi
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14731$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14732
14733if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14734 :
14735else
14736 lt_prog_compiler_static=
14737fi
14738
14739
14740
14741
14742
14743
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14746$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014747if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014748 $as_echo_n "(cached) " >&6
14749else
14750 lt_cv_prog_compiler_c_o=no
14751 $RM -r conftest 2>/dev/null
14752 mkdir conftest
14753 cd conftest
14754 mkdir out
14755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14756
14757 lt_compiler_flag="-o out/conftest2.$ac_objext"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 lt_compile=`echo "$ac_compile" | $SED \
14763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014767 (eval "$lt_compile" 2>out/conftest.err)
14768 ac_status=$?
14769 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14772 then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_c_o=yes
14779 fi
14780 fi
14781 chmod u+w . 2>&5
14782 $RM conftest*
14783 # SGI C++ compiler will create directory out/ii_files/ for
14784 # template instantiation
14785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14786 $RM out/* && rmdir out
14787 cd ..
14788 $RM -r conftest
14789 $RM conftest*
14790
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14793$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14794
14795
14796
14797
14798
14799
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14801$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014802if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014803 $as_echo_n "(cached) " >&6
14804else
14805 lt_cv_prog_compiler_c_o=no
14806 $RM -r conftest 2>/dev/null
14807 mkdir conftest
14808 cd conftest
14809 mkdir out
14810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14811
14812 lt_compiler_flag="-o out/conftest2.$ac_objext"
14813 # Insert the option either (1) after the last *FLAGS variable, or
14814 # (2) before a word containing "conftest.", or (3) at the end.
14815 # Note that $ac_compile itself does not contain backslashes and begins
14816 # with a dollar sign (not a hyphen), so the echo should work correctly.
14817 lt_compile=`echo "$ac_compile" | $SED \
14818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014822 (eval "$lt_compile" 2>out/conftest.err)
14823 ac_status=$?
14824 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14827 then
14828 # The compiler can only warn and ignore the option if not recognized
14829 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833 lt_cv_prog_compiler_c_o=yes
14834 fi
14835 fi
14836 chmod u+w . 2>&5
14837 $RM conftest*
14838 # SGI C++ compiler will create directory out/ii_files/ for
14839 # template instantiation
14840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14841 $RM out/* && rmdir out
14842 cd ..
14843 $RM -r conftest
14844 $RM conftest*
14845
14846fi
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14848$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14849
14850
14851
14852
14853hard_links="nottested"
14854if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14855 # do not overwrite the value of need_locks provided by the user
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14857$as_echo_n "checking if we can lock with hard links... " >&6; }
14858 hard_links=yes
14859 $RM conftest*
14860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14861 touch conftest.a
14862 ln conftest.a conftest.b 2>&5 || hard_links=no
14863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14865$as_echo "$hard_links" >&6; }
14866 if test "$hard_links" = no; then
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14868$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14869 need_locks=warn
14870 fi
14871else
14872 need_locks=no
14873fi
14874
14875
14876
14877
14878
14879
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14881$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14882
14883 runpath_var=
14884 allow_undefined_flag=
14885 always_export_symbols=no
14886 archive_cmds=
14887 archive_expsym_cmds=
14888 compiler_needs_object=no
14889 enable_shared_with_static_runtimes=no
14890 export_dynamic_flag_spec=
14891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14892 hardcode_automatic=no
14893 hardcode_direct=no
14894 hardcode_direct_absolute=no
14895 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014896 hardcode_libdir_separator=
14897 hardcode_minus_L=no
14898 hardcode_shlibpath_var=unsupported
14899 inherit_rpath=no
14900 link_all_deplibs=unknown
14901 module_cmds=
14902 module_expsym_cmds=
14903 old_archive_from_new_cmds=
14904 old_archive_from_expsyms_cmds=
14905 thread_safe_flag_spec=
14906 whole_archive_flag_spec=
14907 # include_expsyms should be a list of space-separated symbols to be *always*
14908 # included in the symbol list
14909 include_expsyms=
14910 # exclude_expsyms can be an extended regexp of symbols to exclude
14911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14913 # as well as any symbol that contains `d'.
14914 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14916 # platforms (ab)use it in PIC code, but their linkers get confused if
14917 # the symbol is explicitly referenced. Since portable code cannot
14918 # rely on this symbol name, it's probably fine to never include it in
14919 # preloaded symbol tables.
14920 # Exclude shared library initialization/finalization symbols.
14921 extract_expsyms_cmds=
14922
14923 case $host_os in
14924 cygwin* | mingw* | pw32* | cegcc*)
14925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14926 # When not using gcc, we currently assume that we are using
14927 # Microsoft Visual C++.
14928 if test "$GCC" != yes; then
14929 with_gnu_ld=no
14930 fi
14931 ;;
14932 interix*)
14933 # we just hope/assume this is gcc and not c89 (= MSVC++)
14934 with_gnu_ld=yes
14935 ;;
14936 openbsd*)
14937 with_gnu_ld=no
14938 ;;
14939 esac
14940
14941 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014942
14943 # On some targets, GNU ld is compatible enough with the native linker
14944 # that we're better off using the native interface for both.
14945 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014946 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014947 case $host_os in
14948 aix*)
14949 # The AIX port of GNU ld has always aspired to compatibility
14950 # with the native linker. However, as the warning in the GNU ld
14951 # block says, versions before 2.19.5* couldn't really create working
14952 # shared libraries, regardless of the interface used.
14953 case `$LD -v 2>&1` in
14954 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14955 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14956 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14957 *)
14958 lt_use_gnu_ld_interface=yes
14959 ;;
14960 esac
14961 ;;
14962 *)
14963 lt_use_gnu_ld_interface=yes
14964 ;;
14965 esac
14966 fi
14967
14968 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014969 # If archive_cmds runs LD, not CC, wlarc should be empty
14970 wlarc='${wl}'
14971
14972 # Set some defaults for GNU ld with shared library support. These
14973 # are reset later if shared libraries are not supported. Putting them
14974 # here allows them to be overridden if necessary.
14975 runpath_var=LD_RUN_PATH
14976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14977 export_dynamic_flag_spec='${wl}--export-dynamic'
14978 # ancient GNU ld didn't support --whole-archive et. al.
14979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14981 else
14982 whole_archive_flag_spec=
14983 fi
14984 supports_anon_versioning=no
14985 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014986 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14990 *\ 2.11.*) ;; # other 2.11 versions
14991 *) supports_anon_versioning=yes ;;
14992 esac
14993
14994 # See if GNU ld supports shared libraries.
14995 case $host_os in
14996 aix[3-9]*)
14997 # On AIX/PPC, the GNU linker is very broken
14998 if test "$host_cpu" != ia64; then
14999 ld_shlibs=no
15000 cat <<_LT_EOF 1>&2
15001
cristy0c60a692010-11-04 01:09:47 +000015002*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015003*** to be unable to reliably create shared libraries on AIX.
15004*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015005*** really care for shared libraries, you may want to install binutils
15006*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15007*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015008
15009_LT_EOF
15010 fi
15011 ;;
15012
15013 amigaos*)
15014 case $host_cpu in
15015 powerpc)
15016 # see comment about AmigaOS4 .so support
15017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 archive_expsym_cmds=''
15019 ;;
15020 m68k)
15021 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15022 hardcode_libdir_flag_spec='-L$libdir'
15023 hardcode_minus_L=yes
15024 ;;
15025 esac
15026 ;;
15027
15028 beos*)
15029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15030 allow_undefined_flag=unsupported
15031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15032 # support --undefined. This deserves some investigation. FIXME
15033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034 else
15035 ld_shlibs=no
15036 fi
15037 ;;
15038
15039 cygwin* | mingw* | pw32* | cegcc*)
15040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15041 # as there is no search path for DLLs.
15042 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015043 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015044 allow_undefined_flag=unsupported
15045 always_export_symbols=no
15046 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15048 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000015049
15050 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15052 # If the export-symbols file already is a .def file (1st line
15053 # is EXPORTS), use it as is; otherwise, prepend...
15054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15055 cp $export_symbols $output_objdir/$soname.def;
15056 else
15057 echo EXPORTS > $output_objdir/$soname.def;
15058 cat $export_symbols >> $output_objdir/$soname.def;
15059 fi~
15060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15061 else
15062 ld_shlibs=no
15063 fi
15064 ;;
15065
cristy0c60a692010-11-04 01:09:47 +000015066 haiku*)
15067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15068 link_all_deplibs=yes
15069 ;;
15070
cristy73bd4a52010-10-05 11:24:23 +000015071 interix[3-9]*)
15072 hardcode_direct=no
15073 hardcode_shlibpath_var=no
15074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15075 export_dynamic_flag_spec='${wl}-E'
15076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15077 # Instead, shared libraries are loaded at an image base (0x10000000 by
15078 # default) and relocated if they conflict, which is a slow very memory
15079 # consuming and fragmenting process. To avoid this, we pick a random,
15080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15083 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15084 ;;
15085
cristy0c60a692010-11-04 01:09:47 +000015086 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015087 tmp_diet=no
15088 if test "$host_os" = linux-dietlibc; then
15089 case $cc_basename in
15090 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15091 esac
15092 fi
15093 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15094 && test "$tmp_diet" = no
15095 then
cristyda16f162011-02-19 23:52:17 +000015096 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015097 tmp_sharedflag='-shared'
15098 case $cc_basename,$host_cpu in
15099 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015100 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015101 tmp_addflag=' $pic_flag'
15102 ;;
cristy0c60a692010-11-04 01:09:47 +000015103 pgf77* | pgf90* | pgf95* | pgfortran*)
15104 # Portland Group f77 and f90 compilers
15105 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015106 tmp_addflag=' $pic_flag -Mnomain' ;;
15107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15108 tmp_addflag=' -i_dynamic' ;;
15109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15110 tmp_addflag=' -i_dynamic -nofor_main' ;;
15111 ifc* | ifort*) # Intel Fortran compiler
15112 tmp_addflag=' -nofor_main' ;;
15113 lf95*) # Lahey Fortran 8.1
15114 whole_archive_flag_spec=
15115 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015116 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015117 tmp_sharedflag='-qmkshrobj'
15118 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015119 nvcc*) # Cuda Compiler Driver 2.2
15120 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15121 compiler_needs_object=yes
15122 ;;
cristy73bd4a52010-10-05 11:24:23 +000015123 esac
15124 case `$CC -V 2>&1 | sed 5q` in
15125 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015126 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015127 compiler_needs_object=yes
15128 tmp_sharedflag='-G' ;;
15129 *Sun\ F*) # Sun Fortran 8.3
15130 tmp_sharedflag='-G' ;;
15131 esac
15132 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133
15134 if test "x$supports_anon_versioning" = xyes; then
15135 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15137 echo "local: *; };" >> $output_objdir/$libname.ver~
15138 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15139 fi
15140
15141 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015142 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015143 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15144 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015146 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015147 if test "x$supports_anon_versioning" = xyes; then
15148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15150 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015151 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015152 fi
15153 ;;
15154 esac
15155 else
15156 ld_shlibs=no
15157 fi
15158 ;;
15159
15160 netbsd*)
15161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15163 wlarc=
15164 else
cristyda16f162011-02-19 23:52:17 +000015165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015167 fi
15168 ;;
15169
15170 solaris*)
15171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15172 ld_shlibs=no
15173 cat <<_LT_EOF 1>&2
15174
15175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15176*** create shared libraries on Solaris systems. Therefore, libtool
15177*** is disabling shared libraries support. We urge you to upgrade GNU
15178*** binutils to release 2.9.1 or newer. Another option is to modify
15179*** your PATH or compiler configuration so that the native linker is
15180*** used, and then restart.
15181
15182_LT_EOF
15183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015186 else
15187 ld_shlibs=no
15188 fi
15189 ;;
15190
15191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15192 case `$LD -v 2>&1` in
15193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15194 ld_shlibs=no
15195 cat <<_LT_EOF 1>&2
15196
15197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15198*** reliably create shared libraries on SCO systems. Therefore, libtool
15199*** is disabling shared libraries support. We urge you to upgrade GNU
15200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15201*** your PATH or compiler configuration so that the native linker is
15202*** used, and then restart.
15203
15204_LT_EOF
15205 ;;
15206 *)
15207 # For security reasons, it is highly recommended that you always
15208 # use absolute paths for naming shared libraries, and exclude the
15209 # DT_RUNPATH tag from executables and libraries. But doing so
15210 # requires that you compile everything twice, which is a pain.
15211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15215 else
15216 ld_shlibs=no
15217 fi
15218 ;;
15219 esac
15220 ;;
15221
15222 sunos4*)
15223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15224 wlarc=
15225 hardcode_direct=yes
15226 hardcode_shlibpath_var=no
15227 ;;
15228
15229 *)
15230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015233 else
15234 ld_shlibs=no
15235 fi
15236 ;;
15237 esac
15238
15239 if test "$ld_shlibs" = no; then
15240 runpath_var=
15241 hardcode_libdir_flag_spec=
15242 export_dynamic_flag_spec=
15243 whole_archive_flag_spec=
15244 fi
15245 else
15246 # PORTME fill in a description of your system's linker (not GNU ld)
15247 case $host_os in
15248 aix3*)
15249 allow_undefined_flag=unsupported
15250 always_export_symbols=yes
15251 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15252 # Note: this linker hardcodes the directories in LIBPATH if there
15253 # are no directories specified by -L.
15254 hardcode_minus_L=yes
15255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15256 # Neither direct hardcoding nor static linking is supported with a
15257 # broken collect2.
15258 hardcode_direct=unsupported
15259 fi
15260 ;;
15261
15262 aix[4-9]*)
15263 if test "$host_cpu" = ia64; then
15264 # On IA64, the linker does run time linking by default, so we don't
15265 # have to do anything special.
15266 aix_use_runtimelinking=no
15267 exp_sym_flag='-Bexport'
15268 no_entry_flag=""
15269 else
15270 # If we're using GNU nm, then we don't want the "-C" option.
15271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015272 # Also, AIX nm treats weak defined symbols like other global
15273 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015275 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000015276 else
15277 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15278 fi
15279 aix_use_runtimelinking=no
15280
15281 # Test if we are trying to use run time linking or normal
15282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15283 # need to do runtime linking.
15284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15285 for ld_flag in $LDFLAGS; do
15286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15287 aix_use_runtimelinking=yes
15288 break
15289 fi
15290 done
15291 ;;
15292 esac
15293
15294 exp_sym_flag='-bexport'
15295 no_entry_flag='-bnoentry'
15296 fi
15297
15298 # When large executables or shared objects are built, AIX ld can
15299 # have problems creating the table of contents. If linking a library
15300 # or program results in "error TOC overflow" add -mminimal-toc to
15301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15303
15304 archive_cmds=''
15305 hardcode_direct=yes
15306 hardcode_direct_absolute=yes
15307 hardcode_libdir_separator=':'
15308 link_all_deplibs=yes
15309 file_list_spec='${wl}-f,'
15310
15311 if test "$GCC" = yes; then
15312 case $host_os in aix4.[012]|aix4.[012].*)
15313 # We only want to do this on AIX 4.2 and lower, the check
15314 # below for broken collect2 doesn't work under 4.3+
15315 collect2name=`${CC} -print-prog-name=collect2`
15316 if test -f "$collect2name" &&
15317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15318 then
15319 # We have reworked collect2
15320 :
15321 else
15322 # We have old collect2
15323 hardcode_direct=unsupported
15324 # It fails to find uninstalled libraries when the uninstalled
15325 # path is not listed in the libpath. Setting hardcode_minus_L
15326 # to unsupported forces relinking
15327 hardcode_minus_L=yes
15328 hardcode_libdir_flag_spec='-L$libdir'
15329 hardcode_libdir_separator=
15330 fi
15331 ;;
15332 esac
15333 shared_flag='-shared'
15334 if test "$aix_use_runtimelinking" = yes; then
15335 shared_flag="$shared_flag "'${wl}-G'
15336 fi
15337 else
15338 # not using gcc
15339 if test "$host_cpu" = ia64; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15342 shared_flag='-G'
15343 else
15344 if test "$aix_use_runtimelinking" = yes; then
15345 shared_flag='${wl}-G'
15346 else
15347 shared_flag='${wl}-bM:SRE'
15348 fi
15349 fi
15350 fi
15351
15352 export_dynamic_flag_spec='${wl}-bexpall'
15353 # It seems that -bexpall does not export symbols beginning with
15354 # underscore (_), so it is better to generate a list of symbols to export.
15355 always_export_symbols=yes
15356 if test "$aix_use_runtimelinking" = yes; then
15357 # Warning - without using the other runtime loading flags (-brtl),
15358 # -berok will link without error, but may produce a broken library.
15359 allow_undefined_flag='-berok'
15360 # Determine the default libpath from the value encoded in an
15361 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015362 if test "${lt_cv_aix_libpath+set}" = set; then
15363 aix_libpath=$lt_cv_aix_libpath
15364else
15365 if ${lt_cv_aix_libpath_+:} false; then :
15366 $as_echo_n "(cached) " >&6
15367else
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015369/* end confdefs.h. */
15370
15371int
15372main ()
15373{
15374
15375 ;
15376 return 0;
15377}
15378_ACEOF
15379if ac_fn_c_try_link "$LINENO"; then :
15380
cristyda16f162011-02-19 23:52:17 +000015381 lt_aix_libpath_sed='
15382 /Import File Strings/,/^$/ {
15383 /^0/ {
15384 s/^0 *\([^ ]*\) *$/\1/
15385 p
15386 }
15387 }'
15388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15389 # Check for a 64-bit object if we didn't find anything.
15390 if test -z "$lt_cv_aix_libpath_"; then
15391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 fi
cristy73bd4a52010-10-05 11:24:23 +000015393fi
15394rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015396 if test -z "$lt_cv_aix_libpath_"; then
15397 lt_cv_aix_libpath_="/usr/lib:/lib"
15398 fi
15399
15400fi
15401
15402 aix_libpath=$lt_cv_aix_libpath_
15403fi
cristy73bd4a52010-10-05 11:24:23 +000015404
15405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015406 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000015407 else
15408 if test "$host_cpu" = ia64; then
15409 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15410 allow_undefined_flag="-z nodefs"
15411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15412 else
15413 # Determine the default libpath from the value encoded in an
15414 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015415 if test "${lt_cv_aix_libpath+set}" = set; then
15416 aix_libpath=$lt_cv_aix_libpath
15417else
15418 if ${lt_cv_aix_libpath_+:} false; then :
15419 $as_echo_n "(cached) " >&6
15420else
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015422/* end confdefs.h. */
15423
15424int
15425main ()
15426{
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432if ac_fn_c_try_link "$LINENO"; then :
15433
cristyda16f162011-02-19 23:52:17 +000015434 lt_aix_libpath_sed='
15435 /Import File Strings/,/^$/ {
15436 /^0/ {
15437 s/^0 *\([^ ]*\) *$/\1/
15438 p
15439 }
15440 }'
15441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15442 # Check for a 64-bit object if we didn't find anything.
15443 if test -z "$lt_cv_aix_libpath_"; then
15444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15445 fi
cristy73bd4a52010-10-05 11:24:23 +000015446fi
15447rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015449 if test -z "$lt_cv_aix_libpath_"; then
15450 lt_cv_aix_libpath_="/usr/lib:/lib"
15451 fi
15452
15453fi
15454
15455 aix_libpath=$lt_cv_aix_libpath_
15456fi
cristy73bd4a52010-10-05 11:24:23 +000015457
15458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15459 # Warning - without using the other run time loading flags,
15460 # -berok will link without error, but may produce a broken library.
15461 no_undefined_flag=' ${wl}-bernotok'
15462 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015463 if test "$with_gnu_ld" = yes; then
15464 # We only use this code for GNU lds that support --whole-archive.
15465 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15466 else
15467 # Exported symbols can be pulled into shared objects from archives
15468 whole_archive_flag_spec='$convenience'
15469 fi
cristy73bd4a52010-10-05 11:24:23 +000015470 archive_cmds_need_lc=yes
15471 # This is similar to how AIX traditionally builds its shared libraries.
15472 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15473 fi
15474 fi
15475 ;;
15476
15477 amigaos*)
15478 case $host_cpu in
15479 powerpc)
15480 # see comment about AmigaOS4 .so support
15481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds=''
15483 ;;
15484 m68k)
15485 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15486 hardcode_libdir_flag_spec='-L$libdir'
15487 hardcode_minus_L=yes
15488 ;;
15489 esac
15490 ;;
15491
15492 bsdi[45]*)
15493 export_dynamic_flag_spec=-rdynamic
15494 ;;
15495
15496 cygwin* | mingw* | pw32* | cegcc*)
15497 # When not using gcc, we currently assume that we are using
15498 # Microsoft Visual C++.
15499 # hardcode_libdir_flag_spec is actually meaningless, as there is
15500 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015501 case $cc_basename in
15502 cl*)
15503 # Native MSVC
15504 hardcode_libdir_flag_spec=' '
15505 allow_undefined_flag=unsupported
15506 always_export_symbols=yes
15507 file_list_spec='@'
15508 # Tell ltmain to make .lib files, not .a files.
15509 libext=lib
15510 # Tell ltmain to make .dll files, not .so files.
15511 shrext_cmds=".dll"
15512 # FIXME: Setting linknames here is a bad hack.
15513 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15514 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15515 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15516 else
15517 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15518 fi~
15519 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15520 linknames='
15521 # The linker will not automatically build a static lib if we build a DLL.
15522 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15523 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015524 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15526 # Don't use ranlib
15527 old_postinstall_cmds='chmod 644 $oldlib'
15528 postlink_cmds='lt_outputfile="@OUTPUT@"~
15529 lt_tool_outputfile="@TOOL_OUTPUT@"~
15530 case $lt_outputfile in
15531 *.exe|*.EXE) ;;
15532 *)
15533 lt_outputfile="$lt_outputfile.exe"
15534 lt_tool_outputfile="$lt_tool_outputfile.exe"
15535 ;;
15536 esac~
15537 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15538 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15539 $RM "$lt_outputfile.manifest";
15540 fi'
15541 ;;
15542 *)
15543 # Assume MSVC wrapper
15544 hardcode_libdir_flag_spec=' '
15545 allow_undefined_flag=unsupported
15546 # Tell ltmain to make .lib files, not .a files.
15547 libext=lib
15548 # Tell ltmain to make .dll files, not .so files.
15549 shrext_cmds=".dll"
15550 # FIXME: Setting linknames here is a bad hack.
15551 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15552 # The linker will automatically build a .lib file if we build a DLL.
15553 old_archive_from_new_cmds='true'
15554 # FIXME: Should let the user specify the lib program.
15555 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15556 enable_shared_with_static_runtimes=yes
15557 ;;
15558 esac
cristy73bd4a52010-10-05 11:24:23 +000015559 ;;
15560
15561 darwin* | rhapsody*)
15562
15563
15564 archive_cmds_need_lc=no
15565 hardcode_direct=no
15566 hardcode_automatic=yes
15567 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015568 if test "$lt_cv_ld_force_load" = "yes"; then
15569 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015570
cristy0c60a692010-11-04 01:09:47 +000015571 else
15572 whole_archive_flag_spec=''
15573 fi
cristy73bd4a52010-10-05 11:24:23 +000015574 link_all_deplibs=yes
15575 allow_undefined_flag="$_lt_dar_allow_undefined"
15576 case $cc_basename in
15577 ifort*) _lt_dar_can_shared=yes ;;
15578 *) _lt_dar_can_shared=$GCC ;;
15579 esac
15580 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015581 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015582 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15583 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15584 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15585 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15586
15587 else
15588 ld_shlibs=no
15589 fi
15590
15591 ;;
15592
15593 dgux*)
15594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_libdir_flag_spec='-L$libdir'
15596 hardcode_shlibpath_var=no
15597 ;;
15598
cristy73bd4a52010-10-05 11:24:23 +000015599 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15600 # support. Future versions do this automatically, but an explicit c++rt0.o
15601 # does not break anything, and helps significantly (at the cost of a little
15602 # extra space).
15603 freebsd2.2*)
15604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15605 hardcode_libdir_flag_spec='-R$libdir'
15606 hardcode_direct=yes
15607 hardcode_shlibpath_var=no
15608 ;;
15609
15610 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015611 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15613 hardcode_direct=yes
15614 hardcode_minus_L=yes
15615 hardcode_shlibpath_var=no
15616 ;;
15617
15618 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15619 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015621 hardcode_libdir_flag_spec='-R$libdir'
15622 hardcode_direct=yes
15623 hardcode_shlibpath_var=no
15624 ;;
15625
15626 hpux9*)
15627 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015628 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000015629 else
15630 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15631 fi
15632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15633 hardcode_libdir_separator=:
15634 hardcode_direct=yes
15635
15636 # hardcode_minus_L: Not really in the search PATH,
15637 # but as the default location of the library.
15638 hardcode_minus_L=yes
15639 export_dynamic_flag_spec='${wl}-E'
15640 ;;
15641
15642 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015643 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015644 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015645 else
15646 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15647 fi
15648 if test "$with_gnu_ld" = no; then
15649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015650 hardcode_libdir_separator=:
15651 hardcode_direct=yes
15652 hardcode_direct_absolute=yes
15653 export_dynamic_flag_spec='${wl}-E'
15654 # hardcode_minus_L: Not really in the search PATH,
15655 # but as the default location of the library.
15656 hardcode_minus_L=yes
15657 fi
15658 ;;
15659
15660 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015661 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015662 case $host_cpu in
15663 hppa*64*)
15664 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 ;;
15666 ia64*)
cristyda16f162011-02-19 23:52:17 +000015667 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015668 ;;
15669 *)
cristyda16f162011-02-19 23:52:17 +000015670 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015671 ;;
15672 esac
15673 else
15674 case $host_cpu in
15675 hppa*64*)
15676 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677 ;;
15678 ia64*)
15679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15680 ;;
15681 *)
cristy0c60a692010-11-04 01:09:47 +000015682
15683 # Older versions of the 11.00 compiler do not understand -b yet
15684 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15686$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015687if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015688 $as_echo_n "(cached) " >&6
15689else
15690 lt_cv_prog_compiler__b=no
15691 save_LDFLAGS="$LDFLAGS"
15692 LDFLAGS="$LDFLAGS -b"
15693 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15694 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15695 # The linker can only warn and ignore the option if not recognized
15696 # So say no if there are warnings
15697 if test -s conftest.err; then
15698 # Append any errors to the config.log.
15699 cat conftest.err 1>&5
15700 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15702 if diff conftest.exp conftest.er2 >/dev/null; then
15703 lt_cv_prog_compiler__b=yes
15704 fi
15705 else
15706 lt_cv_prog_compiler__b=yes
15707 fi
15708 fi
15709 $RM -r conftest*
15710 LDFLAGS="$save_LDFLAGS"
15711
15712fi
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15714$as_echo "$lt_cv_prog_compiler__b" >&6; }
15715
15716if test x"$lt_cv_prog_compiler__b" = xyes; then
15717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15718else
15719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15720fi
15721
cristy73bd4a52010-10-05 11:24:23 +000015722 ;;
15723 esac
15724 fi
15725 if test "$with_gnu_ld" = no; then
15726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15727 hardcode_libdir_separator=:
15728
15729 case $host_cpu in
15730 hppa*64*|ia64*)
15731 hardcode_direct=no
15732 hardcode_shlibpath_var=no
15733 ;;
15734 *)
15735 hardcode_direct=yes
15736 hardcode_direct_absolute=yes
15737 export_dynamic_flag_spec='${wl}-E'
15738
15739 # hardcode_minus_L: Not really in the search PATH,
15740 # but as the default location of the library.
15741 hardcode_minus_L=yes
15742 ;;
15743 esac
15744 fi
15745 ;;
15746
15747 irix5* | irix6* | nonstopux*)
15748 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015750 # Try to use the -exported_symbol ld option, if it does not
15751 # work, assume that -exports_file does not work either and
15752 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015753 # This should be the same for all languages, so no per-tag cache variable.
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15755$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15756if ${lt_cv_irix_exported_symbol+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758else
15759 save_LDFLAGS="$LDFLAGS"
15760 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015762/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015763int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015764_ACEOF
15765if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015766 lt_cv_irix_exported_symbol=yes
15767else
15768 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015769fi
15770rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015772 LDFLAGS="$save_LDFLAGS"
15773fi
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15775$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15776 if test "$lt_cv_irix_exported_symbol" = yes; then
15777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15778 fi
cristy73bd4a52010-10-05 11:24:23 +000015779 else
cristy0c60a692010-11-04 01:09:47 +000015780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015782 fi
15783 archive_cmds_need_lc='no'
15784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15785 hardcode_libdir_separator=:
15786 inherit_rpath=yes
15787 link_all_deplibs=yes
15788 ;;
15789
15790 netbsd*)
15791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15793 else
15794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15795 fi
15796 hardcode_libdir_flag_spec='-R$libdir'
15797 hardcode_direct=yes
15798 hardcode_shlibpath_var=no
15799 ;;
15800
15801 newsos6)
15802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15803 hardcode_direct=yes
15804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15805 hardcode_libdir_separator=:
15806 hardcode_shlibpath_var=no
15807 ;;
15808
15809 *nto* | *qnx*)
15810 ;;
15811
15812 openbsd*)
15813 if test -f /usr/libexec/ld.so; then
15814 hardcode_direct=yes
15815 hardcode_shlibpath_var=no
15816 hardcode_direct_absolute=yes
15817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15821 export_dynamic_flag_spec='${wl}-E'
15822 else
15823 case $host_os in
15824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15826 hardcode_libdir_flag_spec='-R$libdir'
15827 ;;
15828 *)
15829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15831 ;;
15832 esac
15833 fi
15834 else
15835 ld_shlibs=no
15836 fi
15837 ;;
15838
15839 os2*)
15840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_minus_L=yes
15842 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015843 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
cristy73bd4a52010-10-05 11:24:23 +000015844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15845 ;;
15846
15847 osf3*)
15848 if test "$GCC" = yes; then
15849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015850 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015851 else
15852 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015853 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015854 fi
15855 archive_cmds_need_lc='no'
15856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15857 hardcode_libdir_separator=:
15858 ;;
15859
15860 osf4* | osf5*) # as osf3* with the addition of -msym flag
15861 if test "$GCC" = yes; then
15862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015863 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15865 else
15866 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015867 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000015869 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015870
15871 # Both c and cxx compiler support -rpath directly
15872 hardcode_libdir_flag_spec='-rpath $libdir'
15873 fi
15874 archive_cmds_need_lc='no'
15875 hardcode_libdir_separator=:
15876 ;;
15877
15878 solaris*)
15879 no_undefined_flag=' -z defs'
15880 if test "$GCC" = yes; then
15881 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015882 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000015884 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015885 else
15886 case `$CC -V 2>&1` in
15887 *"Compilers 5.0"*)
15888 wlarc=''
15889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15892 ;;
15893 *)
15894 wlarc='${wl}'
15895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15898 ;;
15899 esac
15900 fi
15901 hardcode_libdir_flag_spec='-R$libdir'
15902 hardcode_shlibpath_var=no
15903 case $host_os in
15904 solaris2.[0-5] | solaris2.[0-5].*) ;;
15905 *)
15906 # The compiler driver will combine and reorder linker options,
15907 # but understands `-z linker_flag'. GCC discards it without `$wl',
15908 # but is careful enough not to reorder.
15909 # Supported since Solaris 2.6 (maybe 2.5.1?)
15910 if test "$GCC" = yes; then
15911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15912 else
15913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15914 fi
15915 ;;
15916 esac
15917 link_all_deplibs=yes
15918 ;;
15919
15920 sunos4*)
15921 if test "x$host_vendor" = xsequent; then
15922 # Use $CC to link under sequent, because it throws in some extra .o
15923 # files that make .init and .fini sections work.
15924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15925 else
15926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15927 fi
15928 hardcode_libdir_flag_spec='-L$libdir'
15929 hardcode_direct=yes
15930 hardcode_minus_L=yes
15931 hardcode_shlibpath_var=no
15932 ;;
15933
15934 sysv4)
15935 case $host_vendor in
15936 sni)
15937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938 hardcode_direct=yes # is this really true???
15939 ;;
15940 siemens)
15941 ## LD is ld it makes a PLAMLIB
15942 ## CC just makes a GrossModule.
15943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15944 reload_cmds='$CC -r -o $output$reload_objs'
15945 hardcode_direct=no
15946 ;;
15947 motorola)
15948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15950 ;;
15951 esac
15952 runpath_var='LD_RUN_PATH'
15953 hardcode_shlibpath_var=no
15954 ;;
15955
15956 sysv4.3*)
15957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_shlibpath_var=no
15959 export_dynamic_flag_spec='-Bexport'
15960 ;;
15961
15962 sysv4*MP*)
15963 if test -d /usr/nec; then
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_shlibpath_var=no
15966 runpath_var=LD_RUN_PATH
15967 hardcode_runpath_var=yes
15968 ld_shlibs=yes
15969 fi
15970 ;;
15971
15972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15973 no_undefined_flag='${wl}-z,text'
15974 archive_cmds_need_lc=no
15975 hardcode_shlibpath_var=no
15976 runpath_var='LD_RUN_PATH'
15977
15978 if test "$GCC" = yes; then
15979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15981 else
15982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15984 fi
15985 ;;
15986
15987 sysv5* | sco3.2v5* | sco5v6*)
15988 # Note: We can NOT use -z defs as we might desire, because we do not
15989 # link with -lc, and that would cause any symbols used from libc to
15990 # always be unresolved, which means just about no library would
15991 # ever link correctly. If we're not using GNU ld we use -z text
15992 # though, which does catch some bad symbols but isn't as heavy-handed
15993 # as -z defs.
15994 no_undefined_flag='${wl}-z,text'
15995 allow_undefined_flag='${wl}-z,nodefs'
15996 archive_cmds_need_lc=no
15997 hardcode_shlibpath_var=no
15998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15999 hardcode_libdir_separator=':'
16000 link_all_deplibs=yes
16001 export_dynamic_flag_spec='${wl}-Bexport'
16002 runpath_var='LD_RUN_PATH'
16003
16004 if test "$GCC" = yes; then
16005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16007 else
16008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 fi
16011 ;;
16012
16013 uts4*)
16014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_libdir_flag_spec='-L$libdir'
16016 hardcode_shlibpath_var=no
16017 ;;
16018
16019 *)
16020 ld_shlibs=no
16021 ;;
16022 esac
16023
16024 if test x$host_vendor = xsni; then
16025 case $host in
16026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16027 export_dynamic_flag_spec='${wl}-Blargedynsym'
16028 ;;
16029 esac
16030 fi
16031 fi
16032
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16034$as_echo "$ld_shlibs" >&6; }
16035test "$ld_shlibs" = no && can_build_shared=no
16036
16037with_gnu_ld=$with_gnu_ld
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053#
16054# Do we need to explicitly link libc?
16055#
16056case "x$archive_cmds_need_lc" in
16057x|xyes)
16058 # Assume -lc should be added
16059 archive_cmds_need_lc=yes
16060
16061 if test "$enable_shared" = yes && test "$GCC" = yes; then
16062 case $archive_cmds in
16063 *'~'*)
16064 # FIXME: we may have to deal with multi-command sequences.
16065 ;;
16066 '$CC '*)
16067 # Test whether the compiler implicitly links with -lc since on some
16068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16069 # to ld, don't add -lc before -lgcc.
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16071$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016072if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016073 $as_echo_n "(cached) " >&6
16074else
16075 $RM conftest*
16076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016077
cristy0c60a692010-11-04 01:09:47 +000016078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016079 (eval $ac_compile) 2>&5
16080 ac_status=$?
16081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16082 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016083 soname=conftest
16084 lib=conftest
16085 libobjs=conftest.$ac_objext
16086 deplibs=
16087 wl=$lt_prog_compiler_wl
16088 pic_flag=$lt_prog_compiler_pic
16089 compiler_flags=-v
16090 linker_flags=-v
16091 verstring=
16092 output_objdir=.
16093 libname=conftest
16094 lt_save_allow_undefined_flag=$allow_undefined_flag
16095 allow_undefined_flag=
16096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16098 ac_status=$?
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016101 then
16102 lt_cv_archive_cmds_need_lc=no
16103 else
16104 lt_cv_archive_cmds_need_lc=yes
16105 fi
16106 allow_undefined_flag=$lt_save_allow_undefined_flag
16107 else
16108 cat conftest.err 1>&5
16109 fi
16110 $RM conftest*
16111
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16114$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016116 ;;
16117 esac
16118 fi
16119 ;;
16120esac
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
cristy73bd4a52010-10-05 11:24:23 +000016273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16274$as_echo_n "checking dynamic linker characteristics... " >&6; }
16275
16276if test "$GCC" = yes; then
16277 case $host_os in
16278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16279 *) lt_awk_arg="/^libraries:/" ;;
16280 esac
cristy0c60a692010-11-04 01:09:47 +000016281 case $host_os in
16282 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16283 *) lt_sed_strip_eq="s,=/,/,g" ;;
16284 esac
16285 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16286 case $lt_search_path_spec in
16287 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016288 # if the path contains ";" then we assume it to be the separator
16289 # otherwise default to the standard path separator (i.e. ":") - it is
16290 # assumed that no part of a normal pathname contains ";" but that should
16291 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016292 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16293 ;;
16294 *)
16295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16296 ;;
16297 esac
cristy73bd4a52010-10-05 11:24:23 +000016298 # Ok, now we have the path, separated by spaces, we can step through it
16299 # and add multilib dir if necessary.
16300 lt_tmp_lt_search_path_spec=
16301 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16302 for lt_sys_path in $lt_search_path_spec; do
16303 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16304 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16305 else
16306 test -d "$lt_sys_path" && \
16307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16308 fi
16309 done
cristy0c60a692010-11-04 01:09:47 +000016310 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016311BEGIN {RS=" "; FS="/|\n";} {
16312 lt_foo="";
16313 lt_count=0;
16314 for (lt_i = NF; lt_i > 0; lt_i--) {
16315 if ($lt_i != "" && $lt_i != ".") {
16316 if ($lt_i == "..") {
16317 lt_count++;
16318 } else {
16319 if (lt_count == 0) {
16320 lt_foo="/" $lt_i lt_foo;
16321 } else {
16322 lt_count--;
16323 }
16324 }
16325 }
16326 }
16327 if (lt_foo != "") { lt_freq[lt_foo]++; }
16328 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16329}'`
cristy0c60a692010-11-04 01:09:47 +000016330 # AWK program above erroneously prepends '/' to C:/dos/paths
16331 # for these hosts.
16332 case $host_os in
16333 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16334 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16335 esac
16336 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016337else
16338 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16339fi
16340library_names_spec=
16341libname_spec='lib$name'
16342soname_spec=
16343shrext_cmds=".so"
16344postinstall_cmds=
16345postuninstall_cmds=
16346finish_cmds=
16347finish_eval=
16348shlibpath_var=
16349shlibpath_overrides_runpath=unknown
16350version_type=none
16351dynamic_linker="$host_os ld.so"
16352sys_lib_dlsearch_path_spec="/lib /usr/lib"
16353need_lib_prefix=unknown
16354hardcode_into_libs=no
16355
16356# when you set need_version to no, make sure it does not cause -set_version
16357# flags to be left without arguments
16358need_version=unknown
16359
16360case $host_os in
16361aix3*)
cristy99bd5232011-12-07 14:38:20 +000016362 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16364 shlibpath_var=LIBPATH
16365
16366 # AIX 3 has no versioning support, so we append a major version to the name.
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 ;;
16369
16370aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016371 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016372 need_lib_prefix=no
16373 need_version=no
16374 hardcode_into_libs=yes
16375 if test "$host_cpu" = ia64; then
16376 # AIX 5 supports IA64
16377 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 else
16380 # With GCC up to 2.95.x, collect2 would create an import file
16381 # for dependence libraries. The import file would start with
16382 # the line `#! .'. This would cause the generated library to
16383 # depend on `.', always an invalid library. This was fixed in
16384 # development snapshots of GCC prior to 3.0.
16385 case $host_os in
16386 aix4 | aix4.[01] | aix4.[01].*)
16387 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16388 echo ' yes '
16389 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16390 :
16391 else
16392 can_build_shared=no
16393 fi
16394 ;;
16395 esac
16396 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16397 # soname into executable. Probably we can add versioning support to
16398 # collect2, so additional links can be useful in future.
16399 if test "$aix_use_runtimelinking" = yes; then
16400 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16401 # instead of lib<name>.a to let people know that these are not
16402 # typical AIX shared libraries.
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404 else
16405 # We preserve .a as extension for shared libraries through AIX4.2
16406 # and later when we are not doing run time linking.
16407 library_names_spec='${libname}${release}.a $libname.a'
16408 soname_spec='${libname}${release}${shared_ext}$major'
16409 fi
16410 shlibpath_var=LIBPATH
16411 fi
16412 ;;
16413
16414amigaos*)
16415 case $host_cpu in
16416 powerpc)
16417 # Since July 2007 AmigaOS4 officially supports .so libraries.
16418 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 ;;
16421 m68k)
16422 library_names_spec='$libname.ixlibrary $libname.a'
16423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016424 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000016425 ;;
16426 esac
16427 ;;
16428
16429beos*)
16430 library_names_spec='${libname}${shared_ext}'
16431 dynamic_linker="$host_os ld.so"
16432 shlibpath_var=LIBRARY_PATH
16433 ;;
16434
16435bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016436 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016437 need_version=no
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16443 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16444 # the default ld.so.conf also contains /usr/contrib/lib and
16445 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16446 # libtool to hard-code these into programs
16447 ;;
16448
16449cygwin* | mingw* | pw32* | cegcc*)
16450 version_type=windows
16451 shrext_cmds=".dll"
16452 need_version=no
16453 need_lib_prefix=no
16454
cristyda16f162011-02-19 23:52:17 +000016455 case $GCC,$cc_basename in
16456 yes,*)
16457 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016458 library_names_spec='$libname.dll.a'
16459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16460 postinstall_cmds='base_file=`basename \${file}`~
16461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16462 dldir=$destdir/`dirname \$dlpath`~
16463 test -d \$dldir || mkdir -p \$dldir~
16464 $install_prog $dir/$dlname \$dldir/$dlname~
16465 chmod a+x \$dldir/$dlname~
16466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16468 fi'
16469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16470 dlpath=$dir/\$dldll~
16471 $RM \$dlpath'
16472 shlibpath_overrides_runpath=yes
16473
16474 case $host_os in
16475 cygwin*)
16476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016478
16479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016480 ;;
16481 mingw* | cegcc*)
16482 # MinGW DLLs use traditional 'lib' prefix
16483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016484 ;;
16485 pw32*)
16486 # pw32 DLLs use 'pw' prefix rather than 'lib'
16487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16488 ;;
16489 esac
cristyda16f162011-02-19 23:52:17 +000016490 dynamic_linker='Win32 ld.exe'
16491 ;;
16492
16493 *,cl*)
16494 # Native MSVC
16495 libname_spec='$name'
16496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16497 library_names_spec='${libname}.dll.lib'
16498
16499 case $build_os in
16500 mingw*)
16501 sys_lib_search_path_spec=
16502 lt_save_ifs=$IFS
16503 IFS=';'
16504 for lt_path in $LIB
16505 do
16506 IFS=$lt_save_ifs
16507 # Let DOS variable expansion print the short 8.3 style file name.
16508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16510 done
16511 IFS=$lt_save_ifs
16512 # Convert to MSYS style.
16513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16514 ;;
16515 cygwin*)
16516 # Convert to unix form, then to dos form, then back to unix form
16517 # but this time dos style (no spaces!) so that the unix form looks
16518 # like /cygdrive/c/PROGRA~1:/cygdr...
16519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16522 ;;
16523 *)
16524 sys_lib_search_path_spec="$LIB"
16525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16526 # It is most probably a Windows format PATH.
16527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16528 else
16529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16530 fi
16531 # FIXME: find the short name or the path components, as spaces are
16532 # common. (e.g. "Program Files" -> "PROGRA~1")
16533 ;;
16534 esac
16535
16536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16537 postinstall_cmds='base_file=`basename \${file}`~
16538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16539 dldir=$destdir/`dirname \$dlpath`~
16540 test -d \$dldir || mkdir -p \$dldir~
16541 $install_prog $dir/$dlname \$dldir/$dlname'
16542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16543 dlpath=$dir/\$dldll~
16544 $RM \$dlpath'
16545 shlibpath_overrides_runpath=yes
16546 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016547 ;;
16548
16549 *)
cristyda16f162011-02-19 23:52:17 +000016550 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016552 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016553 ;;
16554 esac
cristy73bd4a52010-10-05 11:24:23 +000016555 # FIXME: first we should search . and the directory the executable is in
16556 shlibpath_var=PATH
16557 ;;
16558
16559darwin* | rhapsody*)
16560 dynamic_linker="$host_os dyld"
16561 version_type=darwin
16562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16565 soname_spec='${libname}${release}${major}$shared_ext'
16566 shlibpath_overrides_runpath=yes
16567 shlibpath_var=DYLD_LIBRARY_PATH
16568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16569
16570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16572 ;;
16573
16574dgux*)
cristy99bd5232011-12-07 14:38:20 +000016575 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 ;;
16582
cristy73bd4a52010-10-05 11:24:23 +000016583freebsd* | dragonfly*)
16584 # DragonFly does not have aout. When/if they implement a new
16585 # versioning mechanism, adjust this.
16586 if test -x /usr/bin/objformat; then
16587 objformat=`/usr/bin/objformat`
16588 else
16589 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016590 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016591 *) objformat=elf ;;
16592 esac
16593 fi
16594 version_type=freebsd-$objformat
16595 case $version_type in
16596 freebsd-elf*)
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16598 need_version=no
16599 need_lib_prefix=no
16600 ;;
16601 freebsd-*)
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16603 need_version=yes
16604 ;;
16605 esac
16606 shlibpath_var=LD_LIBRARY_PATH
16607 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016608 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016609 shlibpath_overrides_runpath=yes
16610 ;;
16611 freebsd3.[01]* | freebsdelf3.[01]*)
16612 shlibpath_overrides_runpath=yes
16613 hardcode_into_libs=yes
16614 ;;
16615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16617 shlibpath_overrides_runpath=no
16618 hardcode_into_libs=yes
16619 ;;
16620 *) # from 4.6 on, and DragonFly
16621 shlibpath_overrides_runpath=yes
16622 hardcode_into_libs=yes
16623 ;;
16624 esac
16625 ;;
16626
16627gnu*)
cristy99bd5232011-12-07 14:38:20 +000016628 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016629 need_lib_prefix=no
16630 need_version=no
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016634 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016635 hardcode_into_libs=yes
16636 ;;
16637
cristy0c60a692010-11-04 01:09:47 +000016638haiku*)
cristy99bd5232011-12-07 14:38:20 +000016639 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016640 need_lib_prefix=no
16641 need_version=no
16642 dynamic_linker="$host_os runtime_loader"
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16644 soname_spec='${libname}${release}${shared_ext}$major'
16645 shlibpath_var=LIBRARY_PATH
16646 shlibpath_overrides_runpath=yes
16647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16648 hardcode_into_libs=yes
16649 ;;
16650
cristy73bd4a52010-10-05 11:24:23 +000016651hpux9* | hpux10* | hpux11*)
16652 # Give a soname corresponding to the major version so that dld.sl refuses to
16653 # link against other versions.
16654 version_type=sunos
16655 need_lib_prefix=no
16656 need_version=no
16657 case $host_cpu in
16658 ia64*)
16659 shrext_cmds='.so'
16660 hardcode_into_libs=yes
16661 dynamic_linker="$host_os dld.so"
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 if test "X$HPUX_IA64_MODE" = X32; then
16667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16668 else
16669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16670 fi
16671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16672 ;;
16673 hppa*64*)
16674 shrext_cmds='.sl'
16675 hardcode_into_libs=yes
16676 dynamic_linker="$host_os dld.sl"
16677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16683 ;;
16684 *)
16685 shrext_cmds='.sl'
16686 dynamic_linker="$host_os dld.sl"
16687 shlibpath_var=SHLIB_PATH
16688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690 soname_spec='${libname}${release}${shared_ext}$major'
16691 ;;
16692 esac
cristy0c60a692010-11-04 01:09:47 +000016693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016694 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016695 # or fails outright, so override atomically:
16696 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016697 ;;
16698
16699interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016700 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016701 need_lib_prefix=no
16702 need_version=no
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=no
16708 hardcode_into_libs=yes
16709 ;;
16710
16711irix5* | irix6* | nonstopux*)
16712 case $host_os in
16713 nonstopux*) version_type=nonstopux ;;
16714 *)
16715 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016716 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016717 else
16718 version_type=irix
16719 fi ;;
16720 esac
16721 need_lib_prefix=no
16722 need_version=no
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16725 case $host_os in
16726 irix5* | nonstopux*)
16727 libsuff= shlibsuff=
16728 ;;
16729 *)
16730 case $LD in # libtool.m4 will add one of these switches to LD
16731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16732 libsuff= shlibsuff= libmagic=32-bit;;
16733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16734 libsuff=32 shlibsuff=N32 libmagic=N32;;
16735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16737 *) libsuff= shlibsuff= libmagic=never-match;;
16738 esac
16739 ;;
16740 esac
16741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16742 shlibpath_overrides_runpath=no
16743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16745 hardcode_into_libs=yes
16746 ;;
16747
16748# No shared lib support for Linux oldld, aout, or coff.
16749linux*oldld* | linux*aout* | linux*coff*)
16750 dynamic_linker=no
16751 ;;
16752
cristy99bd5232011-12-07 14:38:20 +000016753# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016754linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016755 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016756 need_lib_prefix=no
16757 need_version=no
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16761 shlibpath_var=LD_LIBRARY_PATH
16762 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016763
cristy73bd4a52010-10-05 11:24:23 +000016764 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016765 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016766 $as_echo_n "(cached) " >&6
16767else
16768 lt_cv_shlibpath_overrides_runpath=no
16769 save_LDFLAGS=$LDFLAGS
16770 save_libdir=$libdir
16771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016774/* end confdefs.h. */
16775
16776int
16777main ()
16778{
16779
16780 ;
16781 return 0;
16782}
16783_ACEOF
16784if ac_fn_c_try_link "$LINENO"; then :
16785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016786 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016787fi
16788fi
16789rm -f core conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016791 LDFLAGS=$save_LDFLAGS
16792 libdir=$save_libdir
16793
16794fi
16795
16796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016797
16798 # This implies no fast_install, which is unacceptable.
16799 # Some rework will be needed to allow for fast_install
16800 # before this can be enabled.
16801 hardcode_into_libs=yes
16802
16803 # Add ABI-specific directories to the system library path.
16804 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16805
16806 # Append ld.so.conf contents to the search path
16807 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016808 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000016809 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016810
cristy73bd4a52010-10-05 11:24:23 +000016811 fi
16812
16813 # We used to test for /lib/ld.so.1 and disable shared libraries on
16814 # powerpc, because MkLinux only supported shared libraries with the
16815 # GNU dynamic linker. Since this was broken with cross compilers,
16816 # most powerpc-linux boxes support dynamic linking these days and
16817 # people can always --disable-shared, the test was removed, and we
16818 # assume the GNU/Linux dynamic linker is in use.
16819 dynamic_linker='GNU/Linux ld.so'
16820 ;;
16821
16822netbsd*)
16823 version_type=sunos
16824 need_lib_prefix=no
16825 need_version=no
16826 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16829 dynamic_linker='NetBSD (a.out) ld.so'
16830 else
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 dynamic_linker='NetBSD ld.elf_so'
16834 fi
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=yes
16837 hardcode_into_libs=yes
16838 ;;
16839
16840newsos6)
cristy99bd5232011-12-07 14:38:20 +000016841 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845 ;;
16846
16847*nto* | *qnx*)
16848 version_type=qnx
16849 need_lib_prefix=no
16850 need_version=no
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=no
16855 hardcode_into_libs=yes
16856 dynamic_linker='ldqnx.so'
16857 ;;
16858
16859openbsd*)
16860 version_type=sunos
16861 sys_lib_dlsearch_path_spec="/usr/lib"
16862 need_lib_prefix=no
16863 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16864 case $host_os in
16865 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16866 *) need_version=no ;;
16867 esac
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16872 case $host_os in
16873 openbsd2.[89] | openbsd2.[89].*)
16874 shlibpath_overrides_runpath=no
16875 ;;
16876 *)
16877 shlibpath_overrides_runpath=yes
16878 ;;
16879 esac
16880 else
16881 shlibpath_overrides_runpath=yes
16882 fi
16883 ;;
16884
16885os2*)
16886 libname_spec='$name'
16887 shrext_cmds=".dll"
16888 need_lib_prefix=no
16889 library_names_spec='$libname${shared_ext} $libname.a'
16890 dynamic_linker='OS/2 ld.exe'
16891 shlibpath_var=LIBPATH
16892 ;;
16893
16894osf3* | osf4* | osf5*)
16895 version_type=osf
16896 need_lib_prefix=no
16897 need_version=no
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16902 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16903 ;;
16904
16905rdos*)
16906 dynamic_linker=no
16907 ;;
16908
16909solaris*)
cristy99bd5232011-12-07 14:38:20 +000016910 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016911 need_lib_prefix=no
16912 need_version=no
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 shlibpath_overrides_runpath=yes
16917 hardcode_into_libs=yes
16918 # ldd complains unless libraries are executable
16919 postinstall_cmds='chmod +x $lib'
16920 ;;
16921
16922sunos4*)
16923 version_type=sunos
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 shlibpath_overrides_runpath=yes
16928 if test "$with_gnu_ld" = yes; then
16929 need_lib_prefix=no
16930 fi
16931 need_version=yes
16932 ;;
16933
16934sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016935 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 case $host_vendor in
16940 sni)
16941 shlibpath_overrides_runpath=no
16942 need_lib_prefix=no
16943 runpath_var=LD_RUN_PATH
16944 ;;
16945 siemens)
16946 need_lib_prefix=no
16947 ;;
16948 motorola)
16949 need_lib_prefix=no
16950 need_version=no
16951 shlibpath_overrides_runpath=no
16952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16953 ;;
16954 esac
16955 ;;
16956
16957sysv4*MP*)
16958 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016959 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16961 soname_spec='$libname${shared_ext}.$major'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 fi
16964 ;;
16965
16966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16967 version_type=freebsd-elf
16968 need_lib_prefix=no
16969 need_version=no
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 shlibpath_overrides_runpath=yes
16974 hardcode_into_libs=yes
16975 if test "$with_gnu_ld" = yes; then
16976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16977 else
16978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16979 case $host_os in
16980 sco3.2v5*)
16981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16982 ;;
16983 esac
16984 fi
16985 sys_lib_dlsearch_path_spec='/usr/lib'
16986 ;;
16987
16988tpf*)
16989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016990 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016991 need_lib_prefix=no
16992 need_version=no
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994 shlibpath_var=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath=no
16996 hardcode_into_libs=yes
16997 ;;
16998
16999uts4*)
cristy99bd5232011-12-07 14:38:20 +000017000 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 ;;
17005
17006*)
17007 dynamic_linker=no
17008 ;;
17009esac
17010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17011$as_echo "$dynamic_linker" >&6; }
17012test "$dynamic_linker" = no && can_build_shared=no
17013
17014variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17015if test "$GCC" = yes; then
17016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17017fi
17018
17019if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17020 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17021fi
17022if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17023 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17024fi
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
cristy0c60a692010-11-04 01:09:47 +000017112
17113
17114
17115
17116
cristy73bd4a52010-10-05 11:24:23 +000017117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17118$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17119hardcode_action=
17120if test -n "$hardcode_libdir_flag_spec" ||
17121 test -n "$runpath_var" ||
17122 test "X$hardcode_automatic" = "Xyes" ; then
17123
17124 # We can hardcode non-existent directories.
17125 if test "$hardcode_direct" != no &&
17126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17127 # have to relink, otherwise we might link with an installed library
17128 # when we should be linking with a yet-to-be-installed one
17129 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17130 test "$hardcode_minus_L" != no; then
17131 # Linking always hardcodes the temporary library directory.
17132 hardcode_action=relink
17133 else
17134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17135 hardcode_action=immediate
17136 fi
17137else
17138 # We cannot hardcode anything, or else we can only hardcode existing
17139 # directories.
17140 hardcode_action=unsupported
17141fi
17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17143$as_echo "$hardcode_action" >&6; }
17144
17145if test "$hardcode_action" = relink ||
17146 test "$inherit_rpath" = yes; then
17147 # Fast installation is not supported
17148 enable_fast_install=no
17149elif test "$shlibpath_overrides_runpath" = yes ||
17150 test "$enable_shared" = no; then
17151 # Fast installation is not necessary
17152 enable_fast_install=needless
17153fi
17154
17155
17156
17157
17158
17159
17160 if test "x$enable_dlopen" != xyes; then
17161 enable_dlopen=unknown
17162 enable_dlopen_self=unknown
17163 enable_dlopen_self_static=unknown
17164else
17165 lt_cv_dlopen=no
17166 lt_cv_dlopen_libs=
17167
17168 case $host_os in
17169 beos*)
17170 lt_cv_dlopen="load_add_on"
17171 lt_cv_dlopen_libs=
17172 lt_cv_dlopen_self=yes
17173 ;;
17174
17175 mingw* | pw32* | cegcc*)
17176 lt_cv_dlopen="LoadLibrary"
17177 lt_cv_dlopen_libs=
17178 ;;
17179
17180 cygwin*)
17181 lt_cv_dlopen="dlopen"
17182 lt_cv_dlopen_libs=
17183 ;;
17184
17185 darwin*)
17186 # if libdl is installed we need to link against it
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17188$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017189if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017190 $as_echo_n "(cached) " >&6
17191else
17192 ac_check_lib_save_LIBS=$LIBS
17193LIBS="-ldl $LIBS"
17194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195/* end confdefs.h. */
17196
17197/* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
17200#ifdef __cplusplus
17201extern "C"
17202#endif
17203char dlopen ();
17204int
17205main ()
17206{
17207return dlopen ();
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_link "$LINENO"; then :
17213 ac_cv_lib_dl_dlopen=yes
17214else
17215 ac_cv_lib_dl_dlopen=no
17216fi
17217rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17219LIBS=$ac_check_lib_save_LIBS
17220fi
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17222$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017223if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17225else
17226
17227 lt_cv_dlopen="dyld"
17228 lt_cv_dlopen_libs=
17229 lt_cv_dlopen_self=yes
17230
17231fi
17232
17233 ;;
17234
17235 *)
17236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017237if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017238 lt_cv_dlopen="shl_load"
17239else
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17241$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017242if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017243 $as_echo_n "(cached) " >&6
17244else
17245 ac_check_lib_save_LIBS=$LIBS
17246LIBS="-ldld $LIBS"
17247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248/* end confdefs.h. */
17249
17250/* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17253#ifdef __cplusplus
17254extern "C"
17255#endif
17256char shl_load ();
17257int
17258main ()
17259{
17260return shl_load ();
17261 ;
17262 return 0;
17263}
17264_ACEOF
17265if ac_fn_c_try_link "$LINENO"; then :
17266 ac_cv_lib_dld_shl_load=yes
17267else
17268 ac_cv_lib_dld_shl_load=no
17269fi
17270rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272LIBS=$ac_check_lib_save_LIBS
17273fi
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17275$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017276if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017277 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17278else
17279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017280if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017281 lt_cv_dlopen="dlopen"
17282else
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17284$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017285if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017286 $as_echo_n "(cached) " >&6
17287else
17288 ac_check_lib_save_LIBS=$LIBS
17289LIBS="-ldl $LIBS"
17290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291/* end confdefs.h. */
17292
17293/* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17296#ifdef __cplusplus
17297extern "C"
17298#endif
17299char dlopen ();
17300int
17301main ()
17302{
17303return dlopen ();
17304 ;
17305 return 0;
17306}
17307_ACEOF
17308if ac_fn_c_try_link "$LINENO"; then :
17309 ac_cv_lib_dl_dlopen=yes
17310else
17311 ac_cv_lib_dl_dlopen=no
17312fi
17313rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17315LIBS=$ac_check_lib_save_LIBS
17316fi
17317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17321else
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17323$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017324if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017325 $as_echo_n "(cached) " >&6
17326else
17327 ac_check_lib_save_LIBS=$LIBS
17328LIBS="-lsvld $LIBS"
17329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330/* end confdefs.h. */
17331
17332/* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17335#ifdef __cplusplus
17336extern "C"
17337#endif
17338char dlopen ();
17339int
17340main ()
17341{
17342return dlopen ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347if ac_fn_c_try_link "$LINENO"; then :
17348 ac_cv_lib_svld_dlopen=yes
17349else
17350 ac_cv_lib_svld_dlopen=no
17351fi
17352rm -f core conftest.err conftest.$ac_objext \
17353 conftest$ac_exeext conftest.$ac_ext
17354LIBS=$ac_check_lib_save_LIBS
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17357$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017358if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17360else
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17362$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017363if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017364 $as_echo_n "(cached) " >&6
17365else
17366 ac_check_lib_save_LIBS=$LIBS
17367LIBS="-ldld $LIBS"
17368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17369/* end confdefs.h. */
17370
17371/* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17374#ifdef __cplusplus
17375extern "C"
17376#endif
17377char dld_link ();
17378int
17379main ()
17380{
17381return dld_link ();
17382 ;
17383 return 0;
17384}
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"; then :
17387 ac_cv_lib_dld_dld_link=yes
17388else
17389 ac_cv_lib_dld_dld_link=no
17390fi
17391rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17393LIBS=$ac_check_lib_save_LIBS
17394fi
17395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17396$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017397if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017398 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17399fi
17400
17401
17402fi
17403
17404
17405fi
17406
17407
17408fi
17409
17410
17411fi
17412
17413
17414fi
17415
17416 ;;
17417 esac
17418
17419 if test "x$lt_cv_dlopen" != xno; then
17420 enable_dlopen=yes
17421 else
17422 enable_dlopen=no
17423 fi
17424
17425 case $lt_cv_dlopen in
17426 dlopen)
17427 save_CPPFLAGS="$CPPFLAGS"
17428 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17429
17430 save_LDFLAGS="$LDFLAGS"
17431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17432
17433 save_LIBS="$LIBS"
17434 LIBS="$lt_cv_dlopen_libs $LIBS"
17435
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17437$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017438if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017439 $as_echo_n "(cached) " >&6
17440else
17441 if test "$cross_compiling" = yes; then :
17442 lt_cv_dlopen_self=cross
17443else
17444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17445 lt_status=$lt_dlunknown
17446 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017447#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017448#include "confdefs.h"
17449
17450#if HAVE_DLFCN_H
17451#include <dlfcn.h>
17452#endif
17453
17454#include <stdio.h>
17455
17456#ifdef RTLD_GLOBAL
17457# define LT_DLGLOBAL RTLD_GLOBAL
17458#else
17459# ifdef DL_GLOBAL
17460# define LT_DLGLOBAL DL_GLOBAL
17461# else
17462# define LT_DLGLOBAL 0
17463# endif
17464#endif
17465
17466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17467 find out it does not work in some platform. */
17468#ifndef LT_DLLAZY_OR_NOW
17469# ifdef RTLD_LAZY
17470# define LT_DLLAZY_OR_NOW RTLD_LAZY
17471# else
17472# ifdef DL_LAZY
17473# define LT_DLLAZY_OR_NOW DL_LAZY
17474# else
17475# ifdef RTLD_NOW
17476# define LT_DLLAZY_OR_NOW RTLD_NOW
17477# else
17478# ifdef DL_NOW
17479# define LT_DLLAZY_OR_NOW DL_NOW
17480# else
17481# define LT_DLLAZY_OR_NOW 0
17482# endif
17483# endif
17484# endif
17485# endif
17486#endif
17487
cristy0c60a692010-11-04 01:09:47 +000017488/* When -fvisbility=hidden is used, assume the code has been annotated
17489 correspondingly for the symbols needed. */
17490#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017491int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017492#endif
17493
cristyda16f162011-02-19 23:52:17 +000017494int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017495int main ()
17496{
17497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17498 int status = $lt_dlunknown;
17499
17500 if (self)
17501 {
17502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017503 else
17504 {
17505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17506 else puts (dlerror ());
17507 }
cristy73bd4a52010-10-05 11:24:23 +000017508 /* dlclose (self); */
17509 }
17510 else
17511 puts (dlerror ());
17512
17513 return status;
17514}
17515_LT_EOF
17516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17517 (eval $ac_link) 2>&5
17518 ac_status=$?
17519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17521 (./conftest; exit; ) >&5 2>/dev/null
17522 lt_status=$?
17523 case x$lt_status in
17524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17527 esac
17528 else :
17529 # compilation failed
17530 lt_cv_dlopen_self=no
17531 fi
17532fi
17533rm -fr conftest*
17534
17535
17536fi
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17538$as_echo "$lt_cv_dlopen_self" >&6; }
17539
17540 if test "x$lt_cv_dlopen_self" = xyes; then
17541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17543$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017544if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017545 $as_echo_n "(cached) " >&6
17546else
17547 if test "$cross_compiling" = yes; then :
17548 lt_cv_dlopen_self_static=cross
17549else
17550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17551 lt_status=$lt_dlunknown
17552 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017553#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017554#include "confdefs.h"
17555
17556#if HAVE_DLFCN_H
17557#include <dlfcn.h>
17558#endif
17559
17560#include <stdio.h>
17561
17562#ifdef RTLD_GLOBAL
17563# define LT_DLGLOBAL RTLD_GLOBAL
17564#else
17565# ifdef DL_GLOBAL
17566# define LT_DLGLOBAL DL_GLOBAL
17567# else
17568# define LT_DLGLOBAL 0
17569# endif
17570#endif
17571
17572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17573 find out it does not work in some platform. */
17574#ifndef LT_DLLAZY_OR_NOW
17575# ifdef RTLD_LAZY
17576# define LT_DLLAZY_OR_NOW RTLD_LAZY
17577# else
17578# ifdef DL_LAZY
17579# define LT_DLLAZY_OR_NOW DL_LAZY
17580# else
17581# ifdef RTLD_NOW
17582# define LT_DLLAZY_OR_NOW RTLD_NOW
17583# else
17584# ifdef DL_NOW
17585# define LT_DLLAZY_OR_NOW DL_NOW
17586# else
17587# define LT_DLLAZY_OR_NOW 0
17588# endif
17589# endif
17590# endif
17591# endif
17592#endif
17593
cristy0c60a692010-11-04 01:09:47 +000017594/* When -fvisbility=hidden is used, assume the code has been annotated
17595 correspondingly for the symbols needed. */
17596#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017597int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017598#endif
17599
cristyda16f162011-02-19 23:52:17 +000017600int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017601int main ()
17602{
17603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17604 int status = $lt_dlunknown;
17605
17606 if (self)
17607 {
17608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017609 else
17610 {
17611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17612 else puts (dlerror ());
17613 }
cristy73bd4a52010-10-05 11:24:23 +000017614 /* dlclose (self); */
17615 }
17616 else
17617 puts (dlerror ());
17618
17619 return status;
17620}
17621_LT_EOF
17622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17623 (eval $ac_link) 2>&5
17624 ac_status=$?
17625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17626 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17627 (./conftest; exit; ) >&5 2>/dev/null
17628 lt_status=$?
17629 case x$lt_status in
17630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17633 esac
17634 else :
17635 # compilation failed
17636 lt_cv_dlopen_self_static=no
17637 fi
17638fi
17639rm -fr conftest*
17640
17641
17642fi
17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17644$as_echo "$lt_cv_dlopen_self_static" >&6; }
17645 fi
17646
17647 CPPFLAGS="$save_CPPFLAGS"
17648 LDFLAGS="$save_LDFLAGS"
17649 LIBS="$save_LIBS"
17650 ;;
17651 esac
17652
17653 case $lt_cv_dlopen_self in
17654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17655 *) enable_dlopen_self=unknown ;;
17656 esac
17657
17658 case $lt_cv_dlopen_self_static in
17659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17660 *) enable_dlopen_self_static=unknown ;;
17661 esac
17662fi
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680striplib=
17681old_striplib=
17682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17683$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17684if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17688$as_echo "yes" >&6; }
17689else
17690# FIXME - insert some real tests, host_os isn't really good enough
17691 case $host_os in
17692 darwin*)
17693 if test -n "$STRIP" ; then
17694 striplib="$STRIP -x"
17695 old_striplib="$STRIP -S"
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17697$as_echo "yes" >&6; }
17698 else
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17700$as_echo "no" >&6; }
17701 fi
17702 ;;
17703 *)
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17705$as_echo "no" >&6; }
17706 ;;
17707 esac
17708fi
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721 # Report which library types will actually be built
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17723$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17725$as_echo "$can_build_shared" >&6; }
17726
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17728$as_echo_n "checking whether to build shared libraries... " >&6; }
17729 test "$can_build_shared" = "no" && enable_shared=no
17730
17731 # On AIX, shared libraries and static libraries use the same namespace, and
17732 # are all built from PIC.
17733 case $host_os in
17734 aix3*)
17735 test "$enable_shared" = yes && enable_static=no
17736 if test -n "$RANLIB"; then
17737 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17738 postinstall_cmds='$RANLIB $lib'
17739 fi
17740 ;;
17741
17742 aix[4-9]*)
17743 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17744 test "$enable_shared" = yes && enable_static=no
17745 fi
17746 ;;
17747 esac
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17749$as_echo "$enable_shared" >&6; }
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17752$as_echo_n "checking whether to build static libraries... " >&6; }
17753 # Make sure either enable_shared or enable_static is yes.
17754 test "$enable_shared" = yes || enable_static=yes
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17756$as_echo "$enable_static" >&6; }
17757
17758
17759
17760
17761fi
17762ac_ext=c
17763ac_cpp='$CPP $CPPFLAGS'
17764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17766ac_compiler_gnu=$ac_cv_c_compiler_gnu
17767
17768CC="$lt_save_CC"
17769
cristy0c60a692010-11-04 01:09:47 +000017770 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17771 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17772 (test "X$CXX" != "Xg++"))) ; then
17773 ac_ext=cpp
17774ac_cpp='$CXXCPP $CPPFLAGS'
17775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17779$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17780if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017781 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017782 $as_echo_n "(cached) " >&6
17783else
17784 # Double quotes because CXXCPP needs to be expanded
17785 for CXXCPP in "$CXX -E" "/lib/cpp"
17786 do
17787 ac_preproc_ok=false
17788for ac_cxx_preproc_warn_flag in '' yes
17789do
17790 # Use a header file that comes with gcc, so configuring glibc
17791 # with a fresh cross-compiler works.
17792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17793 # <limits.h> exists even on freestanding compilers.
17794 # On the NeXT, cc -E runs the code through the compiler's parser,
17795 # not just through cpp. "Syntax error" is here to catch this case.
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797/* end confdefs.h. */
17798#ifdef __STDC__
17799# include <limits.h>
17800#else
17801# include <assert.h>
17802#endif
17803 Syntax error
17804_ACEOF
17805if ac_fn_cxx_try_cpp "$LINENO"; then :
17806
17807else
17808 # Broken: fails on valid input.
17809continue
17810fi
cristyda16f162011-02-19 23:52:17 +000017811rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017812
17813 # OK, works on sane cases. Now check whether nonexistent headers
17814 # can be detected and how.
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816/* end confdefs.h. */
17817#include <ac_nonexistent.h>
17818_ACEOF
17819if ac_fn_cxx_try_cpp "$LINENO"; then :
17820 # Broken: success on invalid input.
17821continue
17822else
17823 # Passes both tests.
17824ac_preproc_ok=:
17825break
17826fi
cristyda16f162011-02-19 23:52:17 +000017827rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017828
17829done
17830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017831rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017832if $ac_preproc_ok; then :
17833 break
17834fi
17835
17836 done
17837 ac_cv_prog_CXXCPP=$CXXCPP
17838
17839fi
17840 CXXCPP=$ac_cv_prog_CXXCPP
17841else
17842 ac_cv_prog_CXXCPP=$CXXCPP
17843fi
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17845$as_echo "$CXXCPP" >&6; }
17846ac_preproc_ok=false
17847for ac_cxx_preproc_warn_flag in '' yes
17848do
17849 # Use a header file that comes with gcc, so configuring glibc
17850 # with a fresh cross-compiler works.
17851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852 # <limits.h> exists even on freestanding compilers.
17853 # On the NeXT, cc -E runs the code through the compiler's parser,
17854 # not just through cpp. "Syntax error" is here to catch this case.
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856/* end confdefs.h. */
17857#ifdef __STDC__
17858# include <limits.h>
17859#else
17860# include <assert.h>
17861#endif
17862 Syntax error
17863_ACEOF
17864if ac_fn_cxx_try_cpp "$LINENO"; then :
17865
17866else
17867 # Broken: fails on valid input.
17868continue
17869fi
cristyda16f162011-02-19 23:52:17 +000017870rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017871
17872 # OK, works on sane cases. Now check whether nonexistent headers
17873 # can be detected and how.
17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h. */
17876#include <ac_nonexistent.h>
17877_ACEOF
17878if ac_fn_cxx_try_cpp "$LINENO"; then :
17879 # Broken: success on invalid input.
17880continue
17881else
17882 # Passes both tests.
17883ac_preproc_ok=:
17884break
17885fi
cristyda16f162011-02-19 23:52:17 +000017886rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017887
17888done
17889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017890rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017891if $ac_preproc_ok; then :
17892
17893else
17894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17896as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17897See \`config.log' for more details" "$LINENO" 5; }
17898fi
17899
17900ac_ext=c
17901ac_cpp='$CPP $CPPFLAGS'
17902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904ac_compiler_gnu=$ac_cv_c_compiler_gnu
17905
17906else
17907 _lt_caught_CXX_error=yes
17908fi
cristy73bd4a52010-10-05 11:24:23 +000017909
17910ac_ext=cpp
17911ac_cpp='$CXXCPP $CPPFLAGS'
17912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17915
17916archive_cmds_need_lc_CXX=no
17917allow_undefined_flag_CXX=
17918always_export_symbols_CXX=no
17919archive_expsym_cmds_CXX=
17920compiler_needs_object_CXX=no
17921export_dynamic_flag_spec_CXX=
17922hardcode_direct_CXX=no
17923hardcode_direct_absolute_CXX=no
17924hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017925hardcode_libdir_separator_CXX=
17926hardcode_minus_L_CXX=no
17927hardcode_shlibpath_var_CXX=unsupported
17928hardcode_automatic_CXX=no
17929inherit_rpath_CXX=no
17930module_cmds_CXX=
17931module_expsym_cmds_CXX=
17932link_all_deplibs_CXX=unknown
17933old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017934reload_flag_CXX=$reload_flag
17935reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017936no_undefined_flag_CXX=
17937whole_archive_flag_spec_CXX=
17938enable_shared_with_static_runtimes_CXX=no
17939
17940# Source file extension for C++ test sources.
17941ac_ext=cpp
17942
17943# Object file extension for compiled C++ test sources.
17944objext=o
17945objext_CXX=$objext
17946
17947# No sense in running all these tests if we already determined that
17948# the CXX compiler isn't working. Some variables (like enable_shared)
17949# are currently assumed to apply to all compilers on this platform,
17950# and will be corrupted by setting them based on a non-working compiler.
17951if test "$_lt_caught_CXX_error" != yes; then
17952 # Code to be used in simple compile tests
17953 lt_simple_compile_test_code="int some_variable = 0;"
17954
17955 # Code to be used in simple link tests
17956 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17957
17958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17959
17960
17961
17962
17963
17964
17965# If no C compiler was specified, use CC.
17966LTCC=${LTCC-"$CC"}
17967
17968# If no C compiler flags were specified, use CFLAGS.
17969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17970
17971# Allow CC to be a program name with arguments.
17972compiler=$CC
17973
17974
17975 # save warnings/boilerplate of simple test code
17976 ac_outfile=conftest.$ac_objext
17977echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17978eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17979_lt_compiler_boilerplate=`cat conftest.err`
17980$RM conftest*
17981
17982 ac_outfile=conftest.$ac_objext
17983echo "$lt_simple_link_test_code" >conftest.$ac_ext
17984eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17985_lt_linker_boilerplate=`cat conftest.err`
17986$RM -r conftest*
17987
17988
17989 # Allow CC to be a program name with arguments.
17990 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017991 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017992 lt_save_LD=$LD
17993 lt_save_GCC=$GCC
17994 GCC=$GXX
17995 lt_save_with_gnu_ld=$with_gnu_ld
17996 lt_save_path_LD=$lt_cv_path_LD
17997 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17998 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17999 else
18000 $as_unset lt_cv_prog_gnu_ld
18001 fi
18002 if test -n "${lt_cv_path_LDCXX+set}"; then
18003 lt_cv_path_LD=$lt_cv_path_LDCXX
18004 else
18005 $as_unset lt_cv_path_LD
18006 fi
18007 test -z "${LDCXX+set}" || LD=$LDCXX
18008 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018009 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018010 compiler=$CC
18011 compiler_CXX=$CC
18012 for cc_temp in $compiler""; do
18013 case $cc_temp in
18014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18016 \-*) ;;
18017 *) break;;
18018 esac
18019done
cristy0c60a692010-11-04 01:09:47 +000018020cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018021
18022
18023 if test -n "$compiler"; then
18024 # We don't want -fno-exception when compiling C++ code, so set the
18025 # no_builtin_flag separately
18026 if test "$GXX" = yes; then
18027 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18028 else
18029 lt_prog_compiler_no_builtin_flag_CXX=
18030 fi
18031
18032 if test "$GXX" = yes; then
18033 # Set up default GNU C++ configuration
18034
18035
18036
18037# Check whether --with-gnu-ld was given.
18038if test "${with_gnu_ld+set}" = set; then :
18039 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18040else
18041 with_gnu_ld=no
18042fi
18043
18044ac_prog=ld
18045if test "$GCC" = yes; then
18046 # Check if gcc -print-prog-name=ld gives a path.
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18048$as_echo_n "checking for ld used by $CC... " >&6; }
18049 case $host in
18050 *-*-mingw*)
18051 # gcc leaves a trailing carriage return which upsets mingw
18052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18053 *)
18054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18055 esac
18056 case $ac_prog in
18057 # Accept absolute paths.
18058 [\\/]* | ?:[\\/]*)
18059 re_direlt='/[^/][^/]*/\.\./'
18060 # Canonicalize the pathname of ld
18061 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18062 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18063 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18064 done
18065 test -z "$LD" && LD="$ac_prog"
18066 ;;
18067 "")
18068 # If it fails, then pretend we aren't using GCC.
18069 ac_prog=ld
18070 ;;
18071 *)
18072 # If it is relative, then search for the first ld in PATH.
18073 with_gnu_ld=unknown
18074 ;;
18075 esac
18076elif test "$with_gnu_ld" = yes; then
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18078$as_echo_n "checking for GNU ld... " >&6; }
18079else
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18081$as_echo_n "checking for non-GNU ld... " >&6; }
18082fi
cristyda16f162011-02-19 23:52:17 +000018083if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018084 $as_echo_n "(cached) " >&6
18085else
18086 if test -z "$LD"; then
18087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18088 for ac_dir in $PATH; do
18089 IFS="$lt_save_ifs"
18090 test -z "$ac_dir" && ac_dir=.
18091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18092 lt_cv_path_LD="$ac_dir/$ac_prog"
18093 # Check to see if the program is GNU ld. I'd rather use --version,
18094 # but apparently some variants of GNU ld only accept -v.
18095 # Break only if it was the GNU/non-GNU ld that we prefer.
18096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18097 *GNU* | *'with BFD'*)
18098 test "$with_gnu_ld" != no && break
18099 ;;
18100 *)
18101 test "$with_gnu_ld" != yes && break
18102 ;;
18103 esac
18104 fi
18105 done
18106 IFS="$lt_save_ifs"
18107else
18108 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18109fi
18110fi
18111
18112LD="$lt_cv_path_LD"
18113if test -n "$LD"; then
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18115$as_echo "$LD" >&6; }
18116else
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118$as_echo "no" >&6; }
18119fi
cristy98dddb52010-11-04 00:30:15 +000018120test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18122$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018123if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018124 $as_echo_n "(cached) " >&6
18125else
18126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18127case `$LD -v 2>&1 </dev/null` in
18128*GNU* | *'with BFD'*)
18129 lt_cv_prog_gnu_ld=yes
18130 ;;
18131*)
18132 lt_cv_prog_gnu_ld=no
18133 ;;
18134esac
18135fi
18136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18137$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18138with_gnu_ld=$lt_cv_prog_gnu_ld
18139
18140
18141
18142
18143
18144
18145
18146 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18147 # archiving commands below assume that GNU ld is being used.
18148 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018149 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18150 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018151
18152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18154
18155 # If archive_cmds runs LD, not CC, wlarc should be empty
18156 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18157 # investigate it a little bit more. (MM)
18158 wlarc='${wl}'
18159
18160 # ancient GNU ld didn't support --whole-archive et. al.
18161 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18162 $GREP 'no-whole-archive' > /dev/null; then
18163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18164 else
18165 whole_archive_flag_spec_CXX=
18166 fi
18167 else
18168 with_gnu_ld=no
18169 wlarc=
18170
18171 # A generic and very simple default shared library creation
18172 # command for GNU C++ for the case where it uses the native
18173 # linker, instead of GNU ld. If possible, this setting should
18174 # overridden to take advantage of the native linker features on
18175 # the platform it is being used on.
18176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18177 fi
18178
18179 # Commands to make compiler produce verbose output that lists
18180 # what "hidden" libraries, object files and flags are used when
18181 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018183
18184 else
18185 GXX=no
18186 with_gnu_ld=no
18187 wlarc=
18188 fi
18189
18190 # PORTME: fill in a description of your system's C++ link characteristics
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18192$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18193 ld_shlibs_CXX=yes
18194 case $host_os in
18195 aix3*)
18196 # FIXME: insert proper C++ library support
18197 ld_shlibs_CXX=no
18198 ;;
18199 aix[4-9]*)
18200 if test "$host_cpu" = ia64; then
18201 # On IA64, the linker does run time linking by default, so we don't
18202 # have to do anything special.
18203 aix_use_runtimelinking=no
18204 exp_sym_flag='-Bexport'
18205 no_entry_flag=""
18206 else
18207 aix_use_runtimelinking=no
18208
18209 # Test if we are trying to use run time linking or normal
18210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18211 # need to do runtime linking.
18212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18213 for ld_flag in $LDFLAGS; do
18214 case $ld_flag in
18215 *-brtl*)
18216 aix_use_runtimelinking=yes
18217 break
18218 ;;
18219 esac
18220 done
18221 ;;
18222 esac
18223
18224 exp_sym_flag='-bexport'
18225 no_entry_flag='-bnoentry'
18226 fi
18227
18228 # When large executables or shared objects are built, AIX ld can
18229 # have problems creating the table of contents. If linking a library
18230 # or program results in "error TOC overflow" add -mminimal-toc to
18231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18233
18234 archive_cmds_CXX=''
18235 hardcode_direct_CXX=yes
18236 hardcode_direct_absolute_CXX=yes
18237 hardcode_libdir_separator_CXX=':'
18238 link_all_deplibs_CXX=yes
18239 file_list_spec_CXX='${wl}-f,'
18240
18241 if test "$GXX" = yes; then
18242 case $host_os in aix4.[012]|aix4.[012].*)
18243 # We only want to do this on AIX 4.2 and lower, the check
18244 # below for broken collect2 doesn't work under 4.3+
18245 collect2name=`${CC} -print-prog-name=collect2`
18246 if test -f "$collect2name" &&
18247 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18248 then
18249 # We have reworked collect2
18250 :
18251 else
18252 # We have old collect2
18253 hardcode_direct_CXX=unsupported
18254 # It fails to find uninstalled libraries when the uninstalled
18255 # path is not listed in the libpath. Setting hardcode_minus_L
18256 # to unsupported forces relinking
18257 hardcode_minus_L_CXX=yes
18258 hardcode_libdir_flag_spec_CXX='-L$libdir'
18259 hardcode_libdir_separator_CXX=
18260 fi
18261 esac
18262 shared_flag='-shared'
18263 if test "$aix_use_runtimelinking" = yes; then
18264 shared_flag="$shared_flag "'${wl}-G'
18265 fi
18266 else
18267 # not using gcc
18268 if test "$host_cpu" = ia64; then
18269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18270 # chokes on -Wl,-G. The following line is correct:
18271 shared_flag='-G'
18272 else
18273 if test "$aix_use_runtimelinking" = yes; then
18274 shared_flag='${wl}-G'
18275 else
18276 shared_flag='${wl}-bM:SRE'
18277 fi
18278 fi
18279 fi
18280
18281 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18282 # It seems that -bexpall does not export symbols beginning with
18283 # underscore (_), so it is better to generate a list of symbols to
18284 # export.
18285 always_export_symbols_CXX=yes
18286 if test "$aix_use_runtimelinking" = yes; then
18287 # Warning - without using the other runtime loading flags (-brtl),
18288 # -berok will link without error, but may produce a broken library.
18289 allow_undefined_flag_CXX='-berok'
18290 # Determine the default libpath from the value encoded in an empty
18291 # executable.
cristyda16f162011-02-19 23:52:17 +000018292 if test "${lt_cv_aix_libpath+set}" = set; then
18293 aix_libpath=$lt_cv_aix_libpath
18294else
18295 if ${lt_cv_aix_libpath__CXX+:} false; then :
18296 $as_echo_n "(cached) " >&6
18297else
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018299/* end confdefs.h. */
18300
18301int
18302main ()
18303{
18304
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309if ac_fn_cxx_try_link "$LINENO"; then :
18310
cristyda16f162011-02-19 23:52:17 +000018311 lt_aix_libpath_sed='
18312 /Import File Strings/,/^$/ {
18313 /^0/ {
18314 s/^0 *\([^ ]*\) *$/\1/
18315 p
18316 }
18317 }'
18318 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18319 # Check for a 64-bit object if we didn't find anything.
18320 if test -z "$lt_cv_aix_libpath__CXX"; then
18321 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18322 fi
cristy73bd4a52010-10-05 11:24:23 +000018323fi
18324rm -f core conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018326 if test -z "$lt_cv_aix_libpath__CXX"; then
18327 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18328 fi
18329
18330fi
18331
18332 aix_libpath=$lt_cv_aix_libpath__CXX
18333fi
cristy73bd4a52010-10-05 11:24:23 +000018334
18335 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18336
cristy0c60a692010-11-04 01:09:47 +000018337 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000018338 else
18339 if test "$host_cpu" = ia64; then
18340 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18341 allow_undefined_flag_CXX="-z nodefs"
18342 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18343 else
18344 # Determine the default libpath from the value encoded in an
18345 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018346 if test "${lt_cv_aix_libpath+set}" = set; then
18347 aix_libpath=$lt_cv_aix_libpath
18348else
18349 if ${lt_cv_aix_libpath__CXX+:} false; then :
18350 $as_echo_n "(cached) " >&6
18351else
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018353/* end confdefs.h. */
18354
18355int
18356main ()
18357{
18358
18359 ;
18360 return 0;
18361}
18362_ACEOF
18363if ac_fn_cxx_try_link "$LINENO"; then :
18364
cristyda16f162011-02-19 23:52:17 +000018365 lt_aix_libpath_sed='
18366 /Import File Strings/,/^$/ {
18367 /^0/ {
18368 s/^0 *\([^ ]*\) *$/\1/
18369 p
18370 }
18371 }'
18372 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18373 # Check for a 64-bit object if we didn't find anything.
18374 if test -z "$lt_cv_aix_libpath__CXX"; then
18375 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18376 fi
cristy73bd4a52010-10-05 11:24:23 +000018377fi
18378rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018380 if test -z "$lt_cv_aix_libpath__CXX"; then
18381 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18382 fi
18383
18384fi
18385
18386 aix_libpath=$lt_cv_aix_libpath__CXX
18387fi
cristy73bd4a52010-10-05 11:24:23 +000018388
18389 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18390 # Warning - without using the other run time loading flags,
18391 # -berok will link without error, but may produce a broken library.
18392 no_undefined_flag_CXX=' ${wl}-bernotok'
18393 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018394 if test "$with_gnu_ld" = yes; then
18395 # We only use this code for GNU lds that support --whole-archive.
18396 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18397 else
18398 # Exported symbols can be pulled into shared objects from archives
18399 whole_archive_flag_spec_CXX='$convenience'
18400 fi
cristy73bd4a52010-10-05 11:24:23 +000018401 archive_cmds_need_lc_CXX=yes
18402 # This is similar to how AIX traditionally builds its shared
18403 # libraries.
18404 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18405 fi
18406 fi
18407 ;;
18408
18409 beos*)
18410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18411 allow_undefined_flag_CXX=unsupported
18412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18413 # support --undefined. This deserves some investigation. FIXME
18414 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18415 else
18416 ld_shlibs_CXX=no
18417 fi
18418 ;;
18419
18420 chorus*)
18421 case $cc_basename in
18422 *)
18423 # FIXME: insert proper C++ library support
18424 ld_shlibs_CXX=no
18425 ;;
18426 esac
18427 ;;
18428
18429 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018430 case $GXX,$cc_basename in
18431 ,cl* | no,cl*)
18432 # Native MSVC
18433 # hardcode_libdir_flag_spec is actually meaningless, as there is
18434 # no search path for DLLs.
18435 hardcode_libdir_flag_spec_CXX=' '
18436 allow_undefined_flag_CXX=unsupported
18437 always_export_symbols_CXX=yes
18438 file_list_spec_CXX='@'
18439 # Tell ltmain to make .lib files, not .a files.
18440 libext=lib
18441 # Tell ltmain to make .dll files, not .so files.
18442 shrext_cmds=".dll"
18443 # FIXME: Setting linknames here is a bad hack.
18444 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18446 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18447 else
18448 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18449 fi~
18450 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18451 linknames='
18452 # The linker will not automatically build a static lib if we build a DLL.
18453 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18454 enable_shared_with_static_runtimes_CXX=yes
18455 # Don't use ranlib
18456 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18457 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18458 lt_tool_outputfile="@TOOL_OUTPUT@"~
18459 case $lt_outputfile in
18460 *.exe|*.EXE) ;;
18461 *)
18462 lt_outputfile="$lt_outputfile.exe"
18463 lt_tool_outputfile="$lt_tool_outputfile.exe"
18464 ;;
18465 esac~
18466 func_to_tool_file "$lt_outputfile"~
18467 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18468 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18469 $RM "$lt_outputfile.manifest";
18470 fi'
18471 ;;
18472 *)
18473 # g++
18474 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18475 # as there is no search path for DLLs.
18476 hardcode_libdir_flag_spec_CXX='-L$libdir'
18477 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18478 allow_undefined_flag_CXX=unsupported
18479 always_export_symbols_CXX=no
18480 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018481
cristyda16f162011-02-19 23:52:17 +000018482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18483 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18484 # If the export-symbols file already is a .def file (1st line
18485 # is EXPORTS), use it as is; otherwise, prepend...
18486 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18487 cp $export_symbols $output_objdir/$soname.def;
18488 else
18489 echo EXPORTS > $output_objdir/$soname.def;
18490 cat $export_symbols >> $output_objdir/$soname.def;
18491 fi~
18492 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18493 else
18494 ld_shlibs_CXX=no
18495 fi
18496 ;;
18497 esac
18498 ;;
cristy73bd4a52010-10-05 11:24:23 +000018499 darwin* | rhapsody*)
18500
18501
18502 archive_cmds_need_lc_CXX=no
18503 hardcode_direct_CXX=no
18504 hardcode_automatic_CXX=yes
18505 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018506 if test "$lt_cv_ld_force_load" = "yes"; then
18507 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018508
cristy0c60a692010-11-04 01:09:47 +000018509 else
18510 whole_archive_flag_spec_CXX=''
18511 fi
cristy73bd4a52010-10-05 11:24:23 +000018512 link_all_deplibs_CXX=yes
18513 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18514 case $cc_basename in
18515 ifort*) _lt_dar_can_shared=yes ;;
18516 *) _lt_dar_can_shared=$GCC ;;
18517 esac
18518 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018519 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018520 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18521 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18522 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18523 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18524 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18525 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18526 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18527 fi
18528
18529 else
18530 ld_shlibs_CXX=no
18531 fi
18532
18533 ;;
18534
18535 dgux*)
18536 case $cc_basename in
18537 ec++*)
18538 # FIXME: insert proper C++ library support
18539 ld_shlibs_CXX=no
18540 ;;
18541 ghcx*)
18542 # Green Hills C++ Compiler
18543 # FIXME: insert proper C++ library support
18544 ld_shlibs_CXX=no
18545 ;;
18546 *)
18547 # FIXME: insert proper C++ library support
18548 ld_shlibs_CXX=no
18549 ;;
18550 esac
18551 ;;
18552
cristy99bd5232011-12-07 14:38:20 +000018553 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018554 # C++ shared libraries reported to be fairly broken before
18555 # switch to ELF
18556 ld_shlibs_CXX=no
18557 ;;
18558
18559 freebsd-elf*)
18560 archive_cmds_need_lc_CXX=no
18561 ;;
18562
18563 freebsd* | dragonfly*)
18564 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18565 # conventions
18566 ld_shlibs_CXX=yes
18567 ;;
18568
18569 gnu*)
18570 ;;
18571
cristy0c60a692010-11-04 01:09:47 +000018572 haiku*)
18573 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574 link_all_deplibs_CXX=yes
18575 ;;
18576
cristy73bd4a52010-10-05 11:24:23 +000018577 hpux9*)
18578 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18579 hardcode_libdir_separator_CXX=:
18580 export_dynamic_flag_spec_CXX='${wl}-E'
18581 hardcode_direct_CXX=yes
18582 hardcode_minus_L_CXX=yes # Not in the search PATH,
18583 # but as the default
18584 # location of the library.
18585
18586 case $cc_basename in
18587 CC*)
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 aCC*)
18592 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18593 # Commands to make compiler produce verbose output that lists
18594 # what "hidden" libraries, object files and flags are used when
18595 # linking a shared library.
18596 #
18597 # There doesn't appear to be a way to prevent this compiler from
18598 # explicitly linking system object files so we need to strip them
18599 # from the output so that they don't get included in the library
18600 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018601 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018602 ;;
18603 *)
18604 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018605 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000018606 else
18607 # FIXME: insert proper C++ library support
18608 ld_shlibs_CXX=no
18609 fi
18610 ;;
18611 esac
18612 ;;
18613
18614 hpux10*|hpux11*)
18615 if test $with_gnu_ld = no; then
18616 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18617 hardcode_libdir_separator_CXX=:
18618
18619 case $host_cpu in
18620 hppa*64*|ia64*)
18621 ;;
18622 *)
18623 export_dynamic_flag_spec_CXX='${wl}-E'
18624 ;;
18625 esac
18626 fi
18627 case $host_cpu in
18628 hppa*64*|ia64*)
18629 hardcode_direct_CXX=no
18630 hardcode_shlibpath_var_CXX=no
18631 ;;
18632 *)
18633 hardcode_direct_CXX=yes
18634 hardcode_direct_absolute_CXX=yes
18635 hardcode_minus_L_CXX=yes # Not in the search PATH,
18636 # but as the default
18637 # location of the library.
18638 ;;
18639 esac
18640
18641 case $cc_basename in
18642 CC*)
18643 # FIXME: insert proper C++ library support
18644 ld_shlibs_CXX=no
18645 ;;
18646 aCC*)
18647 case $host_cpu in
18648 hppa*64*)
18649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18650 ;;
18651 ia64*)
18652 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18653 ;;
18654 *)
18655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18656 ;;
18657 esac
18658 # Commands to make compiler produce verbose output that lists
18659 # what "hidden" libraries, object files and flags are used when
18660 # linking a shared library.
18661 #
18662 # There doesn't appear to be a way to prevent this compiler from
18663 # explicitly linking system object files so we need to strip them
18664 # from the output so that they don't get included in the library
18665 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018666 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018667 ;;
18668 *)
18669 if test "$GXX" = yes; then
18670 if test $with_gnu_ld = no; then
18671 case $host_cpu in
18672 hppa*64*)
18673 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18674 ;;
18675 ia64*)
cristyda16f162011-02-19 23:52:17 +000018676 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018677 ;;
18678 *)
cristyda16f162011-02-19 23:52:17 +000018679 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018680 ;;
18681 esac
18682 fi
18683 else
18684 # FIXME: insert proper C++ library support
18685 ld_shlibs_CXX=no
18686 fi
18687 ;;
18688 esac
18689 ;;
18690
18691 interix[3-9]*)
18692 hardcode_direct_CXX=no
18693 hardcode_shlibpath_var_CXX=no
18694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18695 export_dynamic_flag_spec_CXX='${wl}-E'
18696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18697 # Instead, shared libraries are loaded at an image base (0x10000000 by
18698 # default) and relocated if they conflict, which is a slow very memory
18699 # consuming and fragmenting process. To avoid this, we pick a random,
18700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18702 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18703 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18704 ;;
18705 irix5* | irix6*)
18706 case $cc_basename in
18707 CC*)
18708 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018709 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018710
18711 # Archives containing C++ object files must be created using
18712 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18713 # necessary to make sure instantiated templates are included
18714 # in the archive.
18715 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18716 ;;
18717 *)
18718 if test "$GXX" = yes; then
18719 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018720 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018721 else
cristyda16f162011-02-19 23:52:17 +000018722 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018723 fi
18724 fi
18725 link_all_deplibs_CXX=yes
18726 ;;
18727 esac
18728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18729 hardcode_libdir_separator_CXX=:
18730 inherit_rpath_CXX=yes
18731 ;;
18732
cristy0c60a692010-11-04 01:09:47 +000018733 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018734 case $cc_basename in
18735 KCC*)
18736 # Kuck and Associates, Inc. (KAI) C++ Compiler
18737
18738 # KCC will only create a shared library if the output file
18739 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18740 # to its proper name (with version) after linking.
18741 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18742 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18743 # Commands to make compiler produce verbose output that lists
18744 # what "hidden" libraries, object files and flags are used when
18745 # linking a shared library.
18746 #
18747 # There doesn't appear to be a way to prevent this compiler from
18748 # explicitly linking system object files so we need to strip them
18749 # from the output so that they don't get included in the library
18750 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018751 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018752
18753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18755
18756 # Archives containing C++ object files must be created using
18757 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18758 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18759 ;;
18760 icpc* | ecpc* )
18761 # Intel C++
18762 with_gnu_ld=yes
18763 # version 8.0 and above of icpc choke on multiply defined symbols
18764 # if we add $predep_objects and $postdep_objects, however 7.1 and
18765 # earlier do not add the objects themselves.
18766 case `$CC -V 2>&1` in
18767 *"Version 7."*)
18768 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18769 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18770 ;;
18771 *) # Version 8.0 or newer
18772 tmp_idyn=
18773 case $host_cpu in
18774 ia64*) tmp_idyn=' -i_dynamic';;
18775 esac
18776 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18777 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18778 ;;
18779 esac
18780 archive_cmds_need_lc_CXX=no
18781 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18783 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18784 ;;
18785 pgCC* | pgcpp*)
18786 # Portland Group C++ compiler
18787 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018788 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018789 prelink_cmds_CXX='tpldir=Template.dir~
18790 rm -rf $tpldir~
18791 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018792 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018793 old_archive_cmds_CXX='tpldir=Template.dir~
18794 rm -rf $tpldir~
18795 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018796 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018797 $RANLIB $oldlib'
18798 archive_cmds_CXX='tpldir=Template.dir~
18799 rm -rf $tpldir~
18800 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018801 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018802 archive_expsym_cmds_CXX='tpldir=Template.dir~
18803 rm -rf $tpldir~
18804 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018805 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018806 ;;
cristy0c60a692010-11-04 01:09:47 +000018807 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018808 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18809 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18810 ;;
18811 esac
18812
18813 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018815 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018816 ;;
18817 cxx*)
18818 # Compaq C++
18819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18820 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18821
18822 runpath_var=LD_RUN_PATH
18823 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18824 hardcode_libdir_separator_CXX=:
18825
18826 # Commands to make compiler produce verbose output that lists
18827 # what "hidden" libraries, object files and flags are used when
18828 # linking a shared library.
18829 #
18830 # There doesn't appear to be a way to prevent this compiler from
18831 # explicitly linking system object files so we need to strip them
18832 # from the output so that they don't get included in the library
18833 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018834 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000018835 ;;
cristy0c60a692010-11-04 01:09:47 +000018836 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018837 # IBM XL 8.0 on PPC, with GNU ld
18838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18840 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18841 if test "x$supports_anon_versioning" = xyes; then
18842 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18844 echo "local: *; };" >> $output_objdir/$libname.ver~
18845 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18846 fi
18847 ;;
18848 *)
18849 case `$CC -V 2>&1 | sed 5q` in
18850 *Sun\ C*)
18851 # Sun C++ 5.9
18852 no_undefined_flag_CXX=' -zdefs'
18853 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18854 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18855 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018856 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018857 compiler_needs_object_CXX=yes
18858
18859 # Not sure whether something based on
18860 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18861 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018862 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018863
18864 # Archives containing C++ object files must be created using
18865 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18866 # necessary to make sure instantiated templates are included
18867 # in the archive.
18868 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18869 ;;
18870 esac
18871 ;;
18872 esac
18873 ;;
18874
18875 lynxos*)
18876 # FIXME: insert proper C++ library support
18877 ld_shlibs_CXX=no
18878 ;;
18879
18880 m88k*)
18881 # FIXME: insert proper C++ library support
18882 ld_shlibs_CXX=no
18883 ;;
18884
18885 mvs*)
18886 case $cc_basename in
18887 cxx*)
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 ;;
18891 *)
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895 esac
18896 ;;
18897
18898 netbsd*)
18899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18900 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18901 wlarc=
18902 hardcode_libdir_flag_spec_CXX='-R$libdir'
18903 hardcode_direct_CXX=yes
18904 hardcode_shlibpath_var_CXX=no
18905 fi
18906 # Workaround some broken pre-1.5 toolchains
18907 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18908 ;;
18909
18910 *nto* | *qnx*)
18911 ld_shlibs_CXX=yes
18912 ;;
18913
18914 openbsd2*)
18915 # C++ shared libraries are fairly broken
18916 ld_shlibs_CXX=no
18917 ;;
18918
18919 openbsd*)
18920 if test -f /usr/libexec/ld.so; then
18921 hardcode_direct_CXX=yes
18922 hardcode_shlibpath_var_CXX=no
18923 hardcode_direct_absolute_CXX=yes
18924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18927 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18928 export_dynamic_flag_spec_CXX='${wl}-E'
18929 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18930 fi
cristy0c60a692010-11-04 01:09:47 +000018931 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018932 else
18933 ld_shlibs_CXX=no
18934 fi
18935 ;;
18936
18937 osf3* | osf4* | osf5*)
18938 case $cc_basename in
18939 KCC*)
18940 # Kuck and Associates, Inc. (KAI) C++ Compiler
18941
18942 # KCC will only create a shared library if the output file
18943 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18944 # to its proper name (with version) after linking.
18945 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18946
18947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18948 hardcode_libdir_separator_CXX=:
18949
18950 # Archives containing C++ object files must be created using
18951 # the KAI C++ compiler.
18952 case $host in
18953 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18954 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18955 esac
18956 ;;
18957 RCC*)
18958 # Rational C++ 2.4.1
18959 # FIXME: insert proper C++ library support
18960 ld_shlibs_CXX=no
18961 ;;
18962 cxx*)
18963 case $host in
18964 osf3*)
18965 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018966 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18968 ;;
18969 *)
18970 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018971 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018972 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18973 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018974 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000018975 $RM $lib.exp'
18976 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18977 ;;
18978 esac
18979
18980 hardcode_libdir_separator_CXX=:
18981
18982 # Commands to make compiler produce verbose output that lists
18983 # what "hidden" libraries, object files and flags are used when
18984 # linking a shared library.
18985 #
18986 # There doesn't appear to be a way to prevent this compiler from
18987 # explicitly linking system object files so we need to strip them
18988 # from the output so that they don't get included in the library
18989 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018990 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018991 ;;
18992 *)
18993 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18994 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18995 case $host in
18996 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018997 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018998 ;;
18999 *)
cristyda16f162011-02-19 23:52:17 +000019000 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019001 ;;
19002 esac
19003
19004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19005 hardcode_libdir_separator_CXX=:
19006
19007 # Commands to make compiler produce verbose output that lists
19008 # what "hidden" libraries, object files and flags are used when
19009 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019011
19012 else
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 fi
19016 ;;
19017 esac
19018 ;;
19019
19020 psos*)
19021 # FIXME: insert proper C++ library support
19022 ld_shlibs_CXX=no
19023 ;;
19024
19025 sunos4*)
19026 case $cc_basename in
19027 CC*)
19028 # Sun C++ 4.x
19029 # FIXME: insert proper C++ library support
19030 ld_shlibs_CXX=no
19031 ;;
19032 lcc*)
19033 # Lucid
19034 # FIXME: insert proper C++ library support
19035 ld_shlibs_CXX=no
19036 ;;
19037 *)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041 esac
19042 ;;
19043
19044 solaris*)
19045 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019046 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019047 # Sun C++ 4.2, 5.x and Centerline C++
19048 archive_cmds_need_lc_CXX=yes
19049 no_undefined_flag_CXX=' -zdefs'
19050 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19052 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19053
19054 hardcode_libdir_flag_spec_CXX='-R$libdir'
19055 hardcode_shlibpath_var_CXX=no
19056 case $host_os in
19057 solaris2.[0-5] | solaris2.[0-5].*) ;;
19058 *)
19059 # The compiler driver will combine and reorder linker options,
19060 # but understands `-z linker_flag'.
19061 # Supported since Solaris 2.6 (maybe 2.5.1?)
19062 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19063 ;;
19064 esac
19065 link_all_deplibs_CXX=yes
19066
cristy0c60a692010-11-04 01:09:47 +000019067 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019068
19069 # Archives containing C++ object files must be created using
19070 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19071 # necessary to make sure instantiated templates are included
19072 # in the archive.
19073 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19074 ;;
19075 gcx*)
19076 # Green Hills C++ Compiler
19077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19078
19079 # The C++ compiler must be used to create the archive.
19080 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19081 ;;
19082 *)
19083 # GNU C++ compiler with Solaris linker
19084 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19085 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19086 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019087 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019088 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000019089 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000019090
19091 # Commands to make compiler produce verbose output that lists
19092 # what "hidden" libraries, object files and flags are used when
19093 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019094 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019095 else
19096 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19097 # platform.
19098 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19100 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19101
19102 # Commands to make compiler produce verbose output that lists
19103 # what "hidden" libraries, object files and flags are used when
19104 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019105 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019106 fi
19107
19108 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19109 case $host_os in
19110 solaris2.[0-5] | solaris2.[0-5].*) ;;
19111 *)
19112 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19113 ;;
19114 esac
19115 fi
19116 ;;
19117 esac
19118 ;;
19119
19120 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19121 no_undefined_flag_CXX='${wl}-z,text'
19122 archive_cmds_need_lc_CXX=no
19123 hardcode_shlibpath_var_CXX=no
19124 runpath_var='LD_RUN_PATH'
19125
19126 case $cc_basename in
19127 CC*)
19128 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19130 ;;
19131 *)
19132 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19133 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19134 ;;
19135 esac
19136 ;;
19137
19138 sysv5* | sco3.2v5* | sco5v6*)
19139 # Note: We can NOT use -z defs as we might desire, because we do not
19140 # link with -lc, and that would cause any symbols used from libc to
19141 # always be unresolved, which means just about no library would
19142 # ever link correctly. If we're not using GNU ld we use -z text
19143 # though, which does catch some bad symbols but isn't as heavy-handed
19144 # as -z defs.
19145 no_undefined_flag_CXX='${wl}-z,text'
19146 allow_undefined_flag_CXX='${wl}-z,nodefs'
19147 archive_cmds_need_lc_CXX=no
19148 hardcode_shlibpath_var_CXX=no
19149 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19150 hardcode_libdir_separator_CXX=':'
19151 link_all_deplibs_CXX=yes
19152 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19153 runpath_var='LD_RUN_PATH'
19154
19155 case $cc_basename in
19156 CC*)
19157 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19158 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000019159 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19160 '"$old_archive_cmds_CXX"
19161 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19162 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019163 ;;
19164 *)
19165 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19166 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19167 ;;
19168 esac
19169 ;;
19170
19171 tandem*)
19172 case $cc_basename in
19173 NCC*)
19174 # NonStop-UX NCC 3.20
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19177 ;;
19178 *)
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19181 ;;
19182 esac
19183 ;;
19184
19185 vxworks*)
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189
19190 *)
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 esac
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19197$as_echo "$ld_shlibs_CXX" >&6; }
19198 test "$ld_shlibs_CXX" = no && can_build_shared=no
19199
19200 GCC_CXX="$GXX"
19201 LD_CXX="$LD"
19202
19203 ## CAVEAT EMPTOR:
19204 ## There is no encapsulation within the following macros, do not change
19205 ## the running order or otherwise move them around unless you know exactly
19206 ## what you are doing...
19207 # Dependencies to place before and after the object being linked:
19208predep_objects_CXX=
19209postdep_objects_CXX=
19210predeps_CXX=
19211postdeps_CXX=
19212compiler_lib_search_path_CXX=
19213
19214cat > conftest.$ac_ext <<_LT_EOF
19215class Foo
19216{
19217public:
19218 Foo (void) { a = 0; }
19219private:
19220 int a;
19221};
19222_LT_EOF
19223
cristyda16f162011-02-19 23:52:17 +000019224
19225_lt_libdeps_save_CFLAGS=$CFLAGS
19226case "$CC $CFLAGS " in #(
19227*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19228*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019229*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019230esac
19231
cristy73bd4a52010-10-05 11:24:23 +000019232if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19233 (eval $ac_compile) 2>&5
19234 ac_status=$?
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; then
19237 # Parse the compiler output and extract the necessary
19238 # objects, libraries and library flags.
19239
19240 # Sentinel used to keep track of whether or not we are before
19241 # the conftest object file.
19242 pre_test_object_deps_done=no
19243
19244 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019245 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019246
19247 -L* | -R* | -l*)
19248 # Some compilers place space between "-{L,R}" and the path.
19249 # Remove the space.
19250 if test $p = "-L" ||
19251 test $p = "-R"; then
19252 prev=$p
19253 continue
cristy73bd4a52010-10-05 11:24:23 +000019254 fi
19255
cristyda16f162011-02-19 23:52:17 +000019256 # Expand the sysroot to ease extracting the directories later.
19257 if test -z "$prev"; then
19258 case $p in
19259 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19260 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19261 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19262 esac
19263 fi
19264 case $p in
19265 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19266 esac
cristy73bd4a52010-10-05 11:24:23 +000019267 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019268 case ${prev} in
19269 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019270 # Internal compiler library paths should come after those
19271 # provided the user. The postdeps already come after the
19272 # user supplied libs so there is no need to process them.
19273 if test -z "$compiler_lib_search_path_CXX"; then
19274 compiler_lib_search_path_CXX="${prev}${p}"
19275 else
19276 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19277 fi
19278 ;;
19279 # The "-l" case would never come before the object being
19280 # linked, so don't bother handling this case.
19281 esac
19282 else
19283 if test -z "$postdeps_CXX"; then
19284 postdeps_CXX="${prev}${p}"
19285 else
19286 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19287 fi
19288 fi
cristyda16f162011-02-19 23:52:17 +000019289 prev=
cristy73bd4a52010-10-05 11:24:23 +000019290 ;;
19291
cristyda16f162011-02-19 23:52:17 +000019292 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019293 *.$objext)
19294 # This assumes that the test object file only shows up
19295 # once in the compiler output.
19296 if test "$p" = "conftest.$objext"; then
19297 pre_test_object_deps_done=yes
19298 continue
19299 fi
19300
19301 if test "$pre_test_object_deps_done" = no; then
19302 if test -z "$predep_objects_CXX"; then
19303 predep_objects_CXX="$p"
19304 else
19305 predep_objects_CXX="$predep_objects_CXX $p"
19306 fi
19307 else
19308 if test -z "$postdep_objects_CXX"; then
19309 postdep_objects_CXX="$p"
19310 else
19311 postdep_objects_CXX="$postdep_objects_CXX $p"
19312 fi
19313 fi
19314 ;;
19315
19316 *) ;; # Ignore the rest.
19317
19318 esac
19319 done
19320
19321 # Clean up.
19322 rm -f a.out a.exe
19323else
19324 echo "libtool.m4: error: problem compiling CXX test program"
19325fi
19326
19327$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019328CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019329
19330# PORTME: override above test on systems where it is broken
19331case $host_os in
19332interix[3-9]*)
19333 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19334 # hack all around it, let's just trust "g++" to DTRT.
19335 predep_objects_CXX=
19336 postdep_objects_CXX=
19337 postdeps_CXX=
19338 ;;
19339
19340linux*)
19341 case `$CC -V 2>&1 | sed 5q` in
19342 *Sun\ C*)
19343 # Sun C++ 5.9
19344
19345 # The more standards-conforming stlport4 library is
19346 # incompatible with the Cstd library. Avoid specifying
19347 # it if it's in CXXFLAGS. Ignore libCrun as
19348 # -library=stlport4 depends on it.
19349 case " $CXX $CXXFLAGS " in
19350 *" -library=stlport4 "*)
19351 solaris_use_stlport4=yes
19352 ;;
19353 esac
19354
19355 if test "$solaris_use_stlport4" != yes; then
19356 postdeps_CXX='-library=Cstd -library=Crun'
19357 fi
19358 ;;
19359 esac
19360 ;;
19361
19362solaris*)
19363 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019364 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019365 # The more standards-conforming stlport4 library is
19366 # incompatible with the Cstd library. Avoid specifying
19367 # it if it's in CXXFLAGS. Ignore libCrun as
19368 # -library=stlport4 depends on it.
19369 case " $CXX $CXXFLAGS " in
19370 *" -library=stlport4 "*)
19371 solaris_use_stlport4=yes
19372 ;;
19373 esac
19374
19375 # Adding this requires a known-good setup of shared libraries for
19376 # Sun compiler versions before 5.6, else PIC objects from an old
19377 # archive will be linked into the output, leading to subtle bugs.
19378 if test "$solaris_use_stlport4" != yes; then
19379 postdeps_CXX='-library=Cstd -library=Crun'
19380 fi
19381 ;;
19382 esac
19383 ;;
19384esac
19385
19386
19387case " $postdeps_CXX " in
19388*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19389esac
19390 compiler_lib_search_dirs_CXX=
19391if test -n "${compiler_lib_search_path_CXX}"; then
19392 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19393fi
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425 lt_prog_compiler_wl_CXX=
19426lt_prog_compiler_pic_CXX=
19427lt_prog_compiler_static_CXX=
19428
cristy73bd4a52010-10-05 11:24:23 +000019429
19430 # C++ specific cases for pic, static, wl, etc.
19431 if test "$GXX" = yes; then
19432 lt_prog_compiler_wl_CXX='-Wl,'
19433 lt_prog_compiler_static_CXX='-static'
19434
19435 case $host_os in
19436 aix*)
19437 # All AIX code is PIC.
19438 if test "$host_cpu" = ia64; then
19439 # AIX 5 now supports IA64 processor
19440 lt_prog_compiler_static_CXX='-Bstatic'
19441 fi
19442 ;;
19443
19444 amigaos*)
19445 case $host_cpu in
19446 powerpc)
19447 # see comment about AmigaOS4 .so support
19448 lt_prog_compiler_pic_CXX='-fPIC'
19449 ;;
19450 m68k)
19451 # FIXME: we need at least 68020 code to build shared libraries, but
19452 # adding the `-m68020' flag to GCC prevents building anything better,
19453 # like `-m68040'.
19454 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19455 ;;
19456 esac
19457 ;;
19458
19459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19460 # PIC is the default for these OSes.
19461 ;;
19462 mingw* | cygwin* | os2* | pw32* | cegcc*)
19463 # This hack is so that the source file can tell whether it is being
19464 # built for inclusion in a dll (and should export symbols for example).
19465 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19466 # (--disable-auto-import) libraries
19467 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19468 ;;
19469 darwin* | rhapsody*)
19470 # PIC is the default on this platform
19471 # Common symbols not allowed in MH_DYLIB files
19472 lt_prog_compiler_pic_CXX='-fno-common'
19473 ;;
19474 *djgpp*)
19475 # DJGPP does not support shared libraries at all
19476 lt_prog_compiler_pic_CXX=
19477 ;;
cristy0c60a692010-11-04 01:09:47 +000019478 haiku*)
19479 # PIC is the default for Haiku.
19480 # The "-static" flag exists, but is broken.
19481 lt_prog_compiler_static_CXX=
19482 ;;
cristy73bd4a52010-10-05 11:24:23 +000019483 interix[3-9]*)
19484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19485 # Instead, we relocate shared libraries at runtime.
19486 ;;
19487 sysv4*MP*)
19488 if test -d /usr/nec; then
19489 lt_prog_compiler_pic_CXX=-Kconform_pic
19490 fi
19491 ;;
19492 hpux*)
19493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19495 # sets the default TLS model and affects inlining.
19496 case $host_cpu in
19497 hppa*64*)
19498 ;;
19499 *)
19500 lt_prog_compiler_pic_CXX='-fPIC'
19501 ;;
19502 esac
19503 ;;
19504 *qnx* | *nto*)
19505 # QNX uses GNU C++, but need to define -shared option too, otherwise
19506 # it will coredump.
19507 lt_prog_compiler_pic_CXX='-fPIC -shared'
19508 ;;
19509 *)
19510 lt_prog_compiler_pic_CXX='-fPIC'
19511 ;;
19512 esac
19513 else
19514 case $host_os in
19515 aix[4-9]*)
19516 # All AIX code is PIC.
19517 if test "$host_cpu" = ia64; then
19518 # AIX 5 now supports IA64 processor
19519 lt_prog_compiler_static_CXX='-Bstatic'
19520 else
19521 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19522 fi
19523 ;;
19524 chorus*)
19525 case $cc_basename in
19526 cxch68*)
19527 # Green Hills C++ Compiler
19528 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19529 ;;
19530 esac
19531 ;;
cristyda16f162011-02-19 23:52:17 +000019532 mingw* | cygwin* | os2* | pw32* | cegcc*)
19533 # This hack is so that the source file can tell whether it is being
19534 # built for inclusion in a dll (and should export symbols for example).
19535 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19536 ;;
cristy73bd4a52010-10-05 11:24:23 +000019537 dgux*)
19538 case $cc_basename in
19539 ec++*)
19540 lt_prog_compiler_pic_CXX='-KPIC'
19541 ;;
19542 ghcx*)
19543 # Green Hills C++ Compiler
19544 lt_prog_compiler_pic_CXX='-pic'
19545 ;;
19546 *)
19547 ;;
19548 esac
19549 ;;
19550 freebsd* | dragonfly*)
19551 # FreeBSD uses GNU C++
19552 ;;
19553 hpux9* | hpux10* | hpux11*)
19554 case $cc_basename in
19555 CC*)
19556 lt_prog_compiler_wl_CXX='-Wl,'
19557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19558 if test "$host_cpu" != ia64; then
19559 lt_prog_compiler_pic_CXX='+Z'
19560 fi
19561 ;;
19562 aCC*)
19563 lt_prog_compiler_wl_CXX='-Wl,'
19564 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19565 case $host_cpu in
19566 hppa*64*|ia64*)
19567 # +Z the default
19568 ;;
19569 *)
19570 lt_prog_compiler_pic_CXX='+Z'
19571 ;;
19572 esac
19573 ;;
19574 *)
19575 ;;
19576 esac
19577 ;;
19578 interix*)
19579 # This is c89, which is MS Visual C++ (no shared libs)
19580 # Anyone wants to do a port?
19581 ;;
19582 irix5* | irix6* | nonstopux*)
19583 case $cc_basename in
19584 CC*)
19585 lt_prog_compiler_wl_CXX='-Wl,'
19586 lt_prog_compiler_static_CXX='-non_shared'
19587 # CC pic flag -KPIC is the default.
19588 ;;
19589 *)
19590 ;;
19591 esac
19592 ;;
cristy0c60a692010-11-04 01:09:47 +000019593 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019594 case $cc_basename in
19595 KCC*)
19596 # KAI C++ Compiler
19597 lt_prog_compiler_wl_CXX='--backend -Wl,'
19598 lt_prog_compiler_pic_CXX='-fPIC'
19599 ;;
19600 ecpc* )
19601 # old Intel C++ for x86_64 which still supported -KPIC.
19602 lt_prog_compiler_wl_CXX='-Wl,'
19603 lt_prog_compiler_pic_CXX='-KPIC'
19604 lt_prog_compiler_static_CXX='-static'
19605 ;;
19606 icpc* )
19607 # Intel C++, used to be incompatible with GCC.
19608 # ICC 10 doesn't accept -KPIC any more.
19609 lt_prog_compiler_wl_CXX='-Wl,'
19610 lt_prog_compiler_pic_CXX='-fPIC'
19611 lt_prog_compiler_static_CXX='-static'
19612 ;;
19613 pgCC* | pgcpp*)
19614 # Portland Group C++ compiler
19615 lt_prog_compiler_wl_CXX='-Wl,'
19616 lt_prog_compiler_pic_CXX='-fpic'
19617 lt_prog_compiler_static_CXX='-Bstatic'
19618 ;;
19619 cxx*)
19620 # Compaq C++
19621 # Make sure the PIC flag is empty. It appears that all Alpha
19622 # Linux and Compaq Tru64 Unix objects are PIC.
19623 lt_prog_compiler_pic_CXX=
19624 lt_prog_compiler_static_CXX='-non_shared'
19625 ;;
cristy0c60a692010-11-04 01:09:47 +000019626 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19627 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019628 lt_prog_compiler_wl_CXX='-Wl,'
19629 lt_prog_compiler_pic_CXX='-qpic'
19630 lt_prog_compiler_static_CXX='-qstaticlink'
19631 ;;
19632 *)
19633 case `$CC -V 2>&1 | sed 5q` in
19634 *Sun\ C*)
19635 # Sun C++ 5.9
19636 lt_prog_compiler_pic_CXX='-KPIC'
19637 lt_prog_compiler_static_CXX='-Bstatic'
19638 lt_prog_compiler_wl_CXX='-Qoption ld '
19639 ;;
19640 esac
19641 ;;
19642 esac
19643 ;;
19644 lynxos*)
19645 ;;
19646 m88k*)
19647 ;;
19648 mvs*)
19649 case $cc_basename in
19650 cxx*)
19651 lt_prog_compiler_pic_CXX='-W c,exportall'
19652 ;;
19653 *)
19654 ;;
19655 esac
19656 ;;
19657 netbsd*)
19658 ;;
19659 *qnx* | *nto*)
19660 # QNX uses GNU C++, but need to define -shared option too, otherwise
19661 # it will coredump.
19662 lt_prog_compiler_pic_CXX='-fPIC -shared'
19663 ;;
19664 osf3* | osf4* | osf5*)
19665 case $cc_basename in
19666 KCC*)
19667 lt_prog_compiler_wl_CXX='--backend -Wl,'
19668 ;;
19669 RCC*)
19670 # Rational C++ 2.4.1
19671 lt_prog_compiler_pic_CXX='-pic'
19672 ;;
19673 cxx*)
19674 # Digital/Compaq C++
19675 lt_prog_compiler_wl_CXX='-Wl,'
19676 # Make sure the PIC flag is empty. It appears that all Alpha
19677 # Linux and Compaq Tru64 Unix objects are PIC.
19678 lt_prog_compiler_pic_CXX=
19679 lt_prog_compiler_static_CXX='-non_shared'
19680 ;;
19681 *)
19682 ;;
19683 esac
19684 ;;
19685 psos*)
19686 ;;
19687 solaris*)
19688 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019689 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019690 # Sun C++ 4.2, 5.x and Centerline C++
19691 lt_prog_compiler_pic_CXX='-KPIC'
19692 lt_prog_compiler_static_CXX='-Bstatic'
19693 lt_prog_compiler_wl_CXX='-Qoption ld '
19694 ;;
19695 gcx*)
19696 # Green Hills C++ Compiler
19697 lt_prog_compiler_pic_CXX='-PIC'
19698 ;;
19699 *)
19700 ;;
19701 esac
19702 ;;
19703 sunos4*)
19704 case $cc_basename in
19705 CC*)
19706 # Sun C++ 4.x
19707 lt_prog_compiler_pic_CXX='-pic'
19708 lt_prog_compiler_static_CXX='-Bstatic'
19709 ;;
19710 lcc*)
19711 # Lucid
19712 lt_prog_compiler_pic_CXX='-pic'
19713 ;;
19714 *)
19715 ;;
19716 esac
19717 ;;
19718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19719 case $cc_basename in
19720 CC*)
19721 lt_prog_compiler_wl_CXX='-Wl,'
19722 lt_prog_compiler_pic_CXX='-KPIC'
19723 lt_prog_compiler_static_CXX='-Bstatic'
19724 ;;
19725 esac
19726 ;;
19727 tandem*)
19728 case $cc_basename in
19729 NCC*)
19730 # NonStop-UX NCC 3.20
19731 lt_prog_compiler_pic_CXX='-KPIC'
19732 ;;
19733 *)
19734 ;;
19735 esac
19736 ;;
19737 vxworks*)
19738 ;;
19739 *)
19740 lt_prog_compiler_can_build_shared_CXX=no
19741 ;;
19742 esac
19743 fi
19744
19745case $host_os in
19746 # For platforms which do not support PIC, -DPIC is meaningless:
19747 *djgpp*)
19748 lt_prog_compiler_pic_CXX=
19749 ;;
19750 *)
19751 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19752 ;;
19753esac
cristy73bd4a52010-10-05 11:24:23 +000019754
cristyda16f162011-02-19 23:52:17 +000019755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19756$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19757if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19758 $as_echo_n "(cached) " >&6
19759else
19760 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19761fi
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19763$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19764lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019765
19766#
19767# Check to make sure the PIC flag actually works.
19768#
19769if test -n "$lt_prog_compiler_pic_CXX"; then
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19771$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019772if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019773 $as_echo_n "(cached) " >&6
19774else
19775 lt_cv_prog_compiler_pic_works_CXX=no
19776 ac_outfile=conftest.$ac_objext
19777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19779 # Insert the option either (1) after the last *FLAGS variable, or
19780 # (2) before a word containing "conftest.", or (3) at the end.
19781 # Note that $ac_compile itself does not contain backslashes and begins
19782 # with a dollar sign (not a hyphen), so the echo should work correctly.
19783 # The option is referenced via a variable to avoid confusing sed.
19784 lt_compile=`echo "$ac_compile" | $SED \
19785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19787 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019789 (eval "$lt_compile" 2>conftest.err)
19790 ac_status=$?
19791 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019793 if (exit $ac_status) && test -s "$ac_outfile"; then
19794 # The compiler can only warn and ignore the option if not recognized
19795 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19799 lt_cv_prog_compiler_pic_works_CXX=yes
19800 fi
19801 fi
19802 $RM conftest*
19803
19804fi
19805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19806$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19807
19808if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19809 case $lt_prog_compiler_pic_CXX in
19810 "" | " "*) ;;
19811 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19812 esac
19813else
19814 lt_prog_compiler_pic_CXX=
19815 lt_prog_compiler_can_build_shared_CXX=no
19816fi
19817
19818fi
19819
19820
19821
cristyda16f162011-02-19 23:52:17 +000019822
19823
cristy73bd4a52010-10-05 11:24:23 +000019824#
19825# Check to make sure the static flag actually works.
19826#
19827wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019830if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019831 $as_echo_n "(cached) " >&6
19832else
19833 lt_cv_prog_compiler_static_works_CXX=no
19834 save_LDFLAGS="$LDFLAGS"
19835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19838 # The linker can only warn and ignore the option if not recognized
19839 # So say no if there are warnings
19840 if test -s conftest.err; then
19841 # Append any errors to the config.log.
19842 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19845 if diff conftest.exp conftest.er2 >/dev/null; then
19846 lt_cv_prog_compiler_static_works_CXX=yes
19847 fi
19848 else
19849 lt_cv_prog_compiler_static_works_CXX=yes
19850 fi
19851 fi
19852 $RM -r conftest*
19853 LDFLAGS="$save_LDFLAGS"
19854
19855fi
19856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19857$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19858
19859if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19860 :
19861else
19862 lt_prog_compiler_static_CXX=
19863fi
19864
19865
19866
19867
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19869$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019870if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019871 $as_echo_n "(cached) " >&6
19872else
19873 lt_cv_prog_compiler_c_o_CXX=no
19874 $RM -r conftest 2>/dev/null
19875 mkdir conftest
19876 cd conftest
19877 mkdir out
19878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19879
19880 lt_compiler_flag="-o out/conftest2.$ac_objext"
19881 # Insert the option either (1) after the last *FLAGS variable, or
19882 # (2) before a word containing "conftest.", or (3) at the end.
19883 # Note that $ac_compile itself does not contain backslashes and begins
19884 # with a dollar sign (not a hyphen), so the echo should work correctly.
19885 lt_compile=`echo "$ac_compile" | $SED \
19886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19888 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019890 (eval "$lt_compile" 2>out/conftest.err)
19891 ac_status=$?
19892 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019894 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19895 then
19896 # The compiler can only warn and ignore the option if not recognized
19897 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19901 lt_cv_prog_compiler_c_o_CXX=yes
19902 fi
19903 fi
19904 chmod u+w . 2>&5
19905 $RM conftest*
19906 # SGI C++ compiler will create directory out/ii_files/ for
19907 # template instantiation
19908 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19909 $RM out/* && rmdir out
19910 cd ..
19911 $RM -r conftest
19912 $RM conftest*
19913
19914fi
19915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19916$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19917
19918
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19921$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019922if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019923 $as_echo_n "(cached) " >&6
19924else
19925 lt_cv_prog_compiler_c_o_CXX=no
19926 $RM -r conftest 2>/dev/null
19927 mkdir conftest
19928 cd conftest
19929 mkdir out
19930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19931
19932 lt_compiler_flag="-o out/conftest2.$ac_objext"
19933 # Insert the option either (1) after the last *FLAGS variable, or
19934 # (2) before a word containing "conftest.", or (3) at the end.
19935 # Note that $ac_compile itself does not contain backslashes and begins
19936 # with a dollar sign (not a hyphen), so the echo should work correctly.
19937 lt_compile=`echo "$ac_compile" | $SED \
19938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19940 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019942 (eval "$lt_compile" 2>out/conftest.err)
19943 ac_status=$?
19944 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19947 then
19948 # The compiler can only warn and ignore the option if not recognized
19949 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19953 lt_cv_prog_compiler_c_o_CXX=yes
19954 fi
19955 fi
19956 chmod u+w . 2>&5
19957 $RM conftest*
19958 # SGI C++ compiler will create directory out/ii_files/ for
19959 # template instantiation
19960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19961 $RM out/* && rmdir out
19962 cd ..
19963 $RM -r conftest
19964 $RM conftest*
19965
19966fi
19967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19968$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19969
19970
19971
19972
19973hard_links="nottested"
19974if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19975 # do not overwrite the value of need_locks provided by the user
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19977$as_echo_n "checking if we can lock with hard links... " >&6; }
19978 hard_links=yes
19979 $RM conftest*
19980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19981 touch conftest.a
19982 ln conftest.a conftest.b 2>&5 || hard_links=no
19983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19985$as_echo "$hard_links" >&6; }
19986 if test "$hard_links" = no; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19988$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19989 need_locks=warn
19990 fi
19991else
19992 need_locks=no
19993fi
19994
19995
19996
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19998$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19999
20000 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020001 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020002 case $host_os in
20003 aix[4-9]*)
20004 # If we're using GNU nm, then we don't want the "-C" option.
20005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020006 # Also, AIX nm treats weak defined symbols like other global defined
20007 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020008 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020009 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000020010 else
20011 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20012 fi
20013 ;;
20014 pw32*)
20015 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020016 ;;
cristy73bd4a52010-10-05 11:24:23 +000020017 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020018 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020019 cl*)
20020 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20021 ;;
cristyda16f162011-02-19 23:52:17 +000020022 *)
20023 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20024 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20025 ;;
20026 esac
20027 ;;
cristy73bd4a52010-10-05 11:24:23 +000020028 *)
20029 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020030 ;;
cristy73bd4a52010-10-05 11:24:23 +000020031 esac
cristy73bd4a52010-10-05 11:24:23 +000020032
20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20034$as_echo "$ld_shlibs_CXX" >&6; }
20035test "$ld_shlibs_CXX" = no && can_build_shared=no
20036
20037with_gnu_ld_CXX=$with_gnu_ld
20038
20039
20040
20041
20042
20043
20044#
20045# Do we need to explicitly link libc?
20046#
20047case "x$archive_cmds_need_lc_CXX" in
20048x|xyes)
20049 # Assume -lc should be added
20050 archive_cmds_need_lc_CXX=yes
20051
20052 if test "$enable_shared" = yes && test "$GCC" = yes; then
20053 case $archive_cmds_CXX in
20054 *'~'*)
20055 # FIXME: we may have to deal with multi-command sequences.
20056 ;;
20057 '$CC '*)
20058 # Test whether the compiler implicitly links with -lc since on some
20059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20060 # to ld, don't add -lc before -lgcc.
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20062$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020063if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020064 $as_echo_n "(cached) " >&6
20065else
20066 $RM conftest*
20067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020068
cristy0c60a692010-11-04 01:09:47 +000020069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020070 (eval $ac_compile) 2>&5
20071 ac_status=$?
20072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20073 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020074 soname=conftest
20075 lib=conftest
20076 libobjs=conftest.$ac_objext
20077 deplibs=
20078 wl=$lt_prog_compiler_wl_CXX
20079 pic_flag=$lt_prog_compiler_pic_CXX
20080 compiler_flags=-v
20081 linker_flags=-v
20082 verstring=
20083 output_objdir=.
20084 libname=conftest
20085 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20086 allow_undefined_flag_CXX=
20087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020088 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20089 ac_status=$?
20090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20091 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020092 then
20093 lt_cv_archive_cmds_need_lc_CXX=no
20094 else
20095 lt_cv_archive_cmds_need_lc_CXX=yes
20096 fi
20097 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20098 else
20099 cat conftest.err 1>&5
20100 fi
20101 $RM conftest*
20102
20103fi
20104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20105$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20106 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020107 ;;
20108 esac
20109 fi
20110 ;;
20111esac
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
cristy73bd4a52010-10-05 11:24:23 +000020174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20175$as_echo_n "checking dynamic linker characteristics... " >&6; }
20176
20177library_names_spec=
20178libname_spec='lib$name'
20179soname_spec=
20180shrext_cmds=".so"
20181postinstall_cmds=
20182postuninstall_cmds=
20183finish_cmds=
20184finish_eval=
20185shlibpath_var=
20186shlibpath_overrides_runpath=unknown
20187version_type=none
20188dynamic_linker="$host_os ld.so"
20189sys_lib_dlsearch_path_spec="/lib /usr/lib"
20190need_lib_prefix=unknown
20191hardcode_into_libs=no
20192
20193# when you set need_version to no, make sure it does not cause -set_version
20194# flags to be left without arguments
20195need_version=unknown
20196
20197case $host_os in
20198aix3*)
cristy99bd5232011-12-07 14:38:20 +000020199 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20201 shlibpath_var=LIBPATH
20202
20203 # AIX 3 has no versioning support, so we append a major version to the name.
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 ;;
20206
20207aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020208 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020209 need_lib_prefix=no
20210 need_version=no
20211 hardcode_into_libs=yes
20212 if test "$host_cpu" = ia64; then
20213 # AIX 5 supports IA64
20214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 else
20217 # With GCC up to 2.95.x, collect2 would create an import file
20218 # for dependence libraries. The import file would start with
20219 # the line `#! .'. This would cause the generated library to
20220 # depend on `.', always an invalid library. This was fixed in
20221 # development snapshots of GCC prior to 3.0.
20222 case $host_os in
20223 aix4 | aix4.[01] | aix4.[01].*)
20224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20225 echo ' yes '
20226 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20227 :
20228 else
20229 can_build_shared=no
20230 fi
20231 ;;
20232 esac
20233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20234 # soname into executable. Probably we can add versioning support to
20235 # collect2, so additional links can be useful in future.
20236 if test "$aix_use_runtimelinking" = yes; then
20237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20238 # instead of lib<name>.a to let people know that these are not
20239 # typical AIX shared libraries.
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20241 else
20242 # We preserve .a as extension for shared libraries through AIX4.2
20243 # and later when we are not doing run time linking.
20244 library_names_spec='${libname}${release}.a $libname.a'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 fi
20247 shlibpath_var=LIBPATH
20248 fi
20249 ;;
20250
20251amigaos*)
20252 case $host_cpu in
20253 powerpc)
20254 # Since July 2007 AmigaOS4 officially supports .so libraries.
20255 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257 ;;
20258 m68k)
20259 library_names_spec='$libname.ixlibrary $libname.a'
20260 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020261 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
cristy73bd4a52010-10-05 11:24:23 +000020262 ;;
20263 esac
20264 ;;
20265
20266beos*)
20267 library_names_spec='${libname}${shared_ext}'
20268 dynamic_linker="$host_os ld.so"
20269 shlibpath_var=LIBRARY_PATH
20270 ;;
20271
20272bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020273 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020274 need_version=no
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20278 shlibpath_var=LD_LIBRARY_PATH
20279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20281 # the default ld.so.conf also contains /usr/contrib/lib and
20282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20283 # libtool to hard-code these into programs
20284 ;;
20285
20286cygwin* | mingw* | pw32* | cegcc*)
20287 version_type=windows
20288 shrext_cmds=".dll"
20289 need_version=no
20290 need_lib_prefix=no
20291
cristyda16f162011-02-19 23:52:17 +000020292 case $GCC,$cc_basename in
20293 yes,*)
20294 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020295 library_names_spec='$libname.dll.a'
20296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20297 postinstall_cmds='base_file=`basename \${file}`~
20298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20299 dldir=$destdir/`dirname \$dlpath`~
20300 test -d \$dldir || mkdir -p \$dldir~
20301 $install_prog $dir/$dlname \$dldir/$dlname~
20302 chmod a+x \$dldir/$dlname~
20303 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20304 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20305 fi'
20306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20307 dlpath=$dir/\$dldll~
20308 $RM \$dlpath'
20309 shlibpath_overrides_runpath=yes
20310
20311 case $host_os in
20312 cygwin*)
20313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020315
cristy73bd4a52010-10-05 11:24:23 +000020316 ;;
20317 mingw* | cegcc*)
20318 # MinGW DLLs use traditional 'lib' prefix
20319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020320 ;;
20321 pw32*)
20322 # pw32 DLLs use 'pw' prefix rather than 'lib'
20323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20324 ;;
20325 esac
cristyda16f162011-02-19 23:52:17 +000020326 dynamic_linker='Win32 ld.exe'
20327 ;;
20328
20329 *,cl*)
20330 # Native MSVC
20331 libname_spec='$name'
20332 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20333 library_names_spec='${libname}.dll.lib'
20334
20335 case $build_os in
20336 mingw*)
20337 sys_lib_search_path_spec=
20338 lt_save_ifs=$IFS
20339 IFS=';'
20340 for lt_path in $LIB
20341 do
20342 IFS=$lt_save_ifs
20343 # Let DOS variable expansion print the short 8.3 style file name.
20344 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20345 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20346 done
20347 IFS=$lt_save_ifs
20348 # Convert to MSYS style.
20349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20350 ;;
20351 cygwin*)
20352 # Convert to unix form, then to dos form, then back to unix form
20353 # but this time dos style (no spaces!) so that the unix form looks
20354 # like /cygdrive/c/PROGRA~1:/cygdr...
20355 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20356 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20357 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20358 ;;
20359 *)
20360 sys_lib_search_path_spec="$LIB"
20361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20362 # It is most probably a Windows format PATH.
20363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20364 else
20365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20366 fi
20367 # FIXME: find the short name or the path components, as spaces are
20368 # common. (e.g. "Program Files" -> "PROGRA~1")
20369 ;;
20370 esac
20371
20372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20373 postinstall_cmds='base_file=`basename \${file}`~
20374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20375 dldir=$destdir/`dirname \$dlpath`~
20376 test -d \$dldir || mkdir -p \$dldir~
20377 $install_prog $dir/$dlname \$dldir/$dlname'
20378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20379 dlpath=$dir/\$dldll~
20380 $RM \$dlpath'
20381 shlibpath_overrides_runpath=yes
20382 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020383 ;;
20384
20385 *)
cristyda16f162011-02-19 23:52:17 +000020386 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020387 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020388 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020389 ;;
20390 esac
cristy73bd4a52010-10-05 11:24:23 +000020391 # FIXME: first we should search . and the directory the executable is in
20392 shlibpath_var=PATH
20393 ;;
20394
20395darwin* | rhapsody*)
20396 dynamic_linker="$host_os dyld"
20397 version_type=darwin
20398 need_lib_prefix=no
20399 need_version=no
20400 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20401 soname_spec='${libname}${release}${major}$shared_ext'
20402 shlibpath_overrides_runpath=yes
20403 shlibpath_var=DYLD_LIBRARY_PATH
20404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20405
20406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20407 ;;
20408
20409dgux*)
cristy99bd5232011-12-07 14:38:20 +000020410 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020411 need_lib_prefix=no
20412 need_version=no
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 ;;
20417
cristy73bd4a52010-10-05 11:24:23 +000020418freebsd* | dragonfly*)
20419 # DragonFly does not have aout. When/if they implement a new
20420 # versioning mechanism, adjust this.
20421 if test -x /usr/bin/objformat; then
20422 objformat=`/usr/bin/objformat`
20423 else
20424 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020425 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020426 *) objformat=elf ;;
20427 esac
20428 fi
20429 version_type=freebsd-$objformat
20430 case $version_type in
20431 freebsd-elf*)
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20433 need_version=no
20434 need_lib_prefix=no
20435 ;;
20436 freebsd-*)
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20438 need_version=yes
20439 ;;
20440 esac
20441 shlibpath_var=LD_LIBRARY_PATH
20442 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020443 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020444 shlibpath_overrides_runpath=yes
20445 ;;
20446 freebsd3.[01]* | freebsdelf3.[01]*)
20447 shlibpath_overrides_runpath=yes
20448 hardcode_into_libs=yes
20449 ;;
20450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20452 shlibpath_overrides_runpath=no
20453 hardcode_into_libs=yes
20454 ;;
20455 *) # from 4.6 on, and DragonFly
20456 shlibpath_overrides_runpath=yes
20457 hardcode_into_libs=yes
20458 ;;
20459 esac
20460 ;;
20461
20462gnu*)
cristy99bd5232011-12-07 14:38:20 +000020463 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020464 need_lib_prefix=no
20465 need_version=no
20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20467 soname_spec='${libname}${release}${shared_ext}$major'
20468 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020469 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020470 hardcode_into_libs=yes
20471 ;;
20472
cristy0c60a692010-11-04 01:09:47 +000020473haiku*)
cristy99bd5232011-12-07 14:38:20 +000020474 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020475 need_lib_prefix=no
20476 need_version=no
20477 dynamic_linker="$host_os runtime_loader"
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20479 soname_spec='${libname}${release}${shared_ext}$major'
20480 shlibpath_var=LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20483 hardcode_into_libs=yes
20484 ;;
20485
cristy73bd4a52010-10-05 11:24:23 +000020486hpux9* | hpux10* | hpux11*)
20487 # Give a soname corresponding to the major version so that dld.sl refuses to
20488 # link against other versions.
20489 version_type=sunos
20490 need_lib_prefix=no
20491 need_version=no
20492 case $host_cpu in
20493 ia64*)
20494 shrext_cmds='.so'
20495 hardcode_into_libs=yes
20496 dynamic_linker="$host_os dld.so"
20497 shlibpath_var=LD_LIBRARY_PATH
20498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 if test "X$HPUX_IA64_MODE" = X32; then
20502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20503 else
20504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20505 fi
20506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20507 ;;
20508 hppa*64*)
20509 shrext_cmds='.sl'
20510 hardcode_into_libs=yes
20511 dynamic_linker="$host_os dld.sl"
20512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20518 ;;
20519 *)
20520 shrext_cmds='.sl'
20521 dynamic_linker="$host_os dld.sl"
20522 shlibpath_var=SHLIB_PATH
20523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 soname_spec='${libname}${release}${shared_ext}$major'
20526 ;;
20527 esac
cristy0c60a692010-11-04 01:09:47 +000020528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020529 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020530 # or fails outright, so override atomically:
20531 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020532 ;;
20533
20534interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020535 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020536 need_lib_prefix=no
20537 need_version=no
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20541 shlibpath_var=LD_LIBRARY_PATH
20542 shlibpath_overrides_runpath=no
20543 hardcode_into_libs=yes
20544 ;;
20545
20546irix5* | irix6* | nonstopux*)
20547 case $host_os in
20548 nonstopux*) version_type=nonstopux ;;
20549 *)
20550 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020551 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020552 else
20553 version_type=irix
20554 fi ;;
20555 esac
20556 need_lib_prefix=no
20557 need_version=no
20558 soname_spec='${libname}${release}${shared_ext}$major'
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20560 case $host_os in
20561 irix5* | nonstopux*)
20562 libsuff= shlibsuff=
20563 ;;
20564 *)
20565 case $LD in # libtool.m4 will add one of these switches to LD
20566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20567 libsuff= shlibsuff= libmagic=32-bit;;
20568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20569 libsuff=32 shlibsuff=N32 libmagic=N32;;
20570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20572 *) libsuff= shlibsuff= libmagic=never-match;;
20573 esac
20574 ;;
20575 esac
20576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20577 shlibpath_overrides_runpath=no
20578 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20579 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20580 hardcode_into_libs=yes
20581 ;;
20582
20583# No shared lib support for Linux oldld, aout, or coff.
20584linux*oldld* | linux*aout* | linux*coff*)
20585 dynamic_linker=no
20586 ;;
20587
cristy99bd5232011-12-07 14:38:20 +000020588# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020589linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020590 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020591 need_lib_prefix=no
20592 need_version=no
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20596 shlibpath_var=LD_LIBRARY_PATH
20597 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020598
cristy73bd4a52010-10-05 11:24:23 +000020599 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020600 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020601 $as_echo_n "(cached) " >&6
20602else
20603 lt_cv_shlibpath_overrides_runpath=no
20604 save_LDFLAGS=$LDFLAGS
20605 save_libdir=$libdir
20606 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20607 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020609/* end confdefs.h. */
20610
20611int
20612main ()
20613{
20614
20615 ;
20616 return 0;
20617}
20618_ACEOF
20619if ac_fn_cxx_try_link "$LINENO"; then :
20620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020621 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020622fi
20623fi
20624rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020626 LDFLAGS=$save_LDFLAGS
20627 libdir=$save_libdir
20628
20629fi
20630
20631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020632
20633 # This implies no fast_install, which is unacceptable.
20634 # Some rework will be needed to allow for fast_install
20635 # before this can be enabled.
20636 hardcode_into_libs=yes
20637
20638 # Add ABI-specific directories to the system library path.
20639 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20640
20641 # Append ld.so.conf contents to the search path
20642 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020643 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000020644 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020645
cristy73bd4a52010-10-05 11:24:23 +000020646 fi
20647
20648 # We used to test for /lib/ld.so.1 and disable shared libraries on
20649 # powerpc, because MkLinux only supported shared libraries with the
20650 # GNU dynamic linker. Since this was broken with cross compilers,
20651 # most powerpc-linux boxes support dynamic linking these days and
20652 # people can always --disable-shared, the test was removed, and we
20653 # assume the GNU/Linux dynamic linker is in use.
20654 dynamic_linker='GNU/Linux ld.so'
20655 ;;
20656
20657netbsd*)
20658 version_type=sunos
20659 need_lib_prefix=no
20660 need_version=no
20661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20664 dynamic_linker='NetBSD (a.out) ld.so'
20665 else
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 dynamic_linker='NetBSD ld.elf_so'
20669 fi
20670 shlibpath_var=LD_LIBRARY_PATH
20671 shlibpath_overrides_runpath=yes
20672 hardcode_into_libs=yes
20673 ;;
20674
20675newsos6)
cristy99bd5232011-12-07 14:38:20 +000020676 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678 shlibpath_var=LD_LIBRARY_PATH
20679 shlibpath_overrides_runpath=yes
20680 ;;
20681
20682*nto* | *qnx*)
20683 version_type=qnx
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=no
20690 hardcode_into_libs=yes
20691 dynamic_linker='ldqnx.so'
20692 ;;
20693
20694openbsd*)
20695 version_type=sunos
20696 sys_lib_dlsearch_path_spec="/usr/lib"
20697 need_lib_prefix=no
20698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20699 case $host_os in
20700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20701 *) need_version=no ;;
20702 esac
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20705 shlibpath_var=LD_LIBRARY_PATH
20706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20707 case $host_os in
20708 openbsd2.[89] | openbsd2.[89].*)
20709 shlibpath_overrides_runpath=no
20710 ;;
20711 *)
20712 shlibpath_overrides_runpath=yes
20713 ;;
20714 esac
20715 else
20716 shlibpath_overrides_runpath=yes
20717 fi
20718 ;;
20719
20720os2*)
20721 libname_spec='$name'
20722 shrext_cmds=".dll"
20723 need_lib_prefix=no
20724 library_names_spec='$libname${shared_ext} $libname.a'
20725 dynamic_linker='OS/2 ld.exe'
20726 shlibpath_var=LIBPATH
20727 ;;
20728
20729osf3* | osf4* | osf5*)
20730 version_type=osf
20731 need_lib_prefix=no
20732 need_version=no
20733 soname_spec='${libname}${release}${shared_ext}$major'
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735 shlibpath_var=LD_LIBRARY_PATH
20736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20738 ;;
20739
20740rdos*)
20741 dynamic_linker=no
20742 ;;
20743
20744solaris*)
cristy99bd5232011-12-07 14:38:20 +000020745 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020746 need_lib_prefix=no
20747 need_version=no
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20752 hardcode_into_libs=yes
20753 # ldd complains unless libraries are executable
20754 postinstall_cmds='chmod +x $lib'
20755 ;;
20756
20757sunos4*)
20758 version_type=sunos
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20761 shlibpath_var=LD_LIBRARY_PATH
20762 shlibpath_overrides_runpath=yes
20763 if test "$with_gnu_ld" = yes; then
20764 need_lib_prefix=no
20765 fi
20766 need_version=yes
20767 ;;
20768
20769sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020770 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 soname_spec='${libname}${release}${shared_ext}$major'
20773 shlibpath_var=LD_LIBRARY_PATH
20774 case $host_vendor in
20775 sni)
20776 shlibpath_overrides_runpath=no
20777 need_lib_prefix=no
20778 runpath_var=LD_RUN_PATH
20779 ;;
20780 siemens)
20781 need_lib_prefix=no
20782 ;;
20783 motorola)
20784 need_lib_prefix=no
20785 need_version=no
20786 shlibpath_overrides_runpath=no
20787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20788 ;;
20789 esac
20790 ;;
20791
20792sysv4*MP*)
20793 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020794 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20796 soname_spec='$libname${shared_ext}.$major'
20797 shlibpath_var=LD_LIBRARY_PATH
20798 fi
20799 ;;
20800
20801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20802 version_type=freebsd-elf
20803 need_lib_prefix=no
20804 need_version=no
20805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20806 soname_spec='${libname}${release}${shared_ext}$major'
20807 shlibpath_var=LD_LIBRARY_PATH
20808 shlibpath_overrides_runpath=yes
20809 hardcode_into_libs=yes
20810 if test "$with_gnu_ld" = yes; then
20811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20812 else
20813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20814 case $host_os in
20815 sco3.2v5*)
20816 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20817 ;;
20818 esac
20819 fi
20820 sys_lib_dlsearch_path_spec='/usr/lib'
20821 ;;
20822
20823tpf*)
20824 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020825 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020826 need_lib_prefix=no
20827 need_version=no
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=no
20831 hardcode_into_libs=yes
20832 ;;
20833
20834uts4*)
cristy99bd5232011-12-07 14:38:20 +000020835 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 ;;
20840
20841*)
20842 dynamic_linker=no
20843 ;;
20844esac
20845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20846$as_echo "$dynamic_linker" >&6; }
20847test "$dynamic_linker" = no && can_build_shared=no
20848
20849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20850if test "$GCC" = yes; then
20851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20852fi
20853
20854if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20855 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20856fi
20857if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20858 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20859fi
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
cristy0c60a692010-11-04 01:09:47 +000020896
20897
cristy73bd4a52010-10-05 11:24:23 +000020898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20899$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20900hardcode_action_CXX=
20901if test -n "$hardcode_libdir_flag_spec_CXX" ||
20902 test -n "$runpath_var_CXX" ||
20903 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20904
20905 # We can hardcode non-existent directories.
20906 if test "$hardcode_direct_CXX" != no &&
20907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20908 # have to relink, otherwise we might link with an installed library
20909 # when we should be linking with a yet-to-be-installed one
20910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20911 test "$hardcode_minus_L_CXX" != no; then
20912 # Linking always hardcodes the temporary library directory.
20913 hardcode_action_CXX=relink
20914 else
20915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20916 hardcode_action_CXX=immediate
20917 fi
20918else
20919 # We cannot hardcode anything, or else we can only hardcode existing
20920 # directories.
20921 hardcode_action_CXX=unsupported
20922fi
20923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20924$as_echo "$hardcode_action_CXX" >&6; }
20925
20926if test "$hardcode_action_CXX" = relink ||
20927 test "$inherit_rpath_CXX" = yes; then
20928 # Fast installation is not supported
20929 enable_fast_install=no
20930elif test "$shlibpath_overrides_runpath" = yes ||
20931 test "$enable_shared" = no; then
20932 # Fast installation is not necessary
20933 enable_fast_install=needless
20934fi
20935
20936
20937
20938
20939
20940
20941
20942 fi # test -n "$compiler"
20943
20944 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020945 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020946 LDCXX=$LD
20947 LD=$lt_save_LD
20948 GCC=$lt_save_GCC
20949 with_gnu_ld=$lt_save_with_gnu_ld
20950 lt_cv_path_LDCXX=$lt_cv_path_LD
20951 lt_cv_path_LD=$lt_save_path_LD
20952 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20953 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20954fi # test "$_lt_caught_CXX_error" != yes
20955
20956ac_ext=c
20957ac_cpp='$CPP $CPPFLAGS'
20958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
cristy99bd5232011-12-07 14:38:20 +000020974
20975
cristy73bd4a52010-10-05 11:24:23 +000020976 ac_config_commands="$ac_config_commands libtool"
20977
20978
20979
20980
20981# Only expand once:
20982
20983
20984
cristy3ed852e2009-09-05 21:47:34 +000020985
20986
cristy3ed852e2009-09-05 21:47:34 +000020987# Check to see if building shared libraries
20988libtool_build_shared_libs='no'
20989if test "$enable_shared" = 'yes'; then
20990 libtool_build_shared_libs='yes'
20991fi
20992
20993# Check to see if building static libraries
20994libtool_build_static_libs='no'
20995if test "$enable_static" = 'yes'; then
20996 libtool_build_static_libs='yes'
20997fi
20998
cristy73bd4a52010-10-05 11:24:23 +000020999 if test "${libtool_build_shared_libs}" = 'yes'; then
21000 WITH_SHARED_LIBS_TRUE=
21001 WITH_SHARED_LIBS_FALSE='#'
21002else
21003 WITH_SHARED_LIBS_TRUE='#'
21004 WITH_SHARED_LIBS_FALSE=
21005fi
21006
cristy3ed852e2009-09-05 21:47:34 +000021007#
21008# Enable support for building loadable modules
21009#
cristyaf4cbf32012-10-16 23:47:41 +000021010build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021011
21012# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021013if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 withval=$with_modules; with_modules=$withval
21015else
cristy5a1cefd2010-01-06 20:42:35 +000021016 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021017fi
21018
21019
21020# Only allow building loadable modules if we are building shared libraries
21021if test "$with_modules" != 'no' ; then
21022 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000021024$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021025 build_modules='no'
21026 else
21027 build_modules='yes'
21028 fi
cristy3ed852e2009-09-05 21:47:34 +000021029fi
cristyc6722092012-10-14 00:19:31 +000021030if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021031
cristy8b350f62009-11-15 23:12:43 +000021032$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021033
cristyfa161182012-12-19 15:45:28 +000021034 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021035fi
cristyc6722092012-10-14 00:19:31 +000021036 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021037 WITH_MODULES_TRUE=
21038 WITH_MODULES_FALSE='#'
21039else
21040 WITH_MODULES_TRUE='#'
21041 WITH_MODULES_FALSE=
21042fi
21043
cristy3ed852e2009-09-05 21:47:34 +000021044
cristy3ed852e2009-09-05 21:47:34 +000021045# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021046# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021047# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021048if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21050else
21051 enable_delegate_build='no'
21052fi
21053
21054
21055# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021056if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021057 enableval=$enable_deprecated; enable_deprecated=$enableval
21058else
21059 enable_deprecated='no'
21060fi
21061
21062
21063if test "$enable_deprecated" = 'yes'; then
21064
cristy8b350f62009-11-15 23:12:43 +000021065$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021066
21067else
21068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21069fi
21070
21071# Build a version of ImageMagick which operates uninstalled.
21072# Used to build distributions located via MAGICK_HOME / executable path
21073# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021074if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 enableval=$enable_installed; enable_installed=$enableval
21076else
21077 enable_installed='yes'
21078fi
21079
21080
21081if test "$enable_installed" = 'yes'; then
21082
cristy8b350f62009-11-15 23:12:43 +000021083$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021084
21085else
21086 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21087fi
21088
21089# Permit enciphering and deciphering image pixels.
21090# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021091if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 enableval=$enable_cipher; enable_cipher=$enableval
21093else
21094 enable_cipher='yes'
21095fi
21096
21097
21098if test "$enable_cipher" = 'yes'; then
21099
cristy8b350f62009-11-15 23:12:43 +000021100$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021101
21102fi
21103
cristy6e3607c2011-09-13 13:59:17 +000021104# Build a zero-configuration version of ImageMagick.
21105# Check whether --enable-zero-configuration was given.
21106if test "${enable_zero_configuration+set}" = set; then :
21107 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021108else
cristy6e3607c2011-09-13 13:59:17 +000021109 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021110fi
21111
21112
cristy6e3607c2011-09-13 13:59:17 +000021113if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021114
cristy6e3607c2011-09-13 13:59:17 +000021115$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021116
cristy81af5702011-09-13 14:20:58 +000021117 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021118fi
21119
21120# Build a high dynamic range version of ImageMagick.
21121# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021122if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021123 enableval=$enable_hdri; enable_hdri=$enableval
21124else
cristy191c0b72012-08-12 16:29:52 +000021125 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021126fi
21127
21128
21129MAGICK_HDRI=""
21130if test "$enable_hdri" = 'yes'; then
21131 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021132 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021133 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021134else
21135 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021136fi
21137
cristye52f12f2012-12-31 15:32:36 +000021138cat >>confdefs.h <<_ACEOF
21139#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21140_ACEOF
21141
21142MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21143CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021144CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021145
cristy3ed852e2009-09-05 21:47:34 +000021146# Build a version of ImageMagick with assert statements.
21147# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021148if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021149 enableval=$enable_assert; enable_assert=$enableval
21150else
21151 enable_assert='yes'
21152fi
21153
21154
21155if test "$enable_assert" = 'no'; then
21156
cristy8b350f62009-11-15 23:12:43 +000021157$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021158
21159fi
21160
cristya448bd22011-10-14 12:38:13 +000021161# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021162
21163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21164$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21165 # Check whether --enable-maintainer-mode was given.
21166if test "${enable_maintainer_mode+set}" = set; then :
21167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21168else
21169 USE_MAINTAINER_MODE=no
21170fi
21171
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21173$as_echo "$USE_MAINTAINER_MODE" >&6; }
21174 if test $USE_MAINTAINER_MODE = yes; then
21175 MAINTAINER_MODE_TRUE=
21176 MAINTAINER_MODE_FALSE='#'
21177else
21178 MAINTAINER_MODE_TRUE='#'
21179 MAINTAINER_MODE_FALSE=
21180fi
21181
21182 MAINT=$MAINTAINER_MODE_TRUE
21183
21184
cristy3ed852e2009-09-05 21:47:34 +000021185
cristy944e51f2013-04-16 18:45:02 +000021186# Enable hugepages support
21187# Check whether --enable-hugepages was given.
21188if test "${enable_hugepages+set}" = set; then :
21189 enableval=$enable_hugepages; enable_hugepages=$enableval
21190else
21191 enable_hugepages='no'
21192fi
21193
21194
cristy3ed852e2009-09-05 21:47:34 +000021195# Enable ccmalloc memory debugging support
21196# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021197if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021198 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21199else
21200 enable_ccmalloc='no'
21201fi
21202
21203
21204# Enable Electric Fence memory debugging support
21205# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 enableval=$enable_efence; enable_efence=$enableval
21208else
21209 enable_efence='no'
21210fi
21211
21212
21213# Enable prof-based profiling support
21214# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021215if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 enableval=$enable_prof; enable_prof=$enableval
21217else
21218 enable_prof='no'
21219fi
21220
21221
21222# Enable gprof-based profiling support
21223# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021224if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021225 enableval=$enable_gprof; enable_gprof=$enableval
21226else
21227 enable_gprof='no'
21228fi
21229
21230
21231# Enable gcov-based profiling support
21232# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021233if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021234 enableval=$enable_gcov; enable_gcov=$enableval
21235else
21236 enable_gcov='no'
21237fi
21238
21239
21240enable_profiling='no'
21241if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21242 enable_profiling='yes'
21243 if test "$libtool_build_shared_libs" = 'yes'; then
21244 echo "Warning: Can not profile code using shared libraries"
21245 fi
21246fi
21247
21248# Magick API method prefix
21249
21250# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021251if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021252 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021253else
cristyfc3d0222012-02-07 15:05:57 +000021254 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021255fi
21256
21257
cristyfc3d0222012-02-07 15:05:57 +000021258if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021259
21260cat >>confdefs.h <<_ACEOF
21261#define NAMESPACE_PREFIX $with_method_prefix
21262_ACEOF
21263
cristyfc3d0222012-02-07 15:05:57 +000021264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021265fi
21266
cristy71d8c202012-03-20 17:05:01 +000021267# Enable legacy support (default no)
21268# Check whether --enable-legacy-support was given.
21269if test "${enable_legacy_support+set}" = set; then :
21270 enableval=$enable_legacy_support; with_legacy_support=$enableval
21271else
21272 with_legacy_support='no'
21273fi
21274
21275 if test "$with_legacy_support" != 'no'; then
21276 LEGACY_SUPPORT_TRUE=
21277 LEGACY_SUPPORT_FALSE='#'
21278else
21279 LEGACY_SUPPORT_TRUE='#'
21280 LEGACY_SUPPORT_FALSE=
21281fi
21282
21283
cristy3ed852e2009-09-05 21:47:34 +000021284# Number of bits in a Quantum
21285
21286# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021287if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 withval=$with_quantum_depth; with_quantum_depth=$withval
21289else
21290 with_quantum_depth=16
21291fi
21292
21293
21294if test "$with_quantum_depth" != '8'; then
21295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21296fi
21297
21298case "${with_quantum_depth}" in
21299 8 ) ;;
21300 16 ) ;;
21301 32 ) ;;
21302 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021303 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021304esac
21305QUANTUM_DEPTH="$with_quantum_depth"
21306
21307cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021308#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021309_ACEOF
21310
cristya371edf2013-02-06 13:42:17 +000021311MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021312CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021313CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021314
cristy01ff9f32012-12-01 18:15:29 +000021315# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021316MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021317if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021318 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021319fi
cristy01ff9f32012-12-01 18:15:29 +000021320
21321
cristy3ed852e2009-09-05 21:47:34 +000021322# Set pixel cache threshold
21323
21324# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021325if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021326 withval=$with_cache; with_cache=$withval
21327else
21328 with_cache=''
21329fi
21330
21331
21332if test "$with_cache" != ''; then
21333
21334cat >>confdefs.h <<_ACEOF
21335#define PixelCacheThreshold $with_cache
21336_ACEOF
21337
21338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21339fi
21340
21341# Disable/Enable support for full delegate paths
21342
21343# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021344if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 withval=$with_frozenpaths; with_frozenpaths=$withval
21346else
21347 with_frozenpaths='no'
21348fi
21349
21350
21351# Enable build/install of Magick++
21352
21353# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021354if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21356else
21357 with_magick_plus_plus='yes'
21358fi
21359
21360
cristy3a75f062012-09-08 23:29:40 +000021361# Encode the this name into the shared library.
21362
21363# Check whether --with-package-release-name was given.
21364if test "${with_package_release_name+set}" = set; then :
21365 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21366fi
21367
21368
21369
cristy3ed852e2009-09-05 21:47:34 +000021370# Disable build/install of PerlMagick.
21371
21372# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021373if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021374 withval=$with_perl; with_perl=$withval
21375else
cristyb5f4e2f2010-04-25 00:49:11 +000021376 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021377fi
21378
21379
21380# Options to pass when configuring PerlMagick
21381
21382# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021383if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021384 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021385fi
21386
21387
cristy3ed852e2009-09-05 21:47:34 +000021388
21389# Enable umem, object-caching memory allocation library.
21390
21391# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021392if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021393 withval=$with_umem; with_umem=$withval
21394else
21395 with_umem='no'
21396fi
21397
21398if test "$with_umem" != 'yes' ; then
21399 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21400fi
21401
21402#
21403# Specify path to shared libstdc++ if not in normal location
21404#
21405
21406# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021407if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021408 withval=$with_libstdc; with_libstdc=$withval
21409else
21410 with_libstdc=''
21411fi
21412
21413
21414if test "$with_libstdc" != ''; then
21415 if test -d "$with_libstdc"; then
21416 LIBSTDCLDFLAGS="-L$with_libstdc"
21417 fi
21418fi
21419
21420
21421# Does gcc required -traditional?
21422if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021424$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021425if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021426 $as_echo_n "(cached) " >&6
21427else
21428 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021430/* end confdefs.h. */
21431#include <sgtty.h>
21432Autoconf TIOCGETP
21433_ACEOF
21434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021435 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021436 ac_cv_prog_gcc_traditional=yes
21437else
21438 ac_cv_prog_gcc_traditional=no
21439fi
21440rm -f conftest*
21441
21442
21443 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021445/* end confdefs.h. */
21446#include <termio.h>
21447Autoconf TCGETA
21448_ACEOF
21449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021450 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021451 ac_cv_prog_gcc_traditional=yes
21452fi
21453rm -f conftest*
21454
21455 fi
21456fi
cristy8b350f62009-11-15 23:12:43 +000021457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021458$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21459 if test $ac_cv_prog_gcc_traditional = yes; then
21460 CC="$CC -traditional"
21461 fi
21462fi
21463
21464
21465########
21466#
21467# Set defines required to build DLLs and modules using MinGW
21468#
21469########
21470# These options are set for multi-thread DLL module build
21471# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21472# module: _DLL
21473# executable/Magick++: _DLL _MAGICKMOD_
21474MODULE_EXTRA_CPPFLAGS=''
21475LIBRARY_EXTRA_CPPFLAGS=''
21476if test "${native_win32_build}" = 'yes'; then
21477 if test "${libtool_build_shared_libs}" = 'yes'; then
21478 CPPFLAGS="$CPPFLAGS -D_DLL"
21479 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21480 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21481 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021482 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021483 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21484 else
21485 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21486 fi
21487 else
21488 CPPFLAGS="$CPPFLAGS -D_LIB"
21489 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21490 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21491 fi
21492 if test "$with_threads" = 'yes'; then
21493 CPPFLAGS="$CPPFLAGS -D_MT"
21494 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21495 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21496 fi
21497fi
21498
21499
21500
21501# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021503$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021504if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 $as_echo_n "(cached) " >&6
21506else
cristy8b350f62009-11-15 23:12:43 +000021507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021508/* end confdefs.h. */
21509#include <stdlib.h>
21510#include <stdarg.h>
21511#include <string.h>
21512#include <float.h>
21513
21514int
21515main ()
21516{
21517
21518 ;
21519 return 0;
21520}
21521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021522if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021523 ac_cv_header_stdc=yes
21524else
cristy8b350f62009-11-15 23:12:43 +000021525 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021526fi
cristy3ed852e2009-09-05 21:47:34 +000021527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21528
21529if test $ac_cv_header_stdc = yes; then
21530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021532/* end confdefs.h. */
21533#include <string.h>
21534
21535_ACEOF
21536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021537 $EGREP "memchr" >/dev/null 2>&1; then :
21538
cristy3ed852e2009-09-05 21:47:34 +000021539else
21540 ac_cv_header_stdc=no
21541fi
21542rm -f conftest*
21543
21544fi
21545
21546if test $ac_cv_header_stdc = yes; then
21547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021549/* end confdefs.h. */
21550#include <stdlib.h>
21551
21552_ACEOF
21553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021554 $EGREP "free" >/dev/null 2>&1; then :
21555
cristy3ed852e2009-09-05 21:47:34 +000021556else
21557 ac_cv_header_stdc=no
21558fi
21559rm -f conftest*
21560
21561fi
21562
21563if test $ac_cv_header_stdc = yes; then
21564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021565 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 :
21567else
cristy8b350f62009-11-15 23:12:43 +000021568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021569/* end confdefs.h. */
21570#include <ctype.h>
21571#include <stdlib.h>
21572#if ((' ' & 0x0FF) == 0x020)
21573# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21574# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21575#else
21576# define ISLOWER(c) \
21577 (('a' <= (c) && (c) <= 'i') \
21578 || ('j' <= (c) && (c) <= 'r') \
21579 || ('s' <= (c) && (c) <= 'z'))
21580# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21581#endif
21582
21583#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21584int
21585main ()
21586{
21587 int i;
21588 for (i = 0; i < 256; i++)
21589 if (XOR (islower (i), ISLOWER (i))
21590 || toupper (i) != TOUPPER (i))
21591 return 2;
21592 return 0;
21593}
21594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021595if ac_fn_c_try_run "$LINENO"; then :
21596
cristy3ed852e2009-09-05 21:47:34 +000021597else
cristy8b350f62009-11-15 23:12:43 +000021598 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021599fi
cristy8b350f62009-11-15 23:12:43 +000021600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21601 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021602fi
21603
cristy3ed852e2009-09-05 21:47:34 +000021604fi
21605fi
cristy8b350f62009-11-15 23:12:43 +000021606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo "$ac_cv_header_stdc" >&6; }
21608if test $ac_cv_header_stdc = yes; then
21609
cristy8b350f62009-11-15 23:12:43 +000021610$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021611
21612fi
21613
21614if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +000021616 header files. Compilation cannot proceed. Please install the ANSI C
21617 headers and rerun this script." >&5
21618$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21619 header files. Compilation cannot proceed. Please install the ANSI C
21620 headers and rerun this script." >&2;};
21621fi
cristya0b81c32010-01-22 02:54:33 +000021622
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21624$as_echo_n "checking whether to enable assertions... " >&6; }
21625 # Check whether --enable-assert was given.
21626if test "${enable_assert+set}" = set; then :
21627 enableval=$enable_assert; ac_enable_assert=$enableval
21628 if test "x$enableval" = xno; then :
21629
21630$as_echo "#define NDEBUG 1" >>confdefs.h
21631
21632elif test "x$enableval" != xyes; then :
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21634$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21635 ac_enable_assert=yes
21636fi
21637else
21638 ac_enable_assert=yes
21639fi
21640
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21642$as_echo "$ac_enable_assert" >&6; }
21643
cristy3ed852e2009-09-05 21:47:34 +000021644ac_header_dirent=no
21645for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21646 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021648$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021649if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 $as_echo_n "(cached) " >&6
21651else
cristy8b350f62009-11-15 23:12:43 +000021652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021653/* end confdefs.h. */
21654#include <sys/types.h>
21655#include <$ac_hdr>
21656
21657int
21658main ()
21659{
21660if ((DIR *) 0)
21661return 0;
21662 ;
21663 return 0;
21664}
21665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021666if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 eval "$as_ac_Header=yes"
21668else
cristy8b350f62009-11-15 23:12:43 +000021669 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021670fi
cristy3ed852e2009-09-05 21:47:34 +000021671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21672fi
cristy8b350f62009-11-15 23:12:43 +000021673eval ac_res=\$$as_ac_Header
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 cat >>confdefs.h <<_ACEOF
21678#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21679_ACEOF
21680
21681ac_header_dirent=$ac_hdr; break
21682fi
21683
21684done
21685# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21686if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021688$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021689if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 $as_echo_n "(cached) " >&6
21691else
21692 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021694/* end confdefs.h. */
21695
21696/* Override any GCC internal prototype to avoid an error.
21697 Use char because int might match the return type of a GCC
21698 builtin and then its argument prototype would still apply. */
21699#ifdef __cplusplus
21700extern "C"
21701#endif
21702char opendir ();
21703int
21704main ()
21705{
21706return opendir ();
21707 ;
21708 return 0;
21709}
21710_ACEOF
21711for ac_lib in '' dir; do
21712 if test -z "$ac_lib"; then
21713 ac_res="none required"
21714 else
21715 ac_res=-l$ac_lib
21716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21717 fi
cristy8b350f62009-11-15 23:12:43 +000021718 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021720fi
cristy8b350f62009-11-15 23:12:43 +000021721rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021723 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021724 break
21725fi
21726done
cristyda16f162011-02-19 23:52:17 +000021727if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021728
cristy3ed852e2009-09-05 21:47:34 +000021729else
21730 ac_cv_search_opendir=no
21731fi
21732rm conftest.$ac_ext
21733LIBS=$ac_func_search_save_LIBS
21734fi
cristy8b350f62009-11-15 23:12:43 +000021735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021736$as_echo "$ac_cv_search_opendir" >&6; }
21737ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021738if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21740
21741fi
21742
21743else
cristy8b350f62009-11-15 23:12:43 +000021744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021746if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
21749 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021751/* end confdefs.h. */
21752
21753/* Override any GCC internal prototype to avoid an error.
21754 Use char because int might match the return type of a GCC
21755 builtin and then its argument prototype would still apply. */
21756#ifdef __cplusplus
21757extern "C"
21758#endif
21759char opendir ();
21760int
21761main ()
21762{
21763return opendir ();
21764 ;
21765 return 0;
21766}
21767_ACEOF
21768for ac_lib in '' x; do
21769 if test -z "$ac_lib"; then
21770 ac_res="none required"
21771 else
21772 ac_res=-l$ac_lib
21773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21774 fi
cristy8b350f62009-11-15 23:12:43 +000021775 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021777fi
cristy8b350f62009-11-15 23:12:43 +000021778rm -f core conftest.err conftest.$ac_objext \
21779 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021780 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 break
21782fi
21783done
cristyda16f162011-02-19 23:52:17 +000021784if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021785
cristy3ed852e2009-09-05 21:47:34 +000021786else
21787 ac_cv_search_opendir=no
21788fi
21789rm conftest.$ac_ext
21790LIBS=$ac_func_search_save_LIBS
21791fi
cristy8b350f62009-11-15 23:12:43 +000021792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021793$as_echo "$ac_cv_search_opendir" >&6; }
21794ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021795if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21797
21798fi
21799
21800fi
21801
21802
21803# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021804for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021805do :
21806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 cat >>confdefs.h <<_ACEOF
21810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21811_ACEOF
21812
21813fi
21814
21815done
21816
21817
21818########
21819#
21820# Checks for typedefs, structures, and compiler characteristics.
21821#
21822########
21823
cristy8b350f62009-11-15 23:12:43 +000021824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021825$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021826if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 $as_echo_n "(cached) " >&6
21828else
cristy8b350f62009-11-15 23:12:43 +000021829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021830/* end confdefs.h. */
21831
cristy14fefe52012-05-21 00:59:18 +000021832 #include <stdbool.h>
21833 #ifndef bool
21834 "error: bool is not defined"
21835 #endif
21836 #ifndef false
21837 "error: false is not defined"
21838 #endif
21839 #if false
21840 "error: false is not 0"
21841 #endif
21842 #ifndef true
21843 "error: true is not defined"
21844 #endif
21845 #if true != 1
21846 "error: true is not 1"
21847 #endif
21848 #ifndef __bool_true_false_are_defined
21849 "error: __bool_true_false_are_defined is not defined"
21850 #endif
cristy3ed852e2009-09-05 21:47:34 +000021851
cristy14fefe52012-05-21 00:59:18 +000021852 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021853
cristy14fefe52012-05-21 00:59:18 +000021854 char a[true == 1 ? 1 : -1];
21855 char b[false == 0 ? 1 : -1];
21856 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21857 char d[(bool) 0.5 == true ? 1 : -1];
21858 /* See body of main program for 'e'. */
21859 char f[(_Bool) 0.0 == false ? 1 : -1];
21860 char g[true];
21861 char h[sizeof (_Bool)];
21862 char i[sizeof s.t];
21863 enum { j = false, k = true, l = false * true, m = true * 256 };
21864 /* The following fails for
21865 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21866 _Bool n[m];
21867 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21868 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21869 /* Catch a bug in an HP-UX C compiler. See
21870 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21871 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21872 */
21873 _Bool q = true;
21874 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021875
21876int
21877main ()
21878{
21879
cristy14fefe52012-05-21 00:59:18 +000021880 bool e = &s;
21881 *pq |= q;
21882 *pq |= ! q;
21883 /* Refer to every declared value, to avoid compiler optimizations. */
21884 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21885 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021886
21887 ;
21888 return 0;
21889}
21890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021891if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 ac_cv_header_stdbool_h=yes
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021895fi
cristy3ed852e2009-09-05 21:47:34 +000021896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897fi
cristy8b350f62009-11-15 23:12:43 +000021898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021900 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021901if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021902
21903cat >>confdefs.h <<_ACEOF
21904#define HAVE__BOOL 1
21905_ACEOF
21906
21907
21908fi
21909
cristy14fefe52012-05-21 00:59:18 +000021910
cristy3ed852e2009-09-05 21:47:34 +000021911if test $ac_cv_header_stdbool_h = yes; then
21912
cristy8b350f62009-11-15 23:12:43 +000021913$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021914
21915fi
21916
cristy8b350f62009-11-15 23:12:43 +000021917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021918$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021919if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021920 $as_echo_n "(cached) " >&6
21921else
cristy8b350f62009-11-15 23:12:43 +000021922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021923/* end confdefs.h. */
21924
21925int
21926main ()
21927{
21928
21929volatile int x;
21930int * volatile y = (int *) 0;
21931return !x && !y;
21932 ;
21933 return 0;
21934}
21935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021936if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021937 ac_cv_c_volatile=yes
21938else
cristy8b350f62009-11-15 23:12:43 +000021939 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021940fi
cristy3ed852e2009-09-05 21:47:34 +000021941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942fi
cristy8b350f62009-11-15 23:12:43 +000021943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021944$as_echo "$ac_cv_c_volatile" >&6; }
21945if test $ac_cv_c_volatile = no; then
21946
cristy8b350f62009-11-15 23:12:43 +000021947$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021948
21949fi
21950
cristy8b350f62009-11-15 23:12:43 +000021951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021952$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021953if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 $as_echo_n "(cached) " >&6
21955else
cristy8b350f62009-11-15 23:12:43 +000021956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021957/* end confdefs.h. */
21958#define x(y) #y
21959
21960char *s = x(teststring);
21961_ACEOF
21962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021963 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 ac_cv_c_stringize=no
21965else
21966 ac_cv_c_stringize=yes
21967fi
21968rm -f conftest*
21969
21970fi
cristy8b350f62009-11-15 23:12:43 +000021971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021972$as_echo "$ac_cv_c_stringize" >&6; }
21973if test $ac_cv_c_stringize = yes; then
21974
cristy8b350f62009-11-15 23:12:43 +000021975$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021976
21977fi
21978
cristy8b350f62009-11-15 23:12:43 +000021979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021980$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021981if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021982 $as_echo_n "(cached) " >&6
21983else
cristy8b350f62009-11-15 23:12:43 +000021984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021985/* end confdefs.h. */
21986#include <sys/types.h>
21987#include <sys/stat.h>
21988
21989#if defined S_ISBLK && defined S_IFDIR
21990extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21991#endif
21992
21993#if defined S_ISBLK && defined S_IFCHR
21994extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21995#endif
21996
21997#if defined S_ISLNK && defined S_IFREG
21998extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21999#endif
22000
22001#if defined S_ISSOCK && defined S_IFREG
22002extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22003#endif
22004
22005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022007 ac_cv_header_stat_broken=no
22008else
cristy8b350f62009-11-15 23:12:43 +000022009 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022010fi
cristy3ed852e2009-09-05 21:47:34 +000022011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012fi
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo "$ac_cv_header_stat_broken" >&6; }
22015if test $ac_cv_header_stat_broken = yes; then
22016
cristy8b350f62009-11-15 23:12:43 +000022017$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022018
22019fi
22020
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022023if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 $as_echo_n "(cached) " >&6
22025else
cristy8b350f62009-11-15 23:12:43 +000022026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022027/* end confdefs.h. */
22028#include <sys/types.h>
22029#include <sys/time.h>
22030#include <time.h>
22031
22032int
22033main ()
22034{
22035if ((struct tm *) 0)
22036return 0;
22037 ;
22038 return 0;
22039}
22040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022041if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 ac_cv_header_time=yes
22043else
cristy8b350f62009-11-15 23:12:43 +000022044 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022045fi
cristy3ed852e2009-09-05 21:47:34 +000022046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047fi
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo "$ac_cv_header_time" >&6; }
22050if test $ac_cv_header_time = yes; then
22051
cristy8b350f62009-11-15 23:12:43 +000022052$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022053
22054fi
22055
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022058if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022059 $as_echo_n "(cached) " >&6
22060else
cristy8b350f62009-11-15 23:12:43 +000022061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022062/* end confdefs.h. */
22063#include <sys/types.h>
22064#include <time.h>
22065
22066int
22067main ()
22068{
22069struct tm tm;
22070 int *p = &tm.tm_sec;
22071 return !p;
22072 ;
22073 return 0;
22074}
22075_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022076if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022077 ac_cv_struct_tm=time.h
22078else
cristy8b350f62009-11-15 23:12:43 +000022079 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022080fi
cristy3ed852e2009-09-05 21:47:34 +000022081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082fi
cristy8b350f62009-11-15 23:12:43 +000022083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084$as_echo "$ac_cv_struct_tm" >&6; }
22085if test $ac_cv_struct_tm = sys/time.h; then
22086
cristy8b350f62009-11-15 23:12:43 +000022087$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022088
22089fi
22090
cristy92703d82010-04-26 00:18:18 +000022091ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22092#include <$ac_cv_struct_tm>
22093
22094"
cristyda16f162011-02-19 23:52:17 +000022095if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022096
22097cat >>confdefs.h <<_ACEOF
22098#define HAVE_STRUCT_TM_TM_ZONE 1
22099_ACEOF
22100
22101
22102fi
22103
22104if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22105
22106$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22107
22108else
22109 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22110"
cristyda16f162011-02-19 23:52:17 +000022111if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022112 ac_have_decl=1
22113else
22114 ac_have_decl=0
22115fi
22116
22117cat >>confdefs.h <<_ACEOF
22118#define HAVE_DECL_TZNAME $ac_have_decl
22119_ACEOF
22120
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22122$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022123if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022124 $as_echo_n "(cached) " >&6
22125else
22126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22127/* end confdefs.h. */
22128#include <time.h>
22129#if !HAVE_DECL_TZNAME
22130extern char *tzname[];
22131#endif
22132
22133int
22134main ()
22135{
22136return tzname[0][0];
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141if ac_fn_c_try_link "$LINENO"; then :
22142 ac_cv_var_tzname=yes
22143else
22144 ac_cv_var_tzname=no
22145fi
22146rm -f core conftest.err conftest.$ac_objext \
22147 conftest$ac_exeext conftest.$ac_ext
22148fi
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22150$as_echo "$ac_cv_var_tzname" >&6; }
22151 if test $ac_cv_var_tzname = yes; then
22152
22153$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22154
22155 fi
22156fi
22157
cristy8b350f62009-11-15 23:12:43 +000022158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022159$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022160if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022161 $as_echo_n "(cached) " >&6
22162else
22163 echo '#! /bin/cat
22164exit 69
22165' >conftest
22166chmod u+x conftest
22167(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22168if test $? -ne 69; then
22169 ac_cv_sys_interpreter=yes
22170else
22171 ac_cv_sys_interpreter=no
22172fi
22173rm -f conftest
22174fi
cristy8b350f62009-11-15 23:12:43 +000022175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022176$as_echo "$ac_cv_sys_interpreter" >&6; }
22177interpval=$ac_cv_sys_interpreter
22178
22179
cristye80f9cb2013-01-09 01:09:31 +000022180#
22181# Checks for language qualifiers and semantics.
22182#
22183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22184$as_echo_n "checking whether char is unsigned... " >&6; }
22185if ${ac_cv_c_char_unsigned+:} false; then :
22186 $as_echo_n "(cached) " >&6
22187else
22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189/* end confdefs.h. */
22190$ac_includes_default
22191int
22192main ()
22193{
22194static int test_array [1 - 2 * !(((char) -1) < 0)];
22195test_array [0] = 0;
22196return test_array [0];
22197
22198 ;
22199 return 0;
22200}
22201_ACEOF
22202if ac_fn_c_try_compile "$LINENO"; then :
22203 ac_cv_c_char_unsigned=no
22204else
22205 ac_cv_c_char_unsigned=yes
22206fi
22207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208fi
22209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22210$as_echo "$ac_cv_c_char_unsigned" >&6; }
22211if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22212 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22213
22214fi
22215
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22217$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22218if ${ac_cv_c_const+:} false; then :
22219 $as_echo_n "(cached) " >&6
22220else
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222/* end confdefs.h. */
22223
22224int
22225main ()
22226{
22227
22228#ifndef __cplusplus
22229 /* Ultrix mips cc rejects this sort of thing. */
22230 typedef int charset[2];
22231 const charset cs = { 0, 0 };
22232 /* SunOS 4.1.1 cc rejects this. */
22233 char const *const *pcpcc;
22234 char **ppc;
22235 /* NEC SVR4.0.2 mips cc rejects this. */
22236 struct point {int x, y;};
22237 static struct point const zero = {0,0};
22238 /* AIX XL C 1.02.0.0 rejects this.
22239 It does not let you subtract one const X* pointer from another in
22240 an arm of an if-expression whose if-part is not a constant
22241 expression */
22242 const char *g = "string";
22243 pcpcc = &g + (g ? g-g : 0);
22244 /* HPUX 7.0 cc rejects these. */
22245 ++pcpcc;
22246 ppc = (char**) pcpcc;
22247 pcpcc = (char const *const *) ppc;
22248 { /* SCO 3.2v4 cc rejects this sort of thing. */
22249 char tx;
22250 char *t = &tx;
22251 char const *s = 0 ? (char *) 0 : (char const *) 0;
22252
22253 *t++ = 0;
22254 if (s) return 0;
22255 }
22256 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22257 int x[] = {25, 17};
22258 const int *foo = &x[0];
22259 ++foo;
22260 }
22261 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22262 typedef const int *iptr;
22263 iptr p = 0;
22264 ++p;
22265 }
22266 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22267 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22268 struct s { int j; const int *ap[3]; } bx;
22269 struct s *b = &bx; b->j = 5;
22270 }
22271 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22272 const int foo = 10;
22273 if (!foo) return 0;
22274 }
22275 return !cs[0] && !zero.x;
22276#endif
22277
22278 ;
22279 return 0;
22280}
22281_ACEOF
22282if ac_fn_c_try_compile "$LINENO"; then :
22283 ac_cv_c_const=yes
22284else
22285 ac_cv_c_const=no
22286fi
22287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288fi
22289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22290$as_echo "$ac_cv_c_const" >&6; }
22291if test $ac_cv_c_const = no; then
22292
22293$as_echo "#define const /**/" >>confdefs.h
22294
22295fi
22296
cristy8b350f62009-11-15 23:12:43 +000022297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022299if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022300 $as_echo_n "(cached) " >&6
22301else
22302 ac_cv_c_inline=no
22303for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022305/* end confdefs.h. */
22306#ifndef __cplusplus
22307typedef int foo_t;
22308static $ac_kw foo_t static_foo () {return 0; }
22309$ac_kw foo_t foo () {return 0; }
22310#endif
22311
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022315fi
cristy3ed852e2009-09-05 21:47:34 +000022316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 test "$ac_cv_c_inline" != no && break
22318done
22319
22320fi
cristy8b350f62009-11-15 23:12:43 +000022321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022322$as_echo "$ac_cv_c_inline" >&6; }
22323
cristy3ed852e2009-09-05 21:47:34 +000022324case $ac_cv_c_inline in
22325 inline | yes) ;;
22326 *)
22327 case $ac_cv_c_inline in
22328 no) ac_val=;;
22329 *) ac_val=$ac_cv_c_inline;;
22330 esac
22331 cat >>confdefs.h <<_ACEOF
22332#ifndef __cplusplus
22333#define inline $ac_val
22334#endif
22335_ACEOF
22336 ;;
22337esac
22338
cristy8b350f62009-11-15 23:12:43 +000022339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022340$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022341if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022342 $as_echo_n "(cached) " >&6
22343else
22344 ac_cv_c_restrict=no
22345 # The order here caters to the fact that C++ does not require restrict.
22346 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349typedef int * int_ptr;
22350 int foo (int_ptr $ac_kw ip) {
22351 return ip[0];
22352 }
22353int
22354main ()
22355{
22356int s[1];
22357 int * $ac_kw t = s;
22358 t[0] = 0;
22359 return foo(t)
22360 ;
22361 return 0;
22362}
22363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022364if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022365 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022366fi
cristy3ed852e2009-09-05 21:47:34 +000022367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 test "$ac_cv_c_restrict" != no && break
22369 done
22370
22371fi
cristy8b350f62009-11-15 23:12:43 +000022372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022373$as_echo "$ac_cv_c_restrict" >&6; }
22374
cristy3ed852e2009-09-05 21:47:34 +000022375 case $ac_cv_c_restrict in
22376 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022377 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022378 ;;
22379 *) cat >>confdefs.h <<_ACEOF
22380#define restrict $ac_cv_c_restrict
22381_ACEOF
22382 ;;
22383 esac
22384
cristye80f9cb2013-01-09 01:09:31 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22386$as_echo_n "checking for working volatile... " >&6; }
22387if ${ac_cv_c_volatile+:} false; then :
22388 $as_echo_n "(cached) " >&6
22389else
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391/* end confdefs.h. */
22392
22393int
22394main ()
22395{
22396
22397volatile int x;
22398int * volatile y = (int *) 0;
22399return !x && !y;
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404if ac_fn_c_try_compile "$LINENO"; then :
22405 ac_cv_c_volatile=yes
22406else
22407 ac_cv_c_volatile=no
22408fi
22409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410fi
22411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22412$as_echo "$ac_cv_c_volatile" >&6; }
22413if test $ac_cv_c_volatile = no; then
22414
22415$as_echo "#define volatile /**/" >>confdefs.h
22416
22417fi
22418
cristy3ed852e2009-09-05 21:47:34 +000022419
22420# If words are stored with the most significant byte first (like
22421# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022423$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022424if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 $as_echo_n "(cached) " >&6
22426else
22427 ac_cv_c_bigendian=unknown
22428 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022430/* end confdefs.h. */
22431#ifndef __APPLE_CC__
22432 not a universal capable compiler
22433 #endif
22434 typedef int dummy;
22435
22436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022437if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022438
22439 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022440 # there are at least two -arch flags with different values.
22441 ac_arch=
22442 ac_prev=
22443 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22444 if test -n "$ac_prev"; then
22445 case $ac_word in
22446 i?86 | x86_64 | ppc | ppc64)
22447 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22448 ac_arch=$ac_word
22449 else
22450 ac_cv_c_bigendian=universal
22451 break
22452 fi
22453 ;;
22454 esac
22455 ac_prev=
22456 elif test "x$ac_word" = "x-arch"; then
22457 ac_prev=arch
22458 fi
22459 done
cristy3ed852e2009-09-05 21:47:34 +000022460fi
cristy3ed852e2009-09-05 21:47:34 +000022461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 if test $ac_cv_c_bigendian = unknown; then
22463 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022465/* end confdefs.h. */
22466#include <sys/types.h>
22467 #include <sys/param.h>
22468
22469int
22470main ()
22471{
22472#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22473 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22474 && LITTLE_ENDIAN)
22475 bogus endian macros
22476 #endif
22477
22478 ;
22479 return 0;
22480}
22481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022482if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022483 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022485/* end confdefs.h. */
22486#include <sys/types.h>
22487 #include <sys/param.h>
22488
22489int
22490main ()
22491{
22492#if BYTE_ORDER != BIG_ENDIAN
22493 not big endian
22494 #endif
22495
22496 ;
22497 return 0;
22498}
22499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022501 ac_cv_c_bigendian=yes
22502else
cristy8b350f62009-11-15 23:12:43 +000022503 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022504fi
cristy3ed852e2009-09-05 21:47:34 +000022505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022506fi
cristy3ed852e2009-09-05 21:47:34 +000022507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 fi
22509 if test $ac_cv_c_bigendian = unknown; then
22510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022512/* end confdefs.h. */
22513#include <limits.h>
22514
22515int
22516main ()
22517{
22518#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22519 bogus endian macros
22520 #endif
22521
22522 ;
22523 return 0;
22524}
22525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022529/* end confdefs.h. */
22530#include <limits.h>
22531
22532int
22533main ()
22534{
22535#ifndef _BIG_ENDIAN
22536 not big endian
22537 #endif
22538
22539 ;
22540 return 0;
22541}
22542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022543if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022544 ac_cv_c_bigendian=yes
22545else
cristy8b350f62009-11-15 23:12:43 +000022546 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022547fi
cristy3ed852e2009-09-05 21:47:34 +000022548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022549fi
cristy3ed852e2009-09-05 21:47:34 +000022550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 fi
22552 if test $ac_cv_c_bigendian = unknown; then
22553 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022554 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022557/* end confdefs.h. */
22558short int ascii_mm[] =
22559 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22560 short int ascii_ii[] =
22561 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22562 int use_ascii (int i) {
22563 return ascii_mm[i] + ascii_ii[i];
22564 }
22565 short int ebcdic_ii[] =
22566 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22567 short int ebcdic_mm[] =
22568 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22569 int use_ebcdic (int i) {
22570 return ebcdic_mm[i] + ebcdic_ii[i];
22571 }
22572 extern int foo;
22573
22574int
22575main ()
22576{
22577return use_ascii (foo) == use_ebcdic (foo);
22578 ;
22579 return 0;
22580}
22581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022582if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22584 ac_cv_c_bigendian=yes
22585 fi
22586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22587 if test "$ac_cv_c_bigendian" = unknown; then
22588 ac_cv_c_bigendian=no
22589 else
22590 # finding both strings is unlikely to happen, but who knows?
22591 ac_cv_c_bigendian=unknown
22592 fi
22593 fi
cristy3ed852e2009-09-05 21:47:34 +000022594fi
cristy3ed852e2009-09-05 21:47:34 +000022595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22596else
cristy8b350f62009-11-15 23:12:43 +000022597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022598/* end confdefs.h. */
22599$ac_includes_default
22600int
22601main ()
22602{
22603
22604 /* Are we little or big endian? From Harbison&Steele. */
22605 union
22606 {
22607 long int l;
22608 char c[sizeof (long int)];
22609 } u;
22610 u.l = 1;
22611 return u.c[sizeof (long int) - 1] == 1;
22612
22613 ;
22614 return 0;
22615}
22616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022617if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022618 ac_cv_c_bigendian=no
22619else
cristy8b350f62009-11-15 23:12:43 +000022620 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022621fi
cristy8b350f62009-11-15 23:12:43 +000022622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22623 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022624fi
22625
cristy3ed852e2009-09-05 21:47:34 +000022626 fi
22627fi
cristy8b350f62009-11-15 23:12:43 +000022628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo "$ac_cv_c_bigendian" >&6; }
22630 case $ac_cv_c_bigendian in #(
22631 yes)
cristy8b350f62009-11-15 23:12:43 +000022632 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022633;; #(
22634 no)
22635 ;; #(
22636 universal)
22637
cristy8b350f62009-11-15 23:12:43 +000022638$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022639
22640 ;; #(
22641 *)
cristy98dddb52010-11-04 00:30:15 +000022642 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022644 esac
22645
22646
cristy501c8042011-05-26 17:46:28 +000022647# Define to a suitable type, if standard headers do not define it.
22648ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22649case $ac_cv_c_int8_t in #(
22650 no|yes) ;; #(
22651 *)
cristy3ed852e2009-09-05 21:47:34 +000022652
22653cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022654#define int8_t $ac_cv_c_int8_t
22655_ACEOF
22656;;
22657esac
22658
22659ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22660case $ac_cv_c_int16_t in #(
22661 no|yes) ;; #(
22662 *)
22663
22664cat >>confdefs.h <<_ACEOF
22665#define int16_t $ac_cv_c_int16_t
22666_ACEOF
22667;;
22668esac
22669
22670ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22671case $ac_cv_c_int32_t in #(
22672 no|yes) ;; #(
22673 *)
22674
22675cat >>confdefs.h <<_ACEOF
22676#define int32_t $ac_cv_c_int32_t
22677_ACEOF
22678;;
22679esac
22680
22681ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22682case $ac_cv_c_int64_t in #(
22683 no|yes) ;; #(
22684 *)
22685
22686cat >>confdefs.h <<_ACEOF
22687#define int64_t $ac_cv_c_int64_t
22688_ACEOF
22689;;
22690esac
22691
22692
cristy045228a2013-06-23 11:00:16 +000022693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22694$as_echo_n "checking for unsigned long long int... " >&6; }
22695if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022696 $as_echo_n "(cached) " >&6
22697else
cristy045228a2013-06-23 11:00:16 +000022698 ac_cv_type_unsigned_long_long_int=yes
22699 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022701/* end confdefs.h. */
22702
22703 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022704 implementations with broken preprocessors. Perhaps this can
22705 be revisited in 2012. In the meantime, code should not expect
22706 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022707 /* Test literals. */
22708 long long int ll = 9223372036854775807ll;
22709 long long int nll = -9223372036854775807LL;
22710 unsigned long long int ull = 18446744073709551615ULL;
22711 /* Test constant expressions. */
22712 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022713 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022714 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022715 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022716 int i = 63;
22717int
22718main ()
22719{
22720/* Test availability of runtime routines for shift and division. */
22721 long long int llmax = 9223372036854775807ll;
22722 unsigned long long int ullmax = 18446744073709551615ull;
22723 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022724 | (llmax / ll) | (llmax % ll)
22725 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22726 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022727 ;
22728 return 0;
22729}
22730
22731_ACEOF
22732if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022733
22734else
22735 ac_cv_type_unsigned_long_long_int=no
22736fi
22737rm -f core conftest.err conftest.$ac_objext \
22738 conftest$ac_exeext conftest.$ac_ext
22739 fi
22740fi
22741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22742$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22743 if test $ac_cv_type_unsigned_long_long_int = yes; then
22744
22745$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22746
22747 fi
22748
22749
22750
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22752$as_echo_n "checking for long long int... " >&6; }
22753if ${ac_cv_type_long_long_int+:} false; then :
22754 $as_echo_n "(cached) " >&6
22755else
cristy501c8042011-05-26 17:46:28 +000022756 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022757 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022758 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22759 if test $ac_cv_type_long_long_int = yes; then
22760 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022761 :
cristy501c8042011-05-26 17:46:28 +000022762else
22763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22764/* end confdefs.h. */
22765#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022766 #ifndef LLONG_MAX
22767 # define HALF \
22768 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22769 # define LLONG_MAX (HALF - 1 + HALF)
22770 #endif
cristy501c8042011-05-26 17:46:28 +000022771int
22772main ()
22773{
22774long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022775 int i;
22776 for (i = 0; ; i++)
22777 {
22778 long long int m = n << i;
22779 if (m >> i != n)
22780 return 1;
22781 if (LLONG_MAX / 2 < m)
22782 break;
22783 }
22784 return 0;
cristy501c8042011-05-26 17:46:28 +000022785 ;
22786 return 0;
22787}
22788_ACEOF
22789if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022790
cristy501c8042011-05-26 17:46:28 +000022791else
22792 ac_cv_type_long_long_int=no
22793fi
22794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22795 conftest.$ac_objext conftest.beam conftest.$ac_ext
22796fi
22797
cristy5ed9c6e2013-07-14 21:20:31 +000022798 fi
cristy045228a2013-06-23 11:00:16 +000022799 fi
cristy501c8042011-05-26 17:46:28 +000022800fi
22801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22802$as_echo "$ac_cv_type_long_long_int" >&6; }
22803 if test $ac_cv_type_long_long_int = yes; then
22804
22805$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22806
22807 fi
22808
22809
22810
22811 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22812if test "x$ac_cv_type_intmax_t" = xyes; then :
22813
22814$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22815
22816else
22817 test $ac_cv_type_long_long_int = yes \
22818 && ac_type='long long int' \
22819 || ac_type='long int'
22820
22821cat >>confdefs.h <<_ACEOF
22822#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022823_ACEOF
22824
22825fi
22826
22827
cristy501c8042011-05-26 17:46:28 +000022828
22829 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22830if test "x$ac_cv_type_intptr_t" = xyes; then :
22831
22832$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022833
cristy3ed852e2009-09-05 21:47:34 +000022834else
cristy501c8042011-05-26 17:46:28 +000022835 for ac_type in 'int' 'long int' 'long long int'; do
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837/* end confdefs.h. */
22838$ac_includes_default
22839int
22840main ()
22841{
22842static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022843test_array [0] = 0;
22844return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022845
22846 ;
22847 return 0;
22848}
22849_ACEOF
22850if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022851
22852cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022853#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022854_ACEOF
22855
cristy501c8042011-05-26 17:46:28 +000022856 ac_type=
22857fi
22858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 test -z "$ac_type" && break
22860 done
cristy3ed852e2009-09-05 21:47:34 +000022861fi
22862
22863
cristy3ed852e2009-09-05 21:47:34 +000022864
cristy501c8042011-05-26 17:46:28 +000022865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22866$as_echo_n "checking for long double... " >&6; }
22867if ${ac_cv_type_long_double+:} false; then :
22868 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022869else
cristy501c8042011-05-26 17:46:28 +000022870 if test "$GCC" = yes; then
22871 ac_cv_type_long_double=yes
22872 else
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874/* end confdefs.h. */
22875/* The Stardent Vistra knows sizeof (long double), but does
22876 not support it. */
22877 long double foo = 0.0L;
22878int
22879main ()
22880{
22881static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22882 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022883test_array [0] = 0;
22884return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022885
cristy501c8042011-05-26 17:46:28 +000022886 ;
22887 return 0;
22888}
cristy3ed852e2009-09-05 21:47:34 +000022889_ACEOF
cristy501c8042011-05-26 17:46:28 +000022890if ac_fn_c_try_compile "$LINENO"; then :
22891 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022892else
cristy501c8042011-05-26 17:46:28 +000022893 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022894fi
cristy501c8042011-05-26 17:46:28 +000022895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 fi
cristy3ed852e2009-09-05 21:47:34 +000022897fi
cristy501c8042011-05-26 17:46:28 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22899$as_echo "$ac_cv_type_long_double" >&6; }
22900 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022901
cristy501c8042011-05-26 17:46:28 +000022902$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022903
cristy501c8042011-05-26 17:46:28 +000022904 fi
22905
cristy3ed852e2009-09-05 21:47:34 +000022906
cristy8b350f62009-11-15 23:12:43 +000022907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +000022908$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022909if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022910 $as_echo_n "(cached) " >&6
22911else
cristy8b350f62009-11-15 23:12:43 +000022912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022913/* end confdefs.h. */
22914#include <float.h>
22915 long double const a[] =
22916 {
22917 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22918 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22919 };
22920 long double
22921 f (long double x)
22922 {
22923 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22924 + (x ? f (x) : 'c'));
22925 }
22926
22927int
22928main ()
22929{
22930static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22931 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22932 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22933 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22934 && (int) LDBL_EPSILON == 0
22935 )];
cristy14fefe52012-05-21 00:59:18 +000022936test_array [0] = 0;
22937return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022938
22939 ;
22940 return 0;
22941}
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022944 ac_cv_type_long_double_wider=yes
22945else
cristy8b350f62009-11-15 23:12:43 +000022946 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022947fi
cristy3ed852e2009-09-05 21:47:34 +000022948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949fi
cristy8b350f62009-11-15 23:12:43 +000022950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022951$as_echo "$ac_cv_type_long_double_wider" >&6; }
22952 if test $ac_cv_type_long_double_wider = yes; then
22953
cristy8b350f62009-11-15 23:12:43 +000022954$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022955
22956 fi
22957
22958
cristy045228a2013-06-23 11:00:16 +000022959
cristy501c8042011-05-26 17:46:28 +000022960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22961$as_echo_n "checking for long long int... " >&6; }
22962if ${ac_cv_type_long_long_int+:} false; then :
22963 $as_echo_n "(cached) " >&6
22964else
cristy501c8042011-05-26 17:46:28 +000022965 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022966 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022967 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22968 if test $ac_cv_type_long_long_int = yes; then
22969 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022970 :
cristy501c8042011-05-26 17:46:28 +000022971else
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973/* end confdefs.h. */
22974#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022975 #ifndef LLONG_MAX
22976 # define HALF \
22977 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22978 # define LLONG_MAX (HALF - 1 + HALF)
22979 #endif
cristy501c8042011-05-26 17:46:28 +000022980int
22981main ()
22982{
22983long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022984 int i;
22985 for (i = 0; ; i++)
22986 {
22987 long long int m = n << i;
22988 if (m >> i != n)
22989 return 1;
22990 if (LLONG_MAX / 2 < m)
22991 break;
22992 }
22993 return 0;
cristy501c8042011-05-26 17:46:28 +000022994 ;
22995 return 0;
22996}
22997_ACEOF
22998if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022999
cristy501c8042011-05-26 17:46:28 +000023000else
23001 ac_cv_type_long_long_int=no
23002fi
23003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
23005fi
23006
cristy5ed9c6e2013-07-14 21:20:31 +000023007 fi
cristy045228a2013-06-23 11:00:16 +000023008 fi
cristy501c8042011-05-26 17:46:28 +000023009fi
23010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23011$as_echo "$ac_cv_type_long_long_int" >&6; }
23012 if test $ac_cv_type_long_long_int = yes; then
23013
23014$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23015
23016 fi
23017
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23019$as_echo_n "checking for mbstate_t... " >&6; }
23020if ${ac_cv_type_mbstate_t+:} false; then :
23021 $as_echo_n "(cached) " >&6
23022else
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024/* end confdefs.h. */
23025$ac_includes_default
23026# include <wchar.h>
23027int
23028main ()
23029{
23030mbstate_t x; return sizeof x;
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035if ac_fn_c_try_compile "$LINENO"; then :
23036 ac_cv_type_mbstate_t=yes
23037else
23038 ac_cv_type_mbstate_t=no
23039fi
23040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041fi
23042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23043$as_echo "$ac_cv_type_mbstate_t" >&6; }
23044 if test $ac_cv_type_mbstate_t = yes; then
23045
23046$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23047
23048 else
23049
23050$as_echo "#define mbstate_t int" >>confdefs.h
23051
23052 fi
23053ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23054if test "x$ac_cv_type_mode_t" = xyes; then :
23055
23056else
23057
23058cat >>confdefs.h <<_ACEOF
23059#define mode_t int
23060_ACEOF
23061
23062fi
23063
23064ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23065if test "x$ac_cv_type_off_t" = xyes; then :
23066
23067else
23068
23069cat >>confdefs.h <<_ACEOF
23070#define off_t long int
23071_ACEOF
23072
23073fi
23074
23075ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23076if test "x$ac_cv_type_pid_t" = xyes; then :
23077
23078else
23079
23080cat >>confdefs.h <<_ACEOF
23081#define pid_t int
23082_ACEOF
23083
23084fi
23085
23086ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23087if test "x$ac_cv_type_size_t" = xyes; then :
23088
23089else
23090
23091cat >>confdefs.h <<_ACEOF
23092#define size_t unsigned int
23093_ACEOF
23094
23095fi
23096
23097ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23098if test "x$ac_cv_type_ssize_t" = xyes; then :
23099
23100else
23101
23102cat >>confdefs.h <<_ACEOF
23103#define ssize_t int
23104_ACEOF
23105
23106fi
23107
23108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23109$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23110if ${ac_cv_type_uid_t+:} false; then :
23111 $as_echo_n "(cached) " >&6
23112else
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114/* end confdefs.h. */
23115#include <sys/types.h>
23116
23117_ACEOF
23118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23119 $EGREP "uid_t" >/dev/null 2>&1; then :
23120 ac_cv_type_uid_t=yes
23121else
23122 ac_cv_type_uid_t=no
23123fi
23124rm -f conftest*
23125
23126fi
23127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23128$as_echo "$ac_cv_type_uid_t" >&6; }
23129if test $ac_cv_type_uid_t = no; then
23130
23131$as_echo "#define uid_t int" >>confdefs.h
23132
23133
23134$as_echo "#define gid_t int" >>confdefs.h
23135
23136fi
23137
23138ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23139case $ac_cv_c_uint8_t in #(
23140 no|yes) ;; #(
23141 *)
23142
23143$as_echo "#define _UINT8_T 1" >>confdefs.h
23144
23145
23146cat >>confdefs.h <<_ACEOF
23147#define uint8_t $ac_cv_c_uint8_t
23148_ACEOF
23149;;
23150 esac
23151
23152ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23153case $ac_cv_c_uint16_t in #(
23154 no|yes) ;; #(
23155 *)
23156
23157
23158cat >>confdefs.h <<_ACEOF
23159#define uint16_t $ac_cv_c_uint16_t
23160_ACEOF
23161;;
23162 esac
23163
23164ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23165case $ac_cv_c_uint32_t in #(
23166 no|yes) ;; #(
23167 *)
23168
23169$as_echo "#define _UINT32_T 1" >>confdefs.h
23170
23171
23172cat >>confdefs.h <<_ACEOF
23173#define uint32_t $ac_cv_c_uint32_t
23174_ACEOF
23175;;
23176 esac
23177
23178ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23179case $ac_cv_c_uint64_t in #(
23180 no|yes) ;; #(
23181 *)
23182
23183$as_echo "#define _UINT64_T 1" >>confdefs.h
23184
23185
23186cat >>confdefs.h <<_ACEOF
23187#define uint64_t $ac_cv_c_uint64_t
23188_ACEOF
23189;;
23190 esac
23191
23192
cristy501c8042011-05-26 17:46:28 +000023193
23194 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23195if test "x$ac_cv_type_uintmax_t" = xyes; then :
23196
23197$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23198
23199else
23200 test $ac_cv_type_unsigned_long_long_int = yes \
23201 && ac_type='unsigned long long int' \
23202 || ac_type='unsigned long int'
23203
23204cat >>confdefs.h <<_ACEOF
23205#define uintmax_t $ac_type
23206_ACEOF
23207
23208fi
23209
23210
23211
23212 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23213if test "x$ac_cv_type_uintptr_t" = xyes; then :
23214
23215$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23216
23217else
23218 for ac_type in 'unsigned int' 'unsigned long int' \
23219 'unsigned long long int'; do
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221/* end confdefs.h. */
23222$ac_includes_default
23223int
23224main ()
23225{
23226static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023227test_array [0] = 0;
23228return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023229
23230 ;
23231 return 0;
23232}
23233_ACEOF
23234if ac_fn_c_try_compile "$LINENO"; then :
23235
23236cat >>confdefs.h <<_ACEOF
23237#define uintptr_t $ac_type
23238_ACEOF
23239
23240 ac_type=
23241fi
23242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 test -z "$ac_type" && break
23244 done
23245fi
23246
23247
23248
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23250$as_echo_n "checking for unsigned long long int... " >&6; }
23251if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23252 $as_echo_n "(cached) " >&6
23253else
cristy045228a2013-06-23 11:00:16 +000023254 ac_cv_type_unsigned_long_long_int=yes
23255 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023257/* end confdefs.h. */
23258
23259 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023260 implementations with broken preprocessors. Perhaps this can
23261 be revisited in 2012. In the meantime, code should not expect
23262 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023263 /* Test literals. */
23264 long long int ll = 9223372036854775807ll;
23265 long long int nll = -9223372036854775807LL;
23266 unsigned long long int ull = 18446744073709551615ULL;
23267 /* Test constant expressions. */
23268 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023269 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023270 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023271 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023272 int i = 63;
23273int
23274main ()
23275{
23276/* Test availability of runtime routines for shift and division. */
23277 long long int llmax = 9223372036854775807ll;
23278 unsigned long long int ullmax = 18446744073709551615ull;
23279 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023280 | (llmax / ll) | (llmax % ll)
23281 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23282 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023283 ;
23284 return 0;
23285}
23286
23287_ACEOF
23288if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023289
cristy501c8042011-05-26 17:46:28 +000023290else
23291 ac_cv_type_unsigned_long_long_int=no
23292fi
23293rm -f core conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023295 fi
cristy501c8042011-05-26 17:46:28 +000023296fi
23297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23298$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23299 if test $ac_cv_type_unsigned_long_long_int = yes; then
23300
23301$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23302
23303 fi
23304
23305
cristyfec31822013-05-23 12:32:12 +000023306# Float_t and double_t are intended to be the the most efficient type.
23307ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23308"
23309if test "x$ac_cv_type_float_t" = xyes; then :
23310
23311cat >>confdefs.h <<_ACEOF
23312#define HAVE_FLOAT_T 1
23313_ACEOF
23314
23315
23316fi
23317
23318ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23319"
23320if test "x$ac_cv_type_double_t" = xyes; then :
23321
23322cat >>confdefs.h <<_ACEOF
23323#define HAVE_DOUBLE_T 1
23324_ACEOF
23325
23326
23327fi
23328
23329# The cast to long int works around a bug in the HP C Compiler
23330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23332# This bug is HP SR number 8606223364.
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23334$as_echo_n "checking size of float_t... " >&6; }
23335if ${ac_cv_sizeof_float_t+:} false; then :
23336 $as_echo_n "(cached) " >&6
23337else
23338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23339"; then :
23340
23341else
23342 if test "$ac_cv_type_float_t" = yes; then
23343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23345as_fn_error 77 "cannot compute sizeof (float_t)
23346See \`config.log' for more details" "$LINENO" 5; }
23347 else
23348 ac_cv_sizeof_float_t=0
23349 fi
23350fi
23351
23352fi
23353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23354$as_echo "$ac_cv_sizeof_float_t" >&6; }
23355
23356
23357
23358cat >>confdefs.h <<_ACEOF
23359#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23360_ACEOF
23361
23362
23363# The cast to long int works around a bug in the HP C Compiler
23364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23366# This bug is HP SR number 8606223364.
23367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23368$as_echo_n "checking size of double_t... " >&6; }
23369if ${ac_cv_sizeof_double_t+:} false; then :
23370 $as_echo_n "(cached) " >&6
23371else
23372 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23373"; then :
23374
23375else
23376 if test "$ac_cv_type_double_t" = yes; then
23377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23379as_fn_error 77 "cannot compute sizeof (double_t)
23380See \`config.log' for more details" "$LINENO" 5; }
23381 else
23382 ac_cv_sizeof_double_t=0
23383 fi
23384fi
23385
23386fi
23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23388$as_echo "$ac_cv_sizeof_double_t" >&6; }
23389
23390
23391
23392cat >>confdefs.h <<_ACEOF
23393#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23394_ACEOF
23395
23396
23397
cristy9b86f202012-11-28 21:55:35 +000023398# Get size of float, double and long double for comparaison.
23399# The cast to long int works around a bug in the HP C Compiler
23400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23402# This bug is HP SR number 8606223364.
23403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23404$as_echo_n "checking size of float... " >&6; }
23405if ${ac_cv_sizeof_float+:} false; then :
23406 $as_echo_n "(cached) " >&6
23407else
23408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23409
23410else
23411 if test "$ac_cv_type_float" = yes; then
23412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23414as_fn_error 77 "cannot compute sizeof (float)
23415See \`config.log' for more details" "$LINENO" 5; }
23416 else
23417 ac_cv_sizeof_float=0
23418 fi
23419fi
23420
23421fi
23422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23423$as_echo "$ac_cv_sizeof_float" >&6; }
23424
23425
23426
23427cat >>confdefs.h <<_ACEOF
23428#define SIZEOF_FLOAT $ac_cv_sizeof_float
23429_ACEOF
23430
23431
23432# The cast to long int works around a bug in the HP C Compiler
23433# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23434# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23435# This bug is HP SR number 8606223364.
23436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23437$as_echo_n "checking size of double... " >&6; }
23438if ${ac_cv_sizeof_double+:} false; then :
23439 $as_echo_n "(cached) " >&6
23440else
23441 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23442
23443else
23444 if test "$ac_cv_type_double" = yes; then
23445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23447as_fn_error 77 "cannot compute sizeof (double)
23448See \`config.log' for more details" "$LINENO" 5; }
23449 else
23450 ac_cv_sizeof_double=0
23451 fi
23452fi
23453
23454fi
23455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23456$as_echo "$ac_cv_sizeof_double" >&6; }
23457
23458
23459
23460cat >>confdefs.h <<_ACEOF
23461#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23462_ACEOF
23463
23464
cristyfec31822013-05-23 12:32:12 +000023465# The cast to long int works around a bug in the HP C Compiler
23466# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23467# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23468# This bug is HP SR number 8606223364.
23469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23470$as_echo_n "checking size of long double... " >&6; }
23471if ${ac_cv_sizeof_long_double+:} false; then :
23472 $as_echo_n "(cached) " >&6
23473else
23474 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23475
23476else
23477 if test "$ac_cv_type_long_double" = yes; then
23478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23480as_fn_error 77 "cannot compute sizeof (long double)
23481See \`config.log' for more details" "$LINENO" 5; }
23482 else
23483 ac_cv_sizeof_long_double=0
23484 fi
23485fi
23486
23487fi
23488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23489$as_echo "$ac_cv_sizeof_long_double" >&6; }
23490
23491
23492
23493cat >>confdefs.h <<_ACEOF
23494#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23495_ACEOF
23496
23497
cristyf0cf9a22012-10-24 12:05:01 +000023498
cristy3ed852e2009-09-05 21:47:34 +000023499# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23500# The cast to long int works around a bug in the HP C Compiler
23501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23503# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023505$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023506if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023507 $as_echo_n "(cached) " >&6
23508else
cristy8b350f62009-11-15 23:12:43 +000023509 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511else
cristy8b350f62009-11-15 23:12:43 +000023512 if test "$ac_cv_type_signed_short" = yes; then
23513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023515as_fn_error 77 "cannot compute sizeof (signed short)
23516See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023517 else
23518 ac_cv_sizeof_signed_short=0
23519 fi
23520fi
cristy8b350f62009-11-15 23:12:43 +000023521
cristy3ed852e2009-09-05 21:47:34 +000023522fi
cristy8b350f62009-11-15 23:12:43 +000023523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023524$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23525
23526
23527
23528cat >>confdefs.h <<_ACEOF
23529#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23530_ACEOF
23531
23532
23533
23534# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23535# The cast to long int works around a bug in the HP C Compiler
23536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23538# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023540$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023541if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023542 $as_echo_n "(cached) " >&6
23543else
cristy8b350f62009-11-15 23:12:43 +000023544 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546else
cristy8b350f62009-11-15 23:12:43 +000023547 if test "$ac_cv_type_unsigned_short" = yes; then
23548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023550as_fn_error 77 "cannot compute sizeof (unsigned short)
23551See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023552 else
23553 ac_cv_sizeof_unsigned_short=0
23554 fi
23555fi
cristy8b350f62009-11-15 23:12:43 +000023556
cristy3ed852e2009-09-05 21:47:34 +000023557fi
cristy8b350f62009-11-15 23:12:43 +000023558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023559$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23560
23561
23562
23563cat >>confdefs.h <<_ACEOF
23564#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23565_ACEOF
23566
23567
23568
23569# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23570# The cast to long int works around a bug in the HP C Compiler
23571# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23572# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23573# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023575$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023576if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023577 $as_echo_n "(cached) " >&6
23578else
cristy8b350f62009-11-15 23:12:43 +000023579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023580
cristy3ed852e2009-09-05 21:47:34 +000023581else
cristy8b350f62009-11-15 23:12:43 +000023582 if test "$ac_cv_type_signed_int" = yes; then
23583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023585as_fn_error 77 "cannot compute sizeof (signed int)
23586See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023587 else
23588 ac_cv_sizeof_signed_int=0
23589 fi
23590fi
cristy8b350f62009-11-15 23:12:43 +000023591
cristy3ed852e2009-09-05 21:47:34 +000023592fi
cristy8b350f62009-11-15 23:12:43 +000023593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023594$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23595
23596
23597
23598cat >>confdefs.h <<_ACEOF
23599#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23600_ACEOF
23601
23602
23603
23604# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23605# The cast to long int works around a bug in the HP C Compiler
23606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23608# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023610$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023611if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023612 $as_echo_n "(cached) " >&6
23613else
cristy8b350f62009-11-15 23:12:43 +000023614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616else
cristy8b350f62009-11-15 23:12:43 +000023617 if test "$ac_cv_type_unsigned_int" = yes; then
23618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023620as_fn_error 77 "cannot compute sizeof (unsigned int)
23621See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023622 else
23623 ac_cv_sizeof_unsigned_int=0
23624 fi
23625fi
cristy8b350f62009-11-15 23:12:43 +000023626
cristy3ed852e2009-09-05 21:47:34 +000023627fi
cristy8b350f62009-11-15 23:12:43 +000023628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023629$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23630
23631
23632
23633cat >>confdefs.h <<_ACEOF
23634#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23635_ACEOF
23636
23637
23638
23639# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23640# The cast to long int works around a bug in the HP C Compiler
23641# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23642# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23643# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023645$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023646if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023647 $as_echo_n "(cached) " >&6
23648else
cristy8b350f62009-11-15 23:12:43 +000023649 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023650
cristy3ed852e2009-09-05 21:47:34 +000023651else
cristy8b350f62009-11-15 23:12:43 +000023652 if test "$ac_cv_type_signed_long" = yes; then
23653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023655as_fn_error 77 "cannot compute sizeof (signed long)
23656See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023657 else
23658 ac_cv_sizeof_signed_long=0
23659 fi
23660fi
cristy8b350f62009-11-15 23:12:43 +000023661
cristy3ed852e2009-09-05 21:47:34 +000023662fi
cristy8b350f62009-11-15 23:12:43 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23665
23666
23667
23668cat >>confdefs.h <<_ACEOF
23669#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23670_ACEOF
23671
23672
23673
23674# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23675# The cast to long int works around a bug in the HP C Compiler
23676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23678# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023680$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023681if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023682 $as_echo_n "(cached) " >&6
23683else
cristy8b350f62009-11-15 23:12:43 +000023684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023685
cristy3ed852e2009-09-05 21:47:34 +000023686else
cristy8b350f62009-11-15 23:12:43 +000023687 if test "$ac_cv_type_unsigned_long" = yes; then
23688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023690as_fn_error 77 "cannot compute sizeof (unsigned long)
23691See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023692 else
23693 ac_cv_sizeof_unsigned_long=0
23694 fi
23695fi
cristy8b350f62009-11-15 23:12:43 +000023696
cristy3ed852e2009-09-05 21:47:34 +000023697fi
cristy8b350f62009-11-15 23:12:43 +000023698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023699$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23700
23701
23702
23703cat >>confdefs.h <<_ACEOF
23704#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23705_ACEOF
23706
23707
23708
23709# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23710# 'signed long long' is not supported then the value defined is zero.
23711# The cast to long int works around a bug in the HP C Compiler
23712# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23713# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23714# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023717if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023718 $as_echo_n "(cached) " >&6
23719else
cristy8b350f62009-11-15 23:12:43 +000023720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023721
cristy3ed852e2009-09-05 21:47:34 +000023722else
cristy8b350f62009-11-15 23:12:43 +000023723 if test "$ac_cv_type_signed_long_long" = yes; then
23724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023726as_fn_error 77 "cannot compute sizeof (signed long long)
23727See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023728 else
23729 ac_cv_sizeof_signed_long_long=0
23730 fi
23731fi
cristy8b350f62009-11-15 23:12:43 +000023732
cristy3ed852e2009-09-05 21:47:34 +000023733fi
cristy8b350f62009-11-15 23:12:43 +000023734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023735$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23736
23737
23738
23739cat >>confdefs.h <<_ACEOF
23740#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23741_ACEOF
23742
23743
23744
23745# Obtain size of a 'unsigned long long' and define as
23746# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23747# supported then the value defined is zero.
23748# The cast to long int works around a bug in the HP C Compiler
23749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23751# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023754if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 $as_echo_n "(cached) " >&6
23756else
cristy8b350f62009-11-15 23:12:43 +000023757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023758
cristy3ed852e2009-09-05 21:47:34 +000023759else
cristy8b350f62009-11-15 23:12:43 +000023760 if test "$ac_cv_type_unsigned_long_long" = yes; then
23761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023763as_fn_error 77 "cannot compute sizeof (unsigned long long)
23764See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023765 else
23766 ac_cv_sizeof_unsigned_long_long=0
23767 fi
23768fi
cristy8b350f62009-11-15 23:12:43 +000023769
cristy3ed852e2009-09-05 21:47:34 +000023770fi
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23773
23774
23775
23776cat >>confdefs.h <<_ACEOF
23777#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23778_ACEOF
23779
23780
23781
cristyfec31822013-05-23 12:32:12 +000023782# Obtain size of off_t and define as SIZEOF_OFF_T
23783# The cast to long int works around a bug in the HP C Compiler
23784# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23785# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23786# This bug is HP SR number 8606223364.
23787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23788$as_echo_n "checking size of off_t... " >&6; }
23789if ${ac_cv_sizeof_off_t+:} false; then :
23790 $as_echo_n "(cached) " >&6
23791else
23792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23793
23794else
23795 if test "$ac_cv_type_off_t" = yes; then
23796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23798as_fn_error 77 "cannot compute sizeof (off_t)
23799See \`config.log' for more details" "$LINENO" 5; }
23800 else
23801 ac_cv_sizeof_off_t=0
23802 fi
23803fi
23804
23805fi
23806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23807$as_echo "$ac_cv_sizeof_off_t" >&6; }
23808
23809
23810
23811cat >>confdefs.h <<_ACEOF
23812#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23813_ACEOF
23814
23815
23816
23817# Obtain size of size_t and define as SIZEOF_SIZE_T
23818# The cast to long int works around a bug in the HP C Compiler
23819# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23820# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23821# This bug is HP SR number 8606223364.
23822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23823$as_echo_n "checking size of size_t... " >&6; }
23824if ${ac_cv_sizeof_size_t+:} false; then :
23825 $as_echo_n "(cached) " >&6
23826else
23827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23828
23829else
23830 if test "$ac_cv_type_size_t" = yes; then
23831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23833as_fn_error 77 "cannot compute sizeof (size_t)
23834See \`config.log' for more details" "$LINENO" 5; }
23835 else
23836 ac_cv_sizeof_size_t=0
23837 fi
23838fi
23839
23840fi
23841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23842$as_echo "$ac_cv_sizeof_size_t" >&6; }
23843
23844
23845
23846cat >>confdefs.h <<_ACEOF
23847#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23848_ACEOF
23849
23850
23851
23852# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23853# The cast to long int works around a bug in the HP C Compiler
23854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23856# This bug is HP SR number 8606223364.
23857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23858$as_echo_n "checking size of ssize_t... " >&6; }
23859if ${ac_cv_sizeof_ssize_t+:} false; then :
23860 $as_echo_n "(cached) " >&6
23861else
23862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23863
23864else
23865 if test "$ac_cv_type_ssize_t" = yes; then
23866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23868as_fn_error 77 "cannot compute sizeof (ssize_t)
23869See \`config.log' for more details" "$LINENO" 5; }
23870 else
23871 ac_cv_sizeof_ssize_t=0
23872 fi
23873fi
23874
23875fi
23876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23877$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23878
23879
23880
23881cat >>confdefs.h <<_ACEOF
23882#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23883_ACEOF
23884
23885
23886
cristy3ed852e2009-09-05 21:47:34 +000023887# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23888# The cast to long int works around a bug in the HP C Compiler
23889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23891# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023894if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 $as_echo_n "(cached) " >&6
23896else
cristy8b350f62009-11-15 23:12:43 +000023897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023898
cristy3ed852e2009-09-05 21:47:34 +000023899else
cristy8b350f62009-11-15 23:12:43 +000023900 if test "$ac_cv_type_unsigned_intp" = yes; then
23901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023903as_fn_error 77 "cannot compute sizeof (unsigned int*)
23904See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023905 else
23906 ac_cv_sizeof_unsigned_intp=0
23907 fi
23908fi
cristy8b350f62009-11-15 23:12:43 +000023909
cristy3ed852e2009-09-05 21:47:34 +000023910fi
cristy8b350f62009-11-15 23:12:43 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23913
23914
23915
23916cat >>confdefs.h <<_ACEOF
23917#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23918_ACEOF
23919
23920
23921
23922#
23923# Compute sized types for current CPU and compiler options.
23924#
23925
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo_n "checking for signed 8-bit type... " >&6; }
23928INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23930$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023931
23932
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23935UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23937$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023938
23939
cristy8b350f62009-11-15 23:12:43 +000023940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023941$as_echo_n "checking for signed 16-bit type... " >&6; }
23942INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23944$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023945
23946
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23949UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23951$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023952
23953
cristy8b350f62009-11-15 23:12:43 +000023954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023955$as_echo_n "checking for signed 32-bit type... " >&6; }
23956INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023957INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023958if test $ac_cv_sizeof_signed_int -eq 4; then
23959 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023960 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023961elif test $ac_cv_sizeof_signed_long -eq 4; then
23962 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023963 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023964fi
cristyad38abe2012-12-23 23:03:21 +000023965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23966$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023967
23968
cristy6d5e20f2011-04-25 13:48:54 +000023969
cristy8b350f62009-11-15 23:12:43 +000023970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023971$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23972UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023973UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023974if test $ac_cv_sizeof_unsigned_int -eq 4; then
23975 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023976 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023977elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23978 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023979 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023980fi
cristyad38abe2012-12-23 23:03:21 +000023981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23982$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023983
23984
cristy6d5e20f2011-04-25 13:48:54 +000023985
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking for signed 64-bit type... " >&6; }
23988INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023989INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023990if test $ac_cv_sizeof_signed_long -eq 8; then
23991 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023992 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023993elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23994 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023995 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023996fi
cristy3a99dcf2011-12-17 01:29:40 +000023997case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023998 mingw* )
23999 INT64_F='"I64"'
24000 ;;
24001esac
cristyad38abe2012-12-23 23:03:21 +000024002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24003$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024004
24005
cristy6d5e20f2011-04-25 13:48:54 +000024006
cristy8b350f62009-11-15 23:12:43 +000024007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024008$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24009UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024010UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024011if test $ac_cv_sizeof_unsigned_long -eq 8; then
24012 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024013 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024014elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24015 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024016 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy3a99dcf2011-12-17 01:29:40 +000024018case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024019 mingw* )
24020 UINT64_F='"I64"'
24021 ;;
24022esac
cristyad38abe2012-12-23 23:03:21 +000024023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24024$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024025
24026
cristy6d5e20f2011-04-25 13:48:54 +000024027
cristy8b350f62009-11-15 23:12:43 +000024028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024029$as_echo_n "checking for unsigned maximum type... " >&6; }
24030UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024031UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024032if test "$UINT64_T" != 'none'; then
24033 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024034 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024035elif test "$UINT32_T" != 'none'; then
24036 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024037 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024038fi
cristyad38abe2012-12-23 23:03:21 +000024039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24040$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024041
24042
cristy6d5e20f2011-04-25 13:48:54 +000024043
cristy8b350f62009-11-15 23:12:43 +000024044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024045$as_echo_n "checking for pointer difference type... " >&6; }
24046UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024047UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024048if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24049 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024050 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024051elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24052 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024053 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024054fi
cristyad38abe2012-12-23 23:03:21 +000024055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24056$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024057
24058
cristy6d5e20f2011-04-25 13:48:54 +000024059
cristy8b350f62009-11-15 23:12:43 +000024060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024061$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024063/* end confdefs.h. */
24064
24065int
24066main ()
24067{
24068{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24069 ;
24070 return 0;
24071}
24072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024073if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24075$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024076else
cristyad38abe2012-12-23 23:03:21 +000024077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024080$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024082/* end confdefs.h. */
24083
24084int
24085main ()
24086{
24087{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24088 ;
24089 return 0;
24090}
24091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024092if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24094$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024095
cristy8b350f62009-11-15 23:12:43 +000024096$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024097
24098else
cristyad38abe2012-12-23 23:03:21 +000024099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024101
cristy8b350f62009-11-15 23:12:43 +000024102$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024103
24104fi
cristy3ed852e2009-09-05 21:47:34 +000024105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24106fi
cristy3ed852e2009-09-05 21:47:34 +000024107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108
24109########
24110#
24111# Check for functions
24112#
24113########
cristy8b350f62009-11-15 23:12:43 +000024114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024115$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024116if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024117 $as_echo_n "(cached) " >&6
24118else
cristy8b350f62009-11-15 23:12:43 +000024119 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024120 ac_cv_func_closedir_void=yes
24121else
cristy8b350f62009-11-15 23:12:43 +000024122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024123/* end confdefs.h. */
24124$ac_includes_default
24125#include <$ac_header_dirent>
24126#ifndef __cplusplus
24127int closedir ();
24128#endif
24129
24130int
24131main ()
24132{
24133return closedir (opendir (".")) != 0;
24134 ;
24135 return 0;
24136}
24137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024138if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 ac_cv_func_closedir_void=no
24140else
cristy8b350f62009-11-15 23:12:43 +000024141 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristy8b350f62009-11-15 23:12:43 +000024143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24144 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024145fi
24146
cristy3ed852e2009-09-05 21:47:34 +000024147fi
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo "$ac_cv_func_closedir_void" >&6; }
24150if test $ac_cv_func_closedir_void = yes; then
24151
cristy8b350f62009-11-15 23:12:43 +000024152$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024153
24154fi
24155
cristycd4c5312009-11-22 01:19:08 +000024156
24157
24158
24159 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024160do :
24161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24163"
cristy98dddb52010-11-04 00:30:15 +000024164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 cat >>confdefs.h <<_ACEOF
24166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24167_ACEOF
24168
24169fi
24170
24171done
24172
cristycd4c5312009-11-22 01:19:08 +000024173
24174
24175
24176
24177
24178
24179
cristy3ed852e2009-09-05 21:47:34 +000024180for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024181do :
24182 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024183if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024185#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024186_ACEOF
24187
24188fi
24189done
24190
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024193if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 $as_echo_n "(cached) " >&6
24195else
cristy8b350f62009-11-15 23:12:43 +000024196 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024197 ac_cv_func_mmap_fixed_mapped=no
24198else
cristy8b350f62009-11-15 23:12:43 +000024199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024200/* end confdefs.h. */
24201$ac_includes_default
24202/* malloc might have been renamed as rpl_malloc. */
24203#undef malloc
24204
24205/* Thanks to Mike Haertel and Jim Avera for this test.
24206 Here is a matrix of mmap possibilities:
24207 mmap private not fixed
24208 mmap private fixed at somewhere currently unmapped
24209 mmap private fixed at somewhere already mapped
24210 mmap shared not fixed
24211 mmap shared fixed at somewhere currently unmapped
24212 mmap shared fixed at somewhere already mapped
24213 For private mappings, we should verify that changes cannot be read()
24214 back from the file, nor mmap's back from the file at a different
24215 address. (There have been systems where private was not correctly
24216 implemented like the infamous i386 svr4.0, and systems where the
24217 VM page cache was not coherent with the file system buffer cache
24218 like early versions of FreeBSD and possibly contemporary NetBSD.)
24219 For shared mappings, we should conversely verify that changes get
24220 propagated back to all the places they're supposed to be.
24221
24222 Grep wants private fixed already mapped.
24223 The main things grep needs to know about mmap are:
24224 * does it exist and is it safe to write into the mmap'd area
24225 * how to use it (BSD variants) */
24226
24227#include <fcntl.h>
24228#include <sys/mman.h>
24229
24230#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24231char *malloc ();
24232#endif
24233
24234/* This mess was copied from the GNU getpagesize.h. */
24235#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024236# ifdef _SC_PAGESIZE
24237# define getpagesize() sysconf(_SC_PAGESIZE)
24238# else /* no _SC_PAGESIZE */
24239# ifdef HAVE_SYS_PARAM_H
24240# include <sys/param.h>
24241# ifdef EXEC_PAGESIZE
24242# define getpagesize() EXEC_PAGESIZE
24243# else /* no EXEC_PAGESIZE */
24244# ifdef NBPG
24245# define getpagesize() NBPG * CLSIZE
24246# ifndef CLSIZE
24247# define CLSIZE 1
24248# endif /* no CLSIZE */
24249# else /* no NBPG */
24250# ifdef NBPC
24251# define getpagesize() NBPC
24252# else /* no NBPC */
24253# ifdef PAGESIZE
24254# define getpagesize() PAGESIZE
24255# endif /* PAGESIZE */
24256# endif /* no NBPC */
24257# endif /* no NBPG */
24258# endif /* no EXEC_PAGESIZE */
24259# else /* no HAVE_SYS_PARAM_H */
24260# define getpagesize() 8192 /* punt totally */
24261# endif /* no HAVE_SYS_PARAM_H */
24262# endif /* no _SC_PAGESIZE */
24263
24264#endif /* no HAVE_GETPAGESIZE */
24265
24266int
24267main ()
24268{
24269 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024270 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024271 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024272 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024273
24274 pagesize = getpagesize ();
24275
24276 /* First, make a file with some known garbage in it. */
24277 data = (char *) malloc (pagesize);
24278 if (!data)
24279 return 1;
24280 for (i = 0; i < pagesize; ++i)
24281 *(data + i) = rand ();
24282 umask (0);
24283 fd = creat ("conftest.mmap", 0600);
24284 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024285 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024286 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024287 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024288 close (fd);
24289
cristycd4c5312009-11-22 01:19:08 +000024290 /* Next, check that the tail of a page is zero-filled. File must have
24291 non-zero length, otherwise we risk SIGBUS for entire page. */
24292 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24293 if (fd2 < 0)
24294 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024295 cdata2 = "";
24296 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024297 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024298 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024299 if (data2 == MAP_FAILED)
24300 return 6;
24301 for (i = 0; i < pagesize; ++i)
24302 if (*(data2 + i))
24303 return 7;
24304 close (fd2);
24305 if (munmap (data2, pagesize))
24306 return 8;
24307
cristy3ed852e2009-09-05 21:47:34 +000024308 /* Next, try to mmap the file at a fixed address which already has
24309 something else allocated at it. If we can, also make sure that
24310 we see the same garbage. */
24311 fd = open ("conftest.mmap", O_RDWR);
24312 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024313 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024314 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24315 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024316 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024317 for (i = 0; i < pagesize; ++i)
24318 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024319 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024320
24321 /* Finally, make sure that changes to the mapped area do not
24322 percolate back to the file as seen by read(). (This is a bug on
24323 some variants of i386 svr4.0.) */
24324 for (i = 0; i < pagesize; ++i)
24325 *(data2 + i) = *(data2 + i) + 1;
24326 data3 = (char *) malloc (pagesize);
24327 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024328 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024329 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024330 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024331 for (i = 0; i < pagesize; ++i)
24332 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024333 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024334 close (fd);
24335 return 0;
24336}
24337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024338if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024339 ac_cv_func_mmap_fixed_mapped=yes
24340else
cristy8b350f62009-11-15 23:12:43 +000024341 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024342fi
cristy8b350f62009-11-15 23:12:43 +000024343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24344 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024345fi
24346
cristy3ed852e2009-09-05 21:47:34 +000024347fi
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24350if test $ac_cv_func_mmap_fixed_mapped = yes; then
24351
cristy8b350f62009-11-15 23:12:43 +000024352$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024353
24354fi
cristycd4c5312009-11-22 01:19:08 +000024355rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024356
cristy3ed852e2009-09-05 21:47:34 +000024357for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024358do :
24359 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024360if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024361 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024362#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024363_ACEOF
24364
24365fi
24366
24367done
24368
cristy3ed852e2009-09-05 21:47:34 +000024369for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024370do :
24371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024373if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 cat >>confdefs.h <<_ACEOF
24375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24376_ACEOF
24377
24378fi
24379done
24380
24381if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024383$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024384if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024385 $as_echo_n "(cached) " >&6
24386else
cristy8b350f62009-11-15 23:12:43 +000024387 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 ac_cv_func_fork_works=cross
24389else
cristy8b350f62009-11-15 23:12:43 +000024390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024391/* end confdefs.h. */
24392$ac_includes_default
24393int
24394main ()
24395{
24396
24397 /* By Ruediger Kuhlmann. */
24398 return fork () < 0;
24399
24400 ;
24401 return 0;
24402}
24403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024404if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024405 ac_cv_func_fork_works=yes
24406else
cristy8b350f62009-11-15 23:12:43 +000024407 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024408fi
cristy8b350f62009-11-15 23:12:43 +000024409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24410 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024411fi
24412
cristy3ed852e2009-09-05 21:47:34 +000024413fi
cristy8b350f62009-11-15 23:12:43 +000024414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024415$as_echo "$ac_cv_func_fork_works" >&6; }
24416
24417else
24418 ac_cv_func_fork_works=$ac_cv_func_fork
24419fi
24420if test "x$ac_cv_func_fork_works" = xcross; then
24421 case $host in
24422 *-*-amigaos* | *-*-msdosdjgpp*)
24423 # Override, as these systems have only a dummy fork() stub
24424 ac_cv_func_fork_works=no
24425 ;;
24426 *)
24427 ac_cv_func_fork_works=yes
24428 ;;
24429 esac
cristy8b350f62009-11-15 23:12:43 +000024430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000024431$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24432fi
24433ac_cv_func_vfork_works=$ac_cv_func_vfork
24434if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024436$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024437if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024438 $as_echo_n "(cached) " >&6
24439else
cristy8b350f62009-11-15 23:12:43 +000024440 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024441 ac_cv_func_vfork_works=cross
24442else
cristy8b350f62009-11-15 23:12:43 +000024443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024444/* end confdefs.h. */
24445/* Thanks to Paul Eggert for this test. */
24446$ac_includes_default
24447#include <sys/wait.h>
24448#ifdef HAVE_VFORK_H
24449# include <vfork.h>
24450#endif
24451/* On some sparc systems, changes by the child to local and incoming
24452 argument registers are propagated back to the parent. The compiler
24453 is told about this with #include <vfork.h>, but some compilers
24454 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24455 static variable whose address is put into a register that is
24456 clobbered by the vfork. */
24457static void
24458#ifdef __cplusplus
24459sparc_address_test (int arg)
24460# else
24461sparc_address_test (arg) int arg;
24462#endif
24463{
24464 static pid_t child;
24465 if (!child) {
24466 child = vfork ();
24467 if (child < 0) {
24468 perror ("vfork");
24469 _exit(2);
24470 }
24471 if (!child) {
24472 arg = getpid();
24473 write(-1, "", 0);
24474 _exit (arg);
24475 }
24476 }
24477}
24478
24479int
24480main ()
24481{
24482 pid_t parent = getpid ();
24483 pid_t child;
24484
24485 sparc_address_test (0);
24486
24487 child = vfork ();
24488
24489 if (child == 0) {
24490 /* Here is another test for sparc vfork register problems. This
24491 test uses lots of local variables, at least as many local
24492 variables as main has allocated so far including compiler
24493 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24494 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24495 reuse the register of parent for one of the local variables,
24496 since it will think that parent can't possibly be used any more
24497 in this routine. Assigning to the local variable will thus
24498 munge parent in the parent process. */
24499 pid_t
24500 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24501 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24502 /* Convince the compiler that p..p7 are live; otherwise, it might
24503 use the same hardware register for all 8 local variables. */
24504 if (p != p1 || p != p2 || p != p3 || p != p4
24505 || p != p5 || p != p6 || p != p7)
24506 _exit(1);
24507
24508 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24509 from child file descriptors. If the child closes a descriptor
24510 before it execs or exits, this munges the parent's descriptor
24511 as well. Test for this by closing stdout in the child. */
24512 _exit(close(fileno(stdout)) != 0);
24513 } else {
24514 int status;
24515 struct stat st;
24516
24517 while (wait(&status) != child)
24518 ;
24519 return (
24520 /* Was there some problem with vforking? */
24521 child < 0
24522
24523 /* Did the child fail? (This shouldn't happen.) */
24524 || status
24525
24526 /* Did the vfork/compiler bug occur? */
24527 || parent != getpid()
24528
24529 /* Did the file descriptor bug occur? */
24530 || fstat(fileno(stdout), &st) != 0
24531 );
24532 }
24533}
24534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024535if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024536 ac_cv_func_vfork_works=yes
24537else
cristy8b350f62009-11-15 23:12:43 +000024538 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024539fi
cristy8b350f62009-11-15 23:12:43 +000024540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24541 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024542fi
24543
cristy3ed852e2009-09-05 21:47:34 +000024544fi
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024546$as_echo "$ac_cv_func_vfork_works" >&6; }
24547
24548fi;
24549if test "x$ac_cv_func_fork_works" = xcross; then
24550 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000024552$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24553fi
24554
24555if test "x$ac_cv_func_vfork_works" = xyes; then
24556
cristy8b350f62009-11-15 23:12:43 +000024557$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024558
24559else
24560
cristy8b350f62009-11-15 23:12:43 +000024561$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024562
24563fi
24564if test "x$ac_cv_func_fork_works" = xyes; then
24565
cristy8b350f62009-11-15 23:12:43 +000024566$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024567
24568fi
24569
cristy8b350f62009-11-15 23:12:43 +000024570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024571$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024572if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024573 $as_echo_n "(cached) " >&6
24574else
cristy8b350f62009-11-15 23:12:43 +000024575 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024576 ac_cv_func_memcmp_working=no
24577else
cristy8b350f62009-11-15 23:12:43 +000024578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024579/* end confdefs.h. */
24580$ac_includes_default
24581int
24582main ()
24583{
24584
24585 /* Some versions of memcmp are not 8-bit clean. */
24586 char c0 = '\100', c1 = '\200', c2 = '\201';
24587 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24588 return 1;
24589
24590 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24591 or more and with at least one buffer not starting on a 4-byte boundary.
24592 William Lewis provided this test program. */
24593 {
24594 char foo[21];
24595 char bar[21];
24596 int i;
24597 for (i = 0; i < 4; i++)
24598 {
24599 char *a = foo + i;
24600 char *b = bar + i;
24601 strcpy (a, "--------01111111");
24602 strcpy (b, "--------10000000");
24603 if (memcmp (a, b, 16) >= 0)
24604 return 1;
24605 }
24606 return 0;
24607 }
24608
24609 ;
24610 return 0;
24611}
24612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024613if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024614 ac_cv_func_memcmp_working=yes
24615else
cristy8b350f62009-11-15 23:12:43 +000024616 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024617fi
cristy8b350f62009-11-15 23:12:43 +000024618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24619 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024620fi
24621
cristy3ed852e2009-09-05 21:47:34 +000024622fi
cristy8b350f62009-11-15 23:12:43 +000024623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024624$as_echo "$ac_cv_func_memcmp_working" >&6; }
24625test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24626 *" memcmp.$ac_objext "* ) ;;
24627 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24628 ;;
24629esac
24630
24631
cristy3ed852e2009-09-05 21:47:34 +000024632for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024633do :
24634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24635ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024637 cat >>confdefs.h <<_ACEOF
24638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24639_ACEOF
24640
24641fi
24642
24643done
24644
cristy8b350f62009-11-15 23:12:43 +000024645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024646$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024647if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024648 $as_echo_n "(cached) " >&6
24649else
24650 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24651 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24652 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024654/* end confdefs.h. */
24655$ac_includes_default
24656#ifdef HAVE_SYS_SELECT_H
24657# include <sys/select.h>
24658#endif
24659#ifdef HAVE_SYS_SOCKET_H
24660# include <sys/socket.h>
24661#endif
24662
24663int
24664main ()
24665{
24666extern int select ($ac_arg1,
24667 $ac_arg234, $ac_arg234, $ac_arg234,
24668 $ac_arg5);
24669 ;
24670 return 0;
24671}
24672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024675fi
cristy3ed852e2009-09-05 21:47:34 +000024676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24677 done
24678 done
24679done
24680# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024681: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024682
24683fi
cristy8b350f62009-11-15 23:12:43 +000024684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024685$as_echo "$ac_cv_func_select_args" >&6; }
24686ac_save_IFS=$IFS; IFS=','
24687set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24688IFS=$ac_save_IFS
24689shift
24690
24691cat >>confdefs.h <<_ACEOF
24692#define SELECT_TYPE_ARG1 $1
24693_ACEOF
24694
24695
24696cat >>confdefs.h <<_ACEOF
24697#define SELECT_TYPE_ARG234 ($2)
24698_ACEOF
24699
24700
24701cat >>confdefs.h <<_ACEOF
24702#define SELECT_TYPE_ARG5 ($3)
24703_ACEOF
24704
24705rm -f conftest*
24706
cristyda16f162011-02-19 23:52:17 +000024707if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 $as_echo_n "(cached) " >&6
24709else
24710 ac_cv_func_setvbuf_reversed=no
24711fi
24712
24713
cristy8b350f62009-11-15 23:12:43 +000024714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024715$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024716if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 $as_echo_n "(cached) " >&6
24718else
cristy8b350f62009-11-15 23:12:43 +000024719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024720/* end confdefs.h. */
24721#include <sys/types.h>
24722#include <signal.h>
24723
24724int
24725main ()
24726{
24727return *(signal (0, 0)) (0) == 1;
24728 ;
24729 return 0;
24730}
24731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024733 ac_cv_type_signal=int
24734else
cristy8b350f62009-11-15 23:12:43 +000024735 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024736fi
cristy3ed852e2009-09-05 21:47:34 +000024737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738fi
cristy8b350f62009-11-15 23:12:43 +000024739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024740$as_echo "$ac_cv_type_signal" >&6; }
24741
24742cat >>confdefs.h <<_ACEOF
24743#define RETSIGTYPE $ac_cv_type_signal
24744_ACEOF
24745
24746
cristy8b350f62009-11-15 23:12:43 +000024747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024748$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024749if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 $as_echo_n "(cached) " >&6
24751else
cristy8b350f62009-11-15 23:12:43 +000024752 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 ac_cv_func_strtod=no
24754else
cristy8b350f62009-11-15 23:12:43 +000024755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024756/* end confdefs.h. */
24757
24758$ac_includes_default
24759#ifndef strtod
24760double strtod ();
24761#endif
24762int
24763main()
24764{
24765 {
24766 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24767 char *string = " +69";
24768 char *term;
24769 double value;
24770 value = strtod (string, &term);
24771 if (value != 69 || term != (string + 4))
24772 return 1;
24773 }
24774
24775 {
24776 /* Under Solaris 2.4, strtod returns the wrong value for the
24777 terminating character under some conditions. */
24778 char *string = "NaN";
24779 char *term;
24780 strtod (string, &term);
24781 if (term != string && *(term - 1) == 0)
24782 return 1;
24783 }
24784 return 0;
24785}
24786
24787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024788if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 ac_cv_func_strtod=yes
24790else
cristy8b350f62009-11-15 23:12:43 +000024791 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024792fi
cristy8b350f62009-11-15 23:12:43 +000024793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24794 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024795fi
24796
cristy3ed852e2009-09-05 21:47:34 +000024797fi
cristy8b350f62009-11-15 23:12:43 +000024798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024799$as_echo "$ac_cv_func_strtod" >&6; }
24800if test $ac_cv_func_strtod = no; then
24801 case " $LIBOBJS " in
24802 *" strtod.$ac_objext "* ) ;;
24803 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24804 ;;
24805esac
24806
cristy8b350f62009-11-15 23:12:43 +000024807ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024808if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024809
cristy3ed852e2009-09-05 21:47:34 +000024810fi
24811
cristy3ed852e2009-09-05 21:47:34 +000024812if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024814$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024815if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024816 $as_echo_n "(cached) " >&6
24817else
24818 ac_check_lib_save_LIBS=$LIBS
24819LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024821/* end confdefs.h. */
24822
24823/* Override any GCC internal prototype to avoid an error.
24824 Use char because int might match the return type of a GCC
24825 builtin and then its argument prototype would still apply. */
24826#ifdef __cplusplus
24827extern "C"
24828#endif
24829char pow ();
24830int
24831main ()
24832{
24833return pow ();
24834 ;
24835 return 0;
24836}
24837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024839 ac_cv_lib_m_pow=yes
24840else
cristy8b350f62009-11-15 23:12:43 +000024841 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024842fi
cristy8b350f62009-11-15 23:12:43 +000024843rm -f core conftest.err conftest.$ac_objext \
24844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024845LIBS=$ac_check_lib_save_LIBS
24846fi
cristy8b350f62009-11-15 23:12:43 +000024847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024848$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024849if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024850 POW_LIB=-lm
24851else
cristy8b350f62009-11-15 23:12:43 +000024852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024853$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24854fi
24855
24856fi
24857
24858fi
24859
cristy7d4a1d62011-10-13 15:54:12 +000024860ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24861if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24862 ac_have_decl=1
24863else
24864 ac_have_decl=0
24865fi
24866
24867cat >>confdefs.h <<_ACEOF
24868#define HAVE_DECL_STRERROR_R $ac_have_decl
24869_ACEOF
24870
24871for ac_func in strerror_r
24872do :
24873 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24874if test "x$ac_cv_func_strerror_r" = xyes; then :
24875 cat >>confdefs.h <<_ACEOF
24876#define HAVE_STRERROR_R 1
24877_ACEOF
24878
24879fi
24880done
24881
24882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24883$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24884if ${ac_cv_func_strerror_r_char_p+:} false; then :
24885 $as_echo_n "(cached) " >&6
24886else
24887
24888 ac_cv_func_strerror_r_char_p=no
24889 if test $ac_cv_have_decl_strerror_r = yes; then
24890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24891/* end confdefs.h. */
24892$ac_includes_default
24893int
24894main ()
24895{
24896
24897 char buf[100];
24898 char x = *strerror_r (0, buf, sizeof buf);
24899 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024900 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024901
24902 ;
24903 return 0;
24904}
24905_ACEOF
24906if ac_fn_c_try_compile "$LINENO"; then :
24907 ac_cv_func_strerror_r_char_p=yes
24908fi
24909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 else
24911 # strerror_r is not declared. Choose between
24912 # systems that have relatively inaccessible declarations for the
24913 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24914 # former has a strerror_r that returns char*, while the latter
24915 # has a strerror_r that returns `int'.
24916 # This test should segfault on the DEC system.
24917 if test "$cross_compiling" = yes; then :
24918 :
24919else
24920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24921/* end confdefs.h. */
24922$ac_includes_default
24923 extern char *strerror_r ();
24924int
24925main ()
24926{
24927char buf[100];
24928 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024929 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024930 ;
24931 return 0;
24932}
24933_ACEOF
24934if ac_fn_c_try_run "$LINENO"; then :
24935 ac_cv_func_strerror_r_char_p=yes
24936fi
24937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24938 conftest.$ac_objext conftest.beam conftest.$ac_ext
24939fi
24940
24941 fi
24942
24943fi
24944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24945$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24946if test $ac_cv_func_strerror_r_char_p = yes; then
24947
24948$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24949
24950fi
24951
cristy3ed852e2009-09-05 21:47:34 +000024952for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024953do :
24954 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024955if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024956 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024957#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024958_ACEOF
24959
cristy8b350f62009-11-15 23:12:43 +000024960ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024961if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024962
cristy8b350f62009-11-15 23:12:43 +000024963$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024964
24965fi
24966
24967fi
24968done
24969
24970
24971
cristy161b9262010-03-20 19:34:32 +000024972#
24973# Find math library
24974#
24975MATH_LIBS=''
24976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24977$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024978if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024979 $as_echo_n "(cached) " >&6
24980else
24981 ac_check_lib_save_LIBS=$LIBS
24982LIBS="-lm $LIBS"
24983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984/* end confdefs.h. */
24985
24986/* Override any GCC internal prototype to avoid an error.
24987 Use char because int might match the return type of a GCC
24988 builtin and then its argument prototype would still apply. */
24989#ifdef __cplusplus
24990extern "C"
24991#endif
24992char sqrt ();
24993int
24994main ()
24995{
24996return sqrt ();
24997 ;
24998 return 0;
24999}
25000_ACEOF
25001if ac_fn_c_try_link "$LINENO"; then :
25002 ac_cv_lib_m_sqrt=yes
25003else
25004 ac_cv_lib_m_sqrt=no
25005fi
25006rm -f core conftest.err conftest.$ac_objext \
25007 conftest$ac_exeext conftest.$ac_ext
25008LIBS=$ac_check_lib_save_LIBS
25009fi
25010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25011$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025012if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025013 MATH_LIBS="-lm"
25014fi
25015
25016LIBS="$MATH_LIBS $LIBS"
25017
25018
cristy85572162013-01-04 19:19:32 +000025019#
25020# Find socket library
25021#
cristy8a5d7f42013-01-06 15:24:33 +000025022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25023$as_echo_n "checking for library containing gethostbyname... " >&6; }
25024if ${ac_cv_search_gethostbyname+:} false; then :
25025 $as_echo_n "(cached) " >&6
25026else
25027 ac_func_search_save_LIBS=$LIBS
25028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029/* end confdefs.h. */
25030
25031/* Override any GCC internal prototype to avoid an error.
25032 Use char because int might match the return type of a GCC
25033 builtin and then its argument prototype would still apply. */
25034#ifdef __cplusplus
25035extern "C"
25036#endif
25037char gethostbyname ();
25038int
25039main ()
25040{
25041return gethostbyname ();
25042 ;
25043 return 0;
25044}
25045_ACEOF
25046for ac_lib in '' resolv nsl; do
25047 if test -z "$ac_lib"; then
25048 ac_res="none required"
25049 else
25050 ac_res=-l$ac_lib
25051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25052 fi
25053 if ac_fn_c_try_link "$LINENO"; then :
25054 ac_cv_search_gethostbyname=$ac_res
25055fi
25056rm -f core conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext
25058 if ${ac_cv_search_gethostbyname+:} false; then :
25059 break
25060fi
25061done
25062if ${ac_cv_search_gethostbyname+:} false; then :
25063
25064else
25065 ac_cv_search_gethostbyname=no
25066fi
25067rm conftest.$ac_ext
25068LIBS=$ac_func_search_save_LIBS
25069fi
25070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25071$as_echo "$ac_cv_search_gethostbyname" >&6; }
25072ac_res=$ac_cv_search_gethostbyname
25073if test "$ac_res" != no; then :
25074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25075
25076fi
25077
cristy85572162013-01-04 19:19:32 +000025078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25079$as_echo_n "checking for library containing socket... " >&6; }
25080if ${ac_cv_search_socket+:} false; then :
25081 $as_echo_n "(cached) " >&6
25082else
25083 ac_func_search_save_LIBS=$LIBS
25084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25085/* end confdefs.h. */
25086
25087/* Override any GCC internal prototype to avoid an error.
25088 Use char because int might match the return type of a GCC
25089 builtin and then its argument prototype would still apply. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093char socket ();
25094int
25095main ()
25096{
25097return socket ();
25098 ;
25099 return 0;
25100}
25101_ACEOF
25102for ac_lib in '' socket; do
25103 if test -z "$ac_lib"; then
25104 ac_res="none required"
25105 else
25106 ac_res=-l$ac_lib
25107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25108 fi
25109 if ac_fn_c_try_link "$LINENO"; then :
25110 ac_cv_search_socket=$ac_res
25111fi
25112rm -f core conftest.err conftest.$ac_objext \
25113 conftest$ac_exeext
25114 if ${ac_cv_search_socket+:} false; then :
25115 break
25116fi
25117done
25118if ${ac_cv_search_socket+:} false; then :
25119
25120else
25121 ac_cv_search_socket=no
25122fi
25123rm conftest.$ac_ext
25124LIBS=$ac_func_search_save_LIBS
25125fi
25126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25127$as_echo "$ac_cv_search_socket" >&6; }
25128ac_res=$ac_cv_search_socket
25129if test "$ac_res" != no; then :
25130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25131
cristy85572162013-01-04 19:19:32 +000025132
cristy8a5d7f42013-01-06 15:24:33 +000025133$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025134
cristy03f187e2013-01-24 00:22:19 +000025135 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025136
25137fi
25138
25139
25140for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025141do :
25142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25143ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025144if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025145 cat >>confdefs.h <<_ACEOF
25146#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25147_ACEOF
25148
25149fi
25150done
25151
25152
cristye43a45e2009-09-28 14:49:00 +000025153#
25154# Check for clock_gettime().
25155#
cristy8b350f62009-11-15 23:12:43 +000025156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025157$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025158if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025159 $as_echo_n "(cached) " >&6
25160else
25161 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025163/* end confdefs.h. */
25164
25165/* Override any GCC internal prototype to avoid an error.
25166 Use char because int might match the return type of a GCC
25167 builtin and then its argument prototype would still apply. */
25168#ifdef __cplusplus
25169extern "C"
25170#endif
25171char clock_gettime ();
25172int
25173main ()
25174{
25175return clock_gettime ();
25176 ;
25177 return 0;
25178}
25179_ACEOF
25180for ac_lib in '' rt; do
25181 if test -z "$ac_lib"; then
25182 ac_res="none required"
25183 else
25184 ac_res=-l$ac_lib
25185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25186 fi
cristy8b350f62009-11-15 23:12:43 +000025187 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025188 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025189fi
cristy8b350f62009-11-15 23:12:43 +000025190rm -f core conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025192 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025193 break
25194fi
25195done
cristyda16f162011-02-19 23:52:17 +000025196if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025197
cristye43a45e2009-09-28 14:49:00 +000025198else
25199 ac_cv_search_clock_gettime=no
25200fi
25201rm conftest.$ac_ext
25202LIBS=$ac_func_search_save_LIBS
25203fi
cristy8b350f62009-11-15 23:12:43 +000025204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025205$as_echo "$ac_cv_search_clock_gettime" >&6; }
25206ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025207if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25209
25210
cristy8b350f62009-11-15 23:12:43 +000025211$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025212
cristy8b350f62009-11-15 23:12:43 +000025213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025214$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025216/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025217
25218 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025219int
25220main ()
25221{
25222clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025223 ;
25224 return 0;
25225}
25226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025227if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025228
cristyad38abe2012-12-23 23:03:21 +000025229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25230$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025231
cristy8b350f62009-11-15 23:12:43 +000025232$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025233
25234
25235else
cristyad38abe2012-12-23 23:03:21 +000025236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25237$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025238
25239fi
cristye43a45e2009-09-28 14:49:00 +000025240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25241
25242else
25243
cristy8b350f62009-11-15 23:12:43 +000025244 for ac_func in gettimeofday ftime
25245do :
25246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025249 cat >>confdefs.h <<_ACEOF
25250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25251_ACEOF
25252 break
25253fi
25254done
25255
25256
25257
25258fi
25259
25260
cristy3ed852e2009-09-05 21:47:34 +000025261########
25262#
25263# Check for function prototypes
25264#
25265########
25266
cristy8b350f62009-11-15 23:12:43 +000025267ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025268#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025269"
cristyda16f162011-02-19 23:52:17 +000025270if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025271 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025272else
cristy8b350f62009-11-15 23:12:43 +000025273 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025274fi
25275
cristy3ed852e2009-09-05 21:47:34 +000025276cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025277#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025279ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025280#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025281"
cristyda16f162011-02-19 23:52:17 +000025282if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025283 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025284else
cristy8b350f62009-11-15 23:12:43 +000025285 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025286fi
25287
cristy3ed852e2009-09-05 21:47:34 +000025288cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025289#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025290_ACEOF
25291
25292
cristy8b350f62009-11-15 23:12:43 +000025293ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025294#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025295"
cristyda16f162011-02-19 23:52:17 +000025296if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025297 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025298else
cristy8b350f62009-11-15 23:12:43 +000025299 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025300fi
25301
cristy3ed852e2009-09-05 21:47:34 +000025302cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025303#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025304_ACEOF
25305
25306
cristy8b350f62009-11-15 23:12:43 +000025307ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025308#include <stdio.h>
25309#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025310"
cristyda16f162011-02-19 23:52:17 +000025311if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025312 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025313else
cristy8b350f62009-11-15 23:12:43 +000025314 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025315fi
25316
cristy3ed852e2009-09-05 21:47:34 +000025317cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025318#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025319_ACEOF
25320
25321
cristy3ed852e2009-09-05 21:47:34 +000025322########
25323#
25324# C++ Support Tests (For Magick++)
25325#
25326########
25327have_magick_plus_plus='no'
25328if test "$with_magick_plus_plus" = 'yes'; then
25329 OLIBS="$LIBS"
25330 LIBS=''
25331 ac_ext=cpp
25332ac_cpp='$CXXCPP $CPPFLAGS'
25333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25336
25337
25338 # Full set of headers used...
25339 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25340 # functional iomanip iosfwd iostream iterator list string strstream utility
25341 ac_ext=cpp
25342ac_cpp='$CXXCPP $CPPFLAGS'
25343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25346
25347 ac_ext=cpp
25348ac_cpp='$CXXCPP $CPPFLAGS'
25349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25352if test -z "$CXX"; then
25353 if test -n "$CCC"; then
25354 CXX=$CCC
25355 else
25356 if test -n "$ac_tool_prefix"; then
25357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25358 do
25359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025363if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 $as_echo_n "(cached) " >&6
25365else
25366 if test -n "$CXX"; then
25367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25368else
25369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25370for as_dir in $PATH
25371do
25372 IFS=$as_save_IFS
25373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025378 break 2
25379 fi
25380done
cristy8b350f62009-11-15 23:12:43 +000025381 done
cristy3ed852e2009-09-05 21:47:34 +000025382IFS=$as_save_IFS
25383
25384fi
25385fi
25386CXX=$ac_cv_prog_CXX
25387if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025389$as_echo "$CXX" >&6; }
25390else
cristy8b350f62009-11-15 23:12:43 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo "no" >&6; }
25393fi
25394
25395
25396 test -n "$CXX" && break
25397 done
25398fi
25399if test -z "$CXX"; then
25400 ac_ct_CXX=$CXX
25401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25402do
25403 # Extract the first word of "$ac_prog", so it can be a program name with args.
25404set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025407if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025408 $as_echo_n "(cached) " >&6
25409else
25410 if test -n "$ac_ct_CXX"; then
25411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25412else
25413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25414for as_dir in $PATH
25415do
25416 IFS=$as_save_IFS
25417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025420 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025422 break 2
25423 fi
25424done
cristy8b350f62009-11-15 23:12:43 +000025425 done
cristy3ed852e2009-09-05 21:47:34 +000025426IFS=$as_save_IFS
25427
25428fi
25429fi
25430ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25431if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025433$as_echo "$ac_ct_CXX" >&6; }
25434else
cristy8b350f62009-11-15 23:12:43 +000025435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025436$as_echo "no" >&6; }
25437fi
25438
25439
25440 test -n "$ac_ct_CXX" && break
25441done
25442
25443 if test "x$ac_ct_CXX" = x; then
25444 CXX="g++"
25445 else
25446 case $cross_compiling:$ac_tool_warned in
25447yes:)
cristy8b350f62009-11-15 23:12:43 +000025448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25450ac_tool_warned=yes ;;
25451esac
25452 CXX=$ac_ct_CXX
25453 fi
25454fi
25455
25456 fi
25457fi
25458# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460set X $ac_compile
25461ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025462for ac_option in --version -v -V -qversion; do
25463 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025464case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467esac
cristy8b350f62009-11-15 23:12:43 +000025468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25469$as_echo "$ac_try_echo"; } >&5
25470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025471 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025472 if test -s conftest.err; then
25473 sed '10a\
25474... rest of stderr output deleted ...
25475 10q' conftest.err >conftest.er1
25476 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025477 fi
cristycd4c5312009-11-22 01:19:08 +000025478 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25480 test $ac_status = 0; }
25481done
cristy3ed852e2009-09-05 21:47:34 +000025482
cristy8b350f62009-11-15 23:12:43 +000025483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025485if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 $as_echo_n "(cached) " >&6
25487else
cristy8b350f62009-11-15 23:12:43 +000025488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489/* end confdefs.h. */
25490
25491int
25492main ()
25493{
25494#ifndef __GNUC__
25495 choke me
25496#endif
25497
25498 ;
25499 return 0;
25500}
25501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025502if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025503 ac_compiler_gnu=yes
25504else
cristy8b350f62009-11-15 23:12:43 +000025505 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025506fi
cristy3ed852e2009-09-05 21:47:34 +000025507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25509
25510fi
cristy8b350f62009-11-15 23:12:43 +000025511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025512$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25513if test $ac_compiler_gnu = yes; then
25514 GXX=yes
25515else
25516 GXX=
25517fi
25518ac_test_CXXFLAGS=${CXXFLAGS+set}
25519ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025521$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025522if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 $as_echo_n "(cached) " >&6
25524else
25525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25526 ac_cxx_werror_flag=yes
25527 ac_cv_prog_cxx_g=no
25528 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025530/* end confdefs.h. */
25531
25532int
25533main ()
25534{
25535
25536 ;
25537 return 0;
25538}
25539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025540if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025541 ac_cv_prog_cxx_g=yes
25542else
cristy8b350f62009-11-15 23:12:43 +000025543 CXXFLAGS=""
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025545/* end confdefs.h. */
25546
25547int
25548main ()
25549{
25550
25551 ;
25552 return 0;
25553}
25554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025555if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025556
cristy8b350f62009-11-15 23:12:43 +000025557else
25558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025559 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025561/* end confdefs.h. */
25562
25563int
25564main ()
25565{
25566
25567 ;
25568 return 0;
25569}
25570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025571if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025572 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025573fi
cristy3ed852e2009-09-05 21:47:34 +000025574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575fi
cristy3ed852e2009-09-05 21:47:34 +000025576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577fi
cristy3ed852e2009-09-05 21:47:34 +000025578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25580fi
cristy8b350f62009-11-15 23:12:43 +000025581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025582$as_echo "$ac_cv_prog_cxx_g" >&6; }
25583if test "$ac_test_CXXFLAGS" = set; then
25584 CXXFLAGS=$ac_save_CXXFLAGS
25585elif test $ac_cv_prog_cxx_g = yes; then
25586 if test "$GXX" = yes; then
25587 CXXFLAGS="-g -O2"
25588 else
25589 CXXFLAGS="-g"
25590 fi
25591else
25592 if test "$GXX" = yes; then
25593 CXXFLAGS="-O2"
25594 else
25595 CXXFLAGS=
25596 fi
25597fi
25598ac_ext=cpp
25599ac_cpp='$CXXCPP $CPPFLAGS'
25600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25603
cristy73bd4a52010-10-05 11:24:23 +000025604depcc="$CXX" am_compiler_list=
25605
25606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25607$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025608if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025609 $as_echo_n "(cached) " >&6
25610else
25611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25612 # We make a subdir and do the tests there. Otherwise we can end up
25613 # making bogus files that we don't know about and never remove. For
25614 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025615 # making a dummy file named 'D' -- because '-MD' means "put the output
25616 # in D".
cristy7247bba2012-02-05 16:37:27 +000025617 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025618 mkdir conftest.dir
25619 # Copy depcomp to subdir because otherwise we won't find it if we're
25620 # using a relative directory.
25621 cp "$am_depcomp" conftest.dir
25622 cd conftest.dir
25623 # We will build objects and dependencies in a subdirectory because
25624 # it helps to detect inapplicable dependency modes. For instance
25625 # both Tru64's cc and ICC support -MD to output dependencies as a
25626 # side effect of compilation, but ICC will put the dependencies in
25627 # the current directory while Tru64 will put them in the object
25628 # directory.
25629 mkdir sub
25630
25631 am_cv_CXX_dependencies_compiler_type=none
25632 if test "$am_compiler_list" = ""; then
25633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25634 fi
25635 am__universal=false
25636 case " $depcc " in #(
25637 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25638 esac
25639
25640 for depmode in $am_compiler_list; do
25641 # Setup a source with many dependencies, because some compilers
25642 # like to wrap large dependency lists on column 80 (with \), and
25643 # we should not choose a depcomp mode which is confused by this.
25644 #
25645 # We need to recreate these files for each test, as the compiler may
25646 # overwrite some of them when testing with obscure command lines.
25647 # This happens at least with the AIX C compiler.
25648 : > sub/conftest.c
25649 for i in 1 2 3 4 5 6; do
25650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025651 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25652 # Solaris 10 /bin/sh.
25653 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025654 done
25655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25656
cristyc0890a62012-07-19 00:18:20 +000025657 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025658 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025659 # handle '-M -o', and we need to detect this. Also, some Intel
25660 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025661 am__obj=sub/conftest.${OBJEXT-o}
25662 am__minus_obj="-o $am__obj"
25663 case $depmode in
25664 gcc)
25665 # This depmode causes a compiler race in universal mode.
25666 test "$am__universal" = false || continue
25667 ;;
25668 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025669 # After this tag, mechanisms are not by side-effect, so they'll
25670 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025671 if test "x$enable_dependency_tracking" = xyes; then
25672 continue
25673 else
25674 break
25675 fi
25676 ;;
cristy7247bba2012-02-05 16:37:27 +000025677 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025678 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025679 # not run yet. These depmodes are late enough in the game, and
25680 # so weak that their functioning should not be impacted.
25681 am__obj=conftest.${OBJEXT-o}
25682 am__minus_obj=
25683 ;;
25684 none) break ;;
25685 esac
25686 if depmode=$depmode \
25687 source=sub/conftest.c object=$am__obj \
25688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25690 >/dev/null 2>conftest.err &&
25691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25695 # icc doesn't choke on unknown options, it will just issue warnings
25696 # or remarks (even with -Werror). So we grep stderr for any message
25697 # that says an option was ignored or not supported.
25698 # When given -MP, icc 7.0 and 7.1 complain thusly:
25699 # icc: Command line warning: ignoring option '-M'; no argument required
25700 # The diagnosis changed in icc 8.0:
25701 # icc: Command line remark: option '-MP' not supported
25702 if (grep 'ignoring option' conftest.err ||
25703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25704 am_cv_CXX_dependencies_compiler_type=$depmode
25705 break
25706 fi
25707 fi
25708 done
25709
25710 cd ..
25711 rm -rf conftest.dir
25712else
25713 am_cv_CXX_dependencies_compiler_type=none
25714fi
25715
25716fi
25717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25718$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25719CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25720
25721 if
25722 test "x$enable_dependency_tracking" != xno \
25723 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25724 am__fastdepCXX_TRUE=
25725 am__fastdepCXX_FALSE='#'
25726else
25727 am__fastdepCXX_TRUE='#'
25728 am__fastdepCXX_FALSE=
25729fi
25730
25731
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25733$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025734if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025735 $as_echo_n "(cached) " >&6
25736else
25737
25738 ac_ext=cpp
25739ac_cpp='$CXXCPP $CPPFLAGS'
25740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25743
25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745/* end confdefs.h. */
25746
25747int f(int x){return 1;}
25748int f(char x){return 1;}
25749int f(bool x){return 1;}
25750
25751int
25752main ()
25753{
25754bool b = true; return f(b);
25755 ;
25756 return 0;
25757}
25758_ACEOF
25759if ac_fn_cxx_try_compile "$LINENO"; then :
25760 ax_cv_cxx_bool=yes
25761else
25762 ax_cv_cxx_bool=no
25763fi
25764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 ac_ext=cpp
25766ac_cpp='$CXXCPP $CPPFLAGS'
25767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25770
25771
25772fi
25773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25774$as_echo "$ax_cv_cxx_bool" >&6; }
25775if test "$ax_cv_cxx_bool" = yes; then
25776
25777$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25778
25779fi
25780
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25782$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025783if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025784 $as_echo_n "(cached) " >&6
25785else
25786
25787 ac_ext=cpp
25788ac_cpp='$CXXCPP $CPPFLAGS'
25789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25792
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794/* end confdefs.h. */
25795namespace Outer { namespace Inner { int i = 0; }}
25796int
25797main ()
25798{
25799using namespace Outer::Inner; return i;
25800 ;
25801 return 0;
25802}
25803_ACEOF
25804if ac_fn_cxx_try_compile "$LINENO"; then :
25805 ax_cv_cxx_namespaces=yes
25806else
25807 ax_cv_cxx_namespaces=no
25808fi
25809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810 ac_ext=cpp
25811ac_cpp='$CXXCPP $CPPFLAGS'
25812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25815
25816
25817fi
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25819$as_echo "$ax_cv_cxx_namespaces" >&6; }
25820if test "$ax_cv_cxx_namespaces" = yes; then
25821
25822$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25823
25824fi
25825
25826
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25828$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025829if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025830 $as_echo_n "(cached) " >&6
25831else
25832
25833 ac_ext=cpp
25834ac_cpp='$CXXCPP $CPPFLAGS'
25835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25838
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840/* end confdefs.h. */
25841#include <iostream>
25842 std::istream& is = std::cin;
25843int
25844main ()
25845{
25846
25847 ;
25848 return 0;
25849}
25850_ACEOF
25851if ac_fn_cxx_try_compile "$LINENO"; then :
25852 ax_cv_cxx_have_std_namespace=yes
25853else
25854 ax_cv_cxx_have_std_namespace=no
25855fi
25856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 ac_ext=cpp
25858ac_cpp='$CXXCPP $CPPFLAGS'
25859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25862
25863
25864fi
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25866$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25867 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25868
25869$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25870
25871 fi
25872
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25874$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025875if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025876 $as_echo_n "(cached) " >&6
25877else
25878
25879
25880 ac_ext=cpp
25881ac_cpp='$CXXCPP $CPPFLAGS'
25882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25885
25886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887/* end confdefs.h. */
25888#include <iostream>
25889#include <map>
25890#include <iomanip>
25891#include <cmath>
25892#ifdef HAVE_NAMESPACES
25893using namespace std;
25894#endif
25895int
25896main ()
25897{
25898return 0;
25899 ;
25900 return 0;
25901}
25902_ACEOF
25903if ac_fn_cxx_try_compile "$LINENO"; then :
25904 ac_cv_cxx_have_std_libs=yes
25905else
25906 ac_cv_cxx_have_std_libs=no
25907fi
25908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25909 ac_ext=cpp
25910ac_cpp='$CXXCPP $CPPFLAGS'
25911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25914
25915
25916fi
25917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25918$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25919if test "$ac_cv_cxx_have_std_libs" = yes; then
25920
25921$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25922
25923fi
25924
cristy3ed852e2009-09-05 21:47:34 +000025925
25926 OPENMP_CXXFLAGS=
25927 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025928if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025929 enableval=$enable_openmp;
25930fi
25931
25932 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25934$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025935if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025936 $as_echo_n "(cached) " >&6
25937else
cristy8b350f62009-11-15 23:12:43 +000025938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025940
25941#ifndef _OPENMP
25942 choke me
25943#endif
25944#include <omp.h>
25945int main () { return omp_get_num_threads (); }
25946
25947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025948if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 ac_cv_prog_cxx_openmp='none needed'
25950else
cristy8b350f62009-11-15 23:12:43 +000025951 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025952 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25953 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025954 ac_save_CXXFLAGS=$CXXFLAGS
25955 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25957/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025958
25959#ifndef _OPENMP
25960 choke me
25961#endif
25962#include <omp.h>
25963int main () { return omp_get_num_threads (); }
25964
25965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025966if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025967 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025968fi
cristy8b350f62009-11-15 23:12:43 +000025969rm -f core conftest.err conftest.$ac_objext \
25970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025971 CXXFLAGS=$ac_save_CXXFLAGS
25972 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25973 break
25974 fi
25975 done
25976fi
cristy8b350f62009-11-15 23:12:43 +000025977rm -f core conftest.err conftest.$ac_objext \
25978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025979fi
cristy8b350f62009-11-15 23:12:43 +000025980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025981$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25982 case $ac_cv_prog_cxx_openmp in #(
25983 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025984 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025985 *)
cristy8b350f62009-11-15 23:12:43 +000025986 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025987 esac
25988 fi
25989
25990
25991 ac_ext=c
25992ac_cpp='$CPP $CPPFLAGS'
25993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995ac_compiler_gnu=$ac_cv_c_compiler_gnu
25996
25997
cristy8b350f62009-11-15 23:12:43 +000025998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26000 if \
cristy964cb7f2010-04-25 23:18:00 +000026001 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026002 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026003 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026004 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026005 have_magick_plus_plus='yes'
26006 else
26007 have_magick_plus_plus='no (failed tests)'
26008 fi
cristyad38abe2012-12-23 23:03:21 +000026009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26010$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026011 LIBS="$OLIBS"
26012fi
cristy73bd4a52010-10-05 11:24:23 +000026013 if test "$have_magick_plus_plus" = 'yes'; then
26014 WITH_MAGICK_PLUS_PLUS_TRUE=
26015 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26016else
26017 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26018 WITH_MAGICK_PLUS_PLUS_FALSE=
26019fi
26020
cristy3ed852e2009-09-05 21:47:34 +000026021
26022# Only check for delegate libraries in subdirectories if requested.
26023if test "$enable_delegate_build" != 'no'; then
26024 # Check for delegate sub-directories and add -I & -L options as required.
26025 # This presumes that delegates are installed as detailed in the ImageMagick
26026 # README. If delegates are installed in a standard location where the
26027 # compiler will automatically find them then these options should not be
26028 # required.
26029
26030 #
26031 # Most delegates have includes in the same directory as the library, but not all...
26032 #
26033 # Includes
cristyfdc7d122013-08-17 20:46:45 +000026034 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026035 if test -d "$builddir/$dir"; then
26036 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26037 else
26038 if test -d "$srcdirfull/$dir"; then
26039 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26040 fi
26041 fi
26042 done
26043
26044 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000026045 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026046 if test -d "$builddir/$dir/.libs"; then
26047 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26048 else
26049 if test -d "$srcdirfull/$dir/.libs"; then
26050 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26051 fi
26052 fi
26053 if test -d "$builddir/$dir"; then
26054 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26055 else
26056 if test -d "$srcdirfull/$dir"; then
26057 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26058 fi
26059 fi
26060 done
26061fi
26062
26063# Assume that delegate headers reside under same directory as ImageMagick
26064# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026065MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026066
26067#
26068# Find the X11 RGB database
26069#
cristy8b350f62009-11-15 23:12:43 +000026070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026072if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026073 $as_echo_n "(cached) " >&6
26074else
26075 # Look for the header file in a standard set of common directories.
26076# Check X11 before X11Rn because it is often a symlink to the current release.
26077 for ac_dir in \
26078 /lib/usr/lib/X11 \
26079 /usr/X11/lib \
26080 /usr/X11R4/lib \
26081 /usr/X11R5/lib \
26082 /usr/X11R6/lib \
26083 /usr/X11R7/lib \
26084 /usr/X386/lib \
26085 /usr/XFree86/lib/X11 \
26086 /usr/athena/lib \
26087 /usr/lib \
26088 /usr/lib/X11 \
26089 /usr/lib/X11R4 \
26090 /usr/lib/X11R5 \
26091 /usr/lib/X11R6 \
26092 /usr/lib/X11R7 \
26093 /usr/local/X11/lib \
26094 /usr/local/X11R4/lib \
26095 /usr/local/X11R5/lib \
26096 /usr/local/X11R6/lib \
26097 /usr/local/lib \
26098 /usr/local/lib/X11 \
26099 /usr/local/lib/X11R4 \
26100 /usr/local/lib/X11R5 \
26101 /usr/local/lib/X11R6 \
26102 /usr/local/lib/X11R7 \
26103 /usr/local/x11r5/lib \
26104 /usr/lpp/Xamples/lib \
26105 /usr/openwin/lib \
26106 /usr/openwin/share/lib \
26107 /usr/unsupported/lib \
26108 /usr/x386/lib \
26109 ; do
26110 if test -f "$ac_dir/X11/rgb.txt"; then
26111 im_cv_x_configure="$ac_dir/X11/"
26112 break
26113 elif test -f "$ac_dir/rgb.txt"; then
26114 im_cv_x_configure="$ac_dir/"
26115 break
26116 fi
26117
26118 done
26119fi
cristy8b350f62009-11-15 23:12:43 +000026120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026121$as_echo "$im_cv_x_configure" >&6; }
26122X11_CONFIGURE_PATH="$im_cv_x_configure"
26123case "${build_os}" in
26124 mingw* )
26125 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26126 ;;
26127esac
26128
26129cat >>confdefs.h <<_ACEOF
26130#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26131_ACEOF
26132
26133
26134#
26135# Find OpenMP library
26136#
26137GOMP_LIBS=''
26138if test "$enable_openmp" != 'no'; then
26139 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026140 # Open64 (passes for GCC but uses different OpenMP implementation)
26141 if test "x$GOMP_LIBS" = x ; then
26142 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26144$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26145if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26146 $as_echo_n "(cached) " >&6
26147else
26148 ac_check_lib_save_LIBS=$LIBS
26149LIBS="-lopenmp $LIBS"
26150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151/* end confdefs.h. */
26152
26153/* Override any GCC internal prototype to avoid an error.
26154 Use char because int might match the return type of a GCC
26155 builtin and then its argument prototype would still apply. */
26156#ifdef __cplusplus
26157extern "C"
26158#endif
26159char omp_get_num_procs ();
26160int
26161main ()
26162{
26163return omp_get_num_procs ();
26164 ;
26165 return 0;
26166}
26167_ACEOF
26168if ac_fn_c_try_link "$LINENO"; then :
26169 ac_cv_lib_openmp_omp_get_num_procs=yes
26170else
26171 ac_cv_lib_openmp_omp_get_num_procs=no
26172fi
26173rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
26175LIBS=$ac_check_lib_save_LIBS
26176fi
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26178$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26179if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26180 GOMP_LIBS="-lopenmp"
26181fi
26182
26183 fi
26184 fi
26185 # GCC
26186 if test "x$GOMP_LIBS" = x ; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026188$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026189if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 $as_echo_n "(cached) " >&6
26191else
26192 ac_check_lib_save_LIBS=$LIBS
26193LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026195/* end confdefs.h. */
26196
26197/* Override any GCC internal prototype to avoid an error.
26198 Use char because int might match the return type of a GCC
26199 builtin and then its argument prototype would still apply. */
26200#ifdef __cplusplus
26201extern "C"
26202#endif
26203char GOMP_parallel_start ();
26204int
26205main ()
26206{
26207return GOMP_parallel_start ();
26208 ;
26209 return 0;
26210}
26211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 ac_cv_lib_gomp_GOMP_parallel_start=yes
26214else
cristy8b350f62009-11-15 23:12:43 +000026215 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026216fi
cristy8b350f62009-11-15 23:12:43 +000026217rm -f core conftest.err conftest.$ac_objext \
26218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026219LIBS=$ac_check_lib_save_LIBS
26220fi
cristy8b350f62009-11-15 23:12:43 +000026221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026223if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026224 GOMP_LIBS="-lgomp"
26225fi
cristy18307f12011-12-30 01:20:16 +000026226
26227 fi
cristy3ed852e2009-09-05 21:47:34 +000026228 else
cristy18307f12011-12-30 01:20:16 +000026229 # Sun CC
26230 if test "x$GOMP_LIBS" = x ; then
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026232$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026233if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026234 $as_echo_n "(cached) " >&6
26235else
26236 ac_check_lib_save_LIBS=$LIBS
26237LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026239/* end confdefs.h. */
26240
26241/* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26244#ifdef __cplusplus
26245extern "C"
26246#endif
26247char sunw_mp_register_warn ();
26248int
26249main ()
26250{
26251return sunw_mp_register_warn ();
26252 ;
26253 return 0;
26254}
26255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26258else
cristy8b350f62009-11-15 23:12:43 +000026259 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026260fi
cristy8b350f62009-11-15 23:12:43 +000026261rm -f core conftest.err conftest.$ac_objext \
26262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026263LIBS=$ac_check_lib_save_LIBS
26264fi
cristy8b350f62009-11-15 23:12:43 +000026265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026267if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026268 GOMP_LIBS="-lmtsk"
26269fi
cristy18307f12011-12-30 01:20:16 +000026270
26271 fi
26272 # AIX xlc
26273 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026276if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026277 $as_echo_n "(cached) " >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026282/* end confdefs.h. */
26283
26284/* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26287#ifdef __cplusplus
26288extern "C"
26289#endif
26290char _xlsmpFlush ();
26291int
26292main ()
26293{
26294return _xlsmpFlush ();
26295 ;
26296 return 0;
26297}
26298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026300 ac_cv_lib_xlsmp__xlsmpFlush=yes
26301else
cristy8b350f62009-11-15 23:12:43 +000026302 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026303fi
cristy8b350f62009-11-15 23:12:43 +000026304rm -f core conftest.err conftest.$ac_objext \
26305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026306LIBS=$ac_check_lib_save_LIBS
26307fi
cristy8b350f62009-11-15 23:12:43 +000026308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026310if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 GOMP_LIBS="-lxlsmp"
26312fi
cristy18307f12011-12-30 01:20:16 +000026313
26314 fi
26315 # SGI IRIX 6.5 MIPSpro C/C++
26316 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026318$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026319if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 $as_echo_n "(cached) " >&6
26321else
26322 ac_check_lib_save_LIBS=$LIBS
26323LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026325/* end confdefs.h. */
26326
26327/* Override any GCC internal prototype to avoid an error.
26328 Use char because int might match the return type of a GCC
26329 builtin and then its argument prototype would still apply. */
26330#ifdef __cplusplus
26331extern "C"
26332#endif
26333char mp_destroy ();
26334int
26335main ()
26336{
26337return mp_destroy ();
26338 ;
26339 return 0;
26340}
26341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 ac_cv_lib_mp_mp_destroy=yes
26344else
cristy8b350f62009-11-15 23:12:43 +000026345 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026346fi
cristy8b350f62009-11-15 23:12:43 +000026347rm -f core conftest.err conftest.$ac_objext \
26348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026349LIBS=$ac_check_lib_save_LIBS
26350fi
cristy8b350f62009-11-15 23:12:43 +000026351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026353if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026354 GOMP_LIBS="-lmp"
26355fi
cristy18307f12011-12-30 01:20:16 +000026356
26357 fi
cristy3ed852e2009-09-05 21:47:34 +000026358 fi
26359 LIBS="$GOMP_LIBS $LIBS"
26360fi
26361
26362
cristy3ed852e2009-09-05 21:47:34 +000026363
26364
26365#
26366# Check for umem.
26367#
26368have_umem='no'
26369UMEM_LIBS=''
26370if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26374$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026375 failed=0
26376 passed=0
cristy8b350f62009-11-15 23:12:43 +000026377 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026378if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 passed=`expr $passed + 1`
26380else
26381 failed=`expr $failed + 1`
26382fi
26383
26384
cristy8b350f62009-11-15 23:12:43 +000026385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026386$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026387if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026388 $as_echo_n "(cached) " >&6
26389else
26390 ac_check_lib_save_LIBS=$LIBS
26391LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026393/* end confdefs.h. */
26394
26395/* Override any GCC internal prototype to avoid an error.
26396 Use char because int might match the return type of a GCC
26397 builtin and then its argument prototype would still apply. */
26398#ifdef __cplusplus
26399extern "C"
26400#endif
26401char umem_alloc ();
26402int
26403main ()
26404{
26405return umem_alloc ();
26406 ;
26407 return 0;
26408}
26409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026411 ac_cv_lib_umem_umem_alloc=yes
26412else
cristy8b350f62009-11-15 23:12:43 +000026413 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026414fi
cristy8b350f62009-11-15 23:12:43 +000026415rm -f core conftest.err conftest.$ac_objext \
26416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026417LIBS=$ac_check_lib_save_LIBS
26418fi
cristy8b350f62009-11-15 23:12:43 +000026419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026420$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026421if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026422 passed=`expr $passed + 1`
26423else
26424 failed=`expr $failed + 1`
26425fi
26426
cristy8b350f62009-11-15 23:12:43 +000026427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026429if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 $as_echo_n "(cached) " >&6
26431else
26432 ac_check_lib_save_LIBS=$LIBS
26433LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026435/* end confdefs.h. */
26436
26437/* Override any GCC internal prototype to avoid an error.
26438 Use char because int might match the return type of a GCC
26439 builtin and then its argument prototype would still apply. */
26440#ifdef __cplusplus
26441extern "C"
26442#endif
26443char umem_free ();
26444int
26445main ()
26446{
26447return umem_free ();
26448 ;
26449 return 0;
26450}
26451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 ac_cv_lib_umem_umem_free=yes
26454else
cristy8b350f62009-11-15 23:12:43 +000026455 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026456fi
cristy8b350f62009-11-15 23:12:43 +000026457rm -f core conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026459LIBS=$ac_check_lib_save_LIBS
26460fi
cristy8b350f62009-11-15 23:12:43 +000026461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026462$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026463if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 passed=`expr $passed + 1`
26465else
26466 failed=`expr $failed + 1`
26467fi
26468
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26471 if test $passed -gt 0; then
26472 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26474$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026475 have_umem='no (failed tests)'
26476 else
26477 UMEM_LIBS='-lumem'
26478 LIBS="$UMEM_LIBS $LIBS"
26479
cristy8b350f62009-11-15 23:12:43 +000026480$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026481
cristyad38abe2012-12-23 23:03:21 +000026482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26483$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026484 have_umem='yes'
26485 fi
26486 else
cristyad38abe2012-12-23 23:03:21 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26488$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026489 fi
26490fi
cristy73bd4a52010-10-05 11:24:23 +000026491 if test "$have_umem" = 'yes'; then
26492 HasUMEM_TRUE=
26493 HasUMEM_FALSE='#'
26494else
26495 HasUMEM_TRUE='#'
26496 HasUMEM_FALSE=
26497fi
26498
cristy3ed852e2009-09-05 21:47:34 +000026499
26500
26501#
26502# Add support for ccmalloc memory debugging library if requested
26503#
26504have_ccmalloc='no'
26505CCMALLOC_LIBS=''
26506if test "$enable_ccmalloc" = 'yes'; then
26507 # Extract the first word of "ccmalloc", so it can be a program name with args.
26508set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026511if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026512 $as_echo_n "(cached) " >&6
26513else
26514 case $CCMALLOCDelegate in
26515 [\\/]* | ?:[\\/]*)
26516 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26517 ;;
26518 *)
26519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26520for as_dir in $PATH
26521do
26522 IFS=$as_save_IFS
26523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026526 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026528 break 2
26529 fi
26530done
cristy8b350f62009-11-15 23:12:43 +000026531 done
cristy3ed852e2009-09-05 21:47:34 +000026532IFS=$as_save_IFS
26533
26534 ;;
26535esac
26536fi
26537CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26538if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo "$CCMALLOCDelegate" >&6; }
26541else
cristy8b350f62009-11-15 23:12:43 +000026542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "no" >&6; }
26544fi
26545
26546
26547 if test -n "$CCMALLOCDelegate"; then
26548 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26549 OLIBS="$LIBS"
26550 # Assume that gcc is used with ccmalloc.
26551 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026554if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026555 $as_echo_n "(cached) " >&6
26556else
26557 ac_check_lib_save_LIBS=$LIBS
26558LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026560/* end confdefs.h. */
26561
26562/* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char ccmalloc_malloc ();
26569int
26570main ()
26571{
26572return ccmalloc_malloc ();
26573 ;
26574 return 0;
26575}
26576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026578 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26579else
cristy8b350f62009-11-15 23:12:43 +000026580 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026581fi
cristy8b350f62009-11-15 23:12:43 +000026582rm -f core conftest.err conftest.$ac_objext \
26583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026584LIBS=$ac_check_lib_save_LIBS
26585fi
cristy8b350f62009-11-15 23:12:43 +000026586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026588if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26590fi
26591
26592 if test -n "$CCMALLOC_LIBS"; then
26593 LIBS="$OLIBS"
26594 LIBS="$LIBS $CCMALLOC_LIBS"
26595 have_ccmalloc='yes'
26596 else
26597 LIBS="$OLIBS"
26598 fi
26599 fi
26600fi
26601
26602#
cristy944e51f2013-04-16 18:45:02 +000026603# Add support for 'huge pages' if requested
26604#
26605if test "x$enable_hugepages" != "xno"; then :
26606
26607
26608$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26609
26610
26611fi
26612
26613#
cristy3ed852e2009-09-05 21:47:34 +000026614# Add support for efence memory debugging library if requested
26615#
26616if test "$enable_efence" = 'yes'; then
26617 EFENCE_LIBS='-lefence'
26618 LIBS="$EFENCE_LIBS $LIBS"
26619fi
26620
cristy3ed852e2009-09-05 21:47:34 +000026621
26622#
26623# Check for BZLIB
26624#
26625
26626
26627# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026628if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 withval=$with_bzlib; with_bzlib=$withval
26630else
26631 with_bzlib='yes'
26632fi
26633
26634
26635if test "$with_bzlib" != 'yes'; then
26636 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26637fi
26638
26639have_bzlib='no'
26640if test "$with_bzlib" != 'no'; then
26641 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26643$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26647$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026648 failed=0
26649 passed=0
26650 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026651 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026652if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026653 passed=`expr $passed + 1`
26654else
26655 failed=`expr $failed + 1`
26656fi
26657
26658
cristy8b350f62009-11-15 23:12:43 +000026659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026660$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026661if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026662 $as_echo_n "(cached) " >&6
26663else
26664 ac_check_lib_save_LIBS=$LIBS
26665LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026667/* end confdefs.h. */
26668
26669/* Override any GCC internal prototype to avoid an error.
26670 Use char because int might match the return type of a GCC
26671 builtin and then its argument prototype would still apply. */
26672#ifdef __cplusplus
26673extern "C"
26674#endif
26675char BZ2_bzDecompress ();
26676int
26677main ()
26678{
26679return BZ2_bzDecompress ();
26680 ;
26681 return 0;
26682}
26683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026684if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026685 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26686else
cristy8b350f62009-11-15 23:12:43 +000026687 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026688fi
cristy8b350f62009-11-15 23:12:43 +000026689rm -f core conftest.err conftest.$ac_objext \
26690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026691LIBS=$ac_check_lib_save_LIBS
26692fi
cristy8b350f62009-11-15 23:12:43 +000026693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026694$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026695if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026696 found_libbz=`expr $found_libbz + 1`
26697fi
26698
26699 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026701$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026702if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 $as_echo_n "(cached) " >&6
26704else
26705 ac_check_lib_save_LIBS=$LIBS
26706LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026708/* end confdefs.h. */
26709
26710/* Override any GCC internal prototype to avoid an error.
26711 Use char because int might match the return type of a GCC
26712 builtin and then its argument prototype would still apply. */
26713#ifdef __cplusplus
26714extern "C"
26715#endif
26716char _imp__BZ2_decompress ();
26717int
26718main ()
26719{
26720return _imp__BZ2_decompress ();
26721 ;
26722 return 0;
26723}
26724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026725if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026726 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26727else
cristy8b350f62009-11-15 23:12:43 +000026728 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026729fi
cristy8b350f62009-11-15 23:12:43 +000026730rm -f core conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026732LIBS=$ac_check_lib_save_LIBS
26733fi
cristy8b350f62009-11-15 23:12:43 +000026734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026736if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 found_libbz=`expr $found_libbz + 1`
26738fi
26739
26740 fi
26741 if test $found_libbz -gt 0; then
26742 passed=`expr $passed + 1`
26743 else
26744 failed=`expr $failed + 1`
26745 fi
cristy8b350f62009-11-15 23:12:43 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo_n "checking if BZLIB package is complete... " >&6; }
26748 if test $passed -gt 0; then
26749 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26751$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026752 have_bzlib='no (failed tests)'
26753 else
26754 BZLIB_LIBS='-lbz2'
26755 LIBS="$BZLIB_LIBS $LIBS"
26756
cristy8b350f62009-11-15 23:12:43 +000026757$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026758
cristyad38abe2012-12-23 23:03:21 +000026759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26760$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026761 have_bzlib='yes'
26762 fi
26763 else
cristyad38abe2012-12-23 23:03:21 +000026764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26765$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026766 fi
26767fi
cristy73bd4a52010-10-05 11:24:23 +000026768 if test "$have_bzlib" = 'yes'; then
26769 BZLIB_DELEGATE_TRUE=
26770 BZLIB_DELEGATE_FALSE='#'
26771else
26772 BZLIB_DELEGATE_TRUE='#'
26773 BZLIB_DELEGATE_FALSE=
26774fi
26775
cristy3ed852e2009-09-05 21:47:34 +000026776
26777
26778#
26779# Find the X11 include and library directories.
26780#
26781IPC_LIBS=''
26782X11_LIBS=''
26783XEXT_LIBS=''
26784XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026786$as_echo_n "checking for X... " >&6; }
26787
26788
26789# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026790if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026791 withval=$with_x;
26792fi
26793
26794# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26795if test "x$with_x" = xno; then
26796 # The user explicitly disabled X.
26797 have_x=disabled
26798else
26799 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026800 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026801 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026802 $as_echo_n "(cached) " >&6
26803else
26804 # One or both of the vars are not set, and there is no cached value.
26805ac_x_includes=no ac_x_libraries=no
26806rm -f -r conftest.dir
26807if mkdir conftest.dir; then
26808 cd conftest.dir
26809 cat >Imakefile <<'_ACEOF'
26810incroot:
26811 @echo incroot='${INCROOT}'
26812usrlibdir:
26813 @echo usrlibdir='${USRLIBDIR}'
26814libdir:
26815 @echo libdir='${LIBDIR}'
26816_ACEOF
26817 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026818 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026819 for ac_var in incroot usrlibdir libdir; do
26820 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26821 done
26822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26823 for ac_extension in a so sl dylib la dll; do
26824 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26825 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26826 ac_im_usrlibdir=$ac_im_libdir; break
26827 fi
26828 done
26829 # Screen out bogus values from the imake configuration. They are
26830 # bogus both because they are the default anyway, and because
26831 # using them would break gcc on systems where it needs fixed includes.
26832 case $ac_im_incroot in
26833 /usr/include) ac_x_includes= ;;
26834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26835 esac
26836 case $ac_im_usrlibdir in
26837 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26839 esac
26840 fi
26841 cd ..
26842 rm -f -r conftest.dir
26843fi
26844
26845# Standard set of common directories for X headers.
26846# Check X11 before X11Rn because it is often a symlink to the current release.
26847ac_x_header_dirs='
26848/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026849/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026850/usr/X11R6/include
26851/usr/X11R5/include
26852/usr/X11R4/include
26853
26854/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026855/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026856/usr/include/X11R6
26857/usr/include/X11R5
26858/usr/include/X11R4
26859
26860/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026861/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026862/usr/local/X11R6/include
26863/usr/local/X11R5/include
26864/usr/local/X11R4/include
26865
26866/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026867/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026868/usr/local/include/X11R6
26869/usr/local/include/X11R5
26870/usr/local/include/X11R4
26871
26872/usr/X386/include
26873/usr/x386/include
26874/usr/XFree86/include/X11
26875
26876/usr/include
26877/usr/local/include
26878/usr/unsupported/include
26879/usr/athena/include
26880/usr/local/x11r5/include
26881/usr/lpp/Xamples/include
26882
26883/usr/openwin/include
26884/usr/openwin/share/include'
26885
26886if test "$ac_x_includes" = no; then
26887 # Guess where to find include files, by looking for Xlib.h.
26888 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026890/* end confdefs.h. */
26891#include <X11/Xlib.h>
26892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026893if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026894 # We can compile using X headers with no special include directory.
26895ac_x_includes=
26896else
cristyc7083c12009-10-14 03:16:55 +000026897 for ac_dir in $ac_x_header_dirs; do
26898 if test -r "$ac_dir/X11/Xlib.h"; then
26899 ac_x_includes=$ac_dir
26900 break
26901 fi
26902done
26903fi
cristyda16f162011-02-19 23:52:17 +000026904rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026905fi # $ac_x_includes = no
26906
26907if test "$ac_x_libraries" = no; then
26908 # Check for the libraries.
26909 # See if we find them without any special options.
26910 # Don't add to $LIBS permanently.
26911 ac_save_LIBS=$LIBS
26912 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026914/* end confdefs.h. */
26915#include <X11/Xlib.h>
26916int
26917main ()
26918{
26919XrmInitialize ()
26920 ;
26921 return 0;
26922}
26923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026924if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026925 LIBS=$ac_save_LIBS
26926# We can link X programs with no special library path.
26927ac_x_libraries=
26928else
cristy8b350f62009-11-15 23:12:43 +000026929 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026930for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26931do
26932 # Don't even attempt the hair of trying to link an X program!
26933 for ac_extension in a so sl dylib la dll; do
26934 if test -r "$ac_dir/libX11.$ac_extension"; then
26935 ac_x_libraries=$ac_dir
26936 break 2
26937 fi
26938 done
26939done
26940fi
cristy8b350f62009-11-15 23:12:43 +000026941rm -f core conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026943fi # $ac_x_libraries = no
26944
26945case $ac_x_includes,$ac_x_libraries in #(
26946 no,* | *,no | *\'*)
26947 # Didn't find X, or a directory has "'" in its name.
26948 ac_cv_have_x="have_x=no";; #(
26949 *)
26950 # Record where we found X for the cache.
26951 ac_cv_have_x="have_x=yes\
26952 ac_x_includes='$ac_x_includes'\
26953 ac_x_libraries='$ac_x_libraries'"
26954esac
26955fi
26956;; #(
26957 *) have_x=yes;;
26958 esac
26959 eval "$ac_cv_have_x"
26960fi # $with_x != no
26961
26962if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026964$as_echo "$have_x" >&6; }
26965 no_x=yes
26966else
26967 # If each of the values was on the command line, it overrides each guess.
26968 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26969 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26970 # Update the cache value to reflect the command line values.
26971 ac_cv_have_x="have_x=yes\
26972 ac_x_includes='$x_includes'\
26973 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026975$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26976fi
26977
cristy3ed852e2009-09-05 21:47:34 +000026978if test "$no_x" = yes; then
26979 # Not all programs may use this symbol, but it does not hurt to define it.
26980
cristy8b350f62009-11-15 23:12:43 +000026981$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026982
26983 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26984else
26985 if test -n "$x_includes"; then
26986 X_CFLAGS="$X_CFLAGS -I$x_includes"
26987 fi
26988
26989 # It would also be nice to do this for all -L options, not just this one.
26990 if test -n "$x_libraries"; then
26991 X_LIBS="$X_LIBS -L$x_libraries"
26992 # For Solaris; some versions of Sun CC require a space after -R and
26993 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26996 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26997 ac_xsave_c_werror_flag=$ac_c_werror_flag
26998 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027000/* end confdefs.h. */
27001
27002int
27003main ()
27004{
27005
27006 ;
27007 return 0;
27008}
27009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027010if ac_fn_c_try_link "$LINENO"; then :
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo "no" >&6; }
27013 X_LIBS="$X_LIBS -R$x_libraries"
27014else
cristy8b350f62009-11-15 23:12:43 +000027015 LIBS="$ac_xsave_LIBS -R $x_libraries"
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027017/* end confdefs.h. */
27018
27019int
27020main ()
27021{
27022
27023 ;
27024 return 0;
27025}
27026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027027if ac_fn_c_try_link "$LINENO"; then :
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo "yes" >&6; }
27030 X_LIBS="$X_LIBS -R $x_libraries"
27031else
cristy8b350f62009-11-15 23:12:43 +000027032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027033$as_echo "neither works" >&6; }
27034fi
cristy8b350f62009-11-15 23:12:43 +000027035rm -f core conftest.err conftest.$ac_objext \
27036 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027037fi
cristy8b350f62009-11-15 23:12:43 +000027038rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027040 ac_c_werror_flag=$ac_xsave_c_werror_flag
27041 LIBS=$ac_xsave_LIBS
27042 fi
27043
27044 # Check for system-dependent libraries X programs must link with.
27045 # Do this before checking for the system-independent R6 libraries
27046 # (-lICE), since we may need -lsocket or whatever for X linking.
27047
27048 if test "$ISC" = yes; then
27049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27050 else
27051 # Martyn Johnson says this is needed for Ultrix, if the X
27052 # libraries were built with DECnet support. And Karl Berry says
27053 # the Alpha needs dnet_stub (dnet does not exist).
27054 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027056/* end confdefs.h. */
27057
27058/* Override any GCC internal prototype to avoid an error.
27059 Use char because int might match the return type of a GCC
27060 builtin and then its argument prototype would still apply. */
27061#ifdef __cplusplus
27062extern "C"
27063#endif
27064char XOpenDisplay ();
27065int
27066main ()
27067{
27068return XOpenDisplay ();
27069 ;
27070 return 0;
27071}
27072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027074
cristy8b350f62009-11-15 23:12:43 +000027075else
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027078if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 $as_echo_n "(cached) " >&6
27080else
27081 ac_check_lib_save_LIBS=$LIBS
27082LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027084/* end confdefs.h. */
27085
27086/* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27089#ifdef __cplusplus
27090extern "C"
27091#endif
27092char dnet_ntoa ();
27093int
27094main ()
27095{
27096return dnet_ntoa ();
27097 ;
27098 return 0;
27099}
27100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027101if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 ac_cv_lib_dnet_dnet_ntoa=yes
27103else
cristy8b350f62009-11-15 23:12:43 +000027104 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027105fi
cristy8b350f62009-11-15 23:12:43 +000027106rm -f core conftest.err conftest.$ac_objext \
27107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027108LIBS=$ac_check_lib_save_LIBS
27109fi
cristy8b350f62009-11-15 23:12:43 +000027110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027112if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27114fi
27115
27116 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027119if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 $as_echo_n "(cached) " >&6
27121else
27122 ac_check_lib_save_LIBS=$LIBS
27123LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027125/* end confdefs.h. */
27126
27127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27130#ifdef __cplusplus
27131extern "C"
27132#endif
27133char dnet_ntoa ();
27134int
27135main ()
27136{
27137return dnet_ntoa ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027142if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27144else
cristy8b350f62009-11-15 23:12:43 +000027145 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027146fi
cristy8b350f62009-11-15 23:12:43 +000027147rm -f core conftest.err conftest.$ac_objext \
27148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027149LIBS=$ac_check_lib_save_LIBS
27150fi
cristy8b350f62009-11-15 23:12:43 +000027151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027153if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27155fi
27156
27157 fi
27158fi
cristy8b350f62009-11-15 23:12:43 +000027159rm -f core conftest.err conftest.$ac_objext \
27160 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027161 LIBS="$ac_xsave_LIBS"
27162
27163 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27164 # to get the SysV transport functions.
27165 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27166 # needs -lnsl.
27167 # The nsl library prevents programs from opening the X display
27168 # on Irix 5.2, according to T.E. Dickey.
27169 # The functions gethostbyname, getservbyname, and inet_addr are
27170 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027171 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027172if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027173
cristy3ed852e2009-09-05 21:47:34 +000027174fi
27175
cristy3ed852e2009-09-05 21:47:34 +000027176 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027178$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027179if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027180 $as_echo_n "(cached) " >&6
27181else
27182 ac_check_lib_save_LIBS=$LIBS
27183LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027185/* end confdefs.h. */
27186
27187/* Override any GCC internal prototype to avoid an error.
27188 Use char because int might match the return type of a GCC
27189 builtin and then its argument prototype would still apply. */
27190#ifdef __cplusplus
27191extern "C"
27192#endif
27193char gethostbyname ();
27194int
27195main ()
27196{
27197return gethostbyname ();
27198 ;
27199 return 0;
27200}
27201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027202if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 ac_cv_lib_nsl_gethostbyname=yes
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027206fi
cristy8b350f62009-11-15 23:12:43 +000027207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027209LIBS=$ac_check_lib_save_LIBS
27210fi
cristy8b350f62009-11-15 23:12:43 +000027211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027212$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027213if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27215fi
27216
27217 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027219$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027220if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027221 $as_echo_n "(cached) " >&6
27222else
27223 ac_check_lib_save_LIBS=$LIBS
27224LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226/* end confdefs.h. */
27227
27228/* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27231#ifdef __cplusplus
27232extern "C"
27233#endif
27234char gethostbyname ();
27235int
27236main ()
27237{
27238return gethostbyname ();
27239 ;
27240 return 0;
27241}
27242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 ac_cv_lib_bsd_gethostbyname=yes
27245else
cristy8b350f62009-11-15 23:12:43 +000027246 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027247fi
cristy8b350f62009-11-15 23:12:43 +000027248rm -f core conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027250LIBS=$ac_check_lib_save_LIBS
27251fi
cristy8b350f62009-11-15 23:12:43 +000027252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027254if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27256fi
27257
27258 fi
27259 fi
27260
27261 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27262 # socket/setsockopt and other routines are undefined under SCO ODT
27263 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27264 # on later versions), says Simon Leinen: it contains gethostby*
27265 # variants that don't use the name server (or something). -lsocket
27266 # must be given before -lnsl if both are needed. We assume that
27267 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027268 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027269if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027270
cristy3ed852e2009-09-05 21:47:34 +000027271fi
27272
cristy3ed852e2009-09-05 21:47:34 +000027273 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027276if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 $as_echo_n "(cached) " >&6
27278else
27279 ac_check_lib_save_LIBS=$LIBS
27280LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282/* end confdefs.h. */
27283
27284/* Override any GCC internal prototype to avoid an error.
27285 Use char because int might match the return type of a GCC
27286 builtin and then its argument prototype would still apply. */
27287#ifdef __cplusplus
27288extern "C"
27289#endif
27290char connect ();
27291int
27292main ()
27293{
27294return connect ();
27295 ;
27296 return 0;
27297}
27298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 ac_cv_lib_socket_connect=yes
27301else
cristy8b350f62009-11-15 23:12:43 +000027302 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027303fi
cristy8b350f62009-11-15 23:12:43 +000027304rm -f core conftest.err conftest.$ac_objext \
27305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027306LIBS=$ac_check_lib_save_LIBS
27307fi
cristy8b350f62009-11-15 23:12:43 +000027308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027309$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027310if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027311 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27312fi
27313
27314 fi
27315
27316 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027317 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027318if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027319
cristy3ed852e2009-09-05 21:47:34 +000027320fi
27321
cristy3ed852e2009-09-05 21:47:34 +000027322 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027324$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027325if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027326 $as_echo_n "(cached) " >&6
27327else
27328 ac_check_lib_save_LIBS=$LIBS
27329LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027331/* end confdefs.h. */
27332
27333/* Override any GCC internal prototype to avoid an error.
27334 Use char because int might match the return type of a GCC
27335 builtin and then its argument prototype would still apply. */
27336#ifdef __cplusplus
27337extern "C"
27338#endif
27339char remove ();
27340int
27341main ()
27342{
27343return remove ();
27344 ;
27345 return 0;
27346}
27347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 ac_cv_lib_posix_remove=yes
27350else
cristy8b350f62009-11-15 23:12:43 +000027351 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027352fi
cristy8b350f62009-11-15 23:12:43 +000027353rm -f core conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027355LIBS=$ac_check_lib_save_LIBS
27356fi
cristy8b350f62009-11-15 23:12:43 +000027357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027359if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27361fi
27362
27363 fi
27364
27365 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027366 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027367if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027368
cristy3ed852e2009-09-05 21:47:34 +000027369fi
27370
cristy3ed852e2009-09-05 21:47:34 +000027371 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027373$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027374if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 $as_echo_n "(cached) " >&6
27376else
27377 ac_check_lib_save_LIBS=$LIBS
27378LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027380/* end confdefs.h. */
27381
27382/* Override any GCC internal prototype to avoid an error.
27383 Use char because int might match the return type of a GCC
27384 builtin and then its argument prototype would still apply. */
27385#ifdef __cplusplus
27386extern "C"
27387#endif
27388char shmat ();
27389int
27390main ()
27391{
27392return shmat ();
27393 ;
27394 return 0;
27395}
27396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027398 ac_cv_lib_ipc_shmat=yes
27399else
cristy8b350f62009-11-15 23:12:43 +000027400 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027401fi
cristy8b350f62009-11-15 23:12:43 +000027402rm -f core conftest.err conftest.$ac_objext \
27403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027404LIBS=$ac_check_lib_save_LIBS
27405fi
cristy8b350f62009-11-15 23:12:43 +000027406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027407$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027408if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027409 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27410fi
27411
27412 fi
27413 fi
27414
27415 # Check for libraries that X11R6 Xt/Xaw programs need.
27416 ac_save_LDFLAGS=$LDFLAGS
27417 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27418 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27419 # check for ICE first), but we must link in the order -lSM -lICE or
27420 # we get undefined symbols. So assume we have SM if we have ICE.
27421 # These have to be linked with before -lX11, unlike the other
27422 # libraries we check for below, so use a different variable.
27423 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027426if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027427 $as_echo_n "(cached) " >&6
27428else
27429 ac_check_lib_save_LIBS=$LIBS
27430LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027432/* end confdefs.h. */
27433
27434/* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27437#ifdef __cplusplus
27438extern "C"
27439#endif
27440char IceConnectionNumber ();
27441int
27442main ()
27443{
27444return IceConnectionNumber ();
27445 ;
27446 return 0;
27447}
27448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 ac_cv_lib_ICE_IceConnectionNumber=yes
27451else
cristy8b350f62009-11-15 23:12:43 +000027452 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027453fi
cristy8b350f62009-11-15 23:12:43 +000027454rm -f core conftest.err conftest.$ac_objext \
27455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456LIBS=$ac_check_lib_save_LIBS
27457fi
cristy8b350f62009-11-15 23:12:43 +000027458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027460if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027461 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27462fi
27463
27464 LDFLAGS=$ac_save_LDFLAGS
27465
27466fi
27467
27468if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27470$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27474$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027475 LDFLAGS="$LDFLAGS $X_LIBS"
27476 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27477 LIBS="$X11_LIBS $LIBS"
27478 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27479
27480
cristy8b350f62009-11-15 23:12:43 +000027481$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027482
27483 #
27484 # Check for X11 shared memory extension
27485 #
27486 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027487 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027488if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027489 have_shmctl='yes'
27490fi
27491
27492 if test "$have_shmctl" != 'yes'; then
27493 PERSIST_LIBS=$LIBS
27494 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027496/* end confdefs.h. */
27497
27498/* Override any GCC internal prototype to avoid an error.
27499 Use char because int might match the return type of a GCC
27500 builtin and then its argument prototype would still apply. */
27501#ifdef __cplusplus
27502extern "C"
27503#endif
27504char shmctl ();
27505int
27506main ()
27507{
27508return shmctl ();
27509 ;
27510 return 0;
27511}
27512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027513if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027515fi
cristy8b350f62009-11-15 23:12:43 +000027516rm -f core conftest.err conftest.$ac_objext \
27517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027518 LIBS=$PERSIST_LIBS
27519 fi
27520
27521 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027523$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027524if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 $as_echo_n "(cached) " >&6
27526else
27527 ac_check_lib_save_LIBS=$LIBS
27528LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530/* end confdefs.h. */
27531
27532/* Override any GCC internal prototype to avoid an error.
27533 Use char because int might match the return type of a GCC
27534 builtin and then its argument prototype would still apply. */
27535#ifdef __cplusplus
27536extern "C"
27537#endif
27538char XShmAttach ();
27539int
27540main ()
27541{
27542return XShmAttach ();
27543 ;
27544 return 0;
27545}
27546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 ac_cv_lib_Xext_XShmAttach=yes
27549else
cristy8b350f62009-11-15 23:12:43 +000027550 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027551fi
cristy8b350f62009-11-15 23:12:43 +000027552rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027554LIBS=$ac_check_lib_save_LIBS
27555fi
cristy8b350f62009-11-15 23:12:43 +000027556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027557$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027558if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027560$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027561
27562fi
27563
27564 fi
27565
27566 #
27567 # Check for X11 shape extension
27568 #
cristy8b350f62009-11-15 23:12:43 +000027569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 $as_echo_n "(cached) " >&6
27573else
27574 ac_check_lib_save_LIBS=$LIBS
27575LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577/* end confdefs.h. */
27578
27579/* Override any GCC internal prototype to avoid an error.
27580 Use char because int might match the return type of a GCC
27581 builtin and then its argument prototype would still apply. */
27582#ifdef __cplusplus
27583extern "C"
27584#endif
27585char XShapeCombineMask ();
27586int
27587main ()
27588{
27589return XShapeCombineMask ();
27590 ;
27591 return 0;
27592}
27593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 ac_cv_lib_Xext_XShapeCombineMask=yes
27596else
cristy8b350f62009-11-15 23:12:43 +000027597 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027598fi
cristy8b350f62009-11-15 23:12:43 +000027599rm -f core conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027601LIBS=$ac_check_lib_save_LIBS
27602fi
cristy8b350f62009-11-15 23:12:43 +000027603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027604$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027605if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027606 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027607$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027608
27609fi
27610
cristy8b350f62009-11-15 23:12:43 +000027611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027612$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027613if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027614 $as_echo_n "(cached) " >&6
27615else
27616 ac_check_lib_save_LIBS=$LIBS
27617LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027619/* end confdefs.h. */
27620
27621/* Override any GCC internal prototype to avoid an error.
27622 Use char because int might match the return type of a GCC
27623 builtin and then its argument prototype would still apply. */
27624#ifdef __cplusplus
27625extern "C"
27626#endif
27627char XtSetEventDispatcher ();
27628int
27629main ()
27630{
27631return XtSetEventDispatcher ();
27632 ;
27633 return 0;
27634}
27635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27638else
cristy8b350f62009-11-15 23:12:43 +000027639 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027640fi
cristy8b350f62009-11-15 23:12:43 +000027641rm -f core conftest.err conftest.$ac_objext \
27642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027643LIBS=$ac_check_lib_save_LIBS
27644fi
cristy8b350f62009-11-15 23:12:43 +000027645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027647if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 XT_LIBS='-lXt'
27649fi
27650
27651 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27652fi
27653if test "$no_x" != 'yes'; then
27654 have_x='yes'
27655else
27656 have_x='no'
27657fi
cristy73bd4a52010-10-05 11:24:23 +000027658 if test "$have_x" = 'yes'; then
27659 X11_DELEGATE_TRUE=
27660 X11_DELEGATE_FALSE='#'
27661else
27662 X11_DELEGATE_TRUE='#'
27663 X11_DELEGATE_FALSE=
27664fi
27665
cristy3ed852e2009-09-05 21:47:34 +000027666
27667
27668
27669
27670#
27671# Check for ZLIB
27672#
27673
27674# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027675if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027676 withval=$with_zlib; with_zlib=$withval
27677else
27678 with_zlib='yes'
27679fi
27680
27681
27682if test "$with_zlib" != 'yes'; then
27683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27684fi
27685
27686have_zlib='no'
27687ZLIB_LIBS=''
27688if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27690$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27694$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027695 ZLIB_LIBS=''
27696 failed=0
27697 passed=0
cristy8b350f62009-11-15 23:12:43 +000027698 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027699if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027700 passed=`expr $passed + 1`
27701else
27702 failed=`expr $failed + 1`
27703fi
27704
27705
cristy8b350f62009-11-15 23:12:43 +000027706 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027707if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 passed=`expr $passed + 1`
27709else
27710 failed=`expr $failed + 1`
27711fi
27712
27713
cristy8b350f62009-11-15 23:12:43 +000027714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027716if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027717 $as_echo_n "(cached) " >&6
27718else
27719 ac_check_lib_save_LIBS=$LIBS
27720LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722/* end confdefs.h. */
27723
27724/* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
27727#ifdef __cplusplus
27728extern "C"
27729#endif
27730char compress ();
27731int
27732main ()
27733{
27734return compress ();
27735 ;
27736 return 0;
27737}
27738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 ac_cv_lib_z_compress=yes
27741else
cristy8b350f62009-11-15 23:12:43 +000027742 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027743fi
cristy8b350f62009-11-15 23:12:43 +000027744rm -f core conftest.err conftest.$ac_objext \
27745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027746LIBS=$ac_check_lib_save_LIBS
27747fi
cristy8b350f62009-11-15 23:12:43 +000027748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027750if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027751 passed=`expr $passed + 1`
27752else
27753 failed=`expr $failed + 1`
27754fi
27755
cristy8b350f62009-11-15 23:12:43 +000027756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027757$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027758if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027759 $as_echo_n "(cached) " >&6
27760else
27761 ac_check_lib_save_LIBS=$LIBS
27762LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027764/* end confdefs.h. */
27765
27766/* Override any GCC internal prototype to avoid an error.
27767 Use char because int might match the return type of a GCC
27768 builtin and then its argument prototype would still apply. */
27769#ifdef __cplusplus
27770extern "C"
27771#endif
27772char uncompress ();
27773int
27774main ()
27775{
27776return uncompress ();
27777 ;
27778 return 0;
27779}
27780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027781if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 ac_cv_lib_z_uncompress=yes
27783else
cristy8b350f62009-11-15 23:12:43 +000027784 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027785fi
cristy8b350f62009-11-15 23:12:43 +000027786rm -f core conftest.err conftest.$ac_objext \
27787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027788LIBS=$ac_check_lib_save_LIBS
27789fi
cristy8b350f62009-11-15 23:12:43 +000027790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027792if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 passed=`expr $passed + 1`
27794else
27795 failed=`expr $failed + 1`
27796fi
27797
cristy8b350f62009-11-15 23:12:43 +000027798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027799$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027800if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 $as_echo_n "(cached) " >&6
27802else
27803 ac_check_lib_save_LIBS=$LIBS
27804LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027806/* end confdefs.h. */
27807
27808/* Override any GCC internal prototype to avoid an error.
27809 Use char because int might match the return type of a GCC
27810 builtin and then its argument prototype would still apply. */
27811#ifdef __cplusplus
27812extern "C"
27813#endif
27814char deflate ();
27815int
27816main ()
27817{
27818return deflate ();
27819 ;
27820 return 0;
27821}
27822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027823if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027824 ac_cv_lib_z_deflate=yes
27825else
cristy8b350f62009-11-15 23:12:43 +000027826 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027827fi
cristy8b350f62009-11-15 23:12:43 +000027828rm -f core conftest.err conftest.$ac_objext \
27829 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027830LIBS=$ac_check_lib_save_LIBS
27831fi
cristy8b350f62009-11-15 23:12:43 +000027832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027833$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027834if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027835 passed=`expr $passed + 1`
27836else
27837 failed=`expr $failed + 1`
27838fi
27839
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027842if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 $as_echo_n "(cached) " >&6
27844else
27845 ac_check_lib_save_LIBS=$LIBS
27846LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027848/* end confdefs.h. */
27849
27850/* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853#ifdef __cplusplus
27854extern "C"
27855#endif
27856char inflate ();
27857int
27858main ()
27859{
27860return inflate ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 ac_cv_lib_z_inflate=yes
27867else
cristy8b350f62009-11-15 23:12:43 +000027868 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027869fi
cristy8b350f62009-11-15 23:12:43 +000027870rm -f core conftest.err conftest.$ac_objext \
27871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872LIBS=$ac_check_lib_save_LIBS
27873fi
cristy8b350f62009-11-15 23:12:43 +000027874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027875$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877 passed=`expr $passed + 1`
27878else
27879 failed=`expr $failed + 1`
27880fi
27881
cristy8b350f62009-11-15 23:12:43 +000027882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027883$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027884if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 $as_echo_n "(cached) " >&6
27886else
27887 ac_check_lib_save_LIBS=$LIBS
27888LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027890/* end confdefs.h. */
27891
27892/* Override any GCC internal prototype to avoid an error.
27893 Use char because int might match the return type of a GCC
27894 builtin and then its argument prototype would still apply. */
27895#ifdef __cplusplus
27896extern "C"
27897#endif
27898char gzseek ();
27899int
27900main ()
27901{
27902return gzseek ();
27903 ;
27904 return 0;
27905}
27906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 ac_cv_lib_z_gzseek=yes
27909else
cristy8b350f62009-11-15 23:12:43 +000027910 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027911fi
cristy8b350f62009-11-15 23:12:43 +000027912rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027914LIBS=$ac_check_lib_save_LIBS
27915fi
cristy8b350f62009-11-15 23:12:43 +000027916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027918if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027919 passed=`expr $passed + 1`
27920else
27921 failed=`expr $failed + 1`
27922fi
27923
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 $as_echo_n "(cached) " >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027932/* end confdefs.h. */
27933
27934/* Override any GCC internal prototype to avoid an error.
27935 Use char because int might match the return type of a GCC
27936 builtin and then its argument prototype would still apply. */
27937#ifdef __cplusplus
27938extern "C"
27939#endif
27940char gztell ();
27941int
27942main ()
27943{
27944return gztell ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 ac_cv_lib_z_gztell=yes
27951else
cristy8b350f62009-11-15 23:12:43 +000027952 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027953fi
cristy8b350f62009-11-15 23:12:43 +000027954rm -f core conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027956LIBS=$ac_check_lib_save_LIBS
27957fi
cristy8b350f62009-11-15 23:12:43 +000027958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 passed=`expr $passed + 1`
27962else
27963 failed=`expr $failed + 1`
27964fi
27965
cristy8b350f62009-11-15 23:12:43 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo_n "checking if ZLIB package is complete... " >&6; }
27968 if test $passed -gt 0; then
27969 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27971$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027972 have_zlib='no (failed tests)'
27973 else
27974 ZLIB_LIBS='-lz'
27975 LIBS="$ZLIB_LIBS $LIBS"
27976
cristy8b350f62009-11-15 23:12:43 +000027977$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027978
cristyad38abe2012-12-23 23:03:21 +000027979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27980$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027981 have_zlib='yes'
27982 fi
27983 else
cristyad38abe2012-12-23 23:03:21 +000027984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27985$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027986 fi
27987fi
cristy73bd4a52010-10-05 11:24:23 +000027988 if test "$have_zlib" = 'yes'; then
27989 ZLIB_DELEGATE_TRUE=
27990 ZLIB_DELEGATE_FALSE='#'
27991else
27992 ZLIB_DELEGATE_TRUE='#'
27993 ZLIB_DELEGATE_FALSE=
27994fi
27995
cristy3ed852e2009-09-05 21:47:34 +000027996
27997
cristy5eef09f2012-10-16 12:08:28 +000027998# whether modules are built or not.
27999with_ltdl='yes'
28000have_ltdl='no'
28001LTDL_LIBS=''
28002if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28004$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28006$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28008$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028009 failed=0
28010 passed=0
28011 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28012if test "x$ac_cv_header_ltdl_h" = xyes; then :
28013 passed=`expr $passed + 1`
28014else
28015 failed=`expr $failed + 1`
28016fi
28017
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28020$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28021if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28022 $as_echo_n "(cached) " >&6
28023else
28024 ac_check_lib_save_LIBS=$LIBS
28025LIBS="-lltdl $LIBS"
28026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28027/* end confdefs.h. */
28028
28029/* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035char lt_dlinit ();
28036int
28037main ()
28038{
28039return lt_dlinit ();
28040 ;
28041 return 0;
28042}
28043_ACEOF
28044if ac_fn_c_try_link "$LINENO"; then :
28045 ac_cv_lib_ltdl_lt_dlinit=yes
28046else
28047 ac_cv_lib_ltdl_lt_dlinit=no
28048fi
28049rm -f core conftest.err conftest.$ac_objext \
28050 conftest$ac_exeext conftest.$ac_ext
28051LIBS=$ac_check_lib_save_LIBS
28052fi
28053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28054$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28055if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28056 passed=`expr $passed + 1`
28057else
28058 failed=`expr $failed + 1`
28059fi
28060
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28062$as_echo_n "checking if libltdl package is complete... " >&6; }
28063 if test $passed -gt 0 ; then
28064 if test $failed -gt 0 ; then
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28066$as_echo "no -- some components failed test" >&6; }
28067 have_ltdl='no (failed tests)'
28068 else
28069 LTDL_LIBS='-lltdl'
28070 LIBS="$LTDL_LIBS $LIBS"
28071
28072$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28073
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28075$as_echo "yes" >&6; }
28076 have_ltdl='yes'
28077 fi
28078 else
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28080$as_echo "no" >&6; }
28081 fi
cristyaf4cbf32012-10-16 23:47:41 +000028082 if test "$have_ltdl" != 'yes' ; then
28083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28085as_fn_error 1 "libltdl is required for modules build
28086See \`config.log' for more details" "$LINENO" 5; }
28087 fi
cristy5eef09f2012-10-16 12:08:28 +000028088fi
28089 if test "$have_ltdl" != 'no'; then
28090 WITH_LTDL_TRUE=
28091 WITH_LTDL_FALSE='#'
28092else
28093 WITH_LTDL_TRUE='#'
28094 WITH_LTDL_FALSE=
28095fi
28096
28097
cristy3ed852e2009-09-05 21:47:34 +000028098#
28099# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28100#
28101LIB_DL=''
28102if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028104$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028105if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 $as_echo_n "(cached) " >&6
28107else
28108 ac_check_lib_save_LIBS=$LIBS
28109LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028111/* end confdefs.h. */
28112
28113/* Override any GCC internal prototype to avoid an error.
28114 Use char because int might match the return type of a GCC
28115 builtin and then its argument prototype would still apply. */
28116#ifdef __cplusplus
28117extern "C"
28118#endif
28119char dlopen ();
28120int
28121main ()
28122{
28123return dlopen ();
28124 ;
28125 return 0;
28126}
28127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 ac_cv_lib_dl_dlopen=yes
28130else
cristy8b350f62009-11-15 23:12:43 +000028131 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028132fi
cristy8b350f62009-11-15 23:12:43 +000028133rm -f core conftest.err conftest.$ac_objext \
28134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028135LIBS=$ac_check_lib_save_LIBS
28136fi
cristy8b350f62009-11-15 23:12:43 +000028137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028138$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028139if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 LIB_DL='-ldl'
28141fi
28142
28143 LIBS="$LIB_DL $LIBS"
28144fi
28145
28146
28147
28148#
28149# Check for Autotrace delegate library.
28150#
28151
28152# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028153if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028154 withval=$with_autotrace; with_autotrace=$withval
28155else
28156 with_autotrace='no'
28157fi
28158
28159
28160if test "$with_autotrace" != 'yes'; then
28161 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28162fi
28163
28164have_autotrace='no'
28165AUTOTRACE_CFLAGS=""
28166AUTOTRACE_LIBS=""
28167AUTOTRACE_PKG=""
28168if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28170$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028171
28172pkg_failed=no
28173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28174$as_echo_n "checking for AUTOTRACE... " >&6; }
28175
28176if test -n "$AUTOTRACE_CFLAGS"; then
28177 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28178 elif test -n "$PKG_CONFIG"; then
28179 if test -n "$PKG_CONFIG" && \
28180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28181 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28182 ac_status=$?
28183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28184 test $ac_status = 0; }; then
28185 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28186else
28187 pkg_failed=yes
28188fi
28189 else
28190 pkg_failed=untried
28191fi
28192if test -n "$AUTOTRACE_LIBS"; then
28193 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28194 elif test -n "$PKG_CONFIG"; then
28195 if test -n "$PKG_CONFIG" && \
28196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28197 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28198 ac_status=$?
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; then
28201 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28202else
28203 pkg_failed=yes
28204fi
28205 else
28206 pkg_failed=untried
28207fi
28208
28209
28210
28211if test $pkg_failed = yes; then
28212
28213if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28214 _pkg_short_errors_supported=yes
28215else
28216 _pkg_short_errors_supported=no
28217fi
28218 if test $_pkg_short_errors_supported = yes; then
28219 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28220 else
28221 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28222 fi
28223 # Put the nasty error message in config.log where it belongs
28224 echo "$AUTOTRACE_PKG_ERRORS" >&5
28225
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28227$as_echo "no" >&6; }
28228 have_autotrace=no
28229elif test $pkg_failed = untried; then
28230 have_autotrace=no
28231else
28232 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28233 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28235$as_echo "yes" >&6; }
28236 have_autotrace=yes
28237fi
cristyad38abe2012-12-23 23:03:21 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28239$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028240fi
28241
28242if test "$have_autotrace" = 'yes'; then
28243 failed=0
28244
cristy8b350f62009-11-15 23:12:43 +000028245$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028246
cristyc6722092012-10-14 00:19:31 +000028247 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028248 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028249 fi
28250fi
28251
cristy73bd4a52010-10-05 11:24:23 +000028252 if test "$have_autotrace" = 'yes'; then
28253 AUTOTRACE_DELEGATE_TRUE=
28254 AUTOTRACE_DELEGATE_FALSE='#'
28255else
28256 AUTOTRACE_DELEGATE_TRUE='#'
28257 AUTOTRACE_DELEGATE_FALSE=
28258fi
28259
cristy3ed852e2009-09-05 21:47:34 +000028260
28261
28262
28263
28264#
28265# Check for Display Postscript delegate library.
28266#
28267
28268# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028269if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 withval=$with_dps; with_dps=$withval
28271else
28272 with_dps='yes'
28273fi
28274
28275
28276if test "$with_dps" != 'yes'; then
28277 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28278fi
28279
28280have_dps='no'
28281DPS_LIBS=''
28282if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28284$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028286$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28288$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028289 failed=0
28290 passed=0
28291 PERSIST_CPPFLAGS="$CPPFLAGS"
28292 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028293 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028294if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 passed=`expr $passed + 1`
28296else
28297 failed=`expr $failed + 1`
28298fi
28299
28300
28301 # DPS issues:
28302 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28303 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28304 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28305 # ImageMagick itself doesn't use -lXt.
28306 have_libdps='no'
28307 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028310if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 $as_echo_n "(cached) " >&6
28312else
28313 ac_check_lib_save_LIBS=$LIBS
28314LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028316/* end confdefs.h. */
28317
28318/* Override any GCC internal prototype to avoid an error.
28319 Use char because int might match the return type of a GCC
28320 builtin and then its argument prototype would still apply. */
28321#ifdef __cplusplus
28322extern "C"
28323#endif
28324char DPSInitialize ();
28325int
28326main ()
28327{
28328return DPSInitialize ();
28329 ;
28330 return 0;
28331}
28332_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028333if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 ac_cv_lib_dps_DPSInitialize=yes
28335else
cristy8b350f62009-11-15 23:12:43 +000028336 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028337fi
cristy8b350f62009-11-15 23:12:43 +000028338rm -f core conftest.err conftest.$ac_objext \
28339 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028340LIBS=$ac_check_lib_save_LIBS
28341fi
cristy8b350f62009-11-15 23:12:43 +000028342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028344if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028345 have_libdps='yes'
28346else
28347 have_libdps='no'
28348fi
28349
28350 if test "$have_libdps" != 'yes'; then
28351 # Unset cache variable so we can try again.
28352 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028354$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028355if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028356 $as_echo_n "(cached) " >&6
28357else
28358 ac_check_lib_save_LIBS=$LIBS
28359LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028361/* end confdefs.h. */
28362
28363/* Override any GCC internal prototype to avoid an error.
28364 Use char because int might match the return type of a GCC
28365 builtin and then its argument prototype would still apply. */
28366#ifdef __cplusplus
28367extern "C"
28368#endif
28369char DPSInitialize ();
28370int
28371main ()
28372{
28373return DPSInitialize ();
28374 ;
28375 return 0;
28376}
28377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028379 ac_cv_lib_dps_DPSInitialize=yes
28380else
cristy8b350f62009-11-15 23:12:43 +000028381 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028382fi
cristy8b350f62009-11-15 23:12:43 +000028383rm -f core conftest.err conftest.$ac_objext \
28384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028385LIBS=$ac_check_lib_save_LIBS
28386fi
cristy8b350f62009-11-15 23:12:43 +000028387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028388$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028389if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028390 have_libdps='yes'
28391else
28392 have_libdps='no'
28393fi
28394
28395 if test "$have_libdps" = 'yes'; then
28396 LIBDPS_XT='-lXt'
28397 fi
28398 fi
28399 if test "$have_libdps" = 'yes'; then
28400 passed=`expr $passed + 1`
28401 else
28402 failed=`expr $failed + 1`
28403 fi
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028406if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 $as_echo_n "(cached) " >&6
28408else
28409 ac_check_lib_save_LIBS=$LIBS
28410LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028412/* end confdefs.h. */
28413
28414/* Override any GCC internal prototype to avoid an error.
28415 Use char because int might match the return type of a GCC
28416 builtin and then its argument prototype would still apply. */
28417#ifdef __cplusplus
28418extern "C"
28419#endif
28420char XDPSPixelsPerPoint ();
28421int
28422main ()
28423{
28424return XDPSPixelsPerPoint ();
28425 ;
28426 return 0;
28427}
28428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028430 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28431else
cristy8b350f62009-11-15 23:12:43 +000028432 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028433fi
cristy8b350f62009-11-15 23:12:43 +000028434rm -f core conftest.err conftest.$ac_objext \
28435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028436LIBS=$ac_check_lib_save_LIBS
28437fi
cristy8b350f62009-11-15 23:12:43 +000028438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028440if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028441 passed=`expr $passed + 1`
28442else
28443 failed=`expr $failed + 1`
28444fi
28445
cristy8b350f62009-11-15 23:12:43 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo_n "checking if DPS package is complete... " >&6; }
28448 if test $passed -gt 0; then
28449 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28451$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028452 have_dps='no (failed tests)'
28453 CPPFLAGS="$PERSIST_CPPFLAGS"
28454 else
28455 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28456 LIBS="$DPS_LIBS $LIBS"
28457
cristy8b350f62009-11-15 23:12:43 +000028458$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028459
cristyad38abe2012-12-23 23:03:21 +000028460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28461$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028462 have_dps='yes'
28463 fi
28464 else
cristyad38abe2012-12-23 23:03:21 +000028465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28466$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028467 CPPFLAGS=$PERSIST_CPPFLAGS
28468 fi
28469fi
cristy73bd4a52010-10-05 11:24:23 +000028470 if test "$have_dps" = 'yes'; then
28471 DPS_DELEGATE_TRUE=
28472 DPS_DELEGATE_FALSE='#'
28473else
28474 DPS_DELEGATE_TRUE='#'
28475 DPS_DELEGATE_FALSE=
28476fi
28477
cristy3ed852e2009-09-05 21:47:34 +000028478
28479
28480
28481#
28482# Check for DJVU delegate library.
28483#
28484
28485# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028486if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028487 withval=$with_djvu; with_djvu=$withval
28488else
28489 with_djvu='yes'
28490fi
28491
28492
28493if test "$with_djvu" != 'yes'; then
28494 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28495fi
28496
28497have_djvu='no'
28498DJVU_LIBS=''
28499if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28501$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028503$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28505$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028506 failed=0
28507 passed=0
cristy8b350f62009-11-15 23:12:43 +000028508 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028509if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028510 passed=`expr $passed + 1`
28511else
28512 failed=`expr $failed + 1`
28513fi
28514
28515
cristy8b350f62009-11-15 23:12:43 +000028516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028517$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028518if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028519 $as_echo_n "(cached) " >&6
28520else
28521 ac_check_lib_save_LIBS=$LIBS
28522LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028524/* end confdefs.h. */
28525
28526/* Override any GCC internal prototype to avoid an error.
28527 Use char because int might match the return type of a GCC
28528 builtin and then its argument prototype would still apply. */
28529#ifdef __cplusplus
28530extern "C"
28531#endif
28532char ddjvu_context_create ();
28533int
28534main ()
28535{
28536return ddjvu_context_create ();
28537 ;
28538 return 0;
28539}
28540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028541if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028542 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28543else
cristy8b350f62009-11-15 23:12:43 +000028544 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028545fi
cristy8b350f62009-11-15 23:12:43 +000028546rm -f core conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028548LIBS=$ac_check_lib_save_LIBS
28549fi
cristy8b350f62009-11-15 23:12:43 +000028550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028551$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028552if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 passed=`expr $passed + 1`
28554else
28555 failed=`expr $failed + 1`
28556fi
28557
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo_n "checking if DJVU package is complete... " >&6; }
28560 if test $passed -gt 0; then
28561 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28563$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028564 have_djvu='no (failed tests)'
28565 else
28566 DJVU_LIBS='-ldjvulibre'
28567 LIBS="$DJVU_LIBS $LIBS"
28568
cristy8b350f62009-11-15 23:12:43 +000028569$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028570
cristyad38abe2012-12-23 23:03:21 +000028571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28572$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028573 have_djvu='yes'
28574 fi
28575 else
cristyad38abe2012-12-23 23:03:21 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28577$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028578 fi
28579fi
cristy73bd4a52010-10-05 11:24:23 +000028580 if test "$have_djvu" = 'yes'; then
28581 DJVU_DELEGATE_TRUE=
28582 DJVU_DELEGATE_FALSE='#'
28583else
28584 DJVU_DELEGATE_TRUE='#'
28585 DJVU_DELEGATE_FALSE=
28586fi
28587
cristy3ed852e2009-09-05 21:47:34 +000028588
28589
28590
28591#
cristy430a7312010-01-21 20:44:04 +000028592# Set DejaVu font directory.
28593#
28594
28595# Check whether --with-dejavu-font-dir was given.
28596if test "${with_dejavu_font_dir+set}" = set; then :
28597 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28598else
28599 with_dejavu_font_dir='default'
28600fi
28601
28602
28603if test "$with_dejavu_font_dir" != 'default'; then
28604 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28605fi
28606
28607
28608#
cristy3ed852e2009-09-05 21:47:34 +000028609# Check for FFTW delegate library.
28610#
28611
28612# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028613if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028614 withval=$with_fftw; with_fftw=$withval
28615else
28616 with_fftw='yes'
28617fi
28618
28619
28620if test "$with_fftw" != 'yes'; then
28621 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28622fi
28623
cristy81beccd2011-10-03 18:17:24 +000028624have_fftw='no'
28625FFTW_LIBS=''
28626if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28628$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28630$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28632$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028633 failed=0
28634 passed=0
28635 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28636if test "x$ac_cv_header_fftw3_h" = xyes; then :
28637 passed=`expr $passed + 1`
28638else
28639 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028640fi
28641
cristy81beccd2011-10-03 18:17:24 +000028642
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28644$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28645if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28646 $as_echo_n "(cached) " >&6
28647else
28648 ac_check_lib_save_LIBS=$LIBS
28649LIBS="-lfftw3 $LIBS"
28650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28651/* end confdefs.h. */
28652
28653/* Override any GCC internal prototype to avoid an error.
28654 Use char because int might match the return type of a GCC
28655 builtin and then its argument prototype would still apply. */
28656#ifdef __cplusplus
28657extern "C"
28658#endif
28659char fftw_execute ();
28660int
28661main ()
28662{
28663return fftw_execute ();
28664 ;
28665 return 0;
28666}
28667_ACEOF
28668if ac_fn_c_try_link "$LINENO"; then :
28669 ac_cv_lib_fftw3_fftw_execute=yes
28670else
28671 ac_cv_lib_fftw3_fftw_execute=no
28672fi
28673rm -f core conftest.err conftest.$ac_objext \
28674 conftest$ac_exeext conftest.$ac_ext
28675LIBS=$ac_check_lib_save_LIBS
28676fi
28677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28678$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28679if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28680 passed=`expr $passed + 1`
28681else
28682 failed=`expr $failed + 1`
28683fi
28684
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28686$as_echo_n "checking if FFTW package is complete... " >&6; }
28687 if test $passed -gt 0; then
28688 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28690$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028691 have_fftw='no (failed tests)'
28692 else
28693 FFTW_LIBS='-lfftw3'
28694 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028695
cristy8b350f62009-11-15 23:12:43 +000028696$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028697
cristyad38abe2012-12-23 23:03:21 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28699$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028700 have_fftw='yes'
28701 fi
28702 else
cristyad38abe2012-12-23 23:03:21 +000028703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28704$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028705 fi
28706fi
cristy73bd4a52010-10-05 11:24:23 +000028707 if test "$have_fftw" = 'yes'; then
28708 FFTW_DELEGATE_TRUE=
28709 FFTW_DELEGATE_FALSE='#'
28710else
28711 FFTW_DELEGATE_TRUE='#'
28712 FFTW_DELEGATE_FALSE=
28713fi
28714
cristy3ed852e2009-09-05 21:47:34 +000028715
28716
28717
28718#
28719# Check for FlashPIX delegate library.
28720#
28721
28722# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028723if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028724 withval=$with_fpx; with_fpx=$withval
28725else
28726 with_fpx='yes'
28727fi
28728
28729
28730if test "$with_fpx" != 'yes'; then
28731 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28732fi
28733
28734have_fpx='no'
28735FPX_LIBS=''
28736if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28738$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028740$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28742$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028743 failed=0
28744 passed=0
28745 ac_ext=cpp
28746ac_cpp='$CXXCPP $CPPFLAGS'
28747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28750
28751
cristy8b350f62009-11-15 23:12:43 +000028752ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028753if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 passed=`expr $passed + 1`
28755else
28756 failed=`expr $failed + 1`
28757fi
28758
28759
cristy8b350f62009-11-15 23:12:43 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028761$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028762if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028763 $as_echo_n "(cached) " >&6
28764else
28765 ac_check_lib_save_LIBS=$LIBS
28766LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028768/* end confdefs.h. */
28769
28770/* Override any GCC internal prototype to avoid an error.
28771 Use char because int might match the return type of a GCC
28772 builtin and then its argument prototype would still apply. */
28773#ifdef __cplusplus
28774extern "C"
28775#endif
28776char FPX_OpenImageByFilename ();
28777int
28778main ()
28779{
28780return FPX_OpenImageByFilename ();
28781 ;
28782 return 0;
28783}
28784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028785if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028786 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28787else
cristy8b350f62009-11-15 23:12:43 +000028788 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028789fi
cristy8b350f62009-11-15 23:12:43 +000028790rm -f core conftest.err conftest.$ac_objext \
28791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028792LIBS=$ac_check_lib_save_LIBS
28793fi
cristy8b350f62009-11-15 23:12:43 +000028794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028796if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028797 passed=`expr $passed + 1`
28798else
28799 failed=`expr $failed + 1`
28800fi
28801
28802 ac_ext=c
28803ac_cpp='$CPP $CPPFLAGS'
28804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28806ac_compiler_gnu=$ac_cv_c_compiler_gnu
28807
cristy8b350f62009-11-15 23:12:43 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028809$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28810 if test $passed -gt 0; then
28811 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28813$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028814 have_fpx='no (failed tests)'
28815 else
28816 FPX_LIBS='-lfpx'
28817
cristy8b350f62009-11-15 23:12:43 +000028818$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028819
cristyad38abe2012-12-23 23:03:21 +000028820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28821$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028822 have_fpx='yes'
28823 PERLMAINCC="$CXX"
28824 fi
28825 else
cristyad38abe2012-12-23 23:03:21 +000028826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28827$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028828 fi
28829fi
cristy73bd4a52010-10-05 11:24:23 +000028830 if test "$have_fpx" = 'yes'; then
28831 FPX_DELEGATE_TRUE=
28832 FPX_DELEGATE_FALSE='#'
28833else
28834 FPX_DELEGATE_TRUE='#'
28835 FPX_DELEGATE_FALSE=
28836fi
28837
cristy3ed852e2009-09-05 21:47:34 +000028838
28839
28840
28841#
28842# Check for fontconfig delegate library.
28843#
28844
28845# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028846if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028847 withval=$with_fontconfig; with_fontconfig=$withval
28848else
cristyfc3d0222012-02-07 15:05:57 +000028849 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028850fi
28851
28852
28853if test "$with_fontconfig" != 'yes'; then
28854 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28855fi
28856
28857have_fontconfig='no'
28858FONTCONFIG_CFLAGS=""
28859FONTCONFIG_LIBS=""
28860FONTCONFIG_PKG=""
28861if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28863$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028864
28865pkg_failed=no
28866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28867$as_echo_n "checking for FONTCONFIG... " >&6; }
28868
28869if test -n "$FONTCONFIG_CFLAGS"; then
28870 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28871 elif test -n "$PKG_CONFIG"; then
28872 if test -n "$PKG_CONFIG" && \
28873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28874 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28875 ac_status=$?
28876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28877 test $ac_status = 0; }; then
28878 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28879else
28880 pkg_failed=yes
28881fi
28882 else
28883 pkg_failed=untried
28884fi
28885if test -n "$FONTCONFIG_LIBS"; then
28886 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28887 elif test -n "$PKG_CONFIG"; then
28888 if test -n "$PKG_CONFIG" && \
28889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28890 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28891 ac_status=$?
28892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28893 test $ac_status = 0; }; then
28894 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28895else
28896 pkg_failed=yes
28897fi
28898 else
28899 pkg_failed=untried
28900fi
28901
28902
28903
28904if test $pkg_failed = yes; then
28905
28906if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28907 _pkg_short_errors_supported=yes
28908else
28909 _pkg_short_errors_supported=no
28910fi
28911 if test $_pkg_short_errors_supported = yes; then
28912 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28913 else
28914 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28915 fi
28916 # Put the nasty error message in config.log where it belongs
28917 echo "$FONTCONFIG_PKG_ERRORS" >&5
28918
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28920$as_echo "no" >&6; }
28921 have_fontconfig=no
28922elif test $pkg_failed = untried; then
28923 have_fontconfig=no
28924else
28925 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28926 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28928$as_echo "yes" >&6; }
28929 have_fontconfig=yes
28930fi
cristyad38abe2012-12-23 23:03:21 +000028931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28932$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028933fi
28934
28935if test "$have_fontconfig" = 'yes'; then
28936
cristy8b350f62009-11-15 23:12:43 +000028937$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028938
cristyc6722092012-10-14 00:19:31 +000028939 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028940 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028941 fi
cristy3ed852e2009-09-05 21:47:34 +000028942fi
28943
cristy73bd4a52010-10-05 11:24:23 +000028944 if test "$have_fontconfig" = 'yes'; then
28945 FONTCONFIG_DELEGATE_TRUE=
28946 FONTCONFIG_DELEGATE_FALSE='#'
28947else
28948 FONTCONFIG_DELEGATE_TRUE='#'
28949 FONTCONFIG_DELEGATE_FALSE=
28950fi
28951
cristy3ed852e2009-09-05 21:47:34 +000028952
28953
28954
28955
28956#
cristy03f187e2013-01-24 00:22:19 +000028957# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028958#
28959
28960# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028961if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028962 withval=$with_freetype; with_freetype=$withval
28963else
28964 with_freetype='yes'
28965fi
28966
28967
cristy3ed852e2009-09-05 21:47:34 +000028968if test "$with_freetype" != 'yes'; then
28969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28970fi
28971
cristy81beccd2011-10-03 18:17:24 +000028972have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028973FREETYPE_CFLAGS=""
28974FREETYPE_LIBS=""
28975FREETYPE_PKG=""
28976if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28978$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028979
28980pkg_failed=no
28981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28982$as_echo_n "checking for FREETYPE... " >&6; }
28983
28984if test -n "$FREETYPE_CFLAGS"; then
28985 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28986 elif test -n "$PKG_CONFIG"; then
28987 if test -n "$PKG_CONFIG" && \
28988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28989 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28990 ac_status=$?
28991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28992 test $ac_status = 0; }; then
28993 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28994else
28995 pkg_failed=yes
28996fi
28997 else
28998 pkg_failed=untried
28999fi
29000if test -n "$FREETYPE_LIBS"; then
29001 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29002 elif test -n "$PKG_CONFIG"; then
29003 if test -n "$PKG_CONFIG" && \
29004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29005 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29006 ac_status=$?
29007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29008 test $ac_status = 0; }; then
29009 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29010else
29011 pkg_failed=yes
29012fi
29013 else
29014 pkg_failed=untried
29015fi
29016
29017
29018
29019if test $pkg_failed = yes; then
29020
29021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29022 _pkg_short_errors_supported=yes
29023else
29024 _pkg_short_errors_supported=no
29025fi
29026 if test $_pkg_short_errors_supported = yes; then
29027 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29028 else
29029 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29030 fi
29031 # Put the nasty error message in config.log where it belongs
29032 echo "$FREETYPE_PKG_ERRORS" >&5
29033
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29035$as_echo "no" >&6; }
29036 have_freetype=no
29037elif test $pkg_failed = untried; then
29038 have_freetype=no
29039else
29040 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29041 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29043$as_echo "yes" >&6; }
29044 have_freetype=yes
29045fi
cristyad38abe2012-12-23 23:03:21 +000029046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29047$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029048fi
29049
cristy03f187e2013-01-24 00:22:19 +000029050if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029051
cristy8b350f62009-11-15 23:12:43 +000029052$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029053
cristy03f187e2013-01-24 00:22:19 +000029054 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029055fi
cristy03f187e2013-01-24 00:22:19 +000029056
cristy73bd4a52010-10-05 11:24:23 +000029057 if test "$have_freetype" = 'yes'; then
29058 FREETYPE_DELEGATE_TRUE=
29059 FREETYPE_DELEGATE_FALSE='#'
29060else
29061 FREETYPE_DELEGATE_TRUE='#'
29062 FREETYPE_DELEGATE_FALSE=
29063fi
29064
cristy3ed852e2009-09-05 21:47:34 +000029065
29066
29067
cristy03f187e2013-01-24 00:22:19 +000029068
cristy3ed852e2009-09-05 21:47:34 +000029069#
29070# Check for Ghostscript library or framework.
29071#
29072# Test for iapi.h & test for gsapi_new_instance in -lgs
29073# or -framework Ghostscript
29074
29075
29076# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029077if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029078 withval=$with_gslib; with_gslib=$withval
29079else
29080 with_gslib='no'
29081fi
29082
29083
cristyb7931f12009-09-25 10:22:21 +000029084gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029085if test "$with_gslib" != 'yes'; then
29086 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29087fi
29088
29089have_gslib='no'
29090GS_LIBS=''
29091if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29093$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029095$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29097$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029098 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029099 failed=0
29100 passed=0
cristy8b350f62009-11-15 23:12:43 +000029101 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029102if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029103 passed=`expr $passed + 1`
29104else
29105 failed=`expr $failed + 1`
29106fi
29107
29108
cristy8b350f62009-11-15 23:12:43 +000029109 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029110if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029111 passed=`expr $passed + 1`
29112else
29113 failed=`expr $failed + 1`
29114fi
29115
29116
cristy73bd4a52010-10-05 11:24:23 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29118$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029119if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029120 $as_echo_n "(cached) " >&6
29121else
29122 ac_check_framework_save_LIBS=$LIBS
29123LIBS="-framework Ghostscript $LIBS"
29124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125/* end confdefs.h. */
29126
29127/* Override any GCC internal prototype to avoid an error.
29128 Use char because int might match the return type of a GCC
29129 builtin and then its argument prototype would still apply. */
29130#ifdef __cplusplus
29131extern "C"
29132#endif
29133char gsapi_new_instance ();
29134int
29135main ()
29136{
29137return gsapi_new_instance ();
29138 ;
29139 return 0;
29140}
29141_ACEOF
29142if ac_fn_c_try_link "$LINENO"; then :
29143 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29144else
29145 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29146fi
29147rm -f core conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
29149LIBS=$ac_check_framework_save_LIBS
29150fi
29151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29152$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29153if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29154 framework=`expr $framework + 1`
29155else
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029157$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029158if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029159 $as_echo_n "(cached) " >&6
29160else
29161 ac_check_lib_save_LIBS=$LIBS
29162LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029164/* end confdefs.h. */
29165
29166/* Override any GCC internal prototype to avoid an error.
29167 Use char because int might match the return type of a GCC
29168 builtin and then its argument prototype would still apply. */
29169#ifdef __cplusplus
29170extern "C"
29171#endif
29172char gsapi_new_instance ();
29173int
29174main ()
29175{
29176return gsapi_new_instance ();
29177 ;
29178 return 0;
29179}
29180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029181if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 ac_cv_lib_gs_gsapi_new_instance=yes
29183else
cristy8b350f62009-11-15 23:12:43 +000029184 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029185fi
cristy8b350f62009-11-15 23:12:43 +000029186rm -f core conftest.err conftest.$ac_objext \
29187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029188LIBS=$ac_check_lib_save_LIBS
29189fi
cristy8b350f62009-11-15 23:12:43 +000029190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029191$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029192if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029193 passed=`expr $passed + 1`
29194else
29195 failed=`expr $failed + 1`
29196fi
cristy73bd4a52010-10-05 11:24:23 +000029197
29198fi
cristy8b350f62009-11-15 23:12:43 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29201 if test $passed -gt 0; then
29202 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29204$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029205 have_gslib='no (failed tests)'
29206 else
29207 if test $framework -gt 0; then
29208 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029209 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29211$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029212 else
cristyad38abe2012-12-23 23:03:21 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29214$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029215 GS_LIBS='-lgs'
29216 fi
29217 LIBS="$GS_LIBS $LIBS"
29218
cristy8b350f62009-11-15 23:12:43 +000029219$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029220
29221 have_gslib='yes'
29222 fi
29223 else
cristyad38abe2012-12-23 23:03:21 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29225$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029226 fi
29227fi
cristy73bd4a52010-10-05 11:24:23 +000029228 if test "$have_gslib" = 'yes'; then
29229 GS_DELEGATE_TRUE=
29230 GS_DELEGATE_FALSE='#'
29231else
29232 GS_DELEGATE_TRUE='#'
29233 GS_DELEGATE_FALSE=
29234fi
29235
cristy3ed852e2009-09-05 21:47:34 +000029236
29237
29238# Set default font search path
29239
29240# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029241if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029242 withval=$with_fontpath; with_fontpath=$withval
29243else
29244 with_fontpath=''
29245fi
29246
29247
29248if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29249 with_fontpath=''
29250else
29251
29252cat >>confdefs.h <<_ACEOF
29253#define MAGICK_FONT_PATH "$with_fontpath"
29254_ACEOF
29255
29256fi
29257if test "$with_fontpath=" != ''; then
29258 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29259fi
29260
29261# Set Ghostscript font directory
29262
29263# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029264if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29266else
29267 with_gs_font_dir='default'
29268fi
29269
29270
29271if test "$with_gs_font_dir" != 'default'; then
29272 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29273fi
29274
29275
29276#
29277# Check for GVC delegate library.
29278#
29279
29280# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029281if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029282 withval=$with_gvc; with_gvc=$withval
29283else
cristy1b70dc82012-07-01 23:15:05 +000029284 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029285fi
29286
29287
29288if test "$with_gvc" != 'yes'; then
29289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29290fi
29291
29292GVC_PKG=""
29293if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29295$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029296
29297pkg_failed=no
29298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29299$as_echo_n "checking for GVC... " >&6; }
29300
29301if test -n "$GVC_CFLAGS"; then
29302 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29303 elif test -n "$PKG_CONFIG"; then
29304 if test -n "$PKG_CONFIG" && \
29305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29306 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29307 ac_status=$?
29308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309 test $ac_status = 0; }; then
29310 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29311else
29312 pkg_failed=yes
29313fi
29314 else
29315 pkg_failed=untried
29316fi
29317if test -n "$GVC_LIBS"; then
29318 pkg_cv_GVC_LIBS="$GVC_LIBS"
29319 elif test -n "$PKG_CONFIG"; then
29320 if test -n "$PKG_CONFIG" && \
29321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29322 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29323 ac_status=$?
29324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29325 test $ac_status = 0; }; then
29326 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29327else
29328 pkg_failed=yes
29329fi
29330 else
29331 pkg_failed=untried
29332fi
29333
29334
29335
29336if test $pkg_failed = yes; then
29337
29338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29339 _pkg_short_errors_supported=yes
29340else
29341 _pkg_short_errors_supported=no
29342fi
29343 if test $_pkg_short_errors_supported = yes; then
29344 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29345 else
29346 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29347 fi
29348 # Put the nasty error message in config.log where it belongs
29349 echo "$GVC_PKG_ERRORS" >&5
29350
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29352$as_echo "no" >&6; }
29353 have_gvc=no
29354elif test $pkg_failed = untried; then
29355 have_gvc=no
29356else
29357 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29358 GVC_LIBS=$pkg_cv_GVC_LIBS
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29360$as_echo "yes" >&6; }
29361 have_gvc=yes
29362fi
cristyad38abe2012-12-23 23:03:21 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29364$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029365fi
29366
29367if test "$have_gvc" = 'yes'; then
29368
cristy8b350f62009-11-15 23:12:43 +000029369$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029370
cristyc6722092012-10-14 00:19:31 +000029371 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029372 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29373 fi
29374fi
29375
cristy73bd4a52010-10-05 11:24:23 +000029376 if test "$have_gvc" = 'yes'; then
29377 GVC_DELEGATE_TRUE=
29378 GVC_DELEGATE_FALSE='#'
29379else
29380 GVC_DELEGATE_TRUE='#'
29381 GVC_DELEGATE_FALSE=
29382fi
29383
cristy3ed852e2009-09-05 21:47:34 +000029384
29385
29386
29387
29388#
29389# Check for JBIG delegate library.
29390#
29391
29392
29393# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029394if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029395 withval=$with_jbig; with_jbig=$withval
29396else
29397 with_jbig='yes'
29398fi
29399
29400
29401have_jbig='no'
29402JBIG_LIBS=''
29403if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29405$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029407$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29409$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029410 failed=0
29411 passed=0
cristy8b350f62009-11-15 23:12:43 +000029412 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029413if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029414 passed=`expr $passed + 1`
29415else
29416 failed=`expr $failed + 1`
29417fi
29418
29419
cristy8b350f62009-11-15 23:12:43 +000029420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029421$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029422if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 $as_echo_n "(cached) " >&6
29424else
29425 ac_check_lib_save_LIBS=$LIBS
29426LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029428/* end confdefs.h. */
29429
29430/* Override any GCC internal prototype to avoid an error.
29431 Use char because int might match the return type of a GCC
29432 builtin and then its argument prototype would still apply. */
29433#ifdef __cplusplus
29434extern "C"
29435#endif
29436char jbg_dec_init ();
29437int
29438main ()
29439{
29440return jbg_dec_init ();
29441 ;
29442 return 0;
29443}
29444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 ac_cv_lib_jbig_jbg_dec_init=yes
29447else
cristy8b350f62009-11-15 23:12:43 +000029448 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029449fi
cristy8b350f62009-11-15 23:12:43 +000029450rm -f core conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029452LIBS=$ac_check_lib_save_LIBS
29453fi
cristy8b350f62009-11-15 23:12:43 +000029454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029455$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029456if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029457 passed=`expr $passed + 1`
29458else
29459 failed=`expr $failed + 1`
29460fi
29461
cristy8b350f62009-11-15 23:12:43 +000029462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo_n "checking if JBIG package is complete... " >&6; }
29464 if test $passed -gt 0; then
29465 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29467$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029468 have_jbig='no (failed tests)'
29469 else
29470 JBIG_LIBS='-ljbig'
29471 LIBS="$JBIG_LIBS $LIBS"
29472
cristy8b350f62009-11-15 23:12:43 +000029473$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029474
cristyad38abe2012-12-23 23:03:21 +000029475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29476$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029477 have_jbig='yes'
29478 fi
29479 else
cristyad38abe2012-12-23 23:03:21 +000029480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29481$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029482 fi
29483fi
cristy73bd4a52010-10-05 11:24:23 +000029484 if test "$have_jbig" = 'yes'; then
29485 JBIG_DELEGATE_TRUE=
29486 JBIG_DELEGATE_FALSE='#'
29487else
29488 JBIG_DELEGATE_TRUE='#'
29489 JBIG_DELEGATE_FALSE=
29490fi
29491
cristy3ed852e2009-09-05 21:47:34 +000029492
29493
29494
29495#
29496# Check for JPEG delegate library.
29497#
29498
29499# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029500if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029501 withval=$with_jpeg; with_jpeg=$withval
29502else
29503 with_jpeg='yes'
29504fi
29505
29506
29507if test "$with_jpeg" != 'yes'; then
29508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29509fi
29510
29511have_jpeg='no'
29512JPEG_LIBS=''
29513if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29515$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029517$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29519$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029520 failed=0
29521 passed=0
cristy8b350f62009-11-15 23:12:43 +000029522 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029523if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029524 passed=`expr $passed + 1`
29525else
29526 failed=`expr $failed + 1`
29527fi
29528
29529
cristy8b350f62009-11-15 23:12:43 +000029530 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029531if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029532 passed=`expr $passed + 1`
29533else
29534 failed=`expr $failed + 1`
29535fi
29536
29537
cristy8b350f62009-11-15 23:12:43 +000029538 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029539if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029540 passed=`expr $passed + 1`
29541else
29542 failed=`expr $failed + 1`
29543fi
29544
29545
cristy8b350f62009-11-15 23:12:43 +000029546 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029547if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029548 passed=`expr $passed + 1`
29549else
29550 failed=`expr $failed + 1`
29551fi
29552
29553
cristy8b350f62009-11-15 23:12:43 +000029554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029555$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029556if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029557 $as_echo_n "(cached) " >&6
29558else
29559 ac_check_lib_save_LIBS=$LIBS
29560LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029562/* end confdefs.h. */
29563
29564/* Override any GCC internal prototype to avoid an error.
29565 Use char because int might match the return type of a GCC
29566 builtin and then its argument prototype would still apply. */
29567#ifdef __cplusplus
29568extern "C"
29569#endif
29570char jpeg_read_header ();
29571int
29572main ()
29573{
29574return jpeg_read_header ();
29575 ;
29576 return 0;
29577}
29578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029580 ac_cv_lib_jpeg_jpeg_read_header=yes
29581else
cristy8b350f62009-11-15 23:12:43 +000029582 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029583fi
cristy8b350f62009-11-15 23:12:43 +000029584rm -f core conftest.err conftest.$ac_objext \
29585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029586LIBS=$ac_check_lib_save_LIBS
29587fi
cristy8b350f62009-11-15 23:12:43 +000029588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029589$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029590if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 passed=`expr $passed + 1`
29592else
29593 failed=`expr $failed + 1`
29594fi
29595
29596
29597# Test for compatible JPEG library
29598if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029601if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029602 $as_echo_n "(cached) " >&6
29603else
cristy8b350f62009-11-15 23:12:43 +000029604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029605/* end confdefs.h. */
29606#include <stdio.h>
29607#include <stdlib.h>
29608#include <jpeglib.h>
29609
29610int
29611main ()
29612{
29613
29614#if JPEG_LIB_VERSION < 62
29615#error IJG JPEG library must be version 6b or newer!
29616#endif
29617return 0;
29618
29619 ;
29620 return 0;
29621}
29622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029623if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029624 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29625else
cristy8b350f62009-11-15 23:12:43 +000029626 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029627fi
cristy3ed852e2009-09-05 21:47:34 +000029628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29629fi
cristy8b350f62009-11-15 23:12:43 +000029630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029631$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29632fi
cristy8b350f62009-11-15 23:12:43 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029634$as_echo_n "checking if JPEG package is complete... " >&6; }
29635 if test $passed -gt 0; then
29636 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29638$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029639 have_jpeg='no (failed tests)'
29640 else
29641 JPEG_LIBS='-ljpeg'
29642 LIBS="$JPEG_LIBS $LIBS"
29643
cristy8b350f62009-11-15 23:12:43 +000029644$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029645
cristyad38abe2012-12-23 23:03:21 +000029646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29647$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029648 have_jpeg='yes'
29649 fi
29650 else
cristyad38abe2012-12-23 23:03:21 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29652$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029653 fi
29654fi
cristy73bd4a52010-10-05 11:24:23 +000029655 if test "$have_jpeg" = 'yes'; then
29656 JPEG_DELEGATE_TRUE=
29657 JPEG_DELEGATE_FALSE='#'
29658else
29659 JPEG_DELEGATE_TRUE='#'
29660 JPEG_DELEGATE_FALSE=
29661fi
29662
cristy3ed852e2009-09-05 21:47:34 +000029663
29664
29665
29666#
29667# Check for JPEG Version 2 delegate library.
29668#
29669
29670# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029671if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029672 withval=$with_jp2; with_jp2=$withval
29673else
29674 with_jp2='yes'
29675fi
29676
29677
29678if test "$with_jp2" != 'yes'; then
29679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29680fi
29681
29682have_jp2='no'
29683JP2_LIBS=''
29684if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29686$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29690$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029691 failed=0
29692 passed=0
cristy8b350f62009-11-15 23:12:43 +000029693 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029694if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029695 passed=`expr $passed + 1`
29696else
29697 failed=`expr $failed + 1`
29698fi
29699
29700
cristy8b350f62009-11-15 23:12:43 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029702$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029703if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029704 $as_echo_n "(cached) " >&6
29705else
29706 ac_check_lib_save_LIBS=$LIBS
29707LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029709/* end confdefs.h. */
29710
29711/* Override any GCC internal prototype to avoid an error.
29712 Use char because int might match the return type of a GCC
29713 builtin and then its argument prototype would still apply. */
29714#ifdef __cplusplus
29715extern "C"
29716#endif
29717char jas_stream_fopen ();
29718int
29719main ()
29720{
29721return jas_stream_fopen ();
29722 ;
29723 return 0;
29724}
29725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029727 ac_cv_lib_jasper_jas_stream_fopen=yes
29728else
cristy8b350f62009-11-15 23:12:43 +000029729 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029730fi
cristy8b350f62009-11-15 23:12:43 +000029731rm -f core conftest.err conftest.$ac_objext \
29732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029733LIBS=$ac_check_lib_save_LIBS
29734fi
cristy8b350f62009-11-15 23:12:43 +000029735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029737if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 passed=`expr $passed + 1`
29739else
29740 failed=`expr $failed + 1`
29741fi
29742
cristy8b350f62009-11-15 23:12:43 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029744$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29745 if test $passed -gt 0; then
29746 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29748$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029749 have_jp2='no (failed tests)'
29750 else
29751 JP2_LIBS='-ljasper'
29752 LIBS="$JP2_LIBS $LIBS"
29753
cristy8b350f62009-11-15 23:12:43 +000029754$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029755
cristyad38abe2012-12-23 23:03:21 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29757$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029758 have_jp2='yes'
29759 fi
29760 else
cristyad38abe2012-12-23 23:03:21 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029763 fi
29764fi
cristy73bd4a52010-10-05 11:24:23 +000029765 if test "$have_jp2" = 'yes'; then
29766 JP2_DELEGATE_TRUE=
29767 JP2_DELEGATE_FALSE='#'
29768else
29769 JP2_DELEGATE_TRUE='#'
29770 JP2_DELEGATE_FALSE=
29771fi
29772
cristy3ed852e2009-09-05 21:47:34 +000029773
29774
29775
29776#
29777# Check for LCMS delegate library.
29778#
cristy71203402010-06-18 13:12:03 +000029779# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029780
29781# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029782if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 withval=$with_lcms; with_lcms=$withval
29784else
29785 with_lcms='yes'
29786fi
29787
cristy71203402010-06-18 13:12:03 +000029788if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029789 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29790fi
29791
cristy71203402010-06-18 13:12:03 +000029792# Disable LCMS2.
29793
29794# Check whether --with-lcms2 was given.
29795if test "${with_lcms2+set}" = set; then :
29796 withval=$with_lcms2; with_lcms2=$withval
29797else
29798 with_lcms2='yes'
29799fi
29800
29801if test "$with_lcms2" != 'yes' ; then
29802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29803fi
29804
29805have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029806LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029807if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29809$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29811$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29813$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029814 failed=0
29815 passed=0
29816 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029817
29818 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029819 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029820if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029821 have_lcms_header='yes'
29822fi
29823
29824
29825 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029826
29827$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29828
cristy71203402010-06-18 13:12:03 +000029829 passed=`expr $passed + 1`
29830 fi
29831
29832 # Check for <lcms2/lcms2.h)
29833 if test "$have_lcms_header" != 'yes'; then
29834 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029835if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029836 have_lcms_header='yes'
29837fi
29838
29839
cristy71203402010-06-18 13:12:03 +000029840 if test "$have_lcms_header" = 'yes'; then
29841 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029842
cristy71203402010-06-18 13:12:03 +000029843$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029844
cristy71203402010-06-18 13:12:03 +000029845 fi
cristyd09bcf92010-03-25 03:04:45 +000029846 fi
cristy71203402010-06-18 13:12:03 +000029847
29848 # Failed to find lcms header?
29849 if test "$have_lcms_header" != 'yes'; then
29850 failed=`expr $failed + 1`
29851 fi
29852
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29854$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029855if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029856 $as_echo_n "(cached) " >&6
29857else
29858 ac_check_lib_save_LIBS=$LIBS
29859LIBS="-llcms2 $LIBS"
29860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861/* end confdefs.h. */
29862
29863/* Override any GCC internal prototype to avoid an error.
29864 Use char because int might match the return type of a GCC
29865 builtin and then its argument prototype would still apply. */
29866#ifdef __cplusplus
29867extern "C"
29868#endif
cristy71203402010-06-18 13:12:03 +000029869char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029870int
29871main ()
29872{
cristy71203402010-06-18 13:12:03 +000029873return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029874 ;
29875 return 0;
29876}
29877_ACEOF
29878if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029879 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029880else
cristy71203402010-06-18 13:12:03 +000029881 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029882fi
29883rm -f core conftest.err conftest.$ac_objext \
29884 conftest$ac_exeext conftest.$ac_ext
29885LIBS=$ac_check_lib_save_LIBS
29886fi
cristy71203402010-06-18 13:12:03 +000029887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29888$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029889if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029890 passed=`expr $passed + 1`
29891else
29892 failed=`expr $failed + 1`
29893fi
29894
cristy71203402010-06-18 13:12:03 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29896$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029897 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029898 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29900$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029901 have_lcms2='no (failed tests)'
29902 else
29903 LCMS_LIBS='-llcms2'
29904 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29906$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029907 have_lcms2='yes'
29908 fi
cristyd09bcf92010-03-25 03:04:45 +000029909 else
cristyad38abe2012-12-23 23:03:21 +000029910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29911$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029912 fi
29913fi
29914
cristy71203402010-06-18 13:12:03 +000029915#
29916# Check for LCMS v1 (1.11 or later)
29917#
29918if test $have_lcms2 = 'yes'; then
29919 with_lcms='no'
29920fi
29921
29922have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029923if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29925$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29927$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29929$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029930 failed=0
29931 passed=0
29932 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029933
29934 # Check for <lcms.h>
29935 if test "$have_lcms_header" != 'yes'; then
29936 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029937if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029938 have_lcms_header='yes'
29939fi
29940
29941
cristy71203402010-06-18 13:12:03 +000029942 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029943 passed=`expr $passed + 1`
29944
cristy8b350f62009-11-15 23:12:43 +000029945$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029946
cristy71203402010-06-18 13:12:03 +000029947 fi
29948 fi
29949
29950 # Check for <lcms/lcms.h>
29951 if test "$have_lcms_header" != 'yes'; then
29952 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029953if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029954 have_lcms_header='yes'
29955fi
29956
29957
cristy71203402010-06-18 13:12:03 +000029958 if test "$have_lcms_header" = 'yes'; then
29959 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029960
cristy8b350f62009-11-15 23:12:43 +000029961$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029962
cristy71203402010-06-18 13:12:03 +000029963 fi
cristy3ed852e2009-09-05 21:47:34 +000029964 fi
cristy71203402010-06-18 13:12:03 +000029965
29966 # Failed to find lcms header?
29967 if test "$have_lcms_header" != 'yes'; then
29968 failed=`expr $failed + 1`
29969 fi
29970
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29972$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029973if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029974 $as_echo_n "(cached) " >&6
29975else
29976 ac_check_lib_save_LIBS=$LIBS
29977LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029979/* end confdefs.h. */
29980
29981/* Override any GCC internal prototype to avoid an error.
29982 Use char because int might match the return type of a GCC
29983 builtin and then its argument prototype would still apply. */
29984#ifdef __cplusplus
29985extern "C"
29986#endif
cristy71203402010-06-18 13:12:03 +000029987char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029988int
29989main ()
29990{
cristy71203402010-06-18 13:12:03 +000029991return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029992 ;
29993 return 0;
29994}
29995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029996if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029997 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029998else
cristy71203402010-06-18 13:12:03 +000029999 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030000fi
cristy8b350f62009-11-15 23:12:43 +000030001rm -f core conftest.err conftest.$ac_objext \
30002 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030003LIBS=$ac_check_lib_save_LIBS
30004fi
cristy71203402010-06-18 13:12:03 +000030005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30006$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030007if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030008 passed=`expr $passed + 1`
30009else
30010 failed=`expr $failed + 1`
30011fi
30012
cristy8b350f62009-11-15 23:12:43 +000030013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030014$as_echo_n "checking if LCMS package is complete... " >&6; }
30015 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030016 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30018$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030019 have_lcms='no (failed tests)'
30020 else
30021 LCMS_LIBS='-llcms'
30022 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30024$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030025 have_lcms='yes'
30026 fi
cristy3ed852e2009-09-05 21:47:34 +000030027 else
cristyad38abe2012-12-23 23:03:21 +000030028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30029$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030030 fi
30031fi
cristy71203402010-06-18 13:12:03 +000030032
cristy73bd4a52010-10-05 11:24:23 +000030033 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30034 LCMS_DELEGATE_TRUE=
30035 LCMS_DELEGATE_FALSE='#'
30036else
30037 LCMS_DELEGATE_TRUE='#'
30038 LCMS_DELEGATE_FALSE=
30039fi
30040
cristy71203402010-06-18 13:12:03 +000030041if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30042
30043$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30044
30045fi
30046
cristy3ed852e2009-09-05 21:47:34 +000030047
30048
30049
30050#
30051# Check for the LQR (Liquid Rescale) delegate library.
30052#
30053
30054# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030055if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030056 withval=$with_lqr; with_lqr=$withval
30057else
30058 with_lqr='yes'
30059fi
30060
30061
30062if test "$with_lqr" != 'yes'; then
30063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30064fi
30065
30066have_lqr='no'
30067LQR_CFLAGS=""
30068LQR_LIBS=""
30069LQR_PKG=""
30070if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30072$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030073
30074pkg_failed=no
30075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30076$as_echo_n "checking for LQR... " >&6; }
30077
30078if test -n "$LQR_CFLAGS"; then
30079 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30080 elif test -n "$PKG_CONFIG"; then
30081 if test -n "$PKG_CONFIG" && \
30082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30083 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30084 ac_status=$?
30085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30086 test $ac_status = 0; }; then
30087 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30088else
30089 pkg_failed=yes
30090fi
30091 else
30092 pkg_failed=untried
30093fi
30094if test -n "$LQR_LIBS"; then
30095 pkg_cv_LQR_LIBS="$LQR_LIBS"
30096 elif test -n "$PKG_CONFIG"; then
30097 if test -n "$PKG_CONFIG" && \
30098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30099 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30100 ac_status=$?
30101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30102 test $ac_status = 0; }; then
30103 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30104else
30105 pkg_failed=yes
30106fi
30107 else
30108 pkg_failed=untried
30109fi
30110
30111
30112
30113if test $pkg_failed = yes; then
30114
30115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30116 _pkg_short_errors_supported=yes
30117else
30118 _pkg_short_errors_supported=no
30119fi
30120 if test $_pkg_short_errors_supported = yes; then
30121 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30122 else
30123 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30124 fi
30125 # Put the nasty error message in config.log where it belongs
30126 echo "$LQR_PKG_ERRORS" >&5
30127
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30129$as_echo "no" >&6; }
30130 have_lqr=no
30131elif test $pkg_failed = untried; then
30132 have_lqr=no
30133else
30134 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30135 LQR_LIBS=$pkg_cv_LQR_LIBS
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137$as_echo "yes" >&6; }
30138 have_lqr=yes
30139fi
cristyad38abe2012-12-23 23:03:21 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30141$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030142fi
30143
30144if test "$have_lqr" = 'yes'; then
30145
cristy8b350f62009-11-15 23:12:43 +000030146$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030147
30148 CFLAGS="$LQR_CFLAGS $CFLAGS"
30149fi
30150
cristy73bd4a52010-10-05 11:24:23 +000030151 if test "$have_lqr" = 'yes'; then
30152 LQR_DELEGATE_TRUE=
30153 LQR_DELEGATE_FALSE='#'
30154else
30155 LQR_DELEGATE_TRUE='#'
30156 LQR_DELEGATE_FALSE=
30157fi
30158
cristy3ed852e2009-09-05 21:47:34 +000030159
30160
30161
30162
cristy81beccd2011-10-03 18:17:24 +000030163# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030164
30165# Check whether --with-lzma was given.
30166if test "${with_lzma+set}" = set; then :
30167 withval=$with_lzma; with_lzma=$withval
30168else
30169 with_lzma='yes'
30170fi
30171
cristy81beccd2011-10-03 18:17:24 +000030172if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30174fi
30175
cristyb94e5002011-11-14 13:20:10 +000030176LZMA_PKG=""
30177if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30179$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030180
30181pkg_failed=no
30182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030183$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030184
30185if test -n "$LZMA_CFLAGS"; then
30186 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30187 elif test -n "$PKG_CONFIG"; then
30188 if test -n "$PKG_CONFIG" && \
30189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30190 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30191 ac_status=$?
30192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30193 test $ac_status = 0; }; then
30194 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30195else
30196 pkg_failed=yes
30197fi
30198 else
30199 pkg_failed=untried
30200fi
30201if test -n "$LZMA_LIBS"; then
30202 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30203 elif test -n "$PKG_CONFIG"; then
30204 if test -n "$PKG_CONFIG" && \
30205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30206 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30207 ac_status=$?
30208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30209 test $ac_status = 0; }; then
30210 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30211else
30212 pkg_failed=yes
30213fi
30214 else
30215 pkg_failed=untried
30216fi
30217
30218
30219
30220if test $pkg_failed = yes; then
30221
30222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30223 _pkg_short_errors_supported=yes
30224else
30225 _pkg_short_errors_supported=no
30226fi
30227 if test $_pkg_short_errors_supported = yes; then
30228 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30229 else
30230 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30231 fi
30232 # Put the nasty error message in config.log where it belongs
30233 echo "$LZMA_PKG_ERRORS" >&5
30234
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30236$as_echo "no" >&6; }
30237 have_lzma=no
30238elif test $pkg_failed = untried; then
30239 have_lzma=no
30240else
30241 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30242 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30244$as_echo "yes" >&6; }
30245 have_lzma=yes
30246fi
cristyad38abe2012-12-23 23:03:21 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30248$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030249fi
30250
cristyb94e5002011-11-14 13:20:10 +000030251if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030252
30253$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30254
cristyc6722092012-10-14 00:19:31 +000030255 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030256 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030257 fi
cristyfbb0ef02010-12-19 02:32:11 +000030258fi
cristyb94e5002011-11-14 13:20:10 +000030259
cristyfbb0ef02010-12-19 02:32:11 +000030260 if test "$have_lzma" = 'yes'; then
30261 LZMA_DELEGATE_TRUE=
30262 LZMA_DELEGATE_FALSE='#'
30263else
30264 LZMA_DELEGATE_TRUE='#'
30265 LZMA_DELEGATE_FALSE=
30266fi
30267
30268
30269
30270
cristyb94e5002011-11-14 13:20:10 +000030271
cristy3ed852e2009-09-05 21:47:34 +000030272#
cristy854c9cf2013-08-10 21:03:06 +000030273# Check for MUPDF delegate library.
30274#
30275
30276# Check whether --with-mupdf was given.
30277if test "${with_mupdf+set}" = set; then :
30278 withval=$with_mupdf; with_mupdf=$withval
30279else
30280 with_mupdf='no'
30281fi
30282
30283
30284if test "$with_mupdf" != 'yes'; then
30285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30286fi
30287
30288have_mupdf='no'
30289MUPDF_LIBS=''
30290if test "$with_mupdf" != 'no'; then
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30292$as_echo "-------------------------------------------------------------" >&6; }
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30294$as_echo_n "checking for MUPDF... " >&6; }
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30296$as_echo "" >&6; }
30297 failed=0
30298 passed=0
30299 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30300if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30301 passed=`expr $passed + 1`
30302else
30303 failed=`expr $failed + 1`
30304fi
30305
30306
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30308$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30309if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30310 $as_echo_n "(cached) " >&6
30311else
30312 ac_check_lib_save_LIBS=$LIBS
30313LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30315/* end confdefs.h. */
30316
30317/* Override any GCC internal prototype to avoid an error.
30318 Use char because int might match the return type of a GCC
30319 builtin and then its argument prototype would still apply. */
30320#ifdef __cplusplus
30321extern "C"
30322#endif
30323char fz_new_context ();
30324int
30325main ()
30326{
30327return fz_new_context ();
30328 ;
30329 return 0;
30330}
30331_ACEOF
30332if ac_fn_c_try_link "$LINENO"; then :
30333 ac_cv_lib_mupdf_fz_new_context=yes
30334else
30335 ac_cv_lib_mupdf_fz_new_context=no
30336fi
30337rm -f core conftest.err conftest.$ac_objext \
30338 conftest$ac_exeext conftest.$ac_ext
30339LIBS=$ac_check_lib_save_LIBS
30340fi
30341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30342$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30343if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30344 passed=`expr $passed + 1`
30345else
30346 failed=`expr $failed + 1`
30347fi
30348
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30350$as_echo_n "checking if MUPDF package is complete... " >&6; }
30351 if test $passed -gt 0; then
30352 if test $failed -gt 0; then
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30354$as_echo "no -- some components failed test" >&6; }
30355 have_mupdf='no (failed tests)'
30356 else
30357 MUPDF_LIBS='-lmupdf'
30358 LIBS="$MUPDF_LIBS $LIBS"
30359
30360$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30361
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30363$as_echo "yes" >&6; }
30364 have_mupdf='yes'
30365 fi
30366 else
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368$as_echo "no" >&6; }
30369 fi
30370fi
30371 if test "$have_mupdf" = 'yes'; then
30372 MUPDF_DELEGATE_TRUE=
30373 MUPDF_DELEGATE_FALSE='#'
30374else
30375 MUPDF_DELEGATE_TRUE='#'
30376 MUPDF_DELEGATE_FALSE=
30377fi
30378
30379
30380
30381
30382#
cristy3ed852e2009-09-05 21:47:34 +000030383# Check for the OpenEXR delegate library.
30384#
30385
30386# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030387if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030388 withval=$with_openexr; with_openexr=$withval
30389else
30390 with_openexr='yes'
30391fi
30392
30393
30394if test "$with_openexr" != 'yes'; then
30395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30396fi
30397
30398have_openexr='no'
30399OPENEXR_CFLAGS=""
30400OPENEXR_LIBS=""
30401OPENEXR_PKG=""
30402if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30404$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030405
30406pkg_failed=no
30407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30408$as_echo_n "checking for OPENEXR... " >&6; }
30409
30410if test -n "$OPENEXR_CFLAGS"; then
30411 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30412 elif test -n "$PKG_CONFIG"; then
30413 if test -n "$PKG_CONFIG" && \
30414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30415 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30416 ac_status=$?
30417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30418 test $ac_status = 0; }; then
30419 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30420else
30421 pkg_failed=yes
30422fi
30423 else
30424 pkg_failed=untried
30425fi
30426if test -n "$OPENEXR_LIBS"; then
30427 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30428 elif test -n "$PKG_CONFIG"; then
30429 if test -n "$PKG_CONFIG" && \
30430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30431 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30432 ac_status=$?
30433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30434 test $ac_status = 0; }; then
30435 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30436else
30437 pkg_failed=yes
30438fi
30439 else
30440 pkg_failed=untried
30441fi
30442
30443
30444
30445if test $pkg_failed = yes; then
30446
30447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30448 _pkg_short_errors_supported=yes
30449else
30450 _pkg_short_errors_supported=no
30451fi
30452 if test $_pkg_short_errors_supported = yes; then
30453 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30454 else
30455 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30456 fi
30457 # Put the nasty error message in config.log where it belongs
30458 echo "$OPENEXR_PKG_ERRORS" >&5
30459
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30461$as_echo "no" >&6; }
30462 have_openexr=no
30463elif test $pkg_failed = untried; then
30464 have_openexr=no
30465else
30466 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30467 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30469$as_echo "yes" >&6; }
30470 have_openexr=yes
30471fi
cristyad38abe2012-12-23 23:03:21 +000030472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30473$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030474fi
30475
30476if test "$have_openexr" = 'yes'; then
30477
cristy8b350f62009-11-15 23:12:43 +000030478$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030479
cristyc6722092012-10-14 00:19:31 +000030480 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030481 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30482 fi
30483fi
30484
cristy73bd4a52010-10-05 11:24:23 +000030485 if test "$have_openexr" = 'yes'; then
30486 OPENEXR_DELEGATE_TRUE=
30487 OPENEXR_DELEGATE_FALSE='#'
30488else
30489 OPENEXR_DELEGATE_TRUE='#'
30490 OPENEXR_DELEGATE_FALSE=
30491fi
30492
cristy3ed852e2009-09-05 21:47:34 +000030493
30494
30495
30496
30497#
cristy41cbe8a2011-10-27 01:35:18 +000030498# Check for PANGO delegate library.
30499#
30500
30501# Check whether --with-pango was given.
30502if test "${with_pango+set}" = set; then :
30503 withval=$with_pango; with_pango=$withval
30504else
cristyfc3d0222012-02-07 15:05:57 +000030505 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030506fi
30507
30508
30509if test "$with_pango" != 'yes'; then
30510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30511fi
30512
30513have_pango='no'
cristya054b762012-03-26 23:16:00 +000030514have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030515PANGO_CFLAGS=""
30516PANGO_LIBS=""
30517PANGO_PKG=""
30518if test "x$with_pango" = "xyes"; then
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30520$as_echo "-------------------------------------------------------------" >&6; }
30521
30522pkg_failed=no
30523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30524$as_echo_n "checking for PANGO... " >&6; }
30525
30526if test -n "$PANGO_CFLAGS"; then
30527 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30528 elif test -n "$PKG_CONFIG"; then
30529 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30531 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030532 ac_status=$?
30533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30534 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030535 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030536else
30537 pkg_failed=yes
30538fi
30539 else
30540 pkg_failed=untried
30541fi
30542if test -n "$PANGO_LIBS"; then
30543 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30544 elif test -n "$PKG_CONFIG"; then
30545 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30547 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030548 ac_status=$?
30549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30550 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030551 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030552else
30553 pkg_failed=yes
30554fi
30555 else
30556 pkg_failed=untried
30557fi
30558
30559
30560
30561if test $pkg_failed = yes; then
30562
30563if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30564 _pkg_short_errors_supported=yes
30565else
30566 _pkg_short_errors_supported=no
30567fi
30568 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030569 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030570 else
cristya054b762012-03-26 23:16:00 +000030571 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030572 fi
30573 # Put the nasty error message in config.log where it belongs
30574 echo "$PANGO_PKG_ERRORS" >&5
30575
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30577$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030578 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030579elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030580 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030581else
30582 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30583 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30585$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030586 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030587fi
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30589$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030590
30591pkg_failed=no
30592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30593$as_echo_n "checking for PANGO... " >&6; }
30594
30595if test -n "$PANGO_CFLAGS"; then
30596 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30597 elif test -n "$PKG_CONFIG"; then
30598 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30600 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030601 ac_status=$?
30602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30603 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030604 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030605else
30606 pkg_failed=yes
30607fi
30608 else
30609 pkg_failed=untried
30610fi
30611if test -n "$PANGO_LIBS"; then
30612 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30613 elif test -n "$PKG_CONFIG"; then
30614 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30616 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030617 ac_status=$?
30618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30619 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030620 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030621else
30622 pkg_failed=yes
30623fi
30624 else
30625 pkg_failed=untried
30626fi
30627
30628
30629
30630if test $pkg_failed = yes; then
30631
30632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30633 _pkg_short_errors_supported=yes
30634else
30635 _pkg_short_errors_supported=no
30636fi
30637 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030638 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030639 else
cristy2542fc62011-12-06 17:50:25 +000030640 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030641 fi
30642 # Put the nasty error message in config.log where it belongs
30643 echo "$PANGO_PKG_ERRORS" >&5
30644
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30646$as_echo "no" >&6; }
30647 have_pango=no
30648elif test $pkg_failed = untried; then
30649 have_pango=no
30650else
30651 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30652 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30654$as_echo "yes" >&6; }
30655 have_pango=yes
30656fi
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30658$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030659fi
30660
30661if test "$have_pango" = 'yes'; then
30662
30663$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30664
cristyc6722092012-10-14 00:19:31 +000030665 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030666 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30667 fi
30668fi
30669
cristya054b762012-03-26 23:16:00 +000030670if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030671
cristya054b762012-03-26 23:16:00 +000030672$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030673
cristyc6722092012-10-14 00:19:31 +000030674 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030675 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030676 fi
30677fi
30678
30679 if test "$have_pango" = 'yes'; then
30680 PANGO_DELEGATE_TRUE=
30681 PANGO_DELEGATE_FALSE='#'
30682else
30683 PANGO_DELEGATE_TRUE='#'
30684 PANGO_DELEGATE_FALSE=
30685fi
30686
cristya054b762012-03-26 23:16:00 +000030687 if test "$have_pangocairo" = 'yes'; then
30688 PANGOCAIRO_DELEGATE_TRUE=
30689 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030690else
cristya054b762012-03-26 23:16:00 +000030691 PANGOCAIRO_DELEGATE_TRUE='#'
30692 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030693fi
30694
30695
30696
30697
30698
30699#
cristy3ed852e2009-09-05 21:47:34 +000030700# Check for PNG delegate library.
30701#
30702
30703# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030704if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030705 withval=$with_png; with_png=$withval
30706else
30707 with_png='yes'
30708fi
30709
30710
30711if test "$with_png" != 'yes'; then
30712 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30713fi
30714
cristy81beccd2011-10-03 18:17:24 +000030715have_png='no'
30716PNG_LIBS=''
30717
30718if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30720$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30722$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30724$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030725 failed=0
30726 passed=0
30727 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30728if test "x$ac_cv_header_png_h" = xyes; then :
30729 passed=`expr $passed + 1`
30730else
30731 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030732fi
30733
cristy81beccd2011-10-03 18:17:24 +000030734
30735
30736 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030737 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030738 if test "$have_png" = 'no' ; then
30739 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030740 pnglib='png'
30741 else
30742 pnglib="png1${var}"
30743 fi
30744
30745# Test for compatible LIBPNG library
30746 failed=0
30747 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030748 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030749 if test "${pnglib}" != 'png' ; then
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30751$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30753/* end confdefs.h. */
30754#include <stdio.h>
30755#include <stdlib.h>
30756#include <png.h>
30757
30758int
30759main ()
30760{
30761
30762#if PNG_LIBPNG_VER_MINOR != ${var}
30763#error LIBPNG library must be version 1${var}!
30764Kaboom, Kaboom
30765#endif
30766return 0;
30767
30768 ;
30769 return 0;
30770}
30771_ACEOF
30772if ac_fn_c_try_compile "$LINENO"; then :
30773 ac_cv_libpng_ok='yes'
30774else
30775 ac_cv_libpng_ok='no'
30776fi
30777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30778 if test "$ac_cv_libpng_ok" = 'yes' ; then
30779 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030782 else
30783 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30785$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030786 fi
30787 else
30788 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030791 fi
30792 fi
30793
30794 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030795 if test "1${var}" = '17' ; then
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30797$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30798if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30799 $as_echo_n "(cached) " >&6
30800else
30801 ac_check_lib_save_LIBS=$LIBS
30802LIBS="-lpng17 $LIBS"
30803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804/* end confdefs.h. */
30805
30806/* Override any GCC internal prototype to avoid an error.
30807 Use char because int might match the return type of a GCC
30808 builtin and then its argument prototype would still apply. */
30809#ifdef __cplusplus
30810extern "C"
30811#endif
30812char png_get_io_ptr ();
30813int
30814main ()
30815{
30816return png_get_io_ptr ();
30817 ;
30818 return 0;
30819}
30820_ACEOF
30821if ac_fn_c_try_link "$LINENO"; then :
30822 ac_cv_lib_png17_png_get_io_ptr=yes
30823else
30824 ac_cv_lib_png17_png_get_io_ptr=no
30825fi
30826rm -f core conftest.err conftest.$ac_objext \
30827 conftest$ac_exeext conftest.$ac_ext
30828LIBS=$ac_check_lib_save_LIBS
30829fi
30830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30831$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30832if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30833 passed=`expr $passed + 1`
30834else
30835 failed=`expr $failed + 1`
30836fi
30837
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30839$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30840if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30841 $as_echo_n "(cached) " >&6
30842else
30843 ac_check_lib_save_LIBS=$LIBS
30844LIBS="-lpng17 $LIBS"
30845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30846/* end confdefs.h. */
30847
30848/* Override any GCC internal prototype to avoid an error.
30849 Use char because int might match the return type of a GCC
30850 builtin and then its argument prototype would still apply. */
30851#ifdef __cplusplus
30852extern "C"
30853#endif
30854char png_longjmp ();
30855int
30856main ()
30857{
30858return png_longjmp ();
30859 ;
30860 return 0;
30861}
30862_ACEOF
30863if ac_fn_c_try_link "$LINENO"; then :
30864 ac_cv_lib_png17_png_longjmp=yes
30865else
30866 ac_cv_lib_png17_png_longjmp=no
30867fi
30868rm -f core conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870LIBS=$ac_check_lib_save_LIBS
30871fi
30872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30873$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30874if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30875 passed=`expr $passed + 1`
30876else
30877 failed=`expr $failed + 1`
30878fi
30879
30880 fi
30881 if test "1${var}" = '16' ; then
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30883$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30884if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30885 $as_echo_n "(cached) " >&6
30886else
30887 ac_check_lib_save_LIBS=$LIBS
30888LIBS="-lpng16 $LIBS"
30889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30890/* end confdefs.h. */
30891
30892/* Override any GCC internal prototype to avoid an error.
30893 Use char because int might match the return type of a GCC
30894 builtin and then its argument prototype would still apply. */
30895#ifdef __cplusplus
30896extern "C"
30897#endif
30898char png_get_io_ptr ();
30899int
30900main ()
30901{
30902return png_get_io_ptr ();
30903 ;
30904 return 0;
30905}
30906_ACEOF
30907if ac_fn_c_try_link "$LINENO"; then :
30908 ac_cv_lib_png16_png_get_io_ptr=yes
30909else
30910 ac_cv_lib_png16_png_get_io_ptr=no
30911fi
30912rm -f core conftest.err conftest.$ac_objext \
30913 conftest$ac_exeext conftest.$ac_ext
30914LIBS=$ac_check_lib_save_LIBS
30915fi
30916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30917$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30918if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30919 passed=`expr $passed + 1`
30920else
30921 failed=`expr $failed + 1`
30922fi
30923
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30925$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30926if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30927 $as_echo_n "(cached) " >&6
30928else
30929 ac_check_lib_save_LIBS=$LIBS
30930LIBS="-lpng16 $LIBS"
30931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30932/* end confdefs.h. */
30933
30934/* Override any GCC internal prototype to avoid an error.
30935 Use char because int might match the return type of a GCC
30936 builtin and then its argument prototype would still apply. */
30937#ifdef __cplusplus
30938extern "C"
30939#endif
30940char png_longjmp ();
30941int
30942main ()
30943{
30944return png_longjmp ();
30945 ;
30946 return 0;
30947}
30948_ACEOF
30949if ac_fn_c_try_link "$LINENO"; then :
30950 ac_cv_lib_png16_png_longjmp=yes
30951else
30952 ac_cv_lib_png16_png_longjmp=no
30953fi
30954rm -f core conftest.err conftest.$ac_objext \
30955 conftest$ac_exeext conftest.$ac_ext
30956LIBS=$ac_check_lib_save_LIBS
30957fi
30958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30959$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30960if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30961 passed=`expr $passed + 1`
30962else
30963 failed=`expr $failed + 1`
30964fi
30965
30966 fi
cristy81beccd2011-10-03 18:17:24 +000030967 if test "1${var}" = '15' ; then
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30969$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30970if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30971 $as_echo_n "(cached) " >&6
30972else
30973 ac_check_lib_save_LIBS=$LIBS
30974LIBS="-lpng15 $LIBS"
30975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30976/* end confdefs.h. */
30977
30978/* Override any GCC internal prototype to avoid an error.
30979 Use char because int might match the return type of a GCC
30980 builtin and then its argument prototype would still apply. */
30981#ifdef __cplusplus
30982extern "C"
30983#endif
30984char png_get_io_ptr ();
30985int
30986main ()
30987{
30988return png_get_io_ptr ();
30989 ;
30990 return 0;
30991}
30992_ACEOF
30993if ac_fn_c_try_link "$LINENO"; then :
30994 ac_cv_lib_png15_png_get_io_ptr=yes
30995else
30996 ac_cv_lib_png15_png_get_io_ptr=no
30997fi
30998rm -f core conftest.err conftest.$ac_objext \
30999 conftest$ac_exeext conftest.$ac_ext
31000LIBS=$ac_check_lib_save_LIBS
31001fi
31002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31003$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31004if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31005 passed=`expr $passed + 1`
31006else
31007 failed=`expr $failed + 1`
31008fi
31009
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31011$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31012if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31013 $as_echo_n "(cached) " >&6
31014else
31015 ac_check_lib_save_LIBS=$LIBS
31016LIBS="-lpng15 $LIBS"
31017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31018/* end confdefs.h. */
31019
31020/* Override any GCC internal prototype to avoid an error.
31021 Use char because int might match the return type of a GCC
31022 builtin and then its argument prototype would still apply. */
31023#ifdef __cplusplus
31024extern "C"
31025#endif
31026char png_longjmp ();
31027int
31028main ()
31029{
31030return png_longjmp ();
31031 ;
31032 return 0;
31033}
31034_ACEOF
31035if ac_fn_c_try_link "$LINENO"; then :
31036 ac_cv_lib_png15_png_longjmp=yes
31037else
31038 ac_cv_lib_png15_png_longjmp=no
31039fi
31040rm -f core conftest.err conftest.$ac_objext \
31041 conftest$ac_exeext conftest.$ac_ext
31042LIBS=$ac_check_lib_save_LIBS
31043fi
31044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31045$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31046if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31047 passed=`expr $passed + 1`
31048else
31049 failed=`expr $failed + 1`
31050fi
31051
31052 fi
31053 if test "1${var}" = '14' ; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31055$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31056if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31057 $as_echo_n "(cached) " >&6
31058else
31059 ac_check_lib_save_LIBS=$LIBS
31060LIBS="-lpng14 $LIBS"
31061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31062/* end confdefs.h. */
31063
31064/* Override any GCC internal prototype to avoid an error.
31065 Use char because int might match the return type of a GCC
31066 builtin and then its argument prototype would still apply. */
31067#ifdef __cplusplus
31068extern "C"
31069#endif
31070char png_get_io_ptr ();
31071int
31072main ()
31073{
31074return png_get_io_ptr ();
31075 ;
31076 return 0;
31077}
31078_ACEOF
31079if ac_fn_c_try_link "$LINENO"; then :
31080 ac_cv_lib_png14_png_get_io_ptr=yes
31081else
31082 ac_cv_lib_png14_png_get_io_ptr=no
31083fi
31084rm -f core conftest.err conftest.$ac_objext \
31085 conftest$ac_exeext conftest.$ac_ext
31086LIBS=$ac_check_lib_save_LIBS
31087fi
31088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31089$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31090if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31091 passed=`expr $passed + 1`
31092else
31093 failed=`expr $failed + 1`
31094fi
31095
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31097$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31098if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31099 $as_echo_n "(cached) " >&6
31100else
31101 ac_check_lib_save_LIBS=$LIBS
31102LIBS="-lpng14 $LIBS"
31103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31104/* end confdefs.h. */
31105
31106/* Override any GCC internal prototype to avoid an error.
31107 Use char because int might match the return type of a GCC
31108 builtin and then its argument prototype would still apply. */
31109#ifdef __cplusplus
31110extern "C"
31111#endif
31112char png_get_io_state ();
31113int
31114main ()
31115{
31116return png_get_io_state ();
31117 ;
31118 return 0;
31119}
31120_ACEOF
31121if ac_fn_c_try_link "$LINENO"; then :
31122 ac_cv_lib_png14_png_get_io_state=yes
31123else
31124 ac_cv_lib_png14_png_get_io_state=no
31125fi
31126rm -f core conftest.err conftest.$ac_objext \
31127 conftest$ac_exeext conftest.$ac_ext
31128LIBS=$ac_check_lib_save_LIBS
31129fi
31130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31131$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31132if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31133 passed=`expr $passed + 1`
31134else
31135 failed=`expr $failed + 1`
31136fi
31137
31138 fi
31139 if test "1${var}" = '12' ; then
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31141$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31142if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31143 $as_echo_n "(cached) " >&6
31144else
31145 ac_check_lib_save_LIBS=$LIBS
31146LIBS="-lpng12 $LIBS"
31147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31148/* end confdefs.h. */
31149
31150/* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
31153#ifdef __cplusplus
31154extern "C"
31155#endif
31156char png_get_io_ptr ();
31157int
31158main ()
31159{
31160return png_get_io_ptr ();
31161 ;
31162 return 0;
31163}
31164_ACEOF
31165if ac_fn_c_try_link "$LINENO"; then :
31166 ac_cv_lib_png12_png_get_io_ptr=yes
31167else
31168 ac_cv_lib_png12_png_get_io_ptr=no
31169fi
31170rm -f core conftest.err conftest.$ac_objext \
31171 conftest$ac_exeext conftest.$ac_ext
31172LIBS=$ac_check_lib_save_LIBS
31173fi
31174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31175$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31176if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31177 passed=`expr $passed + 1`
31178else
31179 failed=`expr $failed + 1`
31180fi
31181
31182 fi
31183 if test "1${var}" = '1' ; then
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31185$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31186if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31187 $as_echo_n "(cached) " >&6
31188else
31189 ac_check_lib_save_LIBS=$LIBS
31190LIBS="-lpng $LIBS"
31191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31192/* end confdefs.h. */
31193
31194/* Override any GCC internal prototype to avoid an error.
31195 Use char because int might match the return type of a GCC
31196 builtin and then its argument prototype would still apply. */
31197#ifdef __cplusplus
31198extern "C"
31199#endif
31200char png_get_io_ptr ();
31201int
31202main ()
31203{
31204return png_get_io_ptr ();
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209if ac_fn_c_try_link "$LINENO"; then :
31210 ac_cv_lib_png_png_get_io_ptr=yes
31211else
31212 ac_cv_lib_png_png_get_io_ptr=no
31213fi
31214rm -f core conftest.err conftest.$ac_objext \
31215 conftest$ac_exeext conftest.$ac_ext
31216LIBS=$ac_check_lib_save_LIBS
31217fi
31218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31219$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31220if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31221 passed=`expr $passed + 1`
31222else
31223 failed=`expr $failed + 1`
31224fi
31225
31226 fi
31227 if test $passed -gt 0 -a $failed -le 0 ; then
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31229$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31230 if test $passed -gt 0 ; then
31231 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31233$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031234 have_png='no (failed tests)'
31235 else
31236 PNG_LIBS="-l${pnglib}"
31237 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031238
cristy8b350f62009-11-15 23:12:43 +000031239$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031240
cristyad38abe2012-12-23 23:03:21 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31242$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031243 have_png='yes'
31244 fi
31245 fi
31246 fi
31247 fi
31248 fi
31249 done
31250 fi
cristy3ed852e2009-09-05 21:47:34 +000031251fi
cristy64877302011-08-23 19:10:31 +000031252
cristy73bd4a52010-10-05 11:24:23 +000031253 if test "$have_png" = 'yes'; then
31254 PNG_DELEGATE_TRUE=
31255 PNG_DELEGATE_FALSE='#'
31256else
31257 PNG_DELEGATE_TRUE='#'
31258 PNG_DELEGATE_FALSE=
31259fi
31260
cristy3ed852e2009-09-05 21:47:34 +000031261
cristy50d3f5c2011-09-10 20:09:06 +000031262
cristy3ed852e2009-09-05 21:47:34 +000031263
31264
31265#
31266# Check for RSVG delegate library.
31267#
31268
31269# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031270if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031271 withval=$with_rsvg; with_rsvg=$withval
31272else
cristy1164d5f2012-08-15 00:58:25 +000031273 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031274fi
31275
31276
31277if test "$with_rsvg" != 'yes'; then
31278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31279fi
31280
31281have_rsvg='no'
31282have_cairo='no'
31283RSVG_CFLAGS=""
31284RSVG_LIBS=""
31285RSVG_PKG=""
31286if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31288$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031289
31290pkg_failed=no
31291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31292$as_echo_n "checking for RSVG... " >&6; }
31293
31294if test -n "$RSVG_CFLAGS"; then
31295 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31296 elif test -n "$PKG_CONFIG"; then
31297 if test -n "$PKG_CONFIG" && \
31298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31299 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31300 ac_status=$?
31301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31302 test $ac_status = 0; }; then
31303 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31304else
31305 pkg_failed=yes
31306fi
31307 else
31308 pkg_failed=untried
31309fi
31310if test -n "$RSVG_LIBS"; then
31311 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31312 elif test -n "$PKG_CONFIG"; then
31313 if test -n "$PKG_CONFIG" && \
31314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31315 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31316 ac_status=$?
31317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31318 test $ac_status = 0; }; then
31319 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31320else
31321 pkg_failed=yes
31322fi
31323 else
31324 pkg_failed=untried
31325fi
31326
31327
31328
31329if test $pkg_failed = yes; then
31330
31331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31332 _pkg_short_errors_supported=yes
31333else
31334 _pkg_short_errors_supported=no
31335fi
31336 if test $_pkg_short_errors_supported = yes; then
31337 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31338 else
31339 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31340 fi
31341 # Put the nasty error message in config.log where it belongs
31342 echo "$RSVG_PKG_ERRORS" >&5
31343
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31345$as_echo "no" >&6; }
31346 have_rsvg=no
31347elif test $pkg_failed = untried; then
31348 have_rsvg=no
31349else
31350 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31351 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31353$as_echo "yes" >&6; }
31354 have_rsvg=yes
31355fi
cristyad38abe2012-12-23 23:03:21 +000031356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31357$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031358
31359pkg_failed=no
31360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31361$as_echo_n "checking for CAIRO_SVG... " >&6; }
31362
31363if test -n "$CAIRO_SVG_CFLAGS"; then
31364 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31365 elif test -n "$PKG_CONFIG"; then
31366 if test -n "$PKG_CONFIG" && \
31367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31368 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31369 ac_status=$?
31370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31371 test $ac_status = 0; }; then
31372 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31373else
31374 pkg_failed=yes
31375fi
31376 else
31377 pkg_failed=untried
31378fi
31379if test -n "$CAIRO_SVG_LIBS"; then
31380 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31381 elif test -n "$PKG_CONFIG"; then
31382 if test -n "$PKG_CONFIG" && \
31383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31384 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31385 ac_status=$?
31386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31387 test $ac_status = 0; }; then
31388 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31389else
31390 pkg_failed=yes
31391fi
31392 else
31393 pkg_failed=untried
31394fi
31395
31396
31397
31398if test $pkg_failed = yes; then
31399
31400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31401 _pkg_short_errors_supported=yes
31402else
31403 _pkg_short_errors_supported=no
31404fi
31405 if test $_pkg_short_errors_supported = yes; then
31406 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31407 else
31408 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31409 fi
31410 # Put the nasty error message in config.log where it belongs
31411 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31412
31413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31414$as_echo "no" >&6; }
31415 have_cairo=no
31416elif test $pkg_failed = untried; then
31417 have_cairo=no
31418else
31419 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31420 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31422$as_echo "yes" >&6; }
31423 have_cairo=yes
31424fi
cristyad38abe2012-12-23 23:03:21 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31426$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031427fi
31428
31429if test "$have_rsvg" = 'yes'; then
31430
cristy8b350f62009-11-15 23:12:43 +000031431$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031432
cristyc6722092012-10-14 00:19:31 +000031433 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031434 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31435 fi
31436fi
31437
31438if test "$have_cairo" = 'yes'; then
31439
cristy8b350f62009-11-15 23:12:43 +000031440$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031441
cristyc6722092012-10-14 00:19:31 +000031442 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031443 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31444 fi
31445fi
31446
cristy73bd4a52010-10-05 11:24:23 +000031447 if test "$have_rsvg" = 'yes'; then
31448 RSVG_DELEGATE_TRUE=
31449 RSVG_DELEGATE_FALSE='#'
31450else
31451 RSVG_DELEGATE_TRUE='#'
31452 RSVG_DELEGATE_FALSE=
31453fi
31454
31455 if test "$have_cairo" = 'yes'; then
31456 CAIRO_DELEGATE_TRUE=
31457 CAIRO_DELEGATE_FALSE='#'
31458else
31459 CAIRO_DELEGATE_TRUE='#'
31460 CAIRO_DELEGATE_FALSE=
31461fi
31462
cristy3ed852e2009-09-05 21:47:34 +000031463
31464
31465
31466
31467#
31468# Check for TIFF delegate library.
31469#
31470
31471# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031472if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031473 withval=$with_tiff; with_tiff=$withval
31474else
31475 with_tiff='yes'
31476fi
31477
31478
31479if test "$with_tiff" != 'yes'; then
31480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31481fi
31482
31483have_tiff='no'
31484TIFF_LIBS=''
31485if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31487$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031489$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31491$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031492 failed=0
31493 passed=0
cristy8b350f62009-11-15 23:12:43 +000031494 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031495if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031496 passed=`expr $passed + 1`
31497else
31498 failed=`expr $failed + 1`
31499fi
31500
31501
cristy8b350f62009-11-15 23:12:43 +000031502 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031503if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031504 passed=`expr $passed + 1`
31505else
31506 failed=`expr $failed + 1`
31507fi
31508
31509
cristy8b350f62009-11-15 23:12:43 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031511$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031512if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031513 $as_echo_n "(cached) " >&6
31514else
31515 ac_check_lib_save_LIBS=$LIBS
31516LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031518/* end confdefs.h. */
31519
31520/* Override any GCC internal prototype to avoid an error.
31521 Use char because int might match the return type of a GCC
31522 builtin and then its argument prototype would still apply. */
31523#ifdef __cplusplus
31524extern "C"
31525#endif
31526char TIFFOpen ();
31527int
31528main ()
31529{
31530return TIFFOpen ();
31531 ;
31532 return 0;
31533}
31534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031536 ac_cv_lib_tiff_TIFFOpen=yes
31537else
cristy8b350f62009-11-15 23:12:43 +000031538 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031539fi
cristy8b350f62009-11-15 23:12:43 +000031540rm -f core conftest.err conftest.$ac_objext \
31541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031542LIBS=$ac_check_lib_save_LIBS
31543fi
cristy8b350f62009-11-15 23:12:43 +000031544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031545$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031546if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031547 passed=`expr $passed + 1`
31548else
31549 failed=`expr $failed + 1`
31550fi
31551
cristy8b350f62009-11-15 23:12:43 +000031552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031553$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031554if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031555 $as_echo_n "(cached) " >&6
31556else
31557 ac_check_lib_save_LIBS=$LIBS
31558LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031560/* end confdefs.h. */
31561
31562/* Override any GCC internal prototype to avoid an error.
31563 Use char because int might match the return type of a GCC
31564 builtin and then its argument prototype would still apply. */
31565#ifdef __cplusplus
31566extern "C"
31567#endif
31568char TIFFClientOpen ();
31569int
31570main ()
31571{
31572return TIFFClientOpen ();
31573 ;
31574 return 0;
31575}
31576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031578 ac_cv_lib_tiff_TIFFClientOpen=yes
31579else
cristy8b350f62009-11-15 23:12:43 +000031580 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031581fi
cristy8b350f62009-11-15 23:12:43 +000031582rm -f core conftest.err conftest.$ac_objext \
31583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031584LIBS=$ac_check_lib_save_LIBS
31585fi
cristy8b350f62009-11-15 23:12:43 +000031586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031588if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031589 passed=`expr $passed + 1`
31590else
31591 failed=`expr $failed + 1`
31592fi
31593
cristy8b350f62009-11-15 23:12:43 +000031594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031595$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031596if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031597 $as_echo_n "(cached) " >&6
31598else
31599 ac_check_lib_save_LIBS=$LIBS
31600LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031602/* end confdefs.h. */
31603
31604/* Override any GCC internal prototype to avoid an error.
31605 Use char because int might match the return type of a GCC
31606 builtin and then its argument prototype would still apply. */
31607#ifdef __cplusplus
31608extern "C"
31609#endif
31610char TIFFIsByteSwapped ();
31611int
31612main ()
31613{
31614return TIFFIsByteSwapped ();
31615 ;
31616 return 0;
31617}
31618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031620 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31621else
cristy8b350f62009-11-15 23:12:43 +000031622 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031623fi
cristy8b350f62009-11-15 23:12:43 +000031624rm -f core conftest.err conftest.$ac_objext \
31625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031626LIBS=$ac_check_lib_save_LIBS
31627fi
cristy8b350f62009-11-15 23:12:43 +000031628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031629$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031630if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031631 passed=`expr $passed + 1`
31632else
31633 failed=`expr $failed + 1`
31634fi
31635
cristy8b350f62009-11-15 23:12:43 +000031636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031637$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031638if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031639 $as_echo_n "(cached) " >&6
31640else
31641 ac_check_lib_save_LIBS=$LIBS
31642LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031644/* end confdefs.h. */
31645
31646/* Override any GCC internal prototype to avoid an error.
31647 Use char because int might match the return type of a GCC
31648 builtin and then its argument prototype would still apply. */
31649#ifdef __cplusplus
31650extern "C"
31651#endif
31652char TIFFReadRGBATile ();
31653int
31654main ()
31655{
31656return TIFFReadRGBATile ();
31657 ;
31658 return 0;
31659}
31660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031662 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31663else
cristy8b350f62009-11-15 23:12:43 +000031664 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031665fi
cristy8b350f62009-11-15 23:12:43 +000031666rm -f core conftest.err conftest.$ac_objext \
31667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031668LIBS=$ac_check_lib_save_LIBS
31669fi
cristy8b350f62009-11-15 23:12:43 +000031670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031671$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031672if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031673 passed=`expr $passed + 1`
31674else
31675 failed=`expr $failed + 1`
31676fi
31677
cristy8b350f62009-11-15 23:12:43 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031680if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031681 $as_echo_n "(cached) " >&6
31682else
31683 ac_check_lib_save_LIBS=$LIBS
31684LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031686/* end confdefs.h. */
31687
31688/* Override any GCC internal prototype to avoid an error.
31689 Use char because int might match the return type of a GCC
31690 builtin and then its argument prototype would still apply. */
31691#ifdef __cplusplus
31692extern "C"
31693#endif
31694char TIFFReadRGBAStrip ();
31695int
31696main ()
31697{
31698return TIFFReadRGBAStrip ();
31699 ;
31700 return 0;
31701}
31702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031704 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31705else
cristy8b350f62009-11-15 23:12:43 +000031706 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031707fi
cristy8b350f62009-11-15 23:12:43 +000031708rm -f core conftest.err conftest.$ac_objext \
31709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031710LIBS=$ac_check_lib_save_LIBS
31711fi
cristy8b350f62009-11-15 23:12:43 +000031712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031713$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031714if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031715 passed=`expr $passed + 1`
31716else
31717 failed=`expr $failed + 1`
31718fi
31719
cristy8b350f62009-11-15 23:12:43 +000031720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031721$as_echo_n "checking if TIFF package is complete... " >&6; }
31722 if test $passed -gt 0; then
31723 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31725$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031726 have_tiff='no (failed tests)'
31727 else
31728 TIFF_LIBS='-ltiff'
31729 LIBS="$TIFF_LIBS $LIBS"
31730
cristy8b350f62009-11-15 23:12:43 +000031731$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031732
cristyad38abe2012-12-23 23:03:21 +000031733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31734$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031735 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031736 for ac_header in tiffconf.h
31737do :
31738 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031739if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031740 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031741#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031742_ACEOF
31743
31744fi
31745
31746done
31747
cristy8b350f62009-11-15 23:12:43 +000031748 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031749 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31750 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31751 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031752do :
31753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031755if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031756 cat >>confdefs.h <<_ACEOF
31757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31758_ACEOF
31759
31760fi
31761done
31762
31763 fi
31764 else
cristyad38abe2012-12-23 23:03:21 +000031765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31766$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031767 fi
31768fi
cristy73bd4a52010-10-05 11:24:23 +000031769 if test "$have_tiff" = 'yes'; then
31770 TIFF_DELEGATE_TRUE=
31771 TIFF_DELEGATE_FALSE='#'
31772else
31773 TIFF_DELEGATE_TRUE='#'
31774 TIFF_DELEGATE_FALSE=
31775fi
31776
cristy3ed852e2009-09-05 21:47:34 +000031777
31778
31779
31780#
cristyb1860752011-03-14 00:27:46 +000031781# Check for WEBP delegate library.
31782#
31783
31784# Check whether --with-webp was given.
31785if test "${with_webp+set}" = set; then :
31786 withval=$with_webp; with_webp=$withval
31787else
31788 with_webp='yes'
31789fi
31790
31791
31792if test "$with_webp" != 'yes'; then
31793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31794fi
31795
31796have_webp='no'
31797WEBP_LIBS=''
31798if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31800$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31802$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31804$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031805 failed=0
31806 passed=0
31807 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31808if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31809 passed=`expr $passed + 1`
31810else
31811 failed=`expr $failed + 1`
31812fi
31813
31814
cristy6d670312013-03-22 23:23:01 +000031815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31816$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31817if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031818 $as_echo_n "(cached) " >&6
31819else
31820 ac_check_lib_save_LIBS=$LIBS
31821LIBS="-lwebp $LIBS"
31822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31823/* end confdefs.h. */
31824
31825/* Override any GCC internal prototype to avoid an error.
31826 Use char because int might match the return type of a GCC
31827 builtin and then its argument prototype would still apply. */
31828#ifdef __cplusplus
31829extern "C"
31830#endif
cristy6d670312013-03-22 23:23:01 +000031831char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031832int
31833main ()
31834{
cristy6d670312013-03-22 23:23:01 +000031835return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031836 ;
31837 return 0;
31838}
31839_ACEOF
31840if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031841 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031842else
cristy6d670312013-03-22 23:23:01 +000031843 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031844fi
31845rm -f core conftest.err conftest.$ac_objext \
31846 conftest$ac_exeext conftest.$ac_ext
31847LIBS=$ac_check_lib_save_LIBS
31848fi
cristy6d670312013-03-22 23:23:01 +000031849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31850$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31851if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031852 passed=`expr $passed + 1`
31853else
31854 failed=`expr $failed + 1`
31855fi
31856
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31858$as_echo_n "checking if WEBP package is complete... " >&6; }
31859 if test $passed -gt 0; then
31860 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31862$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031863 have_webp='no (failed tests)'
31864 else
31865 WEBP_LIBS='-lwebp'
31866 LIBS="$WEBP_LIBS $LIBS"
31867
31868$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31869
cristyad38abe2012-12-23 23:03:21 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31871$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031872 have_webp='yes'
31873 fi
31874 else
cristyad38abe2012-12-23 23:03:21 +000031875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31876$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031877 fi
31878fi
31879 if test "$have_webp" = 'yes'; then
31880 WEBP_DELEGATE_TRUE=
31881 WEBP_DELEGATE_FALSE='#'
31882else
31883 WEBP_DELEGATE_TRUE='#'
31884 WEBP_DELEGATE_FALSE=
31885fi
31886
31887
31888
31889
31890#
cristy3ed852e2009-09-05 21:47:34 +000031891# Set Windows font directory.
31892#
31893
31894# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031895if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31897else
31898 with_windows_font_dir=''
31899fi
31900
31901if test "$with_windows_font_dir" != '' ; then
31902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31903fi
31904
31905
31906#
31907# Check for WMF delegate library.
31908#
31909
31910# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031911if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031912 withval=$with_wmf; with_wmf=$withval
31913else
cristyfc3d0222012-02-07 15:05:57 +000031914 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031915fi
31916
31917
31918if test "$with_wmf" != 'yes'; then
31919 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31920fi
31921
31922have_wmf='no'
31923WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031924WMF_LIBS_DEPS=''
31925OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031926if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31928$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31932$as_echo "" >&6; }
31933 have_libwmf='no'
31934 have_libwmflite='no'
31935 have_libwmf_ipa_h='no'
31936
31937 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31938"
31939if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31940 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031941fi
31942
31943
cristy03f7cf92011-12-15 01:40:41 +000031944 if test "$have_libwmf_ipa_h" = 'yes'; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31946$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31947if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031948 $as_echo_n "(cached) " >&6
31949else
31950 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031951LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031953/* end confdefs.h. */
31954
31955/* Override any GCC internal prototype to avoid an error.
31956 Use char because int might match the return type of a GCC
31957 builtin and then its argument prototype would still apply. */
31958#ifdef __cplusplus
31959extern "C"
31960#endif
cristy03f7cf92011-12-15 01:40:41 +000031961char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031962int
31963main ()
31964{
cristy03f7cf92011-12-15 01:40:41 +000031965return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031966 ;
31967 return 0;
31968}
31969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031970if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031971 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031972else
cristy03f7cf92011-12-15 01:40:41 +000031973 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031974fi
cristy8b350f62009-11-15 23:12:43 +000031975rm -f core conftest.err conftest.$ac_objext \
31976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031977LIBS=$ac_check_lib_save_LIBS
31978fi
cristy03f7cf92011-12-15 01:40:41 +000031979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31980$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31981if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31982 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031983fi
31984
cristy03f7cf92011-12-15 01:40:41 +000031985 if test "$have_libwmflite" = 'yes'; then
31986
31987$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31988
31989 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031990 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031991 have_wmf='yes'
31992 else
31993 WMF_LIBS_DEPS=''
31994 WMF_CONFIG_LIBS=`libwmf-config --libs`
31995 for lib in xml2 expat freetype jpeg png z; do
31996 testlib="-l${lib}"
31997 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31998 done
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32000$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32001if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32002 $as_echo_n "(cached) " >&6
32003else
32004 ac_check_lib_save_LIBS=$LIBS
32005LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32007/* end confdefs.h. */
32008
32009/* Override any GCC internal prototype to avoid an error.
32010 Use char because int might match the return type of a GCC
32011 builtin and then its argument prototype would still apply. */
32012#ifdef __cplusplus
32013extern "C"
32014#endif
32015char wmf_api_create ();
32016int
32017main ()
32018{
32019return wmf_api_create ();
32020 ;
32021 return 0;
32022}
32023_ACEOF
32024if ac_fn_c_try_link "$LINENO"; then :
32025 ac_cv_lib_wmf_wmf_api_create=yes
32026else
32027 ac_cv_lib_wmf_wmf_api_create=no
32028fi
32029rm -f core conftest.err conftest.$ac_objext \
32030 conftest$ac_exeext conftest.$ac_ext
32031LIBS=$ac_check_lib_save_LIBS
32032fi
32033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32034$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32035if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32036 have_libwmf='yes'
32037fi
32038
32039 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032040
cristy8b350f62009-11-15 23:12:43 +000032041$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032042
cristy03f7cf92011-12-15 01:40:41 +000032043 WMF_LIBS='-lwmf'
32044 LIBS="$WMF_LIBS $LIBS"
32045 have_wmf='yes'
32046 else
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32048$as_echo "no -- some components failed test" >&6; }
32049 have_wmf='no (failed tests)'
32050 have_wmflite='no (failed tests)'
32051 LIBS="$OLIBS"
32052 WMF_LIBS=''
32053 fi
glennrp33e524b2011-08-24 17:41:57 +000032054 fi
cristy03f7cf92011-12-15 01:40:41 +000032055 fi
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32057$as_echo_n "checking if WMF package is complete... " >&6; }
32058 if test "$have_wmf" = 'yes'; then
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32060$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032061 else
cristy03f7cf92011-12-15 01:40:41 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32063$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032064 fi
cristy3ed852e2009-09-05 21:47:34 +000032065fi
cristy73bd4a52010-10-05 11:24:23 +000032066 if test "$have_wmf" = 'yes'; then
32067 WMF_DELEGATE_TRUE=
32068 WMF_DELEGATE_FALSE='#'
32069else
32070 WMF_DELEGATE_TRUE='#'
32071 WMF_DELEGATE_FALSE=
32072fi
32073
cristy3ed852e2009-09-05 21:47:34 +000032074
32075
32076
cristy81beccd2011-10-03 18:17:24 +000032077
32078
cristy3ed852e2009-09-05 21:47:34 +000032079#
32080# Check for XML delegate library.
32081#
32082
32083# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032084if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032085 withval=$with_xml; with_xml=$withval
32086else
cristyfc3d0222012-02-07 15:05:57 +000032087 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032088fi
32089
32090
cristy81beccd2011-10-03 18:17:24 +000032091if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32093fi
32094
cristy81beccd2011-10-03 18:17:24 +000032095have_xml='no'
32096XML_LIBS=''
32097if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32099$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32101$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32103$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032104 PERSIST_LDFLAGS=$LDFLAGS
32105 PERSIST_CPPFLAGS=$CPPFLAGS
32106 xml2_config=''
32107 # Extract the first word of "xml2-config", so it can be a program name with args.
32108set dummy xml2-config; ac_word=$2
32109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32110$as_echo_n "checking for $ac_word... " >&6; }
32111if ${ac_cv_path_xml2_config+:} false; then :
32112 $as_echo_n "(cached) " >&6
32113else
32114 case $xml2_config in
32115 [\\/]* | ?:[\\/]*)
32116 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32117 ;;
32118 *)
32119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32120for as_dir in $PATH
32121do
32122 IFS=$as_save_IFS
32123 test -z "$as_dir" && as_dir=.
32124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032126 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32128 break 2
32129 fi
32130done
32131 done
32132IFS=$as_save_IFS
32133
32134 ;;
32135esac
32136fi
32137xml2_config=$ac_cv_path_xml2_config
32138if test -n "$xml2_config"; then
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32140$as_echo "$xml2_config" >&6; }
32141else
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32143$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032144fi
32145
cristy81beccd2011-10-03 18:17:24 +000032146 if test -n "$xml2_config"; then
32147 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32148 # the shared library installed under /usr/lib, whereas the package
32149 # installs itself under $prefix/libxml and $prefix/lib.
32150 xml2_prefix=`xml2-config --prefix`
32151 if test -d "${xml2_prefix}/include/libxml2"; then
32152 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32153 fi
32154 if test "${xml2_prefix}" != '/usr'; then
32155 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32156 fi
32157 fi
32158 failed=0
32159 passed=0
32160 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32161if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32162 passed=`expr $passed + 1`
32163else
32164 failed=`expr $failed + 1`
32165fi
32166
32167
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32169$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32170if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32171 $as_echo_n "(cached) " >&6
32172else
32173 ac_check_lib_save_LIBS=$LIBS
32174LIBS="-lxml2 $LIBS"
32175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32176/* end confdefs.h. */
32177
32178/* Override any GCC internal prototype to avoid an error.
32179 Use char because int might match the return type of a GCC
32180 builtin and then its argument prototype would still apply. */
32181#ifdef __cplusplus
32182extern "C"
32183#endif
32184char xmlSAXVersion ();
32185int
32186main ()
32187{
32188return xmlSAXVersion ();
32189 ;
32190 return 0;
32191}
32192_ACEOF
32193if ac_fn_c_try_link "$LINENO"; then :
32194 ac_cv_lib_xml2_xmlSAXVersion=yes
32195else
32196 ac_cv_lib_xml2_xmlSAXVersion=no
32197fi
32198rm -f core conftest.err conftest.$ac_objext \
32199 conftest$ac_exeext conftest.$ac_ext
32200LIBS=$ac_check_lib_save_LIBS
32201fi
32202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32203$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32204if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32205 passed=`expr $passed + 1`
32206else
32207 failed=`expr $failed + 1`
32208fi
32209
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32211$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32212if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32213 $as_echo_n "(cached) " >&6
32214else
32215 ac_check_lib_save_LIBS=$LIBS
32216LIBS="-lxml2 $LIBS"
32217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32218/* end confdefs.h. */
32219
32220/* Override any GCC internal prototype to avoid an error.
32221 Use char because int might match the return type of a GCC
32222 builtin and then its argument prototype would still apply. */
32223#ifdef __cplusplus
32224extern "C"
32225#endif
32226char xmlParseChunk ();
32227int
32228main ()
32229{
32230return xmlParseChunk ();
32231 ;
32232 return 0;
32233}
32234_ACEOF
32235if ac_fn_c_try_link "$LINENO"; then :
32236 ac_cv_lib_xml2_xmlParseChunk=yes
32237else
32238 ac_cv_lib_xml2_xmlParseChunk=no
32239fi
32240rm -f core conftest.err conftest.$ac_objext \
32241 conftest$ac_exeext conftest.$ac_ext
32242LIBS=$ac_check_lib_save_LIBS
32243fi
32244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32245$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32246if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32247 passed=`expr $passed + 1`
32248else
32249 failed=`expr $failed + 1`
32250fi
32251
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32253$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32254if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32255 $as_echo_n "(cached) " >&6
32256else
32257 ac_check_lib_save_LIBS=$LIBS
32258LIBS="-lxml2 $LIBS"
32259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32260/* end confdefs.h. */
32261
32262/* Override any GCC internal prototype to avoid an error.
32263 Use char because int might match the return type of a GCC
32264 builtin and then its argument prototype would still apply. */
32265#ifdef __cplusplus
32266extern "C"
32267#endif
32268char xmlCreatePushParserCtxt ();
32269int
32270main ()
32271{
32272return xmlCreatePushParserCtxt ();
32273 ;
32274 return 0;
32275}
32276_ACEOF
32277if ac_fn_c_try_link "$LINENO"; then :
32278 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32279else
32280 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32281fi
32282rm -f core conftest.err conftest.$ac_objext \
32283 conftest$ac_exeext conftest.$ac_ext
32284LIBS=$ac_check_lib_save_LIBS
32285fi
32286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32287$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32288if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32289 passed=`expr $passed + 1`
32290else
32291 failed=`expr $failed + 1`
32292fi
32293
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32295$as_echo_n "checking if XML package is complete... " >&6; }
32296 if test $passed -gt 0; then
32297 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32299$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032300 have_xml='no (failed tests)'
32301 LDFLAGS="$PERSIST_LDFLAGS"
32302 CPPFLAGS="$PERSIST_CPPFLAGS"
32303 else
32304 XML_LIBS='-lxml2'
32305 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032306
cristy8b350f62009-11-15 23:12:43 +000032307$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032308
cristyad38abe2012-12-23 23:03:21 +000032309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32310$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032311 have_xml='yes'
32312 fi
32313 else
cristyad38abe2012-12-23 23:03:21 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32315$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032316 fi
32317fi
cristy73bd4a52010-10-05 11:24:23 +000032318 if test "$have_xml" = 'yes'; then
32319 XML_DELEGATE_TRUE=
32320 XML_DELEGATE_FALSE='#'
32321else
32322 XML_DELEGATE_TRUE='#'
32323 XML_DELEGATE_FALSE=
32324fi
32325
cristy3ed852e2009-09-05 21:47:34 +000032326
32327
32328
32329# Substitute compiler name to build/link PerlMagick
32330#
32331
32332
32333#
32334# Configure install Paths
32335#
cristy7def36a2011-10-28 19:04:41 +000032336
cristy2a11bef2011-10-28 18:33:11 +000032337# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032338INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032339INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32340DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032341case "${build_os}" in
32342 mingw* )
32343 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32344 ;;
32345esac
32346
32347cat >>confdefs.h <<_ACEOF
32348#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32349_ACEOF
32350
32351
cristy3ed852e2009-09-05 21:47:34 +000032352
cristye52f12f2012-12-31 15:32:36 +000032353# Path to ImageMagick header files (arch part)
32354INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32355DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32356case "${build_os}" in
32357 mingw* )
32358 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32359 ;;
32360esac
32361
32362cat >>confdefs.h <<_ACEOF
32363#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32364_ACEOF
32365
32366
32367
cristy3ed852e2009-09-05 21:47:34 +000032368# Subdirectory under lib to place ImageMagick lib files
32369LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32370
32371cat >>confdefs.h <<_ACEOF
32372#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32373_ACEOF
32374
32375
32376# Path to ImageMagick bin directory
32377EXECUTABLE_PATH="${BIN_DIR}"
32378DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32379case "${build_os}" in
32380 mingw* )
32381 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32382 ;;
32383esac
32384
32385cat >>confdefs.h <<_ACEOF
32386#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32387_ACEOF
32388
32389
32390
32391# Path to ImageMagick lib
32392LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32393DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32394case "${build_os}" in
32395 mingw* )
32396 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32397 ;;
32398esac
32399
32400cat >>confdefs.h <<_ACEOF
32401#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32402_ACEOF
32403
32404
32405
cristy3ed852e2009-09-05 21:47:34 +000032406#
cristy8d0ff762013-03-10 20:33:28 +000032407# path to local binaries
32408if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32409 LIB_BIN_BASEDIRNAME="bin"
32410fi
32411
32412cat >>confdefs.h <<_ACEOF
32413#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32414_ACEOF
32415
32416
32417
32418if test "x$LIB_BIN_DIR" = "x"; then
32419 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32420fi
32421
32422
32423LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32424
32425LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32426
32427
32428#
cristy01ff9f32012-12-01 18:15:29 +000032429# path to modules lib
32430if test "x$MODULES_BASEDIRNAME" = "x"; then
32431 MODULES_BASEDIRNAME="modules"
32432fi
cristy3ed852e2009-09-05 21:47:34 +000032433
32434cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032435#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032436_ACEOF
32437
cristy01ff9f32012-12-01 18:15:29 +000032438
32439
32440if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032441 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32442else
cristy3ed852e2009-09-05 21:47:34 +000032443
32444cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032445#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032446_ACEOF
32447
cristycf4a3c22012-12-02 21:47:25 +000032448fi
cristy01ff9f32012-12-01 18:15:29 +000032449
32450
cristy371d4812012-12-01 19:48:10 +000032451MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032452
32453MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32454
32455
32456#
32457# path to coders lib
32458if test "x$CODER_DIRNAME" = "x"; then
32459 CODER_DIRNAME="coders"
32460fi
32461
32462cat >>confdefs.h <<_ACEOF
32463#define CODER_DIRNAME "$CODER_DIRNAME"
32464_ACEOF
32465
32466
32467
cristy371d4812012-12-01 19:48:10 +000032468CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032469CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032470
32471
32472#
32473# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032474#
32475# path to coders lib
32476if test "x$FILTER_DIRNAME" = "x"; then
32477 FILTER_DIRNAME="filters"
32478fi
cristy3ed852e2009-09-05 21:47:34 +000032479
32480cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032481#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032482_ACEOF
32483
cristy3ed852e2009-09-05 21:47:34 +000032484
cristy3ed852e2009-09-05 21:47:34 +000032485
cristy371d4812012-12-01 19:48:10 +000032486FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032487FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032488
32489
32490#
32491# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032492DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032493DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32494DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032495case "${build_os}" in
32496 mingw* )
32497 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32498 ;;
32499esac
32500
32501cat >>confdefs.h <<_ACEOF
32502#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32503_ACEOF
32504
32505
32506
cristy2a11bef2011-10-28 18:33:11 +000032507# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032508CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032509
32510cat >>confdefs.h <<_ACEOF
32511#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32512_ACEOF
32513
cristy7def36a2011-10-28 19:04:41 +000032514CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032515DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32516case "${build_os}" in
32517 mingw* )
32518 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32519 ;;
32520esac
32521
32522cat >>confdefs.h <<_ACEOF
32523#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32524_ACEOF
32525
32526
32527
cristy2a11bef2011-10-28 18:33:11 +000032528# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032529SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032530
32531cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032532#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032533_ACEOF
32534
cristy670aa3c2011-11-03 00:54:00 +000032535SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032536DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032537case "${build_os}" in
32538 mingw* )
cristy4f820712011-04-01 12:35:43 +000032539 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032540 ;;
32541esac
32542
32543cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032544#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032545_ACEOF
32546
32547
32548
cristy54378032012-12-04 15:52:20 +000032549#
32550# Subdirectory to place architecture-dependent configuration files.
32551if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32552 SHAREARCH_BASEDIRNAME="config"
32553fi
cristy670aa3c2011-11-03 00:54:00 +000032554
32555cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032556#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032557_ACEOF
32558
cristy54378032012-12-04 15:52:20 +000032559
32560
32561if test "x$SHAREARCH_DIRNAME" = "x"; then
32562 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32563else
cristy670aa3c2011-11-03 00:54:00 +000032564
32565cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032566#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032567_ACEOF
32568
cristy54378032012-12-04 15:52:20 +000032569fi
32570
32571
32572SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32573
32574SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032575
32576
cristy3ed852e2009-09-05 21:47:34 +000032577#
32578# program_transform_name is formed for use in a Makefile, so create a
32579# modified version for use in a shell script.
32580configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32581
32582# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32584$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32588$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032589AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032590BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032591BZIPDelegateDefault='bzip2'
32592BrowseDelegateDefault='xdg-open'
32593CGMDecodeDelegateDefault='ralcgm'
32594CatDelegateDefault='cat'
32595DNGDecodeDelegateDefault='ufraw-batch'
32596GVCDecodeDelegateDefault='dot'
32597DVIDecodeDelegateDefault='dvips'
32598EchoDelegateDefault='echo'
32599EditorDelegateDefault='xterm'
32600FIGDecodeDelegateDefault='fig2dev'
32601ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32602DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32603MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32604GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032605HPGLDecodeDelegateDefault='hp2xx'
32606HTMLDecodeDelegateDefault='html2ps'
32607ILBMDecodeDelegateDefault='ilbmtoppm'
32608ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032609JXRDecodeDelegateDefault='JxrDecApp'
32610JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032611LPDelegateDefault='lp'
32612LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032613LaunchDelegateDefault='gimp'
32614MANDelegateDefault='groff'
32615MPEGDecodeDelegateDefault='ffmpeg'
32616MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032617MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032618MVDelegateDefault='mv'
32619PCLDelegateDefault='pcl6'
32620PGPDecodeDelegateDefault='pgpv'
32621POVDelegateDefault='povray'
32622if test "$native_win32_build" = 'yes'; then
32623 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032624elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032625 PSDelegateDefault='gsc'
32626else
32627 PSDelegateDefault='gs'
32628fi
32629RLEEncodeDelegateDefault='rawtorle'
32630RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032631RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032632SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032633SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032634TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032635UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032636WebPDecodeDelegateDefault='dwebp'
32637WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032638WMFDecodeDelegateDefault='wmf2eps'
32639WWWDecodeDelegateDefault='curl'
32640XPSDelegateDefault='gxps'
32641ZipDelegateDefault='gzip'
32642
32643# Search for delegates
32644# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32645set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032648if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032649 $as_echo_n "(cached) " >&6
32650else
32651 case $AutotraceDecodeDelegate in
32652 [\\/]* | ?:[\\/]*)
32653 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32654 ;;
32655 *)
32656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32657for as_dir in $PATH
32658do
32659 IFS=$as_save_IFS
32660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032663 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665 break 2
32666 fi
32667done
cristy8b350f62009-11-15 23:12:43 +000032668 done
cristy3ed852e2009-09-05 21:47:34 +000032669IFS=$as_save_IFS
32670
32671 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32672 ;;
32673esac
32674fi
32675AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32676if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo "$AutotraceDecodeDelegate" >&6; }
32679else
cristy8b350f62009-11-15 23:12:43 +000032680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032681$as_echo "no" >&6; }
32682fi
32683
32684
cristy3ed852e2009-09-05 21:47:34 +000032685# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32686set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032689if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032690 $as_echo_n "(cached) " >&6
32691else
32692 case $BlenderDecodeDelegate in
32693 [\\/]* | ?:[\\/]*)
32694 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32695 ;;
32696 *)
32697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698for as_dir in $PATH
32699do
32700 IFS=$as_save_IFS
32701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032704 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706 break 2
32707 fi
32708done
cristy8b350f62009-11-15 23:12:43 +000032709 done
cristy3ed852e2009-09-05 21:47:34 +000032710IFS=$as_save_IFS
32711
32712 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32713 ;;
32714esac
32715fi
32716BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32717if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032719$as_echo "$BlenderDecodeDelegate" >&6; }
32720else
cristy8b350f62009-11-15 23:12:43 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032722$as_echo "no" >&6; }
32723fi
32724
32725
32726# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32727set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032730if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032731 $as_echo_n "(cached) " >&6
32732else
32733 case $BZIPDelegate in
32734 [\\/]* | ?:[\\/]*)
32735 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32736 ;;
32737 *)
32738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32739for as_dir in $PATH
32740do
32741 IFS=$as_save_IFS
32742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032745 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747 break 2
32748 fi
32749done
cristy8b350f62009-11-15 23:12:43 +000032750 done
cristy3ed852e2009-09-05 21:47:34 +000032751IFS=$as_save_IFS
32752
32753 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32754 ;;
32755esac
32756fi
32757BZIPDelegate=$ac_cv_path_BZIPDelegate
32758if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032760$as_echo "$BZIPDelegate" >&6; }
32761else
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "no" >&6; }
32764fi
32765
32766
cristyc59f0e72012-08-27 12:59:33 +000032767for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32768do
32769 # Extract the first word of "$ac_prog", so it can be a program name with args.
32770set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032773if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032774 $as_echo_n "(cached) " >&6
32775else
32776 case $BrowseDelegate in
32777 [\\/]* | ?:[\\/]*)
32778 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32779 ;;
32780 *)
32781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32782for as_dir in $PATH
32783do
32784 IFS=$as_save_IFS
32785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032788 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032790 break 2
32791 fi
32792done
cristy8b350f62009-11-15 23:12:43 +000032793 done
cristy3ed852e2009-09-05 21:47:34 +000032794IFS=$as_save_IFS
32795
cristy3ed852e2009-09-05 21:47:34 +000032796 ;;
32797esac
32798fi
32799BrowseDelegate=$ac_cv_path_BrowseDelegate
32800if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032802$as_echo "$BrowseDelegate" >&6; }
32803else
cristy8b350f62009-11-15 23:12:43 +000032804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032805$as_echo "no" >&6; }
32806fi
32807
32808
cristyc59f0e72012-08-27 12:59:33 +000032809 test -n "$BrowseDelegate" && break
32810done
32811test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32812
cristy3ed852e2009-09-05 21:47:34 +000032813# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32814set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032817if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032818 $as_echo_n "(cached) " >&6
32819else
32820 case $CGMDecodeDelegate in
32821 [\\/]* | ?:[\\/]*)
32822 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32823 ;;
32824 *)
32825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32826for as_dir in $PATH
32827do
32828 IFS=$as_save_IFS
32829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032832 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834 break 2
32835 fi
32836done
cristy8b350f62009-11-15 23:12:43 +000032837 done
cristy3ed852e2009-09-05 21:47:34 +000032838IFS=$as_save_IFS
32839
32840 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32841 ;;
32842esac
32843fi
32844CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32845if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847$as_echo "$CGMDecodeDelegate" >&6; }
32848else
cristy8b350f62009-11-15 23:12:43 +000032849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850$as_echo "no" >&6; }
32851fi
32852
32853
32854# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32855set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032858if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032859 $as_echo_n "(cached) " >&6
32860else
32861 case $CatDelegate in
32862 [\\/]* | ?:[\\/]*)
32863 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32864 ;;
32865 *)
32866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32867for as_dir in $PATH
32868do
32869 IFS=$as_save_IFS
32870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032873 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875 break 2
32876 fi
32877done
cristy8b350f62009-11-15 23:12:43 +000032878 done
cristy3ed852e2009-09-05 21:47:34 +000032879IFS=$as_save_IFS
32880
32881 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32882 ;;
32883esac
32884fi
32885CatDelegate=$ac_cv_path_CatDelegate
32886if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo "$CatDelegate" >&6; }
32889else
cristy8b350f62009-11-15 23:12:43 +000032890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891$as_echo "no" >&6; }
32892fi
32893
32894
32895# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32896set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032899if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032900 $as_echo_n "(cached) " >&6
32901else
32902 case $DNGDecodeDelegate in
32903 [\\/]* | ?:[\\/]*)
32904 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32905 ;;
32906 *)
32907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910 IFS=$as_save_IFS
32911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032914 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916 break 2
32917 fi
32918done
cristy8b350f62009-11-15 23:12:43 +000032919 done
cristy3ed852e2009-09-05 21:47:34 +000032920IFS=$as_save_IFS
32921
32922 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32923 ;;
32924esac
32925fi
32926DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32927if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "$DNGDecodeDelegate" >&6; }
32930else
cristy8b350f62009-11-15 23:12:43 +000032931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo "no" >&6; }
32933fi
32934
32935
32936# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32937set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032940if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032941 $as_echo_n "(cached) " >&6
32942else
32943 case $GVCDecodeDelegate in
32944 [\\/]* | ?:[\\/]*)
32945 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32946 ;;
32947 *)
32948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32949for as_dir in $PATH
32950do
32951 IFS=$as_save_IFS
32952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032955 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957 break 2
32958 fi
32959done
cristy8b350f62009-11-15 23:12:43 +000032960 done
cristy3ed852e2009-09-05 21:47:34 +000032961IFS=$as_save_IFS
32962
32963 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32964 ;;
32965esac
32966fi
32967GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32968if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "$GVCDecodeDelegate" >&6; }
32971else
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "no" >&6; }
32974fi
32975
32976
32977# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32978set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032981if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032982 $as_echo_n "(cached) " >&6
32983else
32984 case $DVIDecodeDelegate in
32985 [\\/]* | ?:[\\/]*)
32986 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32987 ;;
32988 *)
32989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992 IFS=$as_save_IFS
32993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032996 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998 break 2
32999 fi
33000done
cristy8b350f62009-11-15 23:12:43 +000033001 done
cristy3ed852e2009-09-05 21:47:34 +000033002IFS=$as_save_IFS
33003
33004 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33005 ;;
33006esac
33007fi
33008DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33009if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$DVIDecodeDelegate" >&6; }
33012else
cristy8b350f62009-11-15 23:12:43 +000033013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo "no" >&6; }
33015fi
33016
33017
33018# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33019set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033022if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033023 $as_echo_n "(cached) " >&6
33024else
33025 case $EchoDelegate in
33026 [\\/]* | ?:[\\/]*)
33027 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33028 ;;
33029 *)
33030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33031for as_dir in $PATH
33032do
33033 IFS=$as_save_IFS
33034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033037 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039 break 2
33040 fi
33041done
cristy8b350f62009-11-15 23:12:43 +000033042 done
cristy3ed852e2009-09-05 21:47:34 +000033043IFS=$as_save_IFS
33044
33045 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33046 ;;
33047esac
33048fi
33049EchoDelegate=$ac_cv_path_EchoDelegate
33050if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "$EchoDelegate" >&6; }
33053else
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "no" >&6; }
33056fi
33057
33058
33059# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33060set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033063if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033064 $as_echo_n "(cached) " >&6
33065else
33066 case $EditorDelegate in
33067 [\\/]* | ?:[\\/]*)
33068 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33069 ;;
33070 *)
33071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33072for as_dir in $PATH
33073do
33074 IFS=$as_save_IFS
33075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033078 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080 break 2
33081 fi
33082done
cristy8b350f62009-11-15 23:12:43 +000033083 done
cristy3ed852e2009-09-05 21:47:34 +000033084IFS=$as_save_IFS
33085
33086 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33087 ;;
33088esac
33089fi
33090EditorDelegate=$ac_cv_path_EditorDelegate
33091if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "$EditorDelegate" >&6; }
33094else
cristy8b350f62009-11-15 23:12:43 +000033095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo "no" >&6; }
33097fi
33098
33099
33100# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33101set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033104if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033105 $as_echo_n "(cached) " >&6
33106else
33107 case $FIGDecodeDelegate in
33108 [\\/]* | ?:[\\/]*)
33109 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33110 ;;
33111 *)
33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33113for as_dir in $PATH
33114do
33115 IFS=$as_save_IFS
33116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033119 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121 break 2
33122 fi
33123done
cristy8b350f62009-11-15 23:12:43 +000033124 done
cristy3ed852e2009-09-05 21:47:34 +000033125IFS=$as_save_IFS
33126
33127 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33128 ;;
33129esac
33130fi
33131FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33132if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "$FIGDecodeDelegate" >&6; }
33135else
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "no" >&6; }
33138fi
33139
33140
33141# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33142set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033145if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033146 $as_echo_n "(cached) " >&6
33147else
33148 case $ConvertDelegate in
33149 [\\/]* | ?:[\\/]*)
33150 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33151 ;;
33152 *)
33153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154for as_dir in $PATH
33155do
33156 IFS=$as_save_IFS
33157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033160 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162 break 2
33163 fi
33164done
cristy8b350f62009-11-15 23:12:43 +000033165 done
cristy3ed852e2009-09-05 21:47:34 +000033166IFS=$as_save_IFS
33167
33168 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33169 ;;
33170esac
33171fi
33172ConvertDelegate=$ac_cv_path_ConvertDelegate
33173if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "$ConvertDelegate" >&6; }
33176else
cristy8b350f62009-11-15 23:12:43 +000033177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo "no" >&6; }
33179fi
33180
33181
33182# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33183set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033186if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033187 $as_echo_n "(cached) " >&6
33188else
33189 case $DisplayDelegate in
33190 [\\/]* | ?:[\\/]*)
33191 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33192 ;;
33193 *)
33194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33195for as_dir in $PATH
33196do
33197 IFS=$as_save_IFS
33198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033201 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203 break 2
33204 fi
33205done
cristy8b350f62009-11-15 23:12:43 +000033206 done
cristy3ed852e2009-09-05 21:47:34 +000033207IFS=$as_save_IFS
33208
33209 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33210 ;;
33211esac
33212fi
33213DisplayDelegate=$ac_cv_path_DisplayDelegate
33214if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "$DisplayDelegate" >&6; }
33217else
cristy8b350f62009-11-15 23:12:43 +000033218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo "no" >&6; }
33220fi
33221
33222
33223# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33224set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033227if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033228 $as_echo_n "(cached) " >&6
33229else
33230 case $MogrifyDelegate in
33231 [\\/]* | ?:[\\/]*)
33232 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33233 ;;
33234 *)
33235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033242 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244 break 2
33245 fi
33246done
cristy8b350f62009-11-15 23:12:43 +000033247 done
cristy3ed852e2009-09-05 21:47:34 +000033248IFS=$as_save_IFS
33249
33250 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33251 ;;
33252esac
33253fi
33254MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33255if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "$MogrifyDelegate" >&6; }
33258else
cristy8b350f62009-11-15 23:12:43 +000033259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo "no" >&6; }
33261fi
33262
33263
33264# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33265set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033268if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033269 $as_echo_n "(cached) " >&6
33270else
33271 case $GnuplotDecodeDelegate in
33272 [\\/]* | ?:[\\/]*)
33273 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33274 ;;
33275 *)
33276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33277for as_dir in $PATH
33278do
33279 IFS=$as_save_IFS
33280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033283 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285 break 2
33286 fi
33287done
cristy8b350f62009-11-15 23:12:43 +000033288 done
cristy3ed852e2009-09-05 21:47:34 +000033289IFS=$as_save_IFS
33290
33291 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33292 ;;
33293esac
33294fi
33295GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33296if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "$GnuplotDecodeDelegate" >&6; }
33299else
cristy8b350f62009-11-15 23:12:43 +000033300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo "no" >&6; }
33302fi
33303
33304
cristy3ed852e2009-09-05 21:47:34 +000033305# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33306set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033309if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033310 $as_echo_n "(cached) " >&6
33311else
33312 case $HPGLDecodeDelegate in
33313 [\\/]* | ?:[\\/]*)
33314 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33315 ;;
33316 *)
33317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318for as_dir in $PATH
33319do
33320 IFS=$as_save_IFS
33321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033324 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326 break 2
33327 fi
33328done
cristy8b350f62009-11-15 23:12:43 +000033329 done
cristy3ed852e2009-09-05 21:47:34 +000033330IFS=$as_save_IFS
33331
33332 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33333 ;;
33334esac
33335fi
33336HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33337if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "$HPGLDecodeDelegate" >&6; }
33340else
cristy8b350f62009-11-15 23:12:43 +000033341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo "no" >&6; }
33343fi
33344
33345
33346# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33347set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033350if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033351 $as_echo_n "(cached) " >&6
33352else
33353 case $HTMLDecodeDelegate in
33354 [\\/]* | ?:[\\/]*)
33355 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33356 ;;
33357 *)
33358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33359for as_dir in $PATH
33360do
33361 IFS=$as_save_IFS
33362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033365 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367 break 2
33368 fi
33369done
cristy8b350f62009-11-15 23:12:43 +000033370 done
cristy3ed852e2009-09-05 21:47:34 +000033371IFS=$as_save_IFS
33372
33373 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33374 ;;
33375esac
33376fi
33377HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33378if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "$HTMLDecodeDelegate" >&6; }
33381else
cristy8b350f62009-11-15 23:12:43 +000033382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo "no" >&6; }
33384fi
33385
33386
33387# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33388set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $ILBMDecodeDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033406 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
33414 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33415 ;;
33416esac
33417fi
33418ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33419if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "$ILBMDecodeDelegate" >&6; }
33422else
cristy8b350f62009-11-15 23:12:43 +000033423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo "no" >&6; }
33425fi
33426
33427
33428# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33429set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033432if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033433 $as_echo_n "(cached) " >&6
33434else
33435 case $ILBMEncodeDelegate in
33436 [\\/]* | ?:[\\/]*)
33437 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33438 ;;
33439 *)
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441for as_dir in $PATH
33442do
33443 IFS=$as_save_IFS
33444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033447 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449 break 2
33450 fi
33451done
cristy8b350f62009-11-15 23:12:43 +000033452 done
cristy3ed852e2009-09-05 21:47:34 +000033453IFS=$as_save_IFS
33454
33455 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33456 ;;
33457esac
33458fi
33459ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33460if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "$ILBMEncodeDelegate" >&6; }
33463else
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "no" >&6; }
33466fi
33467
33468
cristy71f53d52013-04-27 13:33:59 +000033469# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33470set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33472$as_echo_n "checking for $ac_word... " >&6; }
33473if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33474 $as_echo_n "(cached) " >&6
33475else
33476 case $JXRDecodeDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
33486 for ac_exec_ext in '' $ac_executable_extensions; do
33487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33488 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33490 break 2
33491 fi
33492done
33493 done
33494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33497 ;;
33498esac
33499fi
33500JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33501if test -n "$JXRDecodeDelegate"; then
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33503$as_echo "$JXRDecodeDelegate" >&6; }
33504else
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506$as_echo "no" >&6; }
33507fi
33508
33509
33510# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33511set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33513$as_echo_n "checking for $ac_word... " >&6; }
33514if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33515 $as_echo_n "(cached) " >&6
33516else
33517 case $JXREncodeDelegate in
33518 [\\/]* | ?:[\\/]*)
33519 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33520 ;;
33521 *)
33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33523for as_dir in $PATH
33524do
33525 IFS=$as_save_IFS
33526 test -z "$as_dir" && as_dir=.
33527 for ac_exec_ext in '' $ac_executable_extensions; do
33528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33529 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33531 break 2
33532 fi
33533done
33534 done
33535IFS=$as_save_IFS
33536
33537 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33538 ;;
33539esac
33540fi
33541JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33542if test -n "$JXREncodeDelegate"; then
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33544$as_echo "$JXREncodeDelegate" >&6; }
33545else
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33547$as_echo "no" >&6; }
33548fi
33549
33550
cristy3ed852e2009-09-05 21:47:34 +000033551# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33552set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 case $LPDelegate in
33559 [\\/]* | ?:[\\/]*)
33560 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33561 ;;
33562 *)
33563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33564for as_dir in $PATH
33565do
33566 IFS=$as_save_IFS
33567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033570 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572 break 2
33573 fi
33574done
cristy8b350f62009-11-15 23:12:43 +000033575 done
cristy3ed852e2009-09-05 21:47:34 +000033576IFS=$as_save_IFS
33577
33578 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33579 ;;
33580esac
33581fi
33582LPDelegate=$ac_cv_path_LPDelegate
33583if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$LPDelegate" >&6; }
33586else
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "no" >&6; }
33589fi
33590
33591
33592# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33593set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033596if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033597 $as_echo_n "(cached) " >&6
33598else
33599 case $LPRDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033611 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613 break 2
33614 fi
33615done
cristy8b350f62009-11-15 23:12:43 +000033616 done
cristy3ed852e2009-09-05 21:47:34 +000033617IFS=$as_save_IFS
33618
33619 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33620 ;;
33621esac
33622fi
33623LPRDelegate=$ac_cv_path_LPRDelegate
33624if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "$LPRDelegate" >&6; }
33627else
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "no" >&6; }
33630fi
33631
33632
cristy3ed852e2009-09-05 21:47:34 +000033633# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33634set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033637if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033638 $as_echo_n "(cached) " >&6
33639else
33640 case $LaunchDelegate in
33641 [\\/]* | ?:[\\/]*)
33642 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33643 ;;
33644 *)
33645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33646for as_dir in $PATH
33647do
33648 IFS=$as_save_IFS
33649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033652 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654 break 2
33655 fi
33656done
cristy8b350f62009-11-15 23:12:43 +000033657 done
cristy3ed852e2009-09-05 21:47:34 +000033658IFS=$as_save_IFS
33659
33660 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33661 ;;
33662esac
33663fi
33664LaunchDelegate=$ac_cv_path_LaunchDelegate
33665if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "$LaunchDelegate" >&6; }
33668else
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "no" >&6; }
33671fi
33672
33673
33674# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33675set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033678if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033679 $as_echo_n "(cached) " >&6
33680else
33681 case $MANDelegate in
33682 [\\/]* | ?:[\\/]*)
33683 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33684 ;;
33685 *)
33686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33687for as_dir in $PATH
33688do
33689 IFS=$as_save_IFS
33690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033693 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695 break 2
33696 fi
33697done
cristy8b350f62009-11-15 23:12:43 +000033698 done
cristy3ed852e2009-09-05 21:47:34 +000033699IFS=$as_save_IFS
33700
33701 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33702 ;;
33703esac
33704fi
33705MANDelegate=$ac_cv_path_MANDelegate
33706if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "$MANDelegate" >&6; }
33709else
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "no" >&6; }
33712fi
33713
33714
33715# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33716set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033719if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033720 $as_echo_n "(cached) " >&6
33721else
33722 case $MPEGDecodeDelegate in
33723 [\\/]* | ?:[\\/]*)
33724 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33725 ;;
33726 *)
33727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33728for as_dir in $PATH
33729do
33730 IFS=$as_save_IFS
33731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033734 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736 break 2
33737 fi
33738done
cristy8b350f62009-11-15 23:12:43 +000033739 done
cristy3ed852e2009-09-05 21:47:34 +000033740IFS=$as_save_IFS
33741
33742 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33743 ;;
33744esac
33745fi
33746MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33747if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "$MPEGDecodeDelegate" >&6; }
33750else
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo "no" >&6; }
33753fi
33754
33755
33756# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33757set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033760if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033761 $as_echo_n "(cached) " >&6
33762else
33763 case $MPEGEncodeDelegate in
33764 [\\/]* | ?:[\\/]*)
33765 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33766 ;;
33767 *)
33768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33769for as_dir in $PATH
33770do
33771 IFS=$as_save_IFS
33772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033775 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777 break 2
33778 fi
33779done
cristy8b350f62009-11-15 23:12:43 +000033780 done
cristy3ed852e2009-09-05 21:47:34 +000033781IFS=$as_save_IFS
33782
33783 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33784 ;;
33785esac
33786fi
33787MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33788if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$MPEGEncodeDelegate" >&6; }
33791else
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "no" >&6; }
33794fi
33795
33796
cristy935c86e2010-06-05 23:50:07 +000033797# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33798set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033801if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033802 $as_echo_n "(cached) " >&6
33803else
33804 case $MrSIDDecodeDelegate in
33805 [\\/]* | ?:[\\/]*)
33806 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33807 ;;
33808 *)
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812 IFS=$as_save_IFS
33813 test -z "$as_dir" && as_dir=.
33814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033816 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33818 break 2
33819 fi
33820done
33821 done
33822IFS=$as_save_IFS
33823
33824 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33825 ;;
33826esac
33827fi
33828MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33829if test -n "$MrSIDDecodeDelegate"; then
33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33831$as_echo "$MrSIDDecodeDelegate" >&6; }
33832else
33833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33834$as_echo "no" >&6; }
33835fi
33836
33837
cristy3ed852e2009-09-05 21:47:34 +000033838# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33839set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033842if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033843 $as_echo_n "(cached) " >&6
33844else
33845 case $MVDelegate in
33846 [\\/]* | ?:[\\/]*)
33847 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33848 ;;
33849 *)
33850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033857 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33866 ;;
33867esac
33868fi
33869MVDelegate=$ac_cv_path_MVDelegate
33870if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$MVDelegate" >&6; }
33873else
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "no" >&6; }
33876fi
33877
33878
33879# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33880set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033883if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033884 $as_echo_n "(cached) " >&6
33885else
33886 case $PCLDelegate in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033898 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900 break 2
33901 fi
33902done
cristy8b350f62009-11-15 23:12:43 +000033903 done
cristy3ed852e2009-09-05 21:47:34 +000033904IFS=$as_save_IFS
33905
33906 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33907 ;;
33908esac
33909fi
33910PCLDelegate=$ac_cv_path_PCLDelegate
33911if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "$PCLDelegate" >&6; }
33914else
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "no" >&6; }
33917fi
33918
33919
33920# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33921set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033924if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033925 $as_echo_n "(cached) " >&6
33926else
33927 case $PGPDecodeDelegate in
33928 [\\/]* | ?:[\\/]*)
33929 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33930 ;;
33931 *)
33932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935 IFS=$as_save_IFS
33936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033939 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941 break 2
33942 fi
33943done
cristy8b350f62009-11-15 23:12:43 +000033944 done
cristy3ed852e2009-09-05 21:47:34 +000033945IFS=$as_save_IFS
33946
33947 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33948 ;;
33949esac
33950fi
33951PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33952if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "$PGPDecodeDelegate" >&6; }
33955else
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "no" >&6; }
33958fi
33959
33960
33961# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33962set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033965if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033966 $as_echo_n "(cached) " >&6
33967else
33968 case $POVDelegate in
33969 [\\/]* | ?:[\\/]*)
33970 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33971 ;;
33972 *)
33973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33974for as_dir in $PATH
33975do
33976 IFS=$as_save_IFS
33977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033980 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982 break 2
33983 fi
33984done
cristy8b350f62009-11-15 23:12:43 +000033985 done
cristy3ed852e2009-09-05 21:47:34 +000033986IFS=$as_save_IFS
33987
33988 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33989 ;;
33990esac
33991fi
33992POVDelegate=$ac_cv_path_POVDelegate
33993if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo "$POVDelegate" >&6; }
33996else
cristy8b350f62009-11-15 23:12:43 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo "no" >&6; }
33999fi
34000
34001
34002for ac_prog in gsx gsc "$PSDelegateDefault"
34003do
34004 # Extract the first word of "$ac_prog", so it can be a program name with args.
34005set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034008if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034009 $as_echo_n "(cached) " >&6
34010else
34011 case $PSDelegate in
34012 [\\/]* | ?:[\\/]*)
34013 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34014 ;;
34015 *)
34016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34017for as_dir in $PATH
34018do
34019 IFS=$as_save_IFS
34020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034023 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034025 break 2
34026 fi
34027done
cristy8b350f62009-11-15 23:12:43 +000034028 done
cristy3ed852e2009-09-05 21:47:34 +000034029IFS=$as_save_IFS
34030
34031 ;;
34032esac
34033fi
34034PSDelegate=$ac_cv_path_PSDelegate
34035if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo "$PSDelegate" >&6; }
34038else
cristy8b350f62009-11-15 23:12:43 +000034039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo "no" >&6; }
34041fi
34042
34043
34044 test -n "$PSDelegate" && break
34045done
34046test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34047
34048# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34049set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034052if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034053 $as_echo_n "(cached) " >&6
34054else
34055 case $RLEEncodeDelegate in
34056 [\\/]* | ?:[\\/]*)
34057 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34058 ;;
34059 *)
34060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34061for as_dir in $PATH
34062do
34063 IFS=$as_save_IFS
34064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034067 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034069 break 2
34070 fi
34071done
cristy8b350f62009-11-15 23:12:43 +000034072 done
cristy3ed852e2009-09-05 21:47:34 +000034073IFS=$as_save_IFS
34074
34075 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34076 ;;
34077esac
34078fi
34079RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34080if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034082$as_echo "$RLEEncodeDelegate" >&6; }
34083else
cristy8b350f62009-11-15 23:12:43 +000034084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034085$as_echo "no" >&6; }
34086fi
34087
34088
34089# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34090set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034093if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034094 $as_echo_n "(cached) " >&6
34095else
34096 case $RMDelegate in
34097 [\\/]* | ?:[\\/]*)
34098 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34099 ;;
34100 *)
34101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34102for as_dir in $PATH
34103do
34104 IFS=$as_save_IFS
34105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034108 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034110 break 2
34111 fi
34112done
cristy8b350f62009-11-15 23:12:43 +000034113 done
cristy3ed852e2009-09-05 21:47:34 +000034114IFS=$as_save_IFS
34115
34116 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34117 ;;
34118esac
34119fi
34120RMDelegate=$ac_cv_path_RMDelegate
34121if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123$as_echo "$RMDelegate" >&6; }
34124else
cristy8b350f62009-11-15 23:12:43 +000034125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo "no" >&6; }
34127fi
34128
34129
cristy4689cf02010-02-17 21:15:45 +000034130# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34131set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034134if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034135 $as_echo_n "(cached) " >&6
34136else
34137 case $RSVGDecodeDelegate in
34138 [\\/]* | ?:[\\/]*)
34139 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34140 ;;
34141 *)
34142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34143for as_dir in $PATH
34144do
34145 IFS=$as_save_IFS
34146 test -z "$as_dir" && as_dir=.
34147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034149 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34151 break 2
34152 fi
34153done
34154 done
34155IFS=$as_save_IFS
34156
34157 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34158 ;;
34159esac
34160fi
34161RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34162if test -n "$RSVGDecodeDelegate"; then
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34164$as_echo "$RSVGDecodeDelegate" >&6; }
34165else
34166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34167$as_echo "no" >&6; }
34168fi
34169
34170
cristy3ed852e2009-09-05 21:47:34 +000034171# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34172set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034175if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034176 $as_echo_n "(cached) " >&6
34177else
34178 case $SCANDecodeDelegate in
34179 [\\/]* | ?:[\\/]*)
34180 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34181 ;;
34182 *)
34183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34184for as_dir in $PATH
34185do
34186 IFS=$as_save_IFS
34187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034190 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192 break 2
34193 fi
34194done
cristy8b350f62009-11-15 23:12:43 +000034195 done
cristy3ed852e2009-09-05 21:47:34 +000034196IFS=$as_save_IFS
34197
34198 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34199 ;;
34200esac
34201fi
34202SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34203if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo "$SCANDecodeDelegate" >&6; }
34206else
cristy8b350f62009-11-15 23:12:43 +000034207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034208$as_echo "no" >&6; }
34209fi
34210
34211
cristyec6934f2012-08-14 18:38:40 +000034212# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34213set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34215$as_echo_n "checking for $ac_word... " >&6; }
34216if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34217 $as_echo_n "(cached) " >&6
34218else
34219 case $SVGDecodeDelegate in
34220 [\\/]* | ?:[\\/]*)
34221 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34222 ;;
34223 *)
34224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34225for as_dir in $PATH
34226do
34227 IFS=$as_save_IFS
34228 test -z "$as_dir" && as_dir=.
34229 for ac_exec_ext in '' $ac_executable_extensions; do
34230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34231 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34233 break 2
34234 fi
34235done
34236 done
34237IFS=$as_save_IFS
34238
34239 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34240 ;;
34241esac
34242fi
34243SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34244if test -n "$SVGDecodeDelegate"; then
34245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34246$as_echo "$SVGDecodeDelegate" >&6; }
34247else
34248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34249$as_echo "no" >&6; }
34250fi
34251
34252
cristy3ed852e2009-09-05 21:47:34 +000034253# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34254set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034257if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034258 $as_echo_n "(cached) " >&6
34259else
34260 case $TXTDelegate in
34261 [\\/]* | ?:[\\/]*)
34262 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34263 ;;
34264 *)
34265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34266for as_dir in $PATH
34267do
34268 IFS=$as_save_IFS
34269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034272 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274 break 2
34275 fi
34276done
cristy8b350f62009-11-15 23:12:43 +000034277 done
cristy3ed852e2009-09-05 21:47:34 +000034278IFS=$as_save_IFS
34279
34280 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34281 ;;
34282esac
34283fi
34284TXTDelegate=$ac_cv_path_TXTDelegate
34285if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo "$TXTDelegate" >&6; }
34288else
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "no" >&6; }
34291fi
34292
34293
cristy5ac9ac82010-07-29 13:24:24 +000034294# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34295set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034298if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034299 $as_echo_n "(cached) " >&6
34300else
34301 case $UniconvertorDelegate in
34302 [\\/]* | ?:[\\/]*)
34303 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34304 ;;
34305 *)
34306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34307for as_dir in $PATH
34308do
34309 IFS=$as_save_IFS
34310 test -z "$as_dir" && as_dir=.
34311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034313 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34315 break 2
34316 fi
34317done
34318 done
34319IFS=$as_save_IFS
34320
34321 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34322 ;;
34323esac
34324fi
34325UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34326if test -n "$UniconvertorDelegate"; then
34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34328$as_echo "$UniconvertorDelegate" >&6; }
34329else
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34331$as_echo "no" >&6; }
34332fi
34333
34334
cristy86e86092013-08-04 17:43:57 +000034335# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
34339if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34340 $as_echo_n "(cached) " >&6
34341else
34342 case $WebPDecodeDelegate in
34343 [\\/]* | ?:[\\/]*)
34344 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34345 ;;
34346 *)
34347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350 IFS=$as_save_IFS
34351 test -z "$as_dir" && as_dir=.
34352 for ac_exec_ext in '' $ac_executable_extensions; do
34353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34354 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356 break 2
34357 fi
34358done
34359 done
34360IFS=$as_save_IFS
34361
34362 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34363 ;;
34364esac
34365fi
34366WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34367if test -n "$WebPDecodeDelegate"; then
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34369$as_echo "$WebPDecodeDelegate" >&6; }
34370else
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
34376# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34377set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34379$as_echo_n "checking for $ac_word... " >&6; }
34380if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34381 $as_echo_n "(cached) " >&6
34382else
34383 case $WebPEncodeDelegate in
34384 [\\/]* | ?:[\\/]*)
34385 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34386 ;;
34387 *)
34388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391 IFS=$as_save_IFS
34392 test -z "$as_dir" && as_dir=.
34393 for ac_exec_ext in '' $ac_executable_extensions; do
34394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34395 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34397 break 2
34398 fi
34399done
34400 done
34401IFS=$as_save_IFS
34402
34403 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34404 ;;
34405esac
34406fi
34407WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34408if test -n "$WebPEncodeDelegate"; then
34409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34410$as_echo "$WebPEncodeDelegate" >&6; }
34411else
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413$as_echo "no" >&6; }
34414fi
34415
34416
cristy3ed852e2009-09-05 21:47:34 +000034417# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34418set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034421if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034422 $as_echo_n "(cached) " >&6
34423else
34424 case $WMFDecodeDelegate in
34425 [\\/]* | ?:[\\/]*)
34426 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34427 ;;
34428 *)
34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034436 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438 break 2
34439 fi
34440done
cristy8b350f62009-11-15 23:12:43 +000034441 done
cristy3ed852e2009-09-05 21:47:34 +000034442IFS=$as_save_IFS
34443
34444 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34445 ;;
34446esac
34447fi
34448WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34449if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "$WMFDecodeDelegate" >&6; }
34452else
cristy8b350f62009-11-15 23:12:43 +000034453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo "no" >&6; }
34455fi
34456
34457
34458# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34459set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034462if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034463 $as_echo_n "(cached) " >&6
34464else
34465 case $WWWDecodeDelegate in
34466 [\\/]* | ?:[\\/]*)
34467 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34468 ;;
34469 *)
34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473 IFS=$as_save_IFS
34474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034477 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479 break 2
34480 fi
34481done
cristy8b350f62009-11-15 23:12:43 +000034482 done
cristy3ed852e2009-09-05 21:47:34 +000034483IFS=$as_save_IFS
34484
34485 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34486 ;;
34487esac
34488fi
34489WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34490if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034492$as_echo "$WWWDecodeDelegate" >&6; }
34493else
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo "no" >&6; }
34496fi
34497
34498
34499# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34500set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034503if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034504 $as_echo_n "(cached) " >&6
34505else
34506 case $XPSDelegate in
34507 [\\/]* | ?:[\\/]*)
34508 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34509 ;;
34510 *)
34511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514 IFS=$as_save_IFS
34515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034518 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520 break 2
34521 fi
34522done
cristy8b350f62009-11-15 23:12:43 +000034523 done
cristy3ed852e2009-09-05 21:47:34 +000034524IFS=$as_save_IFS
34525
34526 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34527 ;;
34528esac
34529fi
34530XPSDelegate=$ac_cv_path_XPSDelegate
34531if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034533$as_echo "$XPSDelegate" >&6; }
34534else
cristy8b350f62009-11-15 23:12:43 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034536$as_echo "no" >&6; }
34537fi
34538
34539
34540# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34541set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 case $ZipDelegate in
34548 [\\/]* | ?:[\\/]*)
34549 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34550 ;;
34551 *)
34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555 IFS=$as_save_IFS
34556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034559 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561 break 2
34562 fi
34563done
cristy8b350f62009-11-15 23:12:43 +000034564 done
cristy3ed852e2009-09-05 21:47:34 +000034565IFS=$as_save_IFS
34566
34567 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34568 ;;
34569esac
34570fi
34571ZipDelegate=$ac_cv_path_ZipDelegate
34572if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo "$ZipDelegate" >&6; }
34575else
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "no" >&6; }
34578fi
34579
34580
34581
34582# Prefer lpr to lp; lp needs options tacked on.
34583if test "$LPRDelegate" != no; then
34584 PrintDelegate="$LPRDelegate"
34585else
34586 PrintDelegate="$LPDelegate -c -s"
34587fi
34588
34589
34590# Installed ImageMagick utiltity paths
34591ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34592DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34593MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34594
34595# Set delegate booleans
34596have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34597have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34598have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34599have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34600have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034601have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034602have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34603have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034604have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34605have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34606
34607#
34608# Test for font directories
34609#
34610type_include_files=''
34611
cristy430a7312010-01-21 20:44:04 +000034612# Dejavu fonts.
34613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34614$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34615dejavu_font_dir=''
34616if test "${with_dejavu_font_dir}" != 'default'; then
34617 dejavu_font_dir="${with_dejavu_font_dir}/"
34618else
34619 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34620 if test -f "${font_dir}DejaVuSerif.ttf"; then
34621 dejavu_font_dir="${font_dir}"
34622 break 1
34623 fi
34624 done
34625fi
34626if test "${dejavu_font_dir}x" != 'x'; then
34627 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34629$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034630else
cristyad38abe2012-12-23 23:03:21 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34632$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034633fi
34634
34635
cristy3ed852e2009-09-05 21:47:34 +000034636# Windows
34637windows_font_dir=''
34638if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34639 windows_font_dir="${with_windows_font_dir}/"
34640fi
cristy430a7312010-01-21 20:44:04 +000034641if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034642 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34643 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34644 fi
34645 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34646 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34647 fi
34648 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34649 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34650 fi
34651fi
cristy430a7312010-01-21 20:44:04 +000034652if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034653 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34654fi
34655
34656
34657# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34660ghostscript_font_dir=''
34661if test "${with_gs_font_dir}" != 'default'; then
34662 ghostscript_font_dir="${with_gs_font_dir}/"
34663else
34664 if test "${native_win32_build}" = 'yes'; then
34665 # Native Windows Build
34666 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34667 if test -f "${font_dir}a010013l.pfb"; then
34668 ghostscript_font_dir="$font_dir"
34669 break 1
34670 fi
34671 done
34672 if test "${PSDelegate}" != 'gswin32c'; then
34673 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34674 fi
34675 else
34676 # Linux / Mac OS X / Unix Build
34677 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
34678 if test -f "${font_dir}a010013l.pfb"; then
34679 ghostscript_font_dir="${font_dir}"
34680 break 1
34681 fi
34682 done
34683 if test "${ghostscript_font_dir}x" = 'x'; then
34684 if test "$PSDelegate" != 'gs'; then
34685 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34686 fi
34687 fi
34688 fi
34689fi
34690if test "${ghostscript_font_dir}x" != 'x'; then
34691 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34693$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034694else
cristyad38abe2012-12-23 23:03:21 +000034695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34696$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034697fi
34698
34699case "${build_os}" in
34700 mingw* )
34701 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34702 ;;
34703esac
34704
34705
34706
34707#
34708# Handle case where user doesn't want frozen paths
34709#
34710if test "$with_frozenpaths" != 'yes'; then
34711 # Re-set delegate definitions to default (no paths)
34712 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034713 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34714 BZIPDelegate="$BZIPDelegateDefault"
34715 BrowseDelegate="$BrowseDelegateDefault"
34716 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34717 CatDelegate="$CatDelegateDefault"
34718 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034719 DisplayDelegate="$DisplayDelegateDefault"
34720 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034721 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34722 EchoDelegate="$EchoDelegateDefault"
34723 EditorDelegate="$EditorDelegateDefault"
34724 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34725 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034726 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034727 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34728 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34729 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34730 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034731 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34732 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034733 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034734 LaunchDelegate="$LaunchDelegateDefault"
34735 MANDelegate="$MANDelegateDefault"
34736 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34737 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034738 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034739 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34740 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034741 PCLDelegate="$PCLDelegateDefault"
34742 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34743 POVDelegate="$POVDelegateDefault"
34744 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034745 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34746 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034747 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034748 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034749 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034750 ShowImageDelegate="$ShowImageDelegateDefault"
34751 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034752 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034753 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34754 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034755 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34756 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34757 XPSDelegate="$XPSDelegateDefault"
34758 ZipDelegate="$ZipDelegateDefault"
34759fi
34760
34761# Delegate substitutions
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
cristy71f53d52013-04-27 13:33:59 +000034802
34803
cristy86e86092013-08-04 17:43:57 +000034804
34805
cristy3ed852e2009-09-05 21:47:34 +000034806#
34807# RPM support.
34808#
34809RPM=''
34810for ac_prog in gnutar gtar tar
34811do
34812 # Extract the first word of "$ac_prog", so it can be a program name with args.
34813set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034816if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034817 $as_echo_n "(cached) " >&6
34818else
34819 if test -n "$TAR"; then
34820 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34821else
34822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34823for as_dir in $PATH
34824do
34825 IFS=$as_save_IFS
34826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034829 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034831 break 2
34832 fi
34833done
cristy8b350f62009-11-15 23:12:43 +000034834 done
cristy3ed852e2009-09-05 21:47:34 +000034835IFS=$as_save_IFS
34836
34837fi
34838fi
34839TAR=$ac_cv_prog_TAR
34840if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842$as_echo "$TAR" >&6; }
34843else
cristy8b350f62009-11-15 23:12:43 +000034844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034845$as_echo "no" >&6; }
34846fi
34847
34848
34849 test -n "$TAR" && break
34850done
34851
34852for ac_prog in perl
34853do
34854 # Extract the first word of "$ac_prog", so it can be a program name with args.
34855set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034858if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034859 $as_echo_n "(cached) " >&6
34860else
34861 if test -n "$PERL"; then
34862 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34863else
34864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34865for as_dir in $PATH
34866do
34867 IFS=$as_save_IFS
34868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034871 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034873 break 2
34874 fi
34875done
cristy8b350f62009-11-15 23:12:43 +000034876 done
cristy3ed852e2009-09-05 21:47:34 +000034877IFS=$as_save_IFS
34878
34879fi
34880fi
34881PERL=$ac_cv_prog_PERL
34882if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884$as_echo "$PERL" >&6; }
34885else
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo "no" >&6; }
34888fi
34889
34890
34891 test -n "$PERL" && break
34892done
34893
34894for ac_prog in rpmbuild rpm
34895do
34896 # Extract the first word of "$ac_prog", so it can be a program name with args.
34897set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034900if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034901 $as_echo_n "(cached) " >&6
34902else
34903 if test -n "$RPM"; then
34904 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34905else
34906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34907for as_dir in $PATH
34908do
34909 IFS=$as_save_IFS
34910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034913 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034915 break 2
34916 fi
34917done
cristy8b350f62009-11-15 23:12:43 +000034918 done
cristy3ed852e2009-09-05 21:47:34 +000034919IFS=$as_save_IFS
34920
34921fi
34922fi
34923RPM=$ac_cv_prog_RPM
34924if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926$as_echo "$RPM" >&6; }
34927else
cristy8b350f62009-11-15 23:12:43 +000034928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo "no" >&6; }
34930fi
34931
34932
34933 test -n "$RPM" && break
34934done
34935
34936
cristy73bd4a52010-10-05 11:24:23 +000034937ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34938
34939
34940AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34941
34942
34943AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34944
34945
34946AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34947
34948
34949 if test "x$RPM" != "x" ; then
34950 RPM_DELEGATE_TRUE=
34951 RPM_DELEGATE_FALSE='#'
34952else
34953 RPM_DELEGATE_TRUE='#'
34954 RPM_DELEGATE_FALSE=
34955fi
34956
cristy3ed852e2009-09-05 21:47:34 +000034957
34958#
34959# 7ZIP support (http://p7zip.sourceforge.net/)
34960#
34961P7ZIP=''
34962for ac_prog in 7za
34963do
34964 # Extract the first word of "$ac_prog", so it can be a program name with args.
34965set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034968if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034969 $as_echo_n "(cached) " >&6
34970else
34971 if test -n "$P7ZIP"; then
34972 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34973else
34974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34975for as_dir in $PATH
34976do
34977 IFS=$as_save_IFS
34978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034981 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034983 break 2
34984 fi
34985done
cristy8b350f62009-11-15 23:12:43 +000034986 done
cristy3ed852e2009-09-05 21:47:34 +000034987IFS=$as_save_IFS
34988
34989fi
34990fi
34991P7ZIP=$ac_cv_prog_P7ZIP
34992if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034994$as_echo "$P7ZIP" >&6; }
34995else
cristy8b350f62009-11-15 23:12:43 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034997$as_echo "no" >&6; }
34998fi
34999
35000
35001 test -n "$P7ZIP" && break
35002done
35003
35004
cristy73bd4a52010-10-05 11:24:23 +000035005 if test "x$P7ZIP" != "x" ; then
35006 P7ZIP_DELEGATE_TRUE=
35007 P7ZIP_DELEGATE_FALSE='#'
35008else
35009 P7ZIP_DELEGATE_TRUE='#'
35010 P7ZIP_DELEGATE_FALSE=
35011fi
35012
cristy3ed852e2009-09-05 21:47:34 +000035013
35014#
35015# ZIP support (http://www.info-zip.org/Zip.html)
35016#
35017ZIP=''
35018for ac_prog in zip
35019do
35020 # Extract the first word of "$ac_prog", so it can be a program name with args.
35021set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035024if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035025 $as_echo_n "(cached) " >&6
35026else
35027 if test -n "$ZIP"; then
35028 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35029else
35030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35031for as_dir in $PATH
35032do
35033 IFS=$as_save_IFS
35034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035037 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039 break 2
35040 fi
35041done
cristy8b350f62009-11-15 23:12:43 +000035042 done
cristy3ed852e2009-09-05 21:47:34 +000035043IFS=$as_save_IFS
35044
35045fi
35046fi
35047ZIP=$ac_cv_prog_ZIP
35048if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035050$as_echo "$ZIP" >&6; }
35051else
cristy8b350f62009-11-15 23:12:43 +000035052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035053$as_echo "no" >&6; }
35054fi
35055
35056
35057 test -n "$ZIP" && break
35058done
35059
35060
cristy73bd4a52010-10-05 11:24:23 +000035061 if test "x$ZIP" != "x" ; then
35062 ZIP_DELEGATE_TRUE=
35063 ZIP_DELEGATE_FALSE='#'
35064else
35065 ZIP_DELEGATE_TRUE='#'
35066 ZIP_DELEGATE_FALSE=
35067fi
35068
cristy3ed852e2009-09-05 21:47:34 +000035069
35070#
35071# GhostPCL related configuration.
35072#
35073PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035074PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035075PCLMonoDevice=pbmraw
35076if test -z "$PCLVersion"; then
35077 PCLVersion='unknown'
35078fi
35079if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35081$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035083$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35085$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035086 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035088$as_echo_n "checking for pcl color device... " >&6; }
35089 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35090 :
35091 else
35092 PCLColorDevice=ppmraw
35093 fi
cristyad38abe2012-12-23 23:03:21 +000035094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35095$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035096
35097 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo_n "checking for pcl CMYK device... " >&6; }
35100 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35101 :
35102 else
35103 PCLCMYKDevice=$PCLColorDevice
35104 fi
cristyad38abe2012-12-23 23:03:21 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35106$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035107
35108 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035110$as_echo_n "checking for pcl mono device... " >&6; }
35111 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35112 :
35113 else
35114 PCLMonoDevice=$PCLColorDevice
35115 fi
cristyad38abe2012-12-23 23:03:21 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35117$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035118fi
35119
35120
35121
35122
35123
35124
35125#
35126# GhostXPS related configuration.
35127#
35128XPSColorDevice=ppmraw
35129XPSCMYKDevice=bmpsep8
35130XPSMonoDevice=pbmraw
35131if test -z "$XPSVersion"; then
35132 XPSVersion='unknown'
35133fi
35134if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35136$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035138$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35140$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035141 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo_n "checking for xps color device... " >&6; }
35144 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35145 :
35146 else
35147 XPSColorDevice=ppmraw
35148 fi
cristyad38abe2012-12-23 23:03:21 +000035149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35150$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035151
35152 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035154$as_echo_n "checking for xps CMYK device... " >&6; }
35155 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35156 :
35157 else
35158 XPSCMYKDevice=$XPSColorDevice
35159 fi
cristyad38abe2012-12-23 23:03:21 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35161$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035162
35163 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035165$as_echo_n "checking for xps mono device... " >&6; }
35166 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35167 :
35168 else
35169 XPSMonoDevice=$XPSColorDevice
35170 fi
cristyad38abe2012-12-23 23:03:21 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35172$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035173fi
35174
35175
35176
35177
35178
35179
35180#
35181# Ghostscript related configuration.
35182#
cristya97426c2011-02-04 01:41:27 +000035183GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035184GSColorDevice=pnmraw
35185GSCMYKDevice=pam
35186GSMonoDevice=pbmraw
35187GSPDFDevice=pdfwrite
35188GSPSDevice=pswrite
35189GSEPSDevice=epswrite
35190GSVersion='unknown'
35191if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35193$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035195$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35197$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo_n "checking for Ghostscript version... " >&6; }
35200 if GSVersion=`$PSDelegate --version`; then
35201 :
35202 else
35203 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35204 fi
cristyad38abe2012-12-23 23:03:21 +000035205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35206$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035207
35208 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo_n "checking for gs alpha device... " >&6; }
35211 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35212 :
35213 else
35214 GSAlphaDevice=pnmraw
35215 fi
cristyad38abe2012-12-23 23:03:21 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35217$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035218
35219 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035221$as_echo_n "checking for gs color device... " >&6; }
35222 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35223 :
35224 else
35225 GSColorDevice=pnmraw
35226 fi
cristyad38abe2012-12-23 23:03:21 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35228$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035229
35230 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035232$as_echo_n "checking for gs CMYK device... " >&6; }
35233 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35234 :
35235 else
35236 GSCMYKDevice=bmpsep8
35237 fi
cristyad38abe2012-12-23 23:03:21 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35239$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035240
35241 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo_n "checking for gs mono device... " >&6; }
35244 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35245 :
35246 else
35247 GSMonoDevice=$GSColorDevice
35248 fi
cristyad38abe2012-12-23 23:03:21 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35250$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035251
35252 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo_n "checking for gs PDF writing device... " >&6; }
35255 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35256 :
35257 else
35258 GSPDFDevice=nodevice
35259 fi
cristyad38abe2012-12-23 23:03:21 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35261$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035262
35263 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo_n "checking for gs PS writing device... " >&6; }
35266 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35267 :
35268 else
35269 GSPSDevice=nodevice
35270 fi
cristyad38abe2012-12-23 23:03:21 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35272$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035273
35274 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035276$as_echo_n "checking for gs EPS writing device... " >&6; }
35277 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35278 :
35279 else
35280 GSEPSDevice=nodevice
35281 fi
cristyad38abe2012-12-23 23:03:21 +000035282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35283$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035284fi
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295#
35296# PerlMagick-related configuration
35297#
35298
35299# Look for PERL if PerlMagick requested
35300# If name/path of desired PERL interpreter is specified, look for that one first
35301have_perl='no'
35302if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35304$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035306$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35308$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035309 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035311$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035312if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035313 $as_echo_n "(cached) " >&6
35314else
35315 ac_cv_path_PERL="$with_perl"
35316fi
cristy8b350f62009-11-15 23:12:43 +000035317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo "$ac_cv_path_PERL" >&6; };
35319 PERL=$ac_cv_path_PERL
35320 have_perl="$ac_cv_path_PERL"
35321 else
35322 for ac_prog in perl perl5
35323do
35324 # Extract the first word of "$ac_prog", so it can be a program name with args.
35325set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035328if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035329 $as_echo_n "(cached) " >&6
35330else
35331 case $PERL in
35332 [\\/]* | ?:[\\/]*)
35333 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35334 ;;
35335 *)
35336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35337for as_dir in $PATH
35338do
35339 IFS=$as_save_IFS
35340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035343 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035345 break 2
35346 fi
35347done
cristy8b350f62009-11-15 23:12:43 +000035348 done
cristy3ed852e2009-09-05 21:47:34 +000035349IFS=$as_save_IFS
35350
35351 ;;
35352esac
35353fi
35354PERL=$ac_cv_path_PERL
35355if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035357$as_echo "$PERL" >&6; }
35358else
cristy8b350f62009-11-15 23:12:43 +000035359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035360$as_echo "no" >&6; }
35361fi
35362
35363
35364 test -n "$PERL" && break
35365done
35366 if test "$ac_cv_path_PERL"; then
35367 have_perl="$ac_cv_path_PERL"
35368 fi
35369 fi
35370fi
35371
cristy949301e2010-01-06 01:38:40 +000035372if test "$with_perl" != 'yes' ; then
35373 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35374fi
35375
35376PERL_SUPPORTS_DESTDIR='no'
35377
cristy3ed852e2009-09-05 21:47:34 +000035378with_perl_static='no'
35379with_perl_dynamic='no'
35380if test "$have_perl" != 'no'; then
35381 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35382 with_perl_static='yes'
35383 fi
35384 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35385 with_perl_dynamic='yes'
35386 fi
35387 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035388
35389
35390
35391
35392 if test -n "$PERL"; then :
35393
35394 ax_perl_version="5.8.1"
35395
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35397$as_echo_n "checking for perl version... " >&6; }
35398
35399 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35400
35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35402$as_echo "$perl_version" >&6; }
35403
35404 PERL_VERSION=$perl_version
35405
35406
35407
35408
35409
35410 # Used to indicate true or false condition
35411 ax_compare_version=false
35412
35413 # Convert the two version strings to be compared into a format that
35414 # allows a simple string comparison. The end result is that a version
35415 # string of the form 1.12.5-r617 will be converted to the form
35416 # 0001001200050617. In other words, each number is zero padded to four
35417 # digits, and non digits are removed.
35418
35419 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35420 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35421 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35422 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35423 -e 's/[^0-9]//g'`
35424
35425
35426 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35427 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35428 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35429 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35430 -e 's/[^0-9]//g'`
35431
35432
35433 ax_compare_version=`echo "x$ax_compare_version_A
35434x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35435
35436
35437
35438 if test "$ax_compare_version" = "true" ; then
35439
35440 :
35441 PERL_SUPPORTS_DESTDIR='yes'
35442
35443 else
35444 :
35445 PERL_SUPPORTS_DESTDIR='no'
35446
35447 fi
35448
35449
35450else
35451
35452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35453$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35454 PERL_SUPPORTS_DESTDIR='no'
35455
cristy3ed852e2009-09-05 21:47:34 +000035456fi
cristy73bd4a52010-10-05 11:24:23 +000035457
35458fi
35459 if test "$have_perl" != 'no'; then
35460 WITH_PERL_TRUE=
35461 WITH_PERL_FALSE='#'
35462else
35463 WITH_PERL_TRUE='#'
35464 WITH_PERL_FALSE=
35465fi
35466
35467 if test $with_perl_static = 'yes'; then
35468 WITH_PERL_STATIC_TRUE=
35469 WITH_PERL_STATIC_FALSE='#'
35470else
35471 WITH_PERL_STATIC_TRUE='#'
35472 WITH_PERL_STATIC_FALSE=
35473fi
35474
35475 if test $with_perl_dynamic = 'yes'; then
35476 WITH_PERL_DYNAMIC_TRUE=
35477 WITH_PERL_DYNAMIC_FALSE='#'
35478else
35479 WITH_PERL_DYNAMIC_TRUE='#'
35480 WITH_PERL_DYNAMIC_FALSE=
35481fi
35482
cristy3ed852e2009-09-05 21:47:34 +000035483
35484
35485# Determine path to pick up MagickCore library from for use with building PerlMagick
35486MAGICKCORE_PATH="${LIB_DIR}"
35487if test $with_perl_static = 'yes'; then
35488 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35489 libtool_objdir=$objdir
35490
35491 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035492 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035493fi
35494
35495
cristy2a3eb392012-12-17 13:39:20 +000035496# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035497MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035498if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035499 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035500fi
cristy2a3eb392012-12-17 13:39:20 +000035501if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035502 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035503fi
35504if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035505 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035506fi
35507if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035508 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035509fi
35510if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035511 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035512fi
cristy854c9cf2013-08-10 21:03:06 +000035513if test "$have_mupdf" = 'yes' ; then
35514 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035515fi
cristy2a3eb392012-12-17 13:39:20 +000035516if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035517 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035518fi
35519if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035520 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035521fi
35522if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035523 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035524fi
35525if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035526 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035527fi
35528if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035529 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035530fi
35531if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035532 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035533fi
35534if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035535 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035536fi
35537if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035538 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035539fi
35540if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035541 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035542fi
35543if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035544 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035545fi
35546if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035547 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035548fi
35549if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035550 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035551fi
35552if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035553 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035554fi
35555if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035556 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035557fi
35558if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035559 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035560fi
35561if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035562 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035563fi
35564have_ps='no'
35565if test "$have_dps" = 'yes' || \
35566 test "$have_gs" = 'yes' || \
35567 test "${native_win32_build}" = 'yes' ; then
35568 have_ps='yes'
35569fi
35570if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035571 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035572fi
35573if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035574 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035575fi
35576if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035577 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035578fi
35579if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035580 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035581fi
35582if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035583 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035584fi
35585if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035586 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035587fi
cristy3b640ed2013-07-29 00:27:59 +000035588if test "$have_webp" = 'yes' ; then
35589 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35590fi
cristy2a3eb392012-12-17 13:39:20 +000035591if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035592 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035593fi
35594if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035595 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035596fi
35597if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035598 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035599fi
35600if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035601 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035602fi
cristy2a3eb392012-12-17 13:39:20 +000035603# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035604MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035605MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035606
35607
cristyfa161182012-12-19 15:45:28 +000035608
cristy3ed852e2009-09-05 21:47:34 +000035609#
35610# Handle special compiler flags
35611#
35612
35613# Add '-p' if prof source profiling support enabled
35614if test "$enable_prof" = 'yes'; then
35615 CFLAGS="-p $CFLAGS"
35616 CXXFLAGS="-p $CXXFLAGS"
35617 LDFLAGS="-p $LDFLAGS"
35618fi
35619
35620# Add '-pg' if gprof source profiling support enabled
35621if test "$enable_gprof" = 'yes'; then
35622 CFLAGS="-pg $CFLAGS"
35623 CXXFLAGS="-pg $CXXFLAGS"
35624 LDFLAGS="-pg $LDFLAGS"
35625fi
35626
35627# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35628# This is a gcc-specific feature
35629if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035631$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035632if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035633 $as_echo_n "(cached) " >&6
35634else
35635 ac_check_lib_save_LIBS=$LIBS
35636LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035638/* end confdefs.h. */
35639
35640/* Override any GCC internal prototype to avoid an error.
35641 Use char because int might match the return type of a GCC
35642 builtin and then its argument prototype would still apply. */
35643#ifdef __cplusplus
35644extern "C"
35645#endif
35646char _gcov_init ();
35647int
35648main ()
35649{
35650return _gcov_init ();
35651 ;
35652 return 0;
35653}
35654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035656 ac_cv_lib_gcov__gcov_init=yes
35657else
cristy8b350f62009-11-15 23:12:43 +000035658 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035659fi
cristy8b350f62009-11-15 23:12:43 +000035660rm -f core conftest.err conftest.$ac_objext \
35661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035662LIBS=$ac_check_lib_save_LIBS
35663fi
cristy8b350f62009-11-15 23:12:43 +000035664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035665$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035666if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035667 cat >>confdefs.h <<_ACEOF
35668#define HAVE_LIBGCOV 1
35669_ACEOF
35670
35671 LIBS="-lgcov $LIBS"
35672
35673fi
35674
cristy8b350f62009-11-15 23:12:43 +000035675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035676$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035677if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035678 $as_echo_n "(cached) " >&6
35679else
35680 ac_check_lib_save_LIBS=$LIBS
35681LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035683/* end confdefs.h. */
35684
35685/* Override any GCC internal prototype to avoid an error.
35686 Use char because int might match the return type of a GCC
35687 builtin and then its argument prototype would still apply. */
35688#ifdef __cplusplus
35689extern "C"
35690#endif
35691char __gcov_init ();
35692int
35693main ()
35694{
35695return __gcov_init ();
35696 ;
35697 return 0;
35698}
35699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035701 ac_cv_lib_gcov___gcov_init=yes
35702else
cristy8b350f62009-11-15 23:12:43 +000035703 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035704fi
cristy8b350f62009-11-15 23:12:43 +000035705rm -f core conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035707LIBS=$ac_check_lib_save_LIBS
35708fi
cristy8b350f62009-11-15 23:12:43 +000035709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035710$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035711if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035712 cat >>confdefs.h <<_ACEOF
35713#define HAVE_LIBGCOV 1
35714_ACEOF
35715
35716 LIBS="-lgcov $LIBS"
35717
35718fi
35719
35720 case "$target_os" in
35721 darwin*)
35722 OSX_GCOV_LDFLAG="-Wl,-single_module"
35723 ;;
35724 *)
35725 OSX_GCOV_LDFLAG=""
35726 ;;
35727 esac
35728
35729 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35730 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35731 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35732fi
35733
35734#
35735# Build library dependency list for libMagickCore
35736#
35737
cristyc6722092012-10-14 00:19:31 +000035738if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035739 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035740else
cristy3a75f062012-09-08 23:29:40 +000035741 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035742fi
35743
35744
35745#
35746# Remove extraneous spaces from output variables (asthetic)
35747#
35748X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35749X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35750X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35751X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35752
35753CC=`echo $CC | sed -e 's/ */ /g'`
35754CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35755CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35756CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035757DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35758LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35759TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35760MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35761#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35762
35763# Pass only user-provided LIBS as "global" libraries
35764LIBS=$USER_LIBS
35765
35766#AC_SUBST(CPPFLAGS)
35767
35768#AC_SUBST(LDFLAGS)
35769#AC_SUBST(X_PRE_LIBS)
35770#AC_SUBST(X_LIBS)
35771#AC_SUBST(X_EXTRA_LIBS)
35772
35773MAGICK_CFLAGS=$CFLAGS
35774MAGICK_CXXFLAGS="$CXXFLAGS"
35775MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35776MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35777MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035778MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035779
35780
35781
35782
35783
35784
35785
35786
35787# Set configured scripts to executable.
35788ac_config_commands="$ac_config_commands default"
35789
cristy2bd4b6e2012-07-22 15:29:11 +000035790ac_config_commands="$ac_config_commands magick.sh.in"
35791
cristy3ed852e2009-09-05 21:47:34 +000035792ac_config_commands="$ac_config_commands MagickCore-config.in"
35793
cristy3ed852e2009-09-05 21:47:34 +000035794ac_config_commands="$ac_config_commands MagickWand-config.in"
35795
cristy3ed852e2009-09-05 21:47:34 +000035796ac_config_commands="$ac_config_commands Magick++-config.in"
35797
35798ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35799
35800
cristyad38abe2012-12-23 23:03:21 +000035801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35802$as_echo "-------------------------------------------------------------" >&6; }
35803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35804$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035805cat >confcache <<\_ACEOF
35806# This file is a shell script that caches the results of configure
35807# tests run on this system so they can be shared between configure
35808# scripts and configure runs, see configure's option --config-cache.
35809# It is not useful on other systems. If it contains results you don't
35810# want to keep, you may remove or edit it.
35811#
35812# config.status only pays attention to the cache file if you give it
35813# the --recheck option to rerun configure.
35814#
35815# `ac_cv_env_foo' variables (set or unset) will be overridden when
35816# loading this file, other *unset* `ac_cv_foo' will be assigned the
35817# following values.
35818
35819_ACEOF
35820
35821# The following way of writing the cache mishandles newlines in values,
35822# but we know of no workaround that is simple, portable, and efficient.
35823# So, we kill variables containing newlines.
35824# Ultrix sh set writes to stderr and can't be redirected directly,
35825# and sets the high bit in the cache file unless we assign to the vars.
35826(
35827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35828 eval ac_val=\$$ac_var
35829 case $ac_val in #(
35830 *${as_nl}*)
35831 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35834 esac
35835 case $ac_var in #(
35836 _ | IFS | as_nl) ;; #(
35837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035838 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035839 esac ;;
35840 esac
35841 done
35842
35843 (set) 2>&1 |
35844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35845 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035846 # `set' does not quote correctly, so add quotes: double-quote
35847 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035848 sed -n \
35849 "s/'/'\\\\''/g;
35850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35851 ;; #(
35852 *)
35853 # `set' quotes correctly as required by POSIX, so do not add quotes.
35854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35855 ;;
35856 esac |
35857 sort
35858) |
35859 sed '
35860 /^ac_cv_env_/b end
35861 t clear
35862 :clear
35863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35864 t end
35865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35866 :end' >>confcache
35867if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35868 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035869 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035871$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035872 if test ! -f "$cache_file" || test -h "$cache_file"; then
35873 cat confcache >"$cache_file"
35874 else
35875 case $cache_file in #(
35876 */* | ?:*)
35877 mv -f confcache "$cache_file"$$ &&
35878 mv -f "$cache_file"$$ "$cache_file" ;; #(
35879 *)
35880 mv -f confcache "$cache_file" ;;
35881 esac
35882 fi
35883 fi
cristy3ed852e2009-09-05 21:47:34 +000035884 else
cristy8b350f62009-11-15 23:12:43 +000035885 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035886$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35887 fi
35888fi
35889rm -f confcache
35890
35891test "x$prefix" = xNONE && prefix=$ac_default_prefix
35892# Let make expand exec_prefix.
35893test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35894
35895DEFS=-DHAVE_CONFIG_H
35896
35897ac_libobjs=
35898ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035899U=
cristy3ed852e2009-09-05 21:47:34 +000035900for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35901 # 1. Remove the extension, and $U if already installed.
35902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35905 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035906 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35907 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035908done
35909LIBOBJS=$ac_libobjs
35910
35911LTLIBOBJS=$ac_ltlibobjs
35912
35913
cristyc0890a62012-07-19 00:18:20 +000035914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35915$as_echo_n "checking that generated files are newer than configure... " >&6; }
35916 if test -n "$am_sleep_pid"; then
35917 # Hide warnings about reused PIDs.
35918 wait $am_sleep_pid 2>/dev/null
35919 fi
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35921$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035922 if test -n "$EXEEXT"; then
35923 am__EXEEXT_TRUE=
35924 am__EXEEXT_FALSE='#'
35925else
35926 am__EXEEXT_TRUE='#'
35927 am__EXEEXT_FALSE=
35928fi
cristy3ed852e2009-09-05 21:47:34 +000035929
cristy73bd4a52010-10-05 11:24:23 +000035930if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035931 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035932Usually this means the macro was only invoked conditionally." "$LINENO" 5
35933fi
35934if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035935 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035936Usually this means the macro was only invoked conditionally." "$LINENO" 5
35937fi
35938if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035939 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035940Usually this means the macro was only invoked conditionally." "$LINENO" 5
35941fi
35942if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035943 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035944Usually this means the macro was only invoked conditionally." "$LINENO" 5
35945fi
cristy9b86f202012-11-28 21:55:35 +000035946if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35947 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
cristy73bd4a52010-10-05 11:24:23 +000035950if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035951 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035952Usually this means the macro was only invoked conditionally." "$LINENO" 5
35953fi
35954if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035955 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035956Usually this means the macro was only invoked conditionally." "$LINENO" 5
35957fi
35958if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035959 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035960Usually this means the macro was only invoked conditionally." "$LINENO" 5
35961fi
35962if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035963 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035964Usually this means the macro was only invoked conditionally." "$LINENO" 5
35965fi
cristy73bd4a52010-10-05 11:24:23 +000035966if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035967 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035968Usually this means the macro was only invoked conditionally." "$LINENO" 5
35969fi
35970if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035971 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035972Usually this means the macro was only invoked conditionally." "$LINENO" 5
35973fi
cristy73bd4a52010-10-05 11:24:23 +000035974if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035975 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035976Usually this means the macro was only invoked conditionally." "$LINENO" 5
35977fi
cristy71d8c202012-03-20 17:05:01 +000035978if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35979 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35980Usually this means the macro was only invoked conditionally." "$LINENO" 5
35981fi
cristy73bd4a52010-10-05 11:24:23 +000035982
35983if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
cristy5eef09f2012-10-16 12:08:28 +000036007if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36008 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
cristy73bd4a52010-10-05 11:24:23 +000036011if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036020 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036021Usually this means the macro was only invoked conditionally." "$LINENO" 5
36022fi
36023if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036024 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036025Usually this means the macro was only invoked conditionally." "$LINENO" 5
36026fi
36027if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036028 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036029Usually this means the macro was only invoked conditionally." "$LINENO" 5
36030fi
36031if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036032 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036033Usually this means the macro was only invoked conditionally." "$LINENO" 5
36034fi
36035if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036036 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
36039if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036040 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
36043if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
36047if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036048 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
36051if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
36055if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
cristyfbb0ef02010-12-19 02:32:11 +000036067if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36068 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
cristy854c9cf2013-08-10 21:03:06 +000036071if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36072 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
cristy73bd4a52010-10-05 11:24:23 +000036075if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036076 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
cristy41cbe8a2011-10-27 01:35:18 +000036079if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36080 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
cristya054b762012-03-26 23:16:00 +000036083if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36084 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
cristy73bd4a52010-10-05 11:24:23 +000036087if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036092 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036093Usually this means the macro was only invoked conditionally." "$LINENO" 5
36094fi
36095if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036096 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036097Usually this means the macro was only invoked conditionally." "$LINENO" 5
36098fi
36099if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
cristyb1860752011-03-14 00:27:46 +000036103if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36104 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
cristy73bd4a52010-10-05 11:24:23 +000036107if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036108 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036112 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
36115if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036116 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
36119if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036120 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036121Usually this means the macro was only invoked conditionally." "$LINENO" 5
36122fi
36123if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036124 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036125Usually this means the macro was only invoked conditionally." "$LINENO" 5
36126fi
36127if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036128 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036129Usually this means the macro was only invoked conditionally." "$LINENO" 5
36130fi
36131if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036132 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036133Usually this means the macro was only invoked conditionally." "$LINENO" 5
36134fi
36135if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036136 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036137Usually this means the macro was only invoked conditionally." "$LINENO" 5
36138fi
cristy3ed852e2009-09-05 21:47:34 +000036139
cristyda16f162011-02-19 23:52:17 +000036140: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036141ac_write_fail=0
36142ac_clean_files_save=$ac_clean_files
36143ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036146as_write_fail=0
36147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036148#! $SHELL
36149# Generated by $as_me.
36150# Run this file to recreate the current configuration.
36151# Compiler output produced by configure, useful for debugging
36152# configure, is in config.log if it exists.
36153
36154debug=false
36155ac_cs_recheck=false
36156ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036157
cristy8b350f62009-11-15 23:12:43 +000036158SHELL=\${CONFIG_SHELL-$SHELL}
36159export SHELL
36160_ASEOF
36161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36162## -------------------- ##
36163## M4sh Initialization. ##
36164## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036165
36166# Be more Bourne compatible
36167DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036169 emulate sh
36170 NULLCMD=:
36171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36172 # is contrary to our usage. Disable this feature.
36173 alias -g '${1+"$@"}'='"$@"'
36174 setopt NO_GLOB_SUBST
36175else
cristy8b350f62009-11-15 23:12:43 +000036176 case `(set -o) 2>/dev/null` in #(
36177 *posix*) :
36178 set -o posix ;; #(
36179 *) :
36180 ;;
cristy3ed852e2009-09-05 21:47:34 +000036181esac
cristy3ed852e2009-09-05 21:47:34 +000036182fi
36183
36184
cristy3ed852e2009-09-05 21:47:34 +000036185as_nl='
36186'
36187export as_nl
36188# Printing a long string crashes Solaris 7 /usr/bin/printf.
36189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036192# Prefer a ksh shell builtin over an external printf program on Solaris,
36193# but without wasting forks for bash or zsh.
36194if test -z "$BASH_VERSION$ZSH_VERSION" \
36195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36196 as_echo='print -r --'
36197 as_echo_n='print -rn --'
36198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036199 as_echo='printf %s\n'
36200 as_echo_n='printf %s'
36201else
36202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36204 as_echo_n='/usr/ucb/echo -n'
36205 else
36206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36207 as_echo_n_body='eval
36208 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036209 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036210 *"$as_nl"*)
36211 expr "X$arg" : "X\\(.*\\)$as_nl";
36212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36213 esac;
36214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36215 '
36216 export as_echo_n_body
36217 as_echo_n='sh -c $as_echo_n_body as_echo'
36218 fi
36219 export as_echo_body
36220 as_echo='sh -c $as_echo_body as_echo'
36221fi
36222
36223# The user is always right.
36224if test "${PATH_SEPARATOR+set}" != set; then
36225 PATH_SEPARATOR=:
36226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36228 PATH_SEPARATOR=';'
36229 }
36230fi
36231
cristy3ed852e2009-09-05 21:47:34 +000036232
36233# IFS
36234# We need space, tab and new line, in precisely that order. Quoting is
36235# there to prevent editors from complaining about space-tab.
36236# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36237# splitting by setting IFS to empty value.)
36238IFS=" "" $as_nl"
36239
36240# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036241as_myself=
cristy8b350f62009-11-15 23:12:43 +000036242case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036243 *[\\/]* ) as_myself=$0 ;;
36244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36245for as_dir in $PATH
36246do
36247 IFS=$as_save_IFS
36248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36250 done
cristy3ed852e2009-09-05 21:47:34 +000036251IFS=$as_save_IFS
36252
36253 ;;
36254esac
36255# We did not find ourselves, most probably we were run as `sh COMMAND'
36256# in which case we are not to be found in the path.
36257if test "x$as_myself" = x; then
36258 as_myself=$0
36259fi
36260if test ! -f "$as_myself"; then
36261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036262 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036263fi
36264
cristy8b350f62009-11-15 23:12:43 +000036265# Unset variables that we do not need and which cause bugs (e.g. in
36266# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36267# suppresses any "Segmentation fault" message there. '((' could
36268# trigger a bug in pdksh 5.2.14.
36269for as_var in BASH_ENV ENV MAIL MAILPATH
36270do eval test x\${$as_var+set} = xset \
36271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036272done
36273PS1='$ '
36274PS2='> '
36275PS4='+ '
36276
36277# NLS nuisances.
36278LC_ALL=C
36279export LC_ALL
36280LANGUAGE=C
36281export LANGUAGE
36282
cristy8b350f62009-11-15 23:12:43 +000036283# CDPATH.
36284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36285
36286
cristy98dddb52010-11-04 00:30:15 +000036287# as_fn_error STATUS ERROR [LINENO LOG_FD]
36288# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036289# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36290# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036291# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036292as_fn_error ()
36293{
cristy98dddb52010-11-04 00:30:15 +000036294 as_status=$1; test $as_status -eq 0 && as_status=1
36295 if test "$4"; then
36296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036298 fi
cristy98dddb52010-11-04 00:30:15 +000036299 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036300 as_fn_exit $as_status
36301} # as_fn_error
36302
36303
36304# as_fn_set_status STATUS
36305# -----------------------
36306# Set $? to STATUS, without forking.
36307as_fn_set_status ()
36308{
36309 return $1
36310} # as_fn_set_status
36311
36312# as_fn_exit STATUS
36313# -----------------
36314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36315as_fn_exit ()
36316{
36317 set +e
36318 as_fn_set_status $1
36319 exit $1
36320} # as_fn_exit
36321
36322# as_fn_unset VAR
36323# ---------------
36324# Portably unset VAR.
36325as_fn_unset ()
36326{
36327 { eval $1=; unset $1;}
36328}
36329as_unset=as_fn_unset
36330# as_fn_append VAR VALUE
36331# ----------------------
36332# Append the text in VALUE to the end of the definition contained in VAR. Take
36333# advantage of any shell optimizations that allow amortized linear growth over
36334# repeated appends, instead of the typical quadratic growth present in naive
36335# implementations.
36336if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36337 eval 'as_fn_append ()
36338 {
36339 eval $1+=\$2
36340 }'
36341else
36342 as_fn_append ()
36343 {
36344 eval $1=\$$1\$2
36345 }
36346fi # as_fn_append
36347
36348# as_fn_arith ARG...
36349# ------------------
36350# Perform arithmetic evaluation on the ARGs, and store the result in the
36351# global $as_val. Take advantage of shells that can avoid forks. The arguments
36352# must be portable across $(()) and expr.
36353if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36354 eval 'as_fn_arith ()
36355 {
36356 as_val=$(( $* ))
36357 }'
36358else
36359 as_fn_arith ()
36360 {
36361 as_val=`expr "$@" || test $? -eq 1`
36362 }
36363fi # as_fn_arith
36364
36365
cristy3ed852e2009-09-05 21:47:34 +000036366if expr a : '\(a\)' >/dev/null 2>&1 &&
36367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36368 as_expr=expr
36369else
36370 as_expr=false
36371fi
36372
36373if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36374 as_basename=basename
36375else
36376 as_basename=false
36377fi
36378
cristy8b350f62009-11-15 23:12:43 +000036379if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36380 as_dirname=dirname
36381else
36382 as_dirname=false
36383fi
cristy3ed852e2009-09-05 21:47:34 +000036384
cristy3ed852e2009-09-05 21:47:34 +000036385as_me=`$as_basename -- "$0" ||
36386$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36387 X"$0" : 'X\(//\)$' \| \
36388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36389$as_echo X/"$0" |
36390 sed '/^.*\/\([^/][^/]*\)\/*$/{
36391 s//\1/
36392 q
36393 }
36394 /^X\/\(\/\/\)$/{
36395 s//\1/
36396 q
36397 }
36398 /^X\/\(\/\).*/{
36399 s//\1/
36400 q
36401 }
36402 s/.*/./; q'`
36403
cristy8b350f62009-11-15 23:12:43 +000036404# Avoid depending upon Character Ranges.
36405as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36406as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36407as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36408as_cr_digits='0123456789'
36409as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036410
36411ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036412case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036413-n*)
cristy8b350f62009-11-15 23:12:43 +000036414 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036416 xy) ECHO_C='\c';;
36417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36418 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036419 esac;;
36420*)
36421 ECHO_N='-n';;
36422esac
cristy3ed852e2009-09-05 21:47:34 +000036423
36424rm -f conf$$ conf$$.exe conf$$.file
36425if test -d conf$$.dir; then
36426 rm -f conf$$.dir/conf$$.file
36427else
36428 rm -f conf$$.dir
36429 mkdir conf$$.dir 2>/dev/null
36430fi
36431if (echo >conf$$.file) 2>/dev/null; then
36432 if ln -s conf$$.file conf$$ 2>/dev/null; then
36433 as_ln_s='ln -s'
36434 # ... but there are two gotchas:
36435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036437 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036439 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036440 elif ln conf$$.file conf$$ 2>/dev/null; then
36441 as_ln_s=ln
36442 else
cristy14fefe52012-05-21 00:59:18 +000036443 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036444 fi
36445else
cristy14fefe52012-05-21 00:59:18 +000036446 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036447fi
36448rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36449rmdir conf$$.dir 2>/dev/null
36450
cristy8b350f62009-11-15 23:12:43 +000036451
36452# as_fn_mkdir_p
36453# -------------
36454# Create "$as_dir" as a directory, including parents if necessary.
36455as_fn_mkdir_p ()
36456{
36457
36458 case $as_dir in #(
36459 -*) as_dir=./$as_dir;;
36460 esac
36461 test -d "$as_dir" || eval $as_mkdir_p || {
36462 as_dirs=
36463 while :; do
36464 case $as_dir in #(
36465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36466 *) as_qdir=$as_dir;;
36467 esac
36468 as_dirs="'$as_qdir' $as_dirs"
36469 as_dir=`$as_dirname -- "$as_dir" ||
36470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36471 X"$as_dir" : 'X\(//\)[^/]' \| \
36472 X"$as_dir" : 'X\(//\)$' \| \
36473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36474$as_echo X"$as_dir" |
36475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36476 s//\1/
36477 q
36478 }
36479 /^X\(\/\/\)[^/].*/{
36480 s//\1/
36481 q
36482 }
36483 /^X\(\/\/\)$/{
36484 s//\1/
36485 q
36486 }
36487 /^X\(\/\).*/{
36488 s//\1/
36489 q
36490 }
36491 s/.*/./; q'`
36492 test -d "$as_dir" && break
36493 done
36494 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036496
36497
36498} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036499if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036500 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036501else
36502 test -d ./-p && rmdir ./-p
36503 as_mkdir_p=false
36504fi
36505
cristy14fefe52012-05-21 00:59:18 +000036506
36507# as_fn_executable_p FILE
36508# -----------------------
36509# Test if FILE is an executable regular file.
36510as_fn_executable_p ()
36511{
36512 test -f "$1" && test -x "$1"
36513} # as_fn_executable_p
36514as_test_x='test -x'
36515as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036516
36517# Sed expression to map a string onto a valid CPP name.
36518as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36519
36520# Sed expression to map a string onto a valid variable name.
36521as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36522
36523
36524exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036525## ----------------------------------- ##
36526## Main body of $CONFIG_STATUS script. ##
36527## ----------------------------------- ##
36528_ASEOF
36529test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036530
cristy8b350f62009-11-15 23:12:43 +000036531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36532# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036533# report actual input values of CONFIG_FILES etc. instead of their
36534# values after options handling.
36535ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036536This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036537generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036538
36539 CONFIG_FILES = $CONFIG_FILES
36540 CONFIG_HEADERS = $CONFIG_HEADERS
36541 CONFIG_LINKS = $CONFIG_LINKS
36542 CONFIG_COMMANDS = $CONFIG_COMMANDS
36543 $ $0 $@
36544
36545on `(hostname || uname -n) 2>/dev/null | sed 1q`
36546"
36547
36548_ACEOF
36549
36550case $ac_config_files in *"
36551"*) set x $ac_config_files; shift; ac_config_files=$*;;
36552esac
36553
36554case $ac_config_headers in *"
36555"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36556esac
36557
36558
36559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36560# Files that config.status was made for.
36561config_files="$ac_config_files"
36562config_headers="$ac_config_headers"
36563config_commands="$ac_config_commands"
36564
36565_ACEOF
36566
36567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36568ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036569\`$as_me' instantiates files and other configuration actions
36570from templates according to the current configuration. Unless the files
36571and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036572
cristy8b350f62009-11-15 23:12:43 +000036573Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036574
36575 -h, --help print this help, then exit
36576 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036577 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036578 -q, --quiet, --silent
36579 do not print progress messages
36580 -d, --debug don't remove temporary files
36581 --recheck update $as_me by reconfiguring in the same conditions
36582 --file=FILE[:TEMPLATE]
36583 instantiate the configuration file FILE
36584 --header=FILE[:TEMPLATE]
36585 instantiate the configuration header FILE
36586
36587Configuration files:
36588$config_files
36589
36590Configuration headers:
36591$config_headers
36592
36593Configuration commands:
36594$config_commands
36595
cristy8b350f62009-11-15 23:12:43 +000036596Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036597
36598_ACEOF
36599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036600ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036601ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036602ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036603configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036604 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036605
cristy14fefe52012-05-21 00:59:18 +000036606Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036607This config.status script is free software; the Free Software Foundation
36608gives unlimited permission to copy, distribute and modify it."
36609
36610ac_pwd='$ac_pwd'
36611srcdir='$srcdir'
36612INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036613MKDIR_P='$MKDIR_P'
36614AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036615test -n "\$AWK" || AWK=awk
36616_ACEOF
36617
36618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36619# The default lists apply if the user does not specify any file.
36620ac_need_defaults=:
36621while test $# != 0
36622do
36623 case $1 in
cristyda16f162011-02-19 23:52:17 +000036624 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36627 ac_shift=:
36628 ;;
cristyda16f162011-02-19 23:52:17 +000036629 --*=)
36630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36631 ac_optarg=
36632 ac_shift=:
36633 ;;
cristy3ed852e2009-09-05 21:47:34 +000036634 *)
36635 ac_option=$1
36636 ac_optarg=$2
36637 ac_shift=shift
36638 ;;
36639 esac
36640
36641 case $ac_option in
36642 # Handling of the options.
36643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36644 ac_cs_recheck=: ;;
36645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36646 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036647 --config | --confi | --conf | --con | --co | --c )
36648 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036649 --debug | --debu | --deb | --de | --d | -d )
36650 debug=: ;;
36651 --file | --fil | --fi | --f )
36652 $ac_shift
36653 case $ac_optarg in
36654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036655 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036656 esac
cristy8b350f62009-11-15 23:12:43 +000036657 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036658 ac_need_defaults=false;;
36659 --header | --heade | --head | --hea )
36660 $ac_shift
36661 case $ac_optarg in
36662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36663 esac
cristy8b350f62009-11-15 23:12:43 +000036664 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036665 ac_need_defaults=false;;
36666 --he | --h)
36667 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036668 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036669Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036670 --help | --hel | -h )
36671 $as_echo "$ac_cs_usage"; exit ;;
36672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36674 ac_cs_silent=: ;;
36675
36676 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036677 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036678Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036679
cristy8b350f62009-11-15 23:12:43 +000036680 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036681 ac_need_defaults=false ;;
36682
36683 esac
36684 shift
36685done
36686
36687ac_configure_extra_args=
36688
36689if $ac_cs_silent; then
36690 exec 6>/dev/null
36691 ac_configure_extra_args="$ac_configure_extra_args --silent"
36692fi
36693
36694_ACEOF
36695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36696if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036697 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036698 shift
36699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36700 CONFIG_SHELL='$SHELL'
36701 export CONFIG_SHELL
36702 exec "\$@"
36703fi
36704
36705_ACEOF
36706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36707exec 5>>config.log
36708{
36709 echo
36710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36711## Running $as_me. ##
36712_ASBOX
36713 $as_echo "$ac_log"
36714} >&5
36715
36716_ACEOF
36717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036718#
36719# INIT-COMMANDS
36720#
36721PACKAGE="$PACKAGE"
36722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36723
36724
36725# The HP-UX ksh and POSIX shell print the target directory to stdout
36726# if CDPATH is set.
36727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36728
36729sed_quote_subst='$sed_quote_subst'
36730double_quote_subst='$double_quote_subst'
36731delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036732SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36733Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36734GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36735EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36736FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36737SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36738ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36739LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36740macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36741macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36742AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36743DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36744OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36745enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36746enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36747pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36748enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036749PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036750host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36751host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36752host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36753build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36754build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36755build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36756NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36757LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36758max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36759ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36760exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36761lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36762lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36763lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036764lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36765lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36767reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36768deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36769file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036770file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36771want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36772sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036773AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36774AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036775archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036776STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36777RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36778old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36779old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36780old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36781lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36782CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36783CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36784compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36785GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36786lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36787lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36788lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36789lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036790nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36791lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036792objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36793MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36794lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036795lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036796lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036797lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36798lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36799need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036800MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036801DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36802NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36803LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36804OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36805OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36806libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36807shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36808extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36809archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36810enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36811export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36812whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36813compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36814old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36815old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36816archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36817archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36818module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36819module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36820with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36821allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36822no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36823hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036824hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36825hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36826hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36827hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36828hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36829hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36830inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36831link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036832always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36833export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36834exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36835include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36836prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036837postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036838file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36839variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36840need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36841need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36842version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36843runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36844shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36845shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36846libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36847library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36848soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36849install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36850postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36851postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36852finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36853finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36854hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36855sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36856sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36857hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36858enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36859enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36860enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36861old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36862striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36863compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36864predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36865postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36866predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36867postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36868compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36869LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36870reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36871reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36872old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36873compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36874GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36875lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036876lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036877lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036878lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36879lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36880archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36881enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36882export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36883whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36884compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36885old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36886old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36887archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36888archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36889module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36890module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36891with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36892allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36893no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36894hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036895hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36896hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36897hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36898hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36899hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36900hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36901inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36902link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036903always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36904export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36905exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36906include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36907prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036908postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036909file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36910hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36911compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36912predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36913postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36914predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36915postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36916compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036917
36918LTCC='$LTCC'
36919LTCFLAGS='$LTCFLAGS'
36920compiler='$compiler_DEFAULT'
36921
cristy0c60a692010-11-04 01:09:47 +000036922# A function that is used when there is no print builtin or printf.
36923func_fallback_echo ()
36924{
36925 eval 'cat <<_LTECHO_EOF
36926\$1
36927_LTECHO_EOF'
36928}
36929
cristy73bd4a52010-10-05 11:24:23 +000036930# Quote evaled strings.
36931for var in SED \
36932GREP \
36933EGREP \
36934FGREP \
cristy0c60a692010-11-04 01:09:47 +000036935SHELL \
36936ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036937LD \
cristy0c60a692010-11-04 01:09:47 +000036938AS \
36939DLLTOOL \
36940OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036941PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036942NM \
36943LN_S \
36944lt_SP2NL \
36945lt_NL2SP \
36946reload_flag \
36947deplibs_check_method \
36948file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036949file_magic_glob \
36950want_nocaseglob \
36951sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036952AR \
36953AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036954archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036955STRIP \
36956RANLIB \
36957CC \
36958CFLAGS \
36959compiler \
36960lt_cv_sys_global_symbol_pipe \
36961lt_cv_sys_global_symbol_to_cdecl \
36962lt_cv_sys_global_symbol_to_c_name_address \
36963lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036964nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036965lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036966lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036967lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036968lt_prog_compiler_static \
36969lt_cv_prog_compiler_c_o \
36970need_locks \
cristyda16f162011-02-19 23:52:17 +000036971MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036972DSYMUTIL \
36973NMEDIT \
36974LIPO \
36975OTOOL \
36976OTOOL64 \
36977shrext_cmds \
36978export_dynamic_flag_spec \
36979whole_archive_flag_spec \
36980compiler_needs_object \
36981with_gnu_ld \
36982allow_undefined_flag \
36983no_undefined_flag \
36984hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036985hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036986exclude_expsyms \
36987include_expsyms \
36988file_list_spec \
36989variables_saved_for_relink \
36990libname_spec \
36991library_names_spec \
36992soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036993install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036994finish_eval \
36995old_striplib \
36996striplib \
36997compiler_lib_search_dirs \
36998predep_objects \
36999postdep_objects \
37000predeps \
37001postdeps \
37002compiler_lib_search_path \
37003LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037004reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037005compiler_CXX \
37006lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037007lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037008lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037009lt_prog_compiler_static_CXX \
37010lt_cv_prog_compiler_c_o_CXX \
37011export_dynamic_flag_spec_CXX \
37012whole_archive_flag_spec_CXX \
37013compiler_needs_object_CXX \
37014with_gnu_ld_CXX \
37015allow_undefined_flag_CXX \
37016no_undefined_flag_CXX \
37017hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037018hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037019exclude_expsyms_CXX \
37020include_expsyms_CXX \
37021file_list_spec_CXX \
37022compiler_lib_search_dirs_CXX \
37023predep_objects_CXX \
37024postdep_objects_CXX \
37025predeps_CXX \
37026postdeps_CXX \
37027compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037028 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037029 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037030 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037031 ;;
37032 *)
37033 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37034 ;;
37035 esac
37036done
37037
37038# Double-quote double-evaled strings.
37039for var in reload_cmds \
37040old_postinstall_cmds \
37041old_postuninstall_cmds \
37042old_archive_cmds \
37043extract_expsyms_cmds \
37044old_archive_from_new_cmds \
37045old_archive_from_expsyms_cmds \
37046archive_cmds \
37047archive_expsym_cmds \
37048module_cmds \
37049module_expsym_cmds \
37050export_symbols_cmds \
37051prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037052postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037053postinstall_cmds \
37054postuninstall_cmds \
37055finish_cmds \
37056sys_lib_search_path_spec \
37057sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037058reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037059old_archive_cmds_CXX \
37060old_archive_from_new_cmds_CXX \
37061old_archive_from_expsyms_cmds_CXX \
37062archive_cmds_CXX \
37063archive_expsym_cmds_CXX \
37064module_cmds_CXX \
37065module_expsym_cmds_CXX \
37066export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037067prelink_cmds_CXX \
37068postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037069 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037070 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037072 ;;
37073 *)
37074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37075 ;;
37076 esac
37077done
37078
cristy73bd4a52010-10-05 11:24:23 +000037079ac_aux_dir='$ac_aux_dir'
37080xsi_shell='$xsi_shell'
37081lt_shell_append='$lt_shell_append'
37082
37083# See if we are running on zsh, and set the options which allow our
37084# commands through without removal of \ escapes INIT.
37085if test -n "\${ZSH_VERSION+set}" ; then
37086 setopt NO_GLOB_SUBST
37087fi
37088
37089
37090 PACKAGE='$PACKAGE'
37091 VERSION='$VERSION'
37092 TIMESTAMP='$TIMESTAMP'
37093 RM='$RM'
37094 ofile='$ofile'
37095
37096
37097
37098
37099
37100
cristy3ed852e2009-09-05 21:47:34 +000037101_ACEOF
37102
37103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37104
37105# Handling of arguments.
37106for ac_config_target in $ac_config_targets
37107do
37108 case $ac_config_target in
37109 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037110 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037111 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037112 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37113 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37114 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37115 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37116 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037117 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037118 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037119 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37120 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37121 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37122 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37123 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037124 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037125 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037126 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37127 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37128 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037129 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37130 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037131 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037132 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037133 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037134 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037135 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37136 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37137 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37138 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037139 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37140 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37141 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37142 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37143 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37144 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37145 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37146 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37147 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37148 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37149 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37150 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037151 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37152 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037153 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37154 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037155 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037156 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037157 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037158 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037159 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37160 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37161
cristy98dddb52010-11-04 00:30:15 +000037162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037163 esac
37164done
37165
37166
37167# If the user did not use the arguments to specify the items to instantiate,
37168# then the envvar interface is used. Set only those that are not.
37169# We use the long form for the default assignment because of an extremely
37170# bizarre bug on SunOS 4.1.3.
37171if $ac_need_defaults; then
37172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37175fi
37176
37177# Have a temporary directory for convenience. Make it in the build tree
37178# simply because there is no reason against having it here, and in addition,
37179# creating and moving files from /tmp can sometimes cause problems.
37180# Hook for its removal unless debugging.
37181# Note that there is a small window in which the directory will not be cleaned:
37182# after its creation but before its name has been assigned to `$tmp'.
37183$debug ||
37184{
cristyda16f162011-02-19 23:52:17 +000037185 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037186 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037187 : "${ac_tmp:=$tmp}"
37188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037189' 0
cristy8b350f62009-11-15 23:12:43 +000037190 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037191}
37192# Create a (secure) tmp directory for tmp files.
37193
37194{
37195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037196 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037197} ||
37198{
37199 tmp=./conf$$-$RANDOM
37200 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037201} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037202ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037203
37204# Set up the scripts for CONFIG_FILES section.
37205# No need to generate them if there are no CONFIG_FILES.
37206# This happens for instance with `./config.status config.h'.
37207if test -n "$CONFIG_FILES"; then
37208
37209
cristy8b350f62009-11-15 23:12:43 +000037210ac_cr=`echo X | tr X '\015'`
37211# On cygwin, bash can eat \r inside `` if the user requested igncr.
37212# But we know of no other shell where ac_cr would be empty at this
37213# point, so we can use a bashism as a fallback.
37214if test "x$ac_cr" = x; then
37215 eval ac_cr=\$\'\\r\'
37216fi
cristy3ed852e2009-09-05 21:47:34 +000037217ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37218if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037219 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037220else
37221 ac_cs_awk_cr=$ac_cr
37222fi
37223
cristyda16f162011-02-19 23:52:17 +000037224echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037225_ACEOF
37226
37227
37228{
37229 echo "cat >conf$$subs.awk <<_ACEOF" &&
37230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37231 echo "_ACEOF"
37232} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37234ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037235ac_delim='%!_!# '
37236for ac_last_try in false false false false false :; do
37237 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037239
37240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37241 if test $ac_delim_n = $ac_delim_num; then
37242 break
37243 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037245 else
37246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37247 fi
37248done
37249rm -f conf$$subs.sh
37250
37251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037252cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037253_ACEOF
37254sed -n '
37255h
37256s/^/S["/; s/!.*/"]=/
37257p
37258g
37259s/^[^!]*!//
37260:repl
37261t repl
37262s/'"$ac_delim"'$//
37263t delim
37264:nl
37265h
cristycd4c5312009-11-22 01:19:08 +000037266s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037267t more1
37268s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37269p
37270n
37271b repl
37272:more1
37273s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37274p
37275g
37276s/.\{148\}//
37277t nl
37278:delim
37279h
cristycd4c5312009-11-22 01:19:08 +000037280s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037281t more2
37282s/["\\]/\\&/g; s/^/"/; s/$/"/
37283p
37284b
37285:more2
37286s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37287p
37288g
37289s/.\{148\}//
37290t delim
37291' <conf$$subs.awk | sed '
37292/^[^""]/{
37293 N
37294 s/\n//
37295}
37296' >>$CONFIG_STATUS || ac_write_fail=1
37297rm -f conf$$subs.awk
37298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37299_ACAWK
cristyda16f162011-02-19 23:52:17 +000037300cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037301 for (key in S) S_is_set[key] = 1
37302 FS = ""
37303
37304}
37305{
37306 line = $ 0
37307 nfields = split(line, field, "@")
37308 substed = 0
37309 len = length(field[1])
37310 for (i = 2; i < nfields; i++) {
37311 key = field[i]
37312 keylen = length(key)
37313 if (S_is_set[key]) {
37314 value = S[key]
37315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37316 len += length(value) + length(field[++i])
37317 substed = 1
37318 } else
37319 len += 1 + keylen
37320 }
37321
37322 print line
37323}
37324
37325_ACAWK
37326_ACEOF
37327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37328if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37329 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37330else
37331 cat
cristyda16f162011-02-19 23:52:17 +000037332fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037333 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037334_ACEOF
37335
cristy98dddb52010-11-04 00:30:15 +000037336# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37337# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037338# trailing colons and then remove the whole line if VPATH becomes empty
37339# (actually we leave an empty line to preserve line numbers).
37340if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037341 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37342h
37343s///
37344s/^/:/
37345s/[ ]*$/:/
37346s/:\$(srcdir):/:/g
37347s/:\${srcdir}:/:/g
37348s/:@srcdir@:/:/g
37349s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037350s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037351x
37352s/\(=[ ]*\).*/\1/
37353G
37354s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037355s/^[^=]*=[ ]*$//
37356}'
37357fi
37358
37359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37360fi # test -n "$CONFIG_FILES"
37361
37362# Set up the scripts for CONFIG_HEADERS section.
37363# No need to generate them if there are no CONFIG_HEADERS.
37364# This happens for instance with `./config.status Makefile'.
37365if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037366cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037367BEGIN {
37368_ACEOF
37369
37370# Transform confdefs.h into an awk script `defines.awk', embedded as
37371# here-document in config.status, that substitutes the proper values into
37372# config.h.in to produce config.h.
37373
37374# Create a delimiter string that does not exist in confdefs.h, to ease
37375# handling of long lines.
37376ac_delim='%!_!# '
37377for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037378 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37379 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037380 break
37381 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037382 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037383 else
37384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37385 fi
37386done
37387
37388# For the awk script, D is an array of macro values keyed by name,
37389# likewise P contains macro parameters if any. Preserve backslash
37390# newline sequences.
37391
37392ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37393sed -n '
37394s/.\{148\}/&'"$ac_delim"'/g
37395t rset
37396:rset
37397s/^[ ]*#[ ]*define[ ][ ]*/ /
37398t def
37399d
37400:def
37401s/\\$//
37402t bsnl
37403s/["\\]/\\&/g
37404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37405D["\1"]=" \3"/p
37406s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37407d
37408:bsnl
37409s/["\\]/\\&/g
37410s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37411D["\1"]=" \3\\\\\\n"\\/p
37412t cont
37413s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37414t cont
37415d
37416:cont
37417n
37418s/.\{148\}/&'"$ac_delim"'/g
37419t clear
37420:clear
37421s/\\$//
37422t bsnlc
37423s/["\\]/\\&/g; s/^/"/; s/$/"/p
37424d
37425:bsnlc
37426s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37427b cont
37428' <confdefs.h | sed '
37429s/'"$ac_delim"'/"\\\
37430"/g' >>$CONFIG_STATUS || ac_write_fail=1
37431
37432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37433 for (key in D) D_is_set[key] = 1
37434 FS = ""
37435}
37436/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37437 line = \$ 0
37438 split(line, arg, " ")
37439 if (arg[1] == "#") {
37440 defundef = arg[2]
37441 mac1 = arg[3]
37442 } else {
37443 defundef = substr(arg[1], 2)
37444 mac1 = arg[2]
37445 }
37446 split(mac1, mac2, "(") #)
37447 macro = mac2[1]
37448 prefix = substr(line, 1, index(line, defundef) - 1)
37449 if (D_is_set[macro]) {
37450 # Preserve the white space surrounding the "#".
37451 print prefix "define", macro P[macro] D[macro]
37452 next
37453 } else {
37454 # Replace #undef with comments. This is necessary, for example,
37455 # in the case of _POSIX_SOURCE, which is predefined and required
37456 # on some systems where configure will not decide to define it.
37457 if (defundef == "undef") {
37458 print "/*", prefix defundef, macro, "*/"
37459 next
37460 }
37461 }
37462}
37463{ print }
37464_ACAWK
37465_ACEOF
37466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037467 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037468fi # test -n "$CONFIG_HEADERS"
37469
37470
37471eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37472shift
37473for ac_tag
37474do
37475 case $ac_tag in
37476 :[FHLC]) ac_mode=$ac_tag; continue;;
37477 esac
37478 case $ac_mode$ac_tag in
37479 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037480 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037481 :[FH]-) ac_tag=-:-;;
37482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37483 esac
37484 ac_save_IFS=$IFS
37485 IFS=:
37486 set x $ac_tag
37487 IFS=$ac_save_IFS
37488 shift
37489 ac_file=$1
37490 shift
37491
37492 case $ac_mode in
37493 :L) ac_source=$1;;
37494 :[FH])
37495 ac_file_inputs=
37496 for ac_f
37497 do
37498 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037499 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037500 *) # Look for the file first in the build tree, then in the source tree
37501 # (if the path is not absolute). The absolute path cannot be DOS-style,
37502 # because $ac_f cannot contain `:'.
37503 test -f "$ac_f" ||
37504 case $ac_f in
37505 [\\/$]*) false;;
37506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37507 esac ||
cristy98dddb52010-11-04 00:30:15 +000037508 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037509 esac
37510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037511 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037512 done
37513
37514 # Let's still pretend it is `configure' which instantiates (i.e., don't
37515 # use $as_me), people would be surprised to read:
37516 # /* config.h. Generated by config.status. */
37517 configure_input='Generated from '`
37518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37519 `' by configure.'
37520 if test x"$ac_file" != x-; then
37521 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037523$as_echo "$as_me: creating $ac_file" >&6;}
37524 fi
37525 # Neutralize special characters interpreted by sed in replacement strings.
37526 case $configure_input in #(
37527 *\&* | *\|* | *\\* )
37528 ac_sed_conf_input=`$as_echo "$configure_input" |
37529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37530 *) ac_sed_conf_input=$configure_input;;
37531 esac
37532
37533 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037534 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037536 esac
37537 ;;
37538 esac
37539
37540 ac_dir=`$as_dirname -- "$ac_file" ||
37541$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37542 X"$ac_file" : 'X\(//\)[^/]' \| \
37543 X"$ac_file" : 'X\(//\)$' \| \
37544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37545$as_echo X"$ac_file" |
37546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37547 s//\1/
37548 q
37549 }
37550 /^X\(\/\/\)[^/].*/{
37551 s//\1/
37552 q
37553 }
37554 /^X\(\/\/\)$/{
37555 s//\1/
37556 q
37557 }
37558 /^X\(\/\).*/{
37559 s//\1/
37560 q
37561 }
37562 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037563 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037564 ac_builddir=.
37565
37566case "$ac_dir" in
37567.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37568*)
37569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37570 # A ".." for each directory in $ac_dir_suffix.
37571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37572 case $ac_top_builddir_sub in
37573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37575 esac ;;
37576esac
37577ac_abs_top_builddir=$ac_pwd
37578ac_abs_builddir=$ac_pwd$ac_dir_suffix
37579# for backward compatibility:
37580ac_top_builddir=$ac_top_build_prefix
37581
37582case $srcdir in
37583 .) # We are building in place.
37584 ac_srcdir=.
37585 ac_top_srcdir=$ac_top_builddir_sub
37586 ac_abs_top_srcdir=$ac_pwd ;;
37587 [\\/]* | ?:[\\/]* ) # Absolute name.
37588 ac_srcdir=$srcdir$ac_dir_suffix;
37589 ac_top_srcdir=$srcdir
37590 ac_abs_top_srcdir=$srcdir ;;
37591 *) # Relative name.
37592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37593 ac_top_srcdir=$ac_top_build_prefix$srcdir
37594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37595esac
37596ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37597
37598
37599 case $ac_mode in
37600 :F)
37601 #
37602 # CONFIG_FILE
37603 #
37604
37605 case $INSTALL in
37606 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37607 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37608 esac
cristy73bd4a52010-10-05 11:24:23 +000037609 ac_MKDIR_P=$MKDIR_P
37610 case $MKDIR_P in
37611 [\\/$]* | ?:[\\/]* ) ;;
37612 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37613 esac
cristy3ed852e2009-09-05 21:47:34 +000037614_ACEOF
37615
37616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37617# If the template does not know about datarootdir, expand it.
37618# FIXME: This hack should be removed a few years after 2.60.
37619ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037620ac_sed_dataroot='
37621/datarootdir/ {
37622 p
37623 q
37624}
37625/@datadir@/p
37626/@docdir@/p
37627/@infodir@/p
37628/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037629/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037630case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37631*datarootdir*) ac_datarootdir_seen=yes;;
37632*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037634$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37635_ACEOF
37636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37637 ac_datarootdir_hack='
37638 s&@datadir@&$datadir&g
37639 s&@docdir@&$docdir&g
37640 s&@infodir@&$infodir&g
37641 s&@localedir@&$localedir&g
37642 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037643 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037644esac
37645_ACEOF
37646
37647# Neutralize VPATH when `$srcdir' = `.'.
37648# Shell code in configure.ac might set extrasub.
37649# FIXME: do we really want to maintain this feature?
37650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37651ac_sed_extra="$ac_vpsub
37652$extrasub
37653_ACEOF
37654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37655:t
37656/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37657s|@configure_input@|$ac_sed_conf_input|;t t
37658s&@top_builddir@&$ac_top_builddir_sub&;t t
37659s&@top_build_prefix@&$ac_top_build_prefix&;t t
37660s&@srcdir@&$ac_srcdir&;t t
37661s&@abs_srcdir@&$ac_abs_srcdir&;t t
37662s&@top_srcdir@&$ac_top_srcdir&;t t
37663s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37664s&@builddir@&$ac_builddir&;t t
37665s&@abs_builddir@&$ac_abs_builddir&;t t
37666s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37667s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037668s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037669$ac_datarootdir_hack
37670"
cristyda16f162011-02-19 23:52:17 +000037671eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37672 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037673
37674test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037675 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37677 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037679which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037680$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037681which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037682
cristyda16f162011-02-19 23:52:17 +000037683 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037684 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037685 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37686 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037687 esac \
cristy98dddb52010-11-04 00:30:15 +000037688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037689 ;;
37690 :H)
37691 #
37692 # CONFIG_HEADER
37693 #
37694 if test x"$ac_file" != x-; then
37695 {
37696 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037697 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37698 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037700 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037701 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037702$as_echo "$as_me: $ac_file is unchanged" >&6;}
37703 else
37704 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037705 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037707 fi
37708 else
37709 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037711 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037712 fi
cristy73bd4a52010-10-05 11:24:23 +000037713# Compute "$ac_file"'s index in $config_headers.
37714_am_arg="$ac_file"
37715_am_stamp_count=1
37716for _am_header in $config_headers :; do
37717 case $_am_header in
37718 $_am_arg | $_am_arg:* )
37719 break ;;
37720 * )
37721 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37722 esac
37723done
37724echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37725$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37726 X"$_am_arg" : 'X\(//\)[^/]' \| \
37727 X"$_am_arg" : 'X\(//\)$' \| \
37728 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37729$as_echo X"$_am_arg" |
37730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37731 s//\1/
37732 q
37733 }
37734 /^X\(\/\/\)[^/].*/{
37735 s//\1/
37736 q
37737 }
37738 /^X\(\/\/\)$/{
37739 s//\1/
37740 q
37741 }
37742 /^X\(\/\).*/{
37743 s//\1/
37744 q
37745 }
37746 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037747 ;;
37748
cristy8b350f62009-11-15 23:12:43 +000037749 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037750$as_echo "$as_me: executing $ac_file commands" >&6;}
37751 ;;
37752 esac
37753
37754
37755 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037756 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037757ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37758ac_prefix_conf_PKG=`echo MagickCore`
37759ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37760ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37761ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37762if test ".$ac_prefix_conf_INP" = "."; then
37763 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37764 case "$ac_file" in
37765 *.h) ac_prefix_conf_INP=$ac_file ;;
37766 *)
37767 esac
37768 test ".$ac_prefix_conf_INP" != "." && break
37769 done
37770fi
37771if test ".$ac_prefix_conf_INP" = "."; then
37772 case "$ac_prefix_conf_OUT" in
37773 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37774 ;;
37775 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37776 ;;
37777 *) ac_prefix_conf_INP=config.h
37778 ;;
37779 esac
37780fi
37781if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037782 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037783else
37784 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37785 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37786 fi fi
37787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37788$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37789 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037790 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37791 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37792 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37793 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37794 $as_echo "#endif/" >> conftest.prefix
37795 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37796 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37797 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037798 # now executing _script on _DEF input to create _OUT output file
37799 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37800 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37801 echo ' ' >>$tmp/pconfig.h
37802 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37803
37804 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37805 echo ' ' >>$tmp/pconfig.h
37806 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37807 echo "#endif" >>$tmp/pconfig.h
37808 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37810$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37811 else
37812 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37813$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37814 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37815 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37816 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37817$as_echo X"$ac_prefix_conf_OUT" |
37818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37819 s//\1/
37820 q
37821 }
37822 /^X\(\/\/\)[^/].*/{
37823 s//\1/
37824 q
37825 }
37826 /^X\(\/\/\)$/{
37827 s//\1/
37828 q
37829 }
37830 /^X\(\/\).*/{
37831 s//\1/
37832 q
37833 }
37834 s/.*/./; q'`
37835 as_dir="$ac_dir"; as_fn_mkdir_p
37836 rm -f "$ac_prefix_conf_OUT"
37837 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37838 fi
37839 cp conftest.prefix _configs.sed
37840 else
cristy98dddb52010-11-04 00:30:15 +000037841 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037842 fi
37843 rm -f conftest.*
37844fi
37845 ;;
37846 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037847 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037848 # are listed without --file. Let's play safe and only enable the eval
37849 # if we detect the quoting.
37850 case $CONFIG_FILES in
37851 *\'*) eval set x "$CONFIG_FILES" ;;
37852 *) set x $CONFIG_FILES ;;
37853 esac
37854 shift
37855 for mf
37856 do
37857 # Strip MF so we end up with the name of the file.
37858 mf=`echo "$mf" | sed -e 's/:.*$//'`
37859 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037860 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037861 # some people rename them; so instead we look at the file content.
37862 # Grep'ing the first line is not enough: some people post-process
37863 # each Makefile.in and add a new line on top of each file to say so.
37864 # Grep'ing the whole file is not good either: AIX grep has a line
37865 # limit of 2048, but all sed's we know have understand at least 4000.
37866 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37867 dirpart=`$as_dirname -- "$mf" ||
37868$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37869 X"$mf" : 'X\(//\)[^/]' \| \
37870 X"$mf" : 'X\(//\)$' \| \
37871 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37872$as_echo X"$mf" |
37873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37874 s//\1/
37875 q
37876 }
37877 /^X\(\/\/\)[^/].*/{
37878 s//\1/
37879 q
37880 }
37881 /^X\(\/\/\)$/{
37882 s//\1/
37883 q
37884 }
37885 /^X\(\/\).*/{
37886 s//\1/
37887 q
37888 }
37889 s/.*/./; q'`
37890 else
37891 continue
37892 fi
37893 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037894 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037895 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37896 test -z "$DEPDIR" && continue
37897 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037898 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037899 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037900 # Find all dependency output files, they are included files with
37901 # $(DEPDIR) in their names. We invoke sed twice because it is the
37902 # simplest approach to changing $(DEPDIR) to its actual value in the
37903 # expansion.
37904 for file in `sed -n "
37905 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037906 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037907 # Make sure the directory exists.
37908 test -f "$dirpart/$file" && continue
37909 fdir=`$as_dirname -- "$file" ||
37910$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37911 X"$file" : 'X\(//\)[^/]' \| \
37912 X"$file" : 'X\(//\)$' \| \
37913 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37914$as_echo X"$file" |
37915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37916 s//\1/
37917 q
37918 }
37919 /^X\(\/\/\)[^/].*/{
37920 s//\1/
37921 q
37922 }
37923 /^X\(\/\/\)$/{
37924 s//\1/
37925 q
37926 }
37927 /^X\(\/\).*/{
37928 s//\1/
37929 q
37930 }
37931 s/.*/./; q'`
37932 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37933 # echo "creating $dirpart/$file"
37934 echo '# dummy' > "$dirpart/$file"
37935 done
37936 done
37937}
37938 ;;
37939 "libtool":C)
37940
37941 # See if we are running on zsh, and set the options which allow our
37942 # commands through without removal of \ escapes.
37943 if test -n "${ZSH_VERSION+set}" ; then
37944 setopt NO_GLOB_SUBST
37945 fi
37946
37947 cfgfile="${ofile}T"
37948 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37949 $RM "$cfgfile"
37950
37951 cat <<_LT_EOF >> "$cfgfile"
37952#! $SHELL
37953
37954# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37955# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37957# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37958#
37959# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037960# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37961# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037962# Written by Gordon Matzigkeit, 1996
37963#
37964# This file is part of GNU Libtool.
37965#
37966# GNU Libtool is free software; you can redistribute it and/or
37967# modify it under the terms of the GNU General Public License as
37968# published by the Free Software Foundation; either version 2 of
37969# the License, or (at your option) any later version.
37970#
37971# As a special exception to the GNU General Public License,
37972# if you distribute this file as part of a program or library that
37973# is built using GNU Libtool, you may include this file under the
37974# same distribution terms that you use for the rest of that program.
37975#
37976# GNU Libtool is distributed in the hope that it will be useful,
37977# but WITHOUT ANY WARRANTY; without even the implied warranty of
37978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37979# GNU General Public License for more details.
37980#
37981# You should have received a copy of the GNU General Public License
37982# along with GNU Libtool; see the file COPYING. If not, a copy
37983# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37984# obtained by writing to the Free Software Foundation, Inc.,
37985# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37986
37987
37988# The names of the tagged configurations supported by this script.
37989available_tags="CXX "
37990
37991# ### BEGIN LIBTOOL CONFIG
37992
37993# A sed program that does not truncate output.
37994SED=$lt_SED
37995
37996# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37997Xsed="\$SED -e 1s/^X//"
37998
37999# A grep program that handles long lines.
38000GREP=$lt_GREP
38001
38002# An ERE matcher.
38003EGREP=$lt_EGREP
38004
38005# A literal string matcher.
38006FGREP=$lt_FGREP
38007
cristy0c60a692010-11-04 01:09:47 +000038008# Shell to use when invoking shell scripts.
38009SHELL=$lt_SHELL
38010
38011# An echo program that protects backslashes.
38012ECHO=$lt_ECHO
38013
cristy73bd4a52010-10-05 11:24:23 +000038014# Which release of libtool.m4 was used?
38015macro_version=$macro_version
38016macro_revision=$macro_revision
38017
38018# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038019AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038020
38021# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038022DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038023
38024# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038025OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038026
38027# Whether or not to build shared libraries.
38028build_libtool_libs=$enable_shared
38029
38030# Whether or not to build static libraries.
38031build_old_libs=$enable_static
38032
38033# What type of objects to build.
38034pic_mode=$pic_mode
38035
38036# Whether or not to optimize for fast installation.
38037fast_install=$enable_fast_install
38038
cristy99bd5232011-12-07 14:38:20 +000038039# The PATH separator for the build system.
38040PATH_SEPARATOR=$lt_PATH_SEPARATOR
38041
cristy73bd4a52010-10-05 11:24:23 +000038042# The host system.
38043host_alias=$host_alias
38044host=$host
38045host_os=$host_os
38046
38047# The build system.
38048build_alias=$build_alias
38049build=$build
38050build_os=$build_os
38051
38052# A BSD- or MS-compatible name lister.
38053NM=$lt_NM
38054
38055# Whether we need soft or hard links.
38056LN_S=$lt_LN_S
38057
38058# What is the maximum length of a command?
38059max_cmd_len=$max_cmd_len
38060
38061# Object file suffix (normally "o").
38062objext=$ac_objext
38063
38064# Executable file suffix (normally "").
38065exeext=$exeext
38066
38067# whether the shell understands "unset".
38068lt_unset=$lt_unset
38069
38070# turn spaces into newlines.
38071SP2NL=$lt_lt_SP2NL
38072
38073# turn newlines into spaces.
38074NL2SP=$lt_lt_NL2SP
38075
cristyda16f162011-02-19 23:52:17 +000038076# convert \$build file names to \$host format.
38077to_host_file_cmd=$lt_cv_to_host_file_cmd
38078
38079# convert \$build files to toolchain format.
38080to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38081
cristy73bd4a52010-10-05 11:24:23 +000038082# Method to check whether dependent libraries are shared objects.
38083deplibs_check_method=$lt_deplibs_check_method
38084
cristyda16f162011-02-19 23:52:17 +000038085# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038086file_magic_cmd=$lt_file_magic_cmd
38087
cristyda16f162011-02-19 23:52:17 +000038088# How to find potential files when deplibs_check_method = "file_magic".
38089file_magic_glob=$lt_file_magic_glob
38090
38091# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38092want_nocaseglob=$lt_want_nocaseglob
38093
38094# Command to associate shared and link libraries.
38095sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38096
cristy73bd4a52010-10-05 11:24:23 +000038097# The archiver.
38098AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038099
38100# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038101AR_FLAGS=$lt_AR_FLAGS
38102
cristyda16f162011-02-19 23:52:17 +000038103# How to feed a file listing to the archiver.
38104archiver_list_spec=$lt_archiver_list_spec
38105
cristy73bd4a52010-10-05 11:24:23 +000038106# A symbol stripping program.
38107STRIP=$lt_STRIP
38108
38109# Commands used to install an old-style archive.
38110RANLIB=$lt_RANLIB
38111old_postinstall_cmds=$lt_old_postinstall_cmds
38112old_postuninstall_cmds=$lt_old_postuninstall_cmds
38113
cristy0c60a692010-11-04 01:09:47 +000038114# Whether to use a lock for old archive extraction.
38115lock_old_archive_extraction=$lock_old_archive_extraction
38116
cristy73bd4a52010-10-05 11:24:23 +000038117# A C compiler.
38118LTCC=$lt_CC
38119
38120# LTCC compiler flags.
38121LTCFLAGS=$lt_CFLAGS
38122
38123# Take the output of nm and produce a listing of raw symbols and C names.
38124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38125
38126# Transform the output of nm in a proper C declaration.
38127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38128
38129# Transform the output of nm in a C name address pair.
38130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38131
38132# Transform the output of nm in a C name address pair when lib prefix is needed.
38133global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38134
cristyda16f162011-02-19 23:52:17 +000038135# Specify filename containing input files for \$NM.
38136nm_file_list_spec=$lt_nm_file_list_spec
38137
38138# The root where to search for dependent libraries,and in which our libraries should be installed.
38139lt_sysroot=$lt_sysroot
38140
cristy73bd4a52010-10-05 11:24:23 +000038141# The name of the directory that contains temporary libtool files.
38142objdir=$objdir
38143
cristy73bd4a52010-10-05 11:24:23 +000038144# Used to examine libraries when file_magic_cmd begins with "file".
38145MAGIC_CMD=$MAGIC_CMD
38146
38147# Must we lock files when doing compilation?
38148need_locks=$lt_need_locks
38149
cristyda16f162011-02-19 23:52:17 +000038150# Manifest tool.
38151MANIFEST_TOOL=$lt_MANIFEST_TOOL
38152
cristy73bd4a52010-10-05 11:24:23 +000038153# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38154DSYMUTIL=$lt_DSYMUTIL
38155
38156# Tool to change global to local symbols on Mac OS X.
38157NMEDIT=$lt_NMEDIT
38158
38159# Tool to manipulate fat objects and archives on Mac OS X.
38160LIPO=$lt_LIPO
38161
38162# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38163OTOOL=$lt_OTOOL
38164
38165# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38166OTOOL64=$lt_OTOOL64
38167
38168# Old archive suffix (normally "a").
38169libext=$libext
38170
38171# Shared library suffix (normally ".so").
38172shrext_cmds=$lt_shrext_cmds
38173
38174# The commands to extract the exported symbol list from a shared archive.
38175extract_expsyms_cmds=$lt_extract_expsyms_cmds
38176
38177# Variables whose values should be saved in libtool wrapper scripts and
38178# restored at link time.
38179variables_saved_for_relink=$lt_variables_saved_for_relink
38180
38181# Do we need the "lib" prefix for modules?
38182need_lib_prefix=$need_lib_prefix
38183
38184# Do we need a version for libraries?
38185need_version=$need_version
38186
38187# Library versioning type.
38188version_type=$version_type
38189
38190# Shared library runtime path variable.
38191runpath_var=$runpath_var
38192
38193# Shared library path variable.
38194shlibpath_var=$shlibpath_var
38195
38196# Is shlibpath searched before the hard-coded library search path?
38197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38198
38199# Format of library name prefix.
38200libname_spec=$lt_libname_spec
38201
38202# List of archive names. First name is the real one, the rest are links.
38203# The last name is the one that the linker finds with -lNAME
38204library_names_spec=$lt_library_names_spec
38205
38206# The coded name of the library, if different from the real name.
38207soname_spec=$lt_soname_spec
38208
cristy0c60a692010-11-04 01:09:47 +000038209# Permission mode override for installation of shared libraries.
38210install_override_mode=$lt_install_override_mode
38211
cristy73bd4a52010-10-05 11:24:23 +000038212# Command to use after installation of a shared archive.
38213postinstall_cmds=$lt_postinstall_cmds
38214
38215# Command to use after uninstallation of a shared archive.
38216postuninstall_cmds=$lt_postuninstall_cmds
38217
38218# Commands used to finish a libtool library installation in a directory.
38219finish_cmds=$lt_finish_cmds
38220
38221# As "finish_cmds", except a single script fragment to be evaled but
38222# not shown.
38223finish_eval=$lt_finish_eval
38224
38225# Whether we should hardcode library paths into libraries.
38226hardcode_into_libs=$hardcode_into_libs
38227
38228# Compile-time system search path for libraries.
38229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38230
38231# Run-time system search path for libraries.
38232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38233
38234# Whether dlopen is supported.
38235dlopen_support=$enable_dlopen
38236
38237# Whether dlopen of programs is supported.
38238dlopen_self=$enable_dlopen_self
38239
38240# Whether dlopen of statically linked programs is supported.
38241dlopen_self_static=$enable_dlopen_self_static
38242
38243# Commands to strip libraries.
38244old_striplib=$lt_old_striplib
38245striplib=$lt_striplib
38246
38247
38248# The linker used to build libraries.
38249LD=$lt_LD
38250
cristy0c60a692010-11-04 01:09:47 +000038251# How to create reloadable object files.
38252reload_flag=$lt_reload_flag
38253reload_cmds=$lt_reload_cmds
38254
cristy73bd4a52010-10-05 11:24:23 +000038255# Commands used to build an old-style archive.
38256old_archive_cmds=$lt_old_archive_cmds
38257
38258# A language specific compiler.
38259CC=$lt_compiler
38260
38261# Is the compiler the GNU compiler?
38262with_gcc=$GCC
38263
38264# Compiler flag to turn off builtin functions.
38265no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38266
cristy73bd4a52010-10-05 11:24:23 +000038267# Additional compiler flags for building library objects.
38268pic_flag=$lt_lt_prog_compiler_pic
38269
cristyda16f162011-02-19 23:52:17 +000038270# How to pass a linker flag through the compiler.
38271wl=$lt_lt_prog_compiler_wl
38272
cristy73bd4a52010-10-05 11:24:23 +000038273# Compiler flag to prevent dynamic linking.
38274link_static_flag=$lt_lt_prog_compiler_static
38275
38276# Does compiler simultaneously support -c and -o options?
38277compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38278
38279# Whether or not to add -lc for building shared libraries.
38280build_libtool_need_lc=$archive_cmds_need_lc
38281
38282# Whether or not to disallow shared libs when runtime libs are static.
38283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38284
38285# Compiler flag to allow reflexive dlopens.
38286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38287
38288# Compiler flag to generate shared objects directly from archives.
38289whole_archive_flag_spec=$lt_whole_archive_flag_spec
38290
38291# Whether the compiler copes with passing no objects directly.
38292compiler_needs_object=$lt_compiler_needs_object
38293
38294# Create an old-style archive from a shared archive.
38295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38296
38297# Create a temporary old-style archive to link instead of a shared archive.
38298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38299
38300# Commands used to build a shared archive.
38301archive_cmds=$lt_archive_cmds
38302archive_expsym_cmds=$lt_archive_expsym_cmds
38303
38304# Commands used to build a loadable module if different from building
38305# a shared archive.
38306module_cmds=$lt_module_cmds
38307module_expsym_cmds=$lt_module_expsym_cmds
38308
38309# Whether we are building with GNU ld or not.
38310with_gnu_ld=$lt_with_gnu_ld
38311
38312# Flag that allows shared libraries with undefined symbols to be built.
38313allow_undefined_flag=$lt_allow_undefined_flag
38314
38315# Flag that enforces no undefined symbols.
38316no_undefined_flag=$lt_no_undefined_flag
38317
38318# Flag to hardcode \$libdir into a binary during linking.
38319# This must work even if \$libdir does not exist
38320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38321
cristy73bd4a52010-10-05 11:24:23 +000038322# Whether we need a single "-rpath" flag with a separated argument.
38323hardcode_libdir_separator=$lt_hardcode_libdir_separator
38324
38325# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38326# DIR into the resulting binary.
38327hardcode_direct=$hardcode_direct
38328
38329# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38330# DIR into the resulting binary and the resulting library dependency is
38331# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38332# library is relocated.
38333hardcode_direct_absolute=$hardcode_direct_absolute
38334
38335# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38336# into the resulting binary.
38337hardcode_minus_L=$hardcode_minus_L
38338
38339# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38340# into the resulting binary.
38341hardcode_shlibpath_var=$hardcode_shlibpath_var
38342
38343# Set to "yes" if building a shared library automatically hardcodes DIR
38344# into the library and all subsequent libraries and executables linked
38345# against it.
38346hardcode_automatic=$hardcode_automatic
38347
38348# Set to yes if linker adds runtime paths of dependent libraries
38349# to runtime path list.
38350inherit_rpath=$inherit_rpath
38351
38352# Whether libtool must link a program against all its dependency libraries.
38353link_all_deplibs=$link_all_deplibs
38354
cristy73bd4a52010-10-05 11:24:23 +000038355# Set to "yes" if exported symbols are required.
38356always_export_symbols=$always_export_symbols
38357
38358# The commands to list exported symbols.
38359export_symbols_cmds=$lt_export_symbols_cmds
38360
38361# Symbols that should not be listed in the preloaded symbols.
38362exclude_expsyms=$lt_exclude_expsyms
38363
38364# Symbols that must always be exported.
38365include_expsyms=$lt_include_expsyms
38366
38367# Commands necessary for linking programs (against libraries) with templates.
38368prelink_cmds=$lt_prelink_cmds
38369
cristyda16f162011-02-19 23:52:17 +000038370# Commands necessary for finishing linking programs.
38371postlink_cmds=$lt_postlink_cmds
38372
cristy73bd4a52010-10-05 11:24:23 +000038373# Specify filename containing input files.
38374file_list_spec=$lt_file_list_spec
38375
38376# How to hardcode a shared library path into an executable.
38377hardcode_action=$hardcode_action
38378
38379# The directories searched by this compiler when creating a shared library.
38380compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38381
38382# Dependencies to place before and after the objects being linked to
38383# create a shared library.
38384predep_objects=$lt_predep_objects
38385postdep_objects=$lt_postdep_objects
38386predeps=$lt_predeps
38387postdeps=$lt_postdeps
38388
38389# The library search path used internally by the compiler when linking
38390# a shared library.
38391compiler_lib_search_path=$lt_compiler_lib_search_path
38392
38393# ### END LIBTOOL CONFIG
38394
38395_LT_EOF
38396
38397 case $host_os in
38398 aix3*)
38399 cat <<\_LT_EOF >> "$cfgfile"
38400# AIX sometimes has problems with the GCC collect2 program. For some
38401# reason, if we set the COLLECT_NAMES environment variable, the problems
38402# vanish in a puff of smoke.
38403if test "X${COLLECT_NAMES+set}" != Xset; then
38404 COLLECT_NAMES=
38405 export COLLECT_NAMES
38406fi
38407_LT_EOF
38408 ;;
38409 esac
38410
38411
38412ltmain="$ac_aux_dir/ltmain.sh"
38413
38414
38415 # We use sed instead of cat because bash on DJGPP gets confused if
38416 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38417 # text mode, it properly converts lines to CR/LF. This bash problem
38418 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038419 sed '$q' "$ltmain" >> "$cfgfile" \
38420 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038421
cristyda16f162011-02-19 23:52:17 +000038422 if test x"$xsi_shell" = xyes; then
38423 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38424func_dirname ()\
38425{\
38426\ case ${1} in\
38427\ */*) func_dirname_result="${1%/*}${2}" ;;\
38428\ * ) func_dirname_result="${3}" ;;\
38429\ esac\
38430} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38431 && mv -f "$cfgfile.tmp" "$cfgfile" \
38432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38433test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038434
38435
cristyda16f162011-02-19 23:52:17 +000038436 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38437func_basename ()\
38438{\
38439\ func_basename_result="${1##*/}"\
38440} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38441 && mv -f "$cfgfile.tmp" "$cfgfile" \
38442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38443test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038444
38445
cristyda16f162011-02-19 23:52:17 +000038446 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38447func_dirname_and_basename ()\
38448{\
38449\ case ${1} in\
38450\ */*) func_dirname_result="${1%/*}${2}" ;;\
38451\ * ) func_dirname_result="${3}" ;;\
38452\ esac\
38453\ func_basename_result="${1##*/}"\
38454} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38455 && mv -f "$cfgfile.tmp" "$cfgfile" \
38456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38457test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038458
cristyda16f162011-02-19 23:52:17 +000038459
38460 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38461func_stripname ()\
38462{\
38463\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38464\ # positional parameters, so assign one to ordinary parameter first.\
38465\ func_stripname_result=${3}\
38466\ func_stripname_result=${func_stripname_result#"${1}"}\
38467\ func_stripname_result=${func_stripname_result%"${2}"}\
38468} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38469 && mv -f "$cfgfile.tmp" "$cfgfile" \
38470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38471test 0 -eq $? || _lt_function_replace_fail=:
38472
38473
38474 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38475func_split_long_opt ()\
38476{\
38477\ func_split_long_opt_name=${1%%=*}\
38478\ func_split_long_opt_arg=${1#*=}\
38479} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38480 && mv -f "$cfgfile.tmp" "$cfgfile" \
38481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38482test 0 -eq $? || _lt_function_replace_fail=:
38483
38484
38485 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38486func_split_short_opt ()\
38487{\
38488\ func_split_short_opt_arg=${1#??}\
38489\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38490} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38491 && mv -f "$cfgfile.tmp" "$cfgfile" \
38492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38493test 0 -eq $? || _lt_function_replace_fail=:
38494
38495
38496 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38497func_lo2o ()\
38498{\
38499\ case ${1} in\
38500\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38501\ *) func_lo2o_result=${1} ;;\
38502\ esac\
38503} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38504 && mv -f "$cfgfile.tmp" "$cfgfile" \
38505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38506test 0 -eq $? || _lt_function_replace_fail=:
38507
38508
38509 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38510func_xform ()\
38511{\
38512 func_xform_result=${1%.*}.lo\
38513} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38514 && mv -f "$cfgfile.tmp" "$cfgfile" \
38515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38516test 0 -eq $? || _lt_function_replace_fail=:
38517
38518
38519 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38520func_arith ()\
38521{\
38522 func_arith_result=$(( $* ))\
38523} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38524 && mv -f "$cfgfile.tmp" "$cfgfile" \
38525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38526test 0 -eq $? || _lt_function_replace_fail=:
38527
38528
38529 sed -e '/^func_len ()$/,/^} # func_len /c\
38530func_len ()\
38531{\
38532 func_len_result=${#1}\
38533} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38534 && mv -f "$cfgfile.tmp" "$cfgfile" \
38535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38536test 0 -eq $? || _lt_function_replace_fail=:
38537
38538fi
38539
38540if test x"$lt_shell_append" = xyes; then
38541 sed -e '/^func_append ()$/,/^} # func_append /c\
38542func_append ()\
38543{\
38544 eval "${1}+=\\${2}"\
38545} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38546 && mv -f "$cfgfile.tmp" "$cfgfile" \
38547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38548test 0 -eq $? || _lt_function_replace_fail=:
38549
38550
38551 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38552func_append_quoted ()\
38553{\
38554\ func_quote_for_eval "${2}"\
38555\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38556} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38557 && mv -f "$cfgfile.tmp" "$cfgfile" \
38558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38559test 0 -eq $? || _lt_function_replace_fail=:
38560
38561
38562 # Save a `func_append' function call where possible by direct use of '+='
38563 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38564 && mv -f "$cfgfile.tmp" "$cfgfile" \
38565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38566 test 0 -eq $? || _lt_function_replace_fail=:
38567else
38568 # Save a `func_append' function call even when '+=' is not available
38569 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38570 && mv -f "$cfgfile.tmp" "$cfgfile" \
38571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38572 test 0 -eq $? || _lt_function_replace_fail=:
38573fi
38574
38575if test x"$_lt_function_replace_fail" = x":"; then
38576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38577$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38578fi
38579
38580
38581 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38583 chmod +x "$ofile"
38584
38585
38586 cat <<_LT_EOF >> "$ofile"
38587
38588# ### BEGIN LIBTOOL TAG CONFIG: CXX
38589
38590# The linker used to build libraries.
38591LD=$lt_LD_CXX
38592
cristy0c60a692010-11-04 01:09:47 +000038593# How to create reloadable object files.
38594reload_flag=$lt_reload_flag_CXX
38595reload_cmds=$lt_reload_cmds_CXX
38596
cristy73bd4a52010-10-05 11:24:23 +000038597# Commands used to build an old-style archive.
38598old_archive_cmds=$lt_old_archive_cmds_CXX
38599
38600# A language specific compiler.
38601CC=$lt_compiler_CXX
38602
38603# Is the compiler the GNU compiler?
38604with_gcc=$GCC_CXX
38605
38606# Compiler flag to turn off builtin functions.
38607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38608
cristy73bd4a52010-10-05 11:24:23 +000038609# Additional compiler flags for building library objects.
38610pic_flag=$lt_lt_prog_compiler_pic_CXX
38611
cristyda16f162011-02-19 23:52:17 +000038612# How to pass a linker flag through the compiler.
38613wl=$lt_lt_prog_compiler_wl_CXX
38614
cristy73bd4a52010-10-05 11:24:23 +000038615# Compiler flag to prevent dynamic linking.
38616link_static_flag=$lt_lt_prog_compiler_static_CXX
38617
38618# Does compiler simultaneously support -c and -o options?
38619compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38620
38621# Whether or not to add -lc for building shared libraries.
38622build_libtool_need_lc=$archive_cmds_need_lc_CXX
38623
38624# Whether or not to disallow shared libs when runtime libs are static.
38625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38626
38627# Compiler flag to allow reflexive dlopens.
38628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38629
38630# Compiler flag to generate shared objects directly from archives.
38631whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38632
38633# Whether the compiler copes with passing no objects directly.
38634compiler_needs_object=$lt_compiler_needs_object_CXX
38635
38636# Create an old-style archive from a shared archive.
38637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38638
38639# Create a temporary old-style archive to link instead of a shared archive.
38640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38641
38642# Commands used to build a shared archive.
38643archive_cmds=$lt_archive_cmds_CXX
38644archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38645
38646# Commands used to build a loadable module if different from building
38647# a shared archive.
38648module_cmds=$lt_module_cmds_CXX
38649module_expsym_cmds=$lt_module_expsym_cmds_CXX
38650
38651# Whether we are building with GNU ld or not.
38652with_gnu_ld=$lt_with_gnu_ld_CXX
38653
38654# Flag that allows shared libraries with undefined symbols to be built.
38655allow_undefined_flag=$lt_allow_undefined_flag_CXX
38656
38657# Flag that enforces no undefined symbols.
38658no_undefined_flag=$lt_no_undefined_flag_CXX
38659
38660# Flag to hardcode \$libdir into a binary during linking.
38661# This must work even if \$libdir does not exist
38662hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38663
cristy73bd4a52010-10-05 11:24:23 +000038664# Whether we need a single "-rpath" flag with a separated argument.
38665hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38666
38667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38668# DIR into the resulting binary.
38669hardcode_direct=$hardcode_direct_CXX
38670
38671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38672# DIR into the resulting binary and the resulting library dependency is
38673# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38674# library is relocated.
38675hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38676
38677# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38678# into the resulting binary.
38679hardcode_minus_L=$hardcode_minus_L_CXX
38680
38681# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38682# into the resulting binary.
38683hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38684
38685# Set to "yes" if building a shared library automatically hardcodes DIR
38686# into the library and all subsequent libraries and executables linked
38687# against it.
38688hardcode_automatic=$hardcode_automatic_CXX
38689
38690# Set to yes if linker adds runtime paths of dependent libraries
38691# to runtime path list.
38692inherit_rpath=$inherit_rpath_CXX
38693
38694# Whether libtool must link a program against all its dependency libraries.
38695link_all_deplibs=$link_all_deplibs_CXX
38696
cristy73bd4a52010-10-05 11:24:23 +000038697# Set to "yes" if exported symbols are required.
38698always_export_symbols=$always_export_symbols_CXX
38699
38700# The commands to list exported symbols.
38701export_symbols_cmds=$lt_export_symbols_cmds_CXX
38702
38703# Symbols that should not be listed in the preloaded symbols.
38704exclude_expsyms=$lt_exclude_expsyms_CXX
38705
38706# Symbols that must always be exported.
38707include_expsyms=$lt_include_expsyms_CXX
38708
38709# Commands necessary for linking programs (against libraries) with templates.
38710prelink_cmds=$lt_prelink_cmds_CXX
38711
cristyda16f162011-02-19 23:52:17 +000038712# Commands necessary for finishing linking programs.
38713postlink_cmds=$lt_postlink_cmds_CXX
38714
cristy73bd4a52010-10-05 11:24:23 +000038715# Specify filename containing input files.
38716file_list_spec=$lt_file_list_spec_CXX
38717
38718# How to hardcode a shared library path into an executable.
38719hardcode_action=$hardcode_action_CXX
38720
38721# The directories searched by this compiler when creating a shared library.
38722compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38723
38724# Dependencies to place before and after the objects being linked to
38725# create a shared library.
38726predep_objects=$lt_predep_objects_CXX
38727postdep_objects=$lt_postdep_objects_CXX
38728predeps=$lt_predeps_CXX
38729postdeps=$lt_postdeps_CXX
38730
38731# The library search path used internally by the compiler when linking
38732# a shared library.
38733compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38734
38735# ### END LIBTOOL TAG CONFIG: CXX
38736_LT_EOF
38737
38738 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038739 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038740 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038741 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038742 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38743 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38744
38745 esac
38746done # for ac_tag
38747
38748
cristy8b350f62009-11-15 23:12:43 +000038749as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038750_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038751ac_clean_files=$ac_clean_files_save
38752
38753test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038754 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038755
38756
38757# configure is writing to config.log, and then calls config.status.
38758# config.status does its own redirection, appending to config.log.
38759# Unfortunately, on DOS this fails, as config.log is still kept open
38760# by configure, so config.status won't be able to write to it; its
38761# output is simply discarded. So we exec the FD to /dev/null,
38762# effectively closing config.log, so it can be properly (re)opened and
38763# appended to by config.status. When coming back to configure, we
38764# need to make the FD available again.
38765if test "$no_create" != yes; then
38766 ac_cs_success=:
38767 ac_config_status_args=
38768 test "$silent" = yes &&
38769 ac_config_status_args="$ac_config_status_args --quiet"
38770 exec 5>/dev/null
38771 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38772 exec 5>>config.log
38773 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38774 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038775 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038776fi
38777if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038779$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38780fi
38781
38782
38783rm -f magick-version
38784
cristy430a7312010-01-21 20:44:04 +000038785result_dejavu_font_dir='none'
38786if test "${dejavu_font_dir}x" != 'x'; then
38787 result_dejavu_font_dir=$dejavu_font_dir
38788fi
38789
cristy3ed852e2009-09-05 21:47:34 +000038790result_ghostscript_font_dir='none'
38791if test "${ghostscript_font_dir}x" != 'x'; then
38792 result_ghostscript_font_dir=$ghostscript_font_dir
38793fi
38794
38795result_windows_font_dir='none'
38796if test "${windows_font_dir}x" != 'x'; then
38797 result_windows_font_dir=${windows_font_dir}
38798fi
38799
cristyad38abe2012-12-23 23:03:21 +000038800{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038801ImageMagick is configured as follows. Please verify that this configuration
38802matches your expectations.
38803
38804Host system type: $host
38805Build system type: $build
38806
38807 Option Value
38808-------------------------------------------------------------------------------
38809Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38810Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038811Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038812GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38813Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38814High Dynamic Range Imagery
38815 --enable-hdri=$enable_hdri $enable_hdri
38816
38817Delegate Configuration:
38818BZLIB --with-bzlib=$with_bzlib $have_bzlib
38819Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038820Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038821DJVU --with-djvu=$with_djvu $have_djvu
38822DPS --with-dps=$with_dps $have_dps
38823FFTW --with-fftw=$with_fftw $have_fftw
38824FlashPIX --with-fpx=$with_fpx $have_fpx
38825FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38826FreeType --with-freetype=$with_freetype $have_freetype
38827GhostPCL None $PCLDelegate ($PCLVersion)
38828GhostXPS None $XPSDelegate ($XPSVersion)
38829Ghostscript None $PSDelegate ($GSVersion)
38830Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38831Ghostscript lib --with-gslib=$with_gslib $have_gslib
38832Graphviz --with-gvc=$with_gvc $have_gvc
38833JBIG --with-jbig=$with_jbig $have_jbig
38834JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38835JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038836LCMS v1 --with-lcms=$with_lcms $have_lcms
38837LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038838LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038839LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038840LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038841Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038842MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038843OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038844PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038845PERL --with-perl=$with_perl $have_perl
38846PNG --with-png=$with_png $have_png
38847RSVG --with-rsvg=$with_rsvg $have_rsvg
38848TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038849WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038850Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038851WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038852X11 --with-x=$with_x $have_x
38853XML --with-xml=$with_xml $have_xml
38854ZLIB --with-zlib=$with_zlib $have_zlib
38855
38856X11 Configuration:
38857 X_CFLAGS = $X_CFLAGS
38858 X_PRE_LIBS = $X_PRE_LIBS
38859 X_LIBS = $X_LIBS
38860 X_EXTRA_LIBS = $X_EXTRA_LIBS
38861
38862Options used to compile and link:
38863 PREFIX = $PREFIX_DIR
38864 EXEC-PREFIX = $EXEC_PREFIX_DIR
38865 VERSION = $PACKAGE_VERSION
38866 CC = $CC
38867 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038868 CPPFLAGS = $MAGICK_CPPFLAGS
38869 PCFLAGS = $MAGICK_PCFLAGS
38870 DEFS = $DEFS
38871 LDFLAGS = $LDFLAGS
38872 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38873 LIBS = $MAGICK_LIBS
38874 CXX = $CXX
38875 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038876 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038877 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038878" >&5
cristyad38abe2012-12-23 23:03:21 +000038879$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038880ImageMagick is configured as follows. Please verify that this configuration
38881matches your expectations.
38882
38883Host system type: $host
38884Build system type: $build
38885
38886 Option Value
38887-------------------------------------------------------------------------------
38888Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38889Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038890Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038891GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38892Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38893High Dynamic Range Imagery
38894 --enable-hdri=$enable_hdri $enable_hdri
38895
38896Delegate Configuration:
38897BZLIB --with-bzlib=$with_bzlib $have_bzlib
38898Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038899Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038900DJVU --with-djvu=$with_djvu $have_djvu
38901DPS --with-dps=$with_dps $have_dps
38902FFTW --with-fftw=$with_fftw $have_fftw
38903FlashPIX --with-fpx=$with_fpx $have_fpx
38904FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38905FreeType --with-freetype=$with_freetype $have_freetype
38906GhostPCL None $PCLDelegate ($PCLVersion)
38907GhostXPS None $XPSDelegate ($XPSVersion)
38908Ghostscript None $PSDelegate ($GSVersion)
38909Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38910Ghostscript lib --with-gslib=$with_gslib $have_gslib
38911Graphviz --with-gvc=$with_gvc $have_gvc
38912JBIG --with-jbig=$with_jbig $have_jbig
38913JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38914JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038915LCMS v1 --with-lcms=$with_lcms $have_lcms
38916LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038917LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038918LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038919LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038920Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000038921MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000038922OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038923PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038924PERL --with-perl=$with_perl $have_perl
38925PNG --with-png=$with_png $have_png
38926RSVG --with-rsvg=$with_rsvg $have_rsvg
38927TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038928WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038929Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038930WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038931X11 --with-x=$with_x $have_x
38932XML --with-xml=$with_xml $have_xml
38933ZLIB --with-zlib=$with_zlib $have_zlib
38934
38935X11 Configuration:
38936 X_CFLAGS = $X_CFLAGS
38937 X_PRE_LIBS = $X_PRE_LIBS
38938 X_LIBS = $X_LIBS
38939 X_EXTRA_LIBS = $X_EXTRA_LIBS
38940
38941Options used to compile and link:
38942 PREFIX = $PREFIX_DIR
38943 EXEC-PREFIX = $EXEC_PREFIX_DIR
38944 VERSION = $PACKAGE_VERSION
38945 CC = $CC
38946 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038947 CPPFLAGS = $MAGICK_CPPFLAGS
38948 PCFLAGS = $MAGICK_PCFLAGS
38949 DEFS = $DEFS
38950 LDFLAGS = $LDFLAGS
38951 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38952 LIBS = $MAGICK_LIBS
38953 CXX = $CXX
38954 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038955 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038956 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038957" >&6; }