blob: 7c6f130058070119b83f31aaef04a44e2e25b30a [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
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
706SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000707RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708RMDelegate
709RLEEncodeDelegate
710PSDelegate
711POVDelegate
712PGPDecodeDelegate
713PCLDelegate
714MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000715MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716MPEGEncodeDelegate
717MPEGDecodeDelegate
718MANDelegate
719LaunchDelegate
720LZWEncodeDelegate
721LZWDecodeDelegate
722LPRDelegate
723LPDelegate
724ILBMEncodeDelegate
725ILBMDecodeDelegate
726HTMLDecodeDelegate
727HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000728GnuplotDecodeDelegate
729MogrifyDelegate
730DisplayDelegate
731ConvertDelegate
732FIGDecodeDelegate
733EditorDelegate
734EchoDelegate
735DVIDecodeDelegate
736GVCDecodeDelegate
737DNGDecodeDelegate
738CatDelegate
739CGMDecodeDelegate
740BrowseDelegate
741BZIPDelegate
742BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000743AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000744SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000745SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000746CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000747DOCUMENTATION_PATH
748FILTER_PATH
749CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000750LIBRARY_PATH
751EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817FREETYPE_DELEGATE_FALSE
818FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000819freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
841ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842ZLIB_DELEGATE_FALSE
843ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844XEXT_LIBS
845X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846X11_DELEGATE_FALSE
847X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848X_EXTRA_LIBS
849X_LIBS
850X_PRE_LIBS
851X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000852XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000853BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854BZLIB_DELEGATE_FALSE
855BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856CCMALLOCDelegate
857UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858HasUMEM_FALSE
859HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860THREAD_LIBS
861GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862WITH_MAGICK_PLUS_PLUS_FALSE
863WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000865MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000866POW_LIB
867LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000878INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879INT32_T
880UINT16_T
881INT16_T
882UINT8_T
883INT8_T
884LIBRARY_EXTRA_CPPFLAGS
885MODULE_EXTRA_CPPFLAGS
886LIBSTDCLDFLAGS
887PERL_MAKE_OPTIONS
888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
1155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001847 --enable-silent-rules less verbose build output (undo: "make V=1")
1848 --disable-silent-rules verbose build output (undo: "make V=0")
1849 --enable-dependency-tracking
1850 do not reject slow dependency extractors
1851 --disable-dependency-tracking
1852 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001853 --enable-bounds-checking
1854 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001855 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001856 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001858 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001860 --enable-shared[=PKGS] build shared libraries [default=yes]
1861 --enable-static[=PKGS] build static libraries [default=yes]
1862 --enable-fast-install[=PKGS]
1863 optimize for fast installation [default=yes]
1864 --disable-libtool-lock avoid locking (might break parallel builds)
1865 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-delegate-build look for delegate libraries in build directory
1867 --disable-deprecated exclude deprecated methods in MagickCore and
1868 MagickWand API's
1869 --disable-installed Formally install ImageMagick under PREFIX
1870 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001871 --enable-zero-configuration
1872 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001873 zero-configuration ImageMagick
1874 --enable-hdri accurately represent the wide range of intensity
1875 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-maintainer-mode
1878 enable make rules and dependencies not useful (and
1879 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-ccmalloc enable 'ccmalloc' memory debug support
1881 --enable-efence enable 'efence' memory debug support
1882 --enable-prof enable 'prof' profiling support
1883 --enable-gprof enable 'gprof' profiling support
1884 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001885 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001886 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001887
1888Optional Packages:
1889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001891 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001892 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001893 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1894 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001895 --includearch-dir=DIR ARCH specific include directory
1896 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001898 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001899 both]
cristyda16f162011-02-19 23:52:17 +00001900 --with-sysroot=DIR Search for dependent libraries within DIR
1901 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-included-ltdl use the GNU ltdl sources included here
1903 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1904 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-modules enable building dynamically loadable modules
1906 --with-method-prefix=PREFIX
1907 prefix MagickCore API methods
1908 --with-quantum-depth=DEPTH
1909 number of bits in a pixel quantum (default 16)
1910 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1911 memory)
1912 --with-frozenpaths freeze delegate paths
1913 --without-magick-plus-plus
1914 disable build/install of Magick++
1915 --with-perl enable build/install of PerlMagick
1916 --with-perl-options=OPTIONS
1917 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001918 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001919 --with-umem enable umem memory allocation library support
1920 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1921 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001922 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-zlib disable ZLIB support
1924 --with-autotrace enable autotrace support
1925 --without-dps disable Display Postscript support
1926 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001927 --with-dejavu-font-dir=DIR
1928 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001929 --without-fftw disable FFTW support
1930 --without-fpx disable FlashPIX support
1931 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001932 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001933 --without-gslib enable Ghostscript library support
1934 --with-fontpath=DIR prepend to default font search path
1935 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001936 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001937 --without-jbig disable JBIG support
1938 --without-jpeg disable JPEG support
1939 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001940 --without-lcms disable lcms (v1.1X) support
1941 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001942 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001943 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001945 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-png disable PNG support
1947 --without-rsvg disable RSVG support
1948 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001949 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-windows-font-dir=DIR
1951 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001952 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-xml disable XML support
1954
1955Some influential environment variables:
1956 CC C compiler command
1957 CFLAGS C compiler flags
1958 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1959 nonstandard directory <lib dir>
1960 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001961 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001962 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001963 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001964 CXX C++ compiler command
1965 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001966 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001967 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001968 XMKMF Path to xmkmf, Makefile generator for X Window System
1969 AUTOTRACE_CFLAGS
1970 C compiler flags for AUTOTRACE, overriding pkg-config
1971 AUTOTRACE_LIBS
1972 linker flags for AUTOTRACE, overriding pkg-config
1973 FONTCONFIG_CFLAGS
1974 C compiler flags for FONTCONFIG, overriding pkg-config
1975 FONTCONFIG_LIBS
1976 linker flags for FONTCONFIG, overriding pkg-config
1977 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1978 GVC_LIBS linker flags for GVC, overriding pkg-config
1979 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1980 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001981 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1982 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001983 OPENEXR_CFLAGS
1984 C compiler flags for OPENEXR, overriding pkg-config
1985 OPENEXR_LIBS
1986 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001987 PANGO_CFLAGS
1988 C compiler flags for PANGO, overriding pkg-config
1989 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001990 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1991 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1992 CAIRO_SVG_CFLAGS
1993 C compiler flags for CAIRO_SVG, overriding pkg-config
1994 CAIRO_SVG_LIBS
1995 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001996
1997Use these variables to override the choices made by `configure' or to help
1998it to find libraries and programs with nonstandard names/locations.
1999
2000Report bugs to <http://www.imagemagick.org>.
2001_ACEOF
2002ac_status=$?
2003fi
2004
2005if test "$ac_init_help" = "recursive"; then
2006 # If there are subdirs, report their specific --help.
2007 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2008 test -d "$ac_dir" ||
2009 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2010 continue
2011 ac_builddir=.
2012
2013case "$ac_dir" in
2014.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2015*)
2016 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2017 # A ".." for each directory in $ac_dir_suffix.
2018 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2019 case $ac_top_builddir_sub in
2020 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2021 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2022 esac ;;
2023esac
2024ac_abs_top_builddir=$ac_pwd
2025ac_abs_builddir=$ac_pwd$ac_dir_suffix
2026# for backward compatibility:
2027ac_top_builddir=$ac_top_build_prefix
2028
2029case $srcdir in
2030 .) # We are building in place.
2031 ac_srcdir=.
2032 ac_top_srcdir=$ac_top_builddir_sub
2033 ac_abs_top_srcdir=$ac_pwd ;;
2034 [\\/]* | ?:[\\/]* ) # Absolute name.
2035 ac_srcdir=$srcdir$ac_dir_suffix;
2036 ac_top_srcdir=$srcdir
2037 ac_abs_top_srcdir=$srcdir ;;
2038 *) # Relative name.
2039 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2040 ac_top_srcdir=$ac_top_build_prefix$srcdir
2041 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2042esac
2043ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2044
2045 cd "$ac_dir" || { ac_status=$?; continue; }
2046 # Check for guested configure.
2047 if test -f "$ac_srcdir/configure.gnu"; then
2048 echo &&
2049 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2050 elif test -f "$ac_srcdir/configure"; then
2051 echo &&
2052 $SHELL "$ac_srcdir/configure" --help=recursive
2053 else
2054 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2055 fi || ac_status=$?
2056 cd "$ac_pwd" || { ac_status=$?; break; }
2057 done
2058fi
2059
2060test -n "$ac_init_help" && exit $ac_status
2061if $ac_init_version; then
2062 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002063ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002064generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002065
cristy14fefe52012-05-21 00:59:18 +00002066Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002067This configure script is free software; the Free Software Foundation
2068gives unlimited permission to copy, distribute and modify it.
2069_ACEOF
2070 exit
2071fi
cristy8b350f62009-11-15 23:12:43 +00002072
2073## ------------------------ ##
2074## Autoconf initialization. ##
2075## ------------------------ ##
2076
2077# ac_fn_c_try_compile LINENO
2078# --------------------------
2079# Try to compile conftest.$ac_ext, and return whether this succeeded.
2080ac_fn_c_try_compile ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext
2084 if { { ac_try="$ac_compile"
2085case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088esac
2089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090$as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_compile") 2>conftest.err
2092 ac_status=$?
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2097 fi
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest.$ac_objext; then :
2103 ac_retval=0
2104else
2105 $as_echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_retval=1
2109fi
cristyda16f162011-02-19 23:52:17 +00002110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002111 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002112
2113} # ac_fn_c_try_compile
2114
cristy95646052009-11-28 23:05:30 +00002115# ac_fn_c_try_cpp LINENO
2116# ----------------------
2117# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118ac_fn_c_try_cpp ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 if { { ac_try="$ac_cpp conftest.$ac_ext"
2122case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125esac
2126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127$as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2129 ac_status=$?
2130 if test -s conftest.err; then
2131 grep -v '^ *+' conftest.err >conftest.er1
2132 cat conftest.er1 >&5
2133 mv -f conftest.er1 conftest.err
2134 fi
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002136 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2138 test ! -s conftest.err
2139 }; then :
2140 ac_retval=0
2141else
2142 $as_echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 ac_retval=1
2146fi
cristyda16f162011-02-19 23:52:17 +00002147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002148 as_fn_set_status $ac_retval
2149
2150} # ac_fn_c_try_cpp
2151
cristy8b350f62009-11-15 23:12:43 +00002152# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2153# -------------------------------------------------------
2154# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2155# the include files in INCLUDES and setting the cache variable VAR
2156# accordingly.
2157ac_fn_c_check_header_mongrel ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002160 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002163if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002164 $as_echo_n "(cached) " >&6
2165fi
2166eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169else
2170 # Is the header compilable?
2171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2172$as_echo_n "checking $2 usability... " >&6; }
2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$4
2176#include <$2>
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_header_compiler=yes
2180else
2181 ac_header_compiler=no
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2185$as_echo "$ac_header_compiler" >&6; }
2186
2187# Is the header present?
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2189$as_echo_n "checking $2 presence... " >&6; }
2190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192#include <$2>
2193_ACEOF
2194if ac_fn_c_try_cpp "$LINENO"; then :
2195 ac_header_preproc=yes
2196else
2197 ac_header_preproc=no
2198fi
cristyda16f162011-02-19 23:52:17 +00002199rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2201$as_echo "$ac_header_preproc" >&6; }
2202
2203# So? What about this header?
2204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2205 yes:no: )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2207$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ;;
2211 no:yes:* )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2213$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2215$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2217$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2219$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002222( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002223## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002224## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002225 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 ;;
2227esac
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002230if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002231 $as_echo_n "(cached) " >&6
2232else
2233 eval "$3=\$ac_header_compiler"
2234fi
2235eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238fi
cristyda16f162011-02-19 23:52:17 +00002239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002240
2241} # ac_fn_c_check_header_mongrel
2242
2243# ac_fn_c_try_run LINENO
2244# ----------------------
2245# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2246# that executables *can* be run.
2247ac_fn_c_try_run ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if { { ac_try="$ac_link"
2251case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254esac
2255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256$as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_link") 2>&5
2258 ac_status=$?
2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2261 { { case "(($ac_try" in
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2264esac
2265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2266$as_echo "$ac_try_echo"; } >&5
2267 (eval "$ac_try") 2>&5
2268 ac_status=$?
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; }; }; then :
2271 ac_retval=0
2272else
2273 $as_echo "$as_me: program exited with status $ac_status" >&5
2274 $as_echo "$as_me: failed program was:" >&5
2275sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=$ac_status
2278fi
2279 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002281 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002282
2283} # ac_fn_c_try_run
2284
2285# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2286# -------------------------------------------------------
2287# Tests whether HEADER exists and can be compiled using the include files in
2288# INCLUDES, setting the cache variable VAR accordingly.
2289ac_fn_c_check_header_compile ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002294if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002295 $as_echo_n "(cached) " >&6
2296else
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h. */
2299$4
2300#include <$2>
2301_ACEOF
2302if ac_fn_c_try_compile "$LINENO"; then :
2303 eval "$3=yes"
2304else
2305 eval "$3=no"
2306fi
2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308fi
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002313
2314} # ac_fn_c_check_header_compile
2315
cristya0b81c32010-01-22 02:54:33 +00002316# ac_fn_cxx_try_compile LINENO
2317# ----------------------------
2318# Try to compile conftest.$ac_ext, and return whether this succeeded.
2319ac_fn_cxx_try_compile ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 rm -f conftest.$ac_objext
2323 if { { ac_try="$ac_compile"
2324case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327esac
2328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329$as_echo "$ac_try_echo"; } >&5
2330 (eval "$ac_compile") 2>conftest.err
2331 ac_status=$?
2332 if test -s conftest.err; then
2333 grep -v '^ *+' conftest.err >conftest.er1
2334 cat conftest.er1 >&5
2335 mv -f conftest.er1 conftest.err
2336 fi
2337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338 test $ac_status = 0; } && {
2339 test -z "$ac_cxx_werror_flag" ||
2340 test ! -s conftest.err
2341 } && test -s conftest.$ac_objext; then :
2342 ac_retval=0
2343else
2344 $as_echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_retval=1
2348fi
cristyda16f162011-02-19 23:52:17 +00002349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002350 as_fn_set_status $ac_retval
2351
2352} # ac_fn_cxx_try_compile
2353
cristy8b350f62009-11-15 23:12:43 +00002354# ac_fn_c_try_link LINENO
2355# -----------------------
2356# Try to link conftest.$ac_ext, and return whether this succeeded.
2357ac_fn_c_try_link ()
2358{
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { { ac_try="$ac_link"
2362case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365esac
2366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367$as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2374 fi
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest$ac_exeext && {
2380 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002381 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002382 }; then :
2383 ac_retval=0
2384else
2385 $as_echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 ac_retval=1
2389fi
2390 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392 # interfere with the next link command; also delete a directory that is
2393 # left behind by Apple's compiler. We do this before executing the actions.
2394 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002396 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002397
2398} # ac_fn_c_try_link
2399
cristy73bd4a52010-10-05 11:24:23 +00002400# ac_fn_c_check_func LINENO FUNC VAR
2401# ----------------------------------
2402# Tests whether FUNC exists, setting the cache variable VAR accordingly
2403ac_fn_c_check_func ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002408if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002409 $as_echo_n "(cached) " >&6
2410else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2415#define $2 innocuous_$2
2416
2417/* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $2 (); below.
2419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2420 <limits.h> exists even on freestanding compilers. */
2421
2422#ifdef __STDC__
2423# include <limits.h>
2424#else
2425# include <assert.h>
2426#endif
2427
2428#undef $2
2429
2430/* Override any GCC internal prototype to avoid an error.
2431 Use char because int might match the return type of a GCC
2432 builtin and then its argument prototype would still apply. */
2433#ifdef __cplusplus
2434extern "C"
2435#endif
2436char $2 ();
2437/* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440#if defined __stub_$2 || defined __stub___$2
2441choke me
2442#endif
2443
2444int
2445main ()
2446{
2447return $2 ();
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_link "$LINENO"; then :
2453 eval "$3=yes"
2454else
2455 eval "$3=no"
2456fi
2457rm -f core conftest.err conftest.$ac_objext \
2458 conftest$ac_exeext conftest.$ac_ext
2459fi
2460eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002464
2465} # ac_fn_c_check_func
2466
2467# ac_fn_cxx_try_cpp LINENO
2468# ------------------------
2469# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2470ac_fn_cxx_try_cpp ()
2471{
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 if { { ac_try="$ac_cpp conftest.$ac_ext"
2474case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479$as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2481 ac_status=$?
2482 if test -s conftest.err; then
2483 grep -v '^ *+' conftest.err >conftest.er1
2484 cat conftest.er1 >&5
2485 mv -f conftest.er1 conftest.err
2486 fi
2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002488 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002489 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2490 test ! -s conftest.err
2491 }; then :
2492 ac_retval=0
2493else
2494 $as_echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 ac_retval=1
2498fi
cristyda16f162011-02-19 23:52:17 +00002499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002500 as_fn_set_status $ac_retval
2501
2502} # ac_fn_cxx_try_cpp
2503
2504# ac_fn_cxx_try_link LINENO
2505# -------------------------
2506# Try to link conftest.$ac_ext, and return whether this succeeded.
2507ac_fn_cxx_try_link ()
2508{
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 rm -f conftest.$ac_objext conftest$ac_exeext
2511 if { { ac_try="$ac_link"
2512case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515esac
2516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517$as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_link") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2524 fi
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } && {
2527 test -z "$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 } && test -s conftest$ac_exeext && {
2530 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002531 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002532 }; then :
2533 ac_retval=0
2534else
2535 $as_echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538 ac_retval=1
2539fi
2540 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2541 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2542 # interfere with the next link command; also delete a directory that is
2543 # left behind by Apple's compiler. We do this before executing the actions.
2544 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002546 as_fn_set_status $ac_retval
2547
2548} # ac_fn_cxx_try_link
2549
cristy98dddb52010-11-04 00:30:15 +00002550# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2551# ---------------------------------------------
2552# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2553# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002554ac_fn_c_check_decl ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002557 as_decl_name=`echo $2|sed 's/ *(.*//'`
2558 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2560$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002561if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002562 $as_echo_n "(cached) " >&6
2563else
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h. */
2566$4
2567int
2568main ()
2569{
cristy98dddb52010-11-04 00:30:15 +00002570#ifndef $as_decl_name
2571#ifdef __cplusplus
2572 (void) $as_decl_use;
2573#else
2574 (void) $as_decl_name;
2575#endif
cristy73bd4a52010-10-05 11:24:23 +00002576#endif
2577
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582if ac_fn_c_try_compile "$LINENO"; then :
2583 eval "$3=yes"
2584else
2585 eval "$3=no"
2586fi
2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588fi
2589eval ac_res=\$$3
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002593
2594} # ac_fn_c_check_decl
2595
cristy8b350f62009-11-15 23:12:43 +00002596# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2597# -------------------------------------------
2598# Tests whether TYPE exists after having included INCLUDES, setting cache
2599# variable VAR accordingly.
2600ac_fn_c_check_type ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2604$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002605if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002606 $as_echo_n "(cached) " >&6
2607else
2608 eval "$3=no"
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h. */
2611$4
2612int
2613main ()
2614{
2615if (sizeof ($2))
2616 return 0;
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621if ac_fn_c_try_compile "$LINENO"; then :
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$4
2625int
2626main ()
2627{
2628if (sizeof (($2)))
2629 return 0;
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634if ac_fn_c_try_compile "$LINENO"; then :
2635
2636else
2637 eval "$3=yes"
2638fi
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643eval ac_res=\$$3
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002647
2648} # ac_fn_c_check_type
2649
cristy92703d82010-04-26 00:18:18 +00002650# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2651# ----------------------------------------------------
2652# Tries to find if the field MEMBER exists in type AGGR, after including
2653# INCLUDES, setting cache variable VAR accordingly.
2654ac_fn_c_check_member ()
2655{
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2658$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002659if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002660 $as_echo_n "(cached) " >&6
2661else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$5
2665int
2666main ()
2667{
2668static $2 ac_aggr;
2669if (ac_aggr.$3)
2670return 0;
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676 eval "$4=yes"
2677else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679/* end confdefs.h. */
2680$5
2681int
2682main ()
2683{
2684static $2 ac_aggr;
2685if (sizeof ac_aggr.$3)
2686return 0;
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691if ac_fn_c_try_compile "$LINENO"; then :
2692 eval "$4=yes"
2693else
2694 eval "$4=no"
2695fi
2696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697fi
2698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699fi
2700eval ac_res=\$$4
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002704
2705} # ac_fn_c_check_member
2706
cristy501c8042011-05-26 17:46:28 +00002707# ac_fn_c_find_intX_t LINENO BITS VAR
2708# -----------------------------------
2709# Finds a signed integer type with width BITS, setting cache variable VAR
2710# accordingly.
2711ac_fn_c_find_intX_t ()
2712{
2713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2715$as_echo_n "checking for int$2_t... " >&6; }
2716if eval \${$3+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718else
2719 eval "$3=no"
2720 # Order is important - never check a type that is potentially smaller
2721 # than half of the expected target width.
2722 for ac_type in int$2_t 'int' 'long int' \
2723 'long long int' 'short int' 'signed char'; do
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$ac_includes_default
2727 enum { N = $2 / 2 - 1 };
2728int
2729main ()
2730{
2731static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002732test_array [0] = 0;
2733return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739if ac_fn_c_try_compile "$LINENO"; then :
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
2742$ac_includes_default
2743 enum { N = $2 / 2 - 1 };
2744int
2745main ()
2746{
2747static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2748 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002749test_array [0] = 0;
2750return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002751
2752 ;
2753 return 0;
2754}
2755_ACEOF
2756if ac_fn_c_try_compile "$LINENO"; then :
2757
2758else
2759 case $ac_type in #(
2760 int$2_t) :
2761 eval "$3=yes" ;; #(
2762 *) :
2763 eval "$3=\$ac_type" ;;
2764esac
2765fi
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 if eval test \"x\$"$3"\" = x"no"; then :
2770
2771else
2772 break
2773fi
2774 done
2775fi
2776eval ac_res=\$$3
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778$as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2780
2781} # ac_fn_c_find_intX_t
2782
2783# ac_fn_c_find_uintX_t LINENO BITS VAR
2784# ------------------------------------
2785# Finds an unsigned integer type with width BITS, setting cache variable VAR
2786# accordingly.
2787ac_fn_c_find_uintX_t ()
2788{
2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2791$as_echo_n "checking for uint$2_t... " >&6; }
2792if eval \${$3+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 eval "$3=no"
2796 # Order is important - never check a type that is potentially smaller
2797 # than half of the expected target width.
2798 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2799 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$ac_includes_default
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002807test_array [0] = 0;
2808return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_compile "$LINENO"; then :
2815 case $ac_type in #(
2816 uint$2_t) :
2817 eval "$3=yes" ;; #(
2818 *) :
2819 eval "$3=\$ac_type" ;;
2820esac
2821fi
2822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 if eval test \"x\$"$3"\" = x"no"; then :
2824
2825else
2826 break
2827fi
2828 done
2829fi
2830eval ac_res=\$$3
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2832$as_echo "$ac_res" >&6; }
2833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2834
2835} # ac_fn_c_find_uintX_t
2836
cristy8b350f62009-11-15 23:12:43 +00002837# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2838# --------------------------------------------
2839# Tries to find the compile-time value of EXPR in a program that includes
2840# INCLUDES, setting VAR accordingly. Returns whether the value could be
2841# computed
2842ac_fn_c_compute_int ()
2843{
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 if test "$cross_compiling" = yes; then
2846 # Depending upon the size, compute the lo and hi bounds.
2847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h. */
2849$4
2850int
2851main ()
2852{
2853static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002854test_array [0] = 0;
2855return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861if ac_fn_c_try_compile "$LINENO"; then :
2862 ac_lo=0 ac_mid=0
2863 while :; do
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h. */
2866$4
2867int
2868main ()
2869{
2870static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002871test_array [0] = 0;
2872return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878if ac_fn_c_try_compile "$LINENO"; then :
2879 ac_hi=$ac_mid; break
2880else
2881 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2882 if test $ac_lo -le $ac_mid; then
2883 ac_lo= ac_hi=
2884 break
2885 fi
2886 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 done
2890else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$4
2894int
2895main ()
2896{
2897static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002898test_array [0] = 0;
2899return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_hi=-1 ac_mid=-1
2907 while :; do
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h. */
2910$4
2911int
2912main ()
2913{
2914static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002915test_array [0] = 0;
2916return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002917
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922if ac_fn_c_try_compile "$LINENO"; then :
2923 ac_lo=$ac_mid; break
2924else
2925 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2926 if test $ac_mid -le $ac_hi; then
2927 ac_lo= ac_hi=
2928 break
2929 fi
2930 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933 done
2934else
2935 ac_lo= ac_hi=
2936fi
2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940# Binary search between lo and hi bounds.
2941while test "x$ac_lo" != "x$ac_hi"; do
2942 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h. */
2945$4
2946int
2947main ()
2948{
2949static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002950test_array [0] = 0;
2951return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957if ac_fn_c_try_compile "$LINENO"; then :
2958 ac_hi=$ac_mid
2959else
2960 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963done
2964case $ac_lo in #((
2965?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2966'') ac_retval=1 ;;
2967esac
2968 else
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970/* end confdefs.h. */
2971$4
2972static long int longval () { return $2; }
2973static unsigned long int ulongval () { return $2; }
2974#include <stdio.h>
2975#include <stdlib.h>
2976int
2977main ()
2978{
2979
2980 FILE *f = fopen ("conftest.val", "w");
2981 if (! f)
2982 return 1;
2983 if (($2) < 0)
2984 {
2985 long int i = longval ();
2986 if (i != ($2))
2987 return 1;
2988 fprintf (f, "%ld", i);
2989 }
2990 else
2991 {
2992 unsigned long int i = ulongval ();
2993 if (i != ($2))
2994 return 1;
2995 fprintf (f, "%lu", i);
2996 }
2997 /* Do not output a trailing newline, as this causes \r\n confusion
2998 on some platforms. */
2999 return ferror (f) || fclose (f) != 0;
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005if ac_fn_c_try_run "$LINENO"; then :
3006 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3007else
3008 ac_retval=1
3009fi
3010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3011 conftest.$ac_objext conftest.beam conftest.$ac_ext
3012rm -f conftest.val
3013
3014 fi
cristyda16f162011-02-19 23:52:17 +00003015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003016 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003017
3018} # ac_fn_c_compute_int
3019
3020# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3021# ---------------------------------------------------------
3022# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3023# the include files in INCLUDES and setting the cache variable VAR
3024# accordingly.
3025ac_fn_cxx_check_header_mongrel ()
3026{
3027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003028 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003031if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 $as_echo_n "(cached) " >&6
3033fi
3034eval ac_res=\$$3
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3036$as_echo "$ac_res" >&6; }
3037else
3038 # Is the header compilable?
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3040$as_echo_n "checking $2 usability... " >&6; }
3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042/* end confdefs.h. */
3043$4
3044#include <$2>
3045_ACEOF
3046if ac_fn_cxx_try_compile "$LINENO"; then :
3047 ac_header_compiler=yes
3048else
3049 ac_header_compiler=no
3050fi
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3053$as_echo "$ac_header_compiler" >&6; }
3054
3055# Is the header present?
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3057$as_echo_n "checking $2 presence... " >&6; }
3058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059/* end confdefs.h. */
3060#include <$2>
3061_ACEOF
3062if ac_fn_cxx_try_cpp "$LINENO"; then :
3063 ac_header_preproc=yes
3064else
3065 ac_header_preproc=no
3066fi
cristyda16f162011-02-19 23:52:17 +00003067rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3069$as_echo "$ac_header_preproc" >&6; }
3070
3071# So? What about this header?
3072case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3073 yes:no: )
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3075$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3077$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3078 ;;
3079 no:yes:* )
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3081$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3083$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3085$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3087$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3089$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003090( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003091## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003092## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003093 ) | sed "s/^/$as_me: WARNING: /" >&2
3094 ;;
3095esac
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3097$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003098if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003099 $as_echo_n "(cached) " >&6
3100else
3101 eval "$3=\$ac_header_compiler"
3102fi
3103eval ac_res=\$$3
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3105$as_echo "$ac_res" >&6; }
3106fi
cristyda16f162011-02-19 23:52:17 +00003107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003108
3109} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003110cat >config.log <<_ACEOF
3111This file contains any messages produced by compilers while
3112running configure, to aid debugging if configure makes a mistake.
3113
cristy29eb34e2011-10-16 00:46:08 +00003114It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003115generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003116
3117 $ $0 $@
3118
3119_ACEOF
3120exec 5>>config.log
3121{
3122cat <<_ASUNAME
3123## --------- ##
3124## Platform. ##
3125## --------- ##
3126
3127hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3128uname -m = `(uname -m) 2>/dev/null || echo unknown`
3129uname -r = `(uname -r) 2>/dev/null || echo unknown`
3130uname -s = `(uname -s) 2>/dev/null || echo unknown`
3131uname -v = `(uname -v) 2>/dev/null || echo unknown`
3132
3133/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3134/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3135
3136/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3137/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3138/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3139/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3140/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3141/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3142/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3143
3144_ASUNAME
3145
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003151 $as_echo "PATH: $as_dir"
3152 done
cristy3ed852e2009-09-05 21:47:34 +00003153IFS=$as_save_IFS
3154
3155} >&5
3156
3157cat >&5 <<_ACEOF
3158
3159
3160## ----------- ##
3161## Core tests. ##
3162## ----------- ##
3163
3164_ACEOF
3165
3166
3167# Keep a trace of the command line.
3168# Strip out --no-create and --no-recursion so they do not pile up.
3169# Strip out --silent because we don't want to record it for future runs.
3170# Also quote any args containing shell meta-characters.
3171# Make two passes to allow for proper duplicate-argument suppression.
3172ac_configure_args=
3173ac_configure_args0=
3174ac_configure_args1=
3175ac_must_keep_next=false
3176for ac_pass in 1 2
3177do
3178 for ac_arg
3179 do
3180 case $ac_arg in
3181 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3183 | -silent | --silent | --silen | --sile | --sil)
3184 continue ;;
3185 *\'*)
3186 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3187 esac
3188 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003189 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003190 2)
cristy8b350f62009-11-15 23:12:43 +00003191 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003192 if test $ac_must_keep_next = true; then
3193 ac_must_keep_next=false # Got value, back to normal.
3194 else
3195 case $ac_arg in
3196 *=* | --config-cache | -C | -disable-* | --disable-* \
3197 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3198 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3199 | -with-* | --with-* | -without-* | --without-* | --x)
3200 case "$ac_configure_args0 " in
3201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3202 esac
3203 ;;
3204 -* ) ac_must_keep_next=true ;;
3205 esac
3206 fi
cristy8b350f62009-11-15 23:12:43 +00003207 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003208 ;;
3209 esac
3210 done
3211done
cristy8b350f62009-11-15 23:12:43 +00003212{ ac_configure_args0=; unset ac_configure_args0;}
3213{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003214
3215# When interrupted or exit'd, cleanup temporary files, and complete
3216# config.log. We remove comments because anyway the quotes in there
3217# would cause problems or look ugly.
3218# WARNING: Use '\'' to represent an apostrophe within the trap.
3219# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3220trap 'exit_status=$?
3221 # Save into config.log some information that might help in debugging.
3222 {
3223 echo
3224
cristy98dddb52010-11-04 00:30:15 +00003225 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003227## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003228 echo
3229 # The following way of writing the cache mishandles newlines in values,
3230(
3231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3232 eval ac_val=\$$ac_var
3233 case $ac_val in #(
3234 *${as_nl}*)
3235 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3238 esac
3239 case $ac_var in #(
3240 _ | IFS | as_nl) ;; #(
3241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003242 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003243 esac ;;
3244 esac
3245 done
3246 (set) 2>&1 |
3247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3248 *${as_nl}ac_space=\ *)
3249 sed -n \
3250 "s/'\''/'\''\\\\'\'''\''/g;
3251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3252 ;; #(
3253 *)
3254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3255 ;;
3256 esac |
3257 sort
3258)
3259 echo
3260
cristy98dddb52010-11-04 00:30:15 +00003261 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003262## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003263## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003264 echo
3265 for ac_var in $ac_subst_vars
3266 do
3267 eval ac_val=\$$ac_var
3268 case $ac_val in
3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3270 esac
3271 $as_echo "$ac_var='\''$ac_val'\''"
3272 done | sort
3273 echo
3274
3275 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003276 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003277## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003278## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003279 echo
3280 for ac_var in $ac_subst_files
3281 do
3282 eval ac_val=\$$ac_var
3283 case $ac_val in
3284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3285 esac
3286 $as_echo "$ac_var='\''$ac_val'\''"
3287 done | sort
3288 echo
3289 fi
3290
3291 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003292 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003293## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003294## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003295 echo
3296 cat confdefs.h
3297 echo
3298 fi
3299 test "$ac_signal" != 0 &&
3300 $as_echo "$as_me: caught signal $ac_signal"
3301 $as_echo "$as_me: exit $exit_status"
3302 } >&5
3303 rm -f core *.core core.conftest.* &&
3304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3305 exit $exit_status
3306' 0
3307for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003309done
3310ac_signal=0
3311
3312# confdefs.h avoids OS command line length limits that DEFS can exceed.
3313rm -f -r conftest* confdefs.h
3314
cristy8b350f62009-11-15 23:12:43 +00003315$as_echo "/* confdefs.h */" > confdefs.h
3316
cristy3ed852e2009-09-05 21:47:34 +00003317# Predefined preprocessor variables.
3318
3319cat >>confdefs.h <<_ACEOF
3320#define PACKAGE_NAME "$PACKAGE_NAME"
3321_ACEOF
3322
cristy3ed852e2009-09-05 21:47:34 +00003323cat >>confdefs.h <<_ACEOF
3324#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3325_ACEOF
3326
cristy3ed852e2009-09-05 21:47:34 +00003327cat >>confdefs.h <<_ACEOF
3328#define PACKAGE_VERSION "$PACKAGE_VERSION"
3329_ACEOF
3330
cristy3ed852e2009-09-05 21:47:34 +00003331cat >>confdefs.h <<_ACEOF
3332#define PACKAGE_STRING "$PACKAGE_STRING"
3333_ACEOF
3334
cristy3ed852e2009-09-05 21:47:34 +00003335cat >>confdefs.h <<_ACEOF
3336#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3337_ACEOF
3338
cristy8b350f62009-11-15 23:12:43 +00003339cat >>confdefs.h <<_ACEOF
3340#define PACKAGE_URL "$PACKAGE_URL"
3341_ACEOF
3342
cristy3ed852e2009-09-05 21:47:34 +00003343
3344# Let the site file select an alternate cache file if it wants to.
3345# Prefer an explicitly selected file to automatically selected ones.
3346ac_site_file1=NONE
3347ac_site_file2=NONE
3348if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003349 # We do not want a PATH search for config.site.
3350 case $CONFIG_SITE in #((
3351 -*) ac_site_file1=./$CONFIG_SITE;;
3352 */*) ac_site_file1=$CONFIG_SITE;;
3353 *) ac_site_file1=./$CONFIG_SITE;;
3354 esac
cristy3ed852e2009-09-05 21:47:34 +00003355elif test "x$prefix" != xNONE; then
3356 ac_site_file1=$prefix/share/config.site
3357 ac_site_file2=$prefix/etc/config.site
3358else
3359 ac_site_file1=$ac_default_prefix/share/config.site
3360 ac_site_file2=$ac_default_prefix/etc/config.site
3361fi
3362for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3363do
3364 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003367$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3368 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003369 . "$ac_site_file" \
3370 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error $? "failed to load site script $ac_site_file
3373See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003374 fi
3375done
3376
3377if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003378 # Some versions of bash will fail to source /dev/null (special files
3379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: loading cache $cache_file" >&6;}
3383 case $cache_file in
3384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3385 *) . "./$cache_file";;
3386 esac
3387 fi
3388else
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: creating cache $cache_file" >&6;}
3391 >$cache_file
3392fi
3393
cristycd4c5312009-11-22 01:19:08 +00003394as_fn_append ac_header_list " stdlib.h"
3395as_fn_append ac_header_list " unistd.h"
3396as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003397# Check that the precious variables saved in the cache have kept the same
3398# value.
3399ac_cache_corrupted=false
3400for ac_var in $ac_precious_vars; do
3401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3402 eval ac_new_set=\$ac_env_${ac_var}_set
3403 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3404 eval ac_new_val=\$ac_env_${ac_var}_value
3405 case $ac_old_set,$ac_new_set in
3406 set,)
cristy8b350f62009-11-15 23:12:43 +00003407 { $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 +00003408$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3409 ac_cache_corrupted=: ;;
3410 ,set)
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3413 ac_cache_corrupted=: ;;
3414 ,);;
3415 *)
3416 if test "x$ac_old_val" != "x$ac_new_val"; then
3417 # differences in whitespace do not lead to failure.
3418 ac_old_val_w=`echo x $ac_old_val`
3419 ac_new_val_w=`echo x $ac_new_val`
3420 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3423 ac_cache_corrupted=:
3424 else
cristy8b350f62009-11-15 23:12:43 +00003425 { $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 +00003426$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3427 eval $ac_var=\$ac_old_val
3428 fi
cristy8b350f62009-11-15 23:12:43 +00003429 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3433 fi;;
3434 esac
3435 # Pass precious variables to config.status.
3436 if test "$ac_new_set" = set; then
3437 case $ac_new_val in
3438 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3439 *) ac_arg=$ac_var=$ac_new_val ;;
3440 esac
3441 case " $ac_configure_args " in
3442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003443 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003444 esac
3445 fi
3446done
3447if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003452 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003453fi
cristy8b350f62009-11-15 23:12:43 +00003454## -------------------- ##
3455## Main body of script. ##
3456## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003457
3458ac_ext=c
3459ac_cpp='$CPP $CPPFLAGS'
3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466ac_aux_dir=
3467for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003468 if test -f "$ac_dir/install-sh"; then
3469 ac_aux_dir=$ac_dir
3470 ac_install_sh="$ac_aux_dir/install-sh -c"
3471 break
3472 elif test -f "$ac_dir/install.sh"; then
3473 ac_aux_dir=$ac_dir
3474 ac_install_sh="$ac_aux_dir/install.sh -c"
3475 break
3476 elif test -f "$ac_dir/shtool"; then
3477 ac_aux_dir=$ac_dir
3478 ac_install_sh="$ac_aux_dir/shtool install -c"
3479 break
3480 fi
cristy3ed852e2009-09-05 21:47:34 +00003481done
3482if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003484fi
3485
3486# These three variables are undocumented and unsupported,
3487# and are intended to be withdrawn in a future Autoconf release.
3488# They can cause serious problems if a builder's source tree is in a directory
3489# whose full name contains unusual characters.
3490ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3491ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3492ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3493
3494
3495
3496
3497ac_config_headers="$ac_config_headers config/config.h"
3498
cristy24fc1fe2010-10-23 21:13:01 +00003499
cristy4c08aed2011-07-01 19:47:50 +00003500ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003501
cristy4c08aed2011-07-01 19:47:50 +00003502ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.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/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh 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 +00003503
3504
3505#
3506# Save initial user-tunable values
3507#
3508USER_LIBS=$LIBS
3509for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3510 eval isset=\${$var+set}
3511 if test "$isset" = 'set'; then
3512 eval val=$`echo $var`
3513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3514 fi
3515done
3516
3517
3518CONFIGURE_ARGS="$0 ${ac_configure_args}"
3519
3520
3521# Source file containing package/library versioning information.
3522. ${srcdir}/version.sh
3523
cristy15a88782010-01-31 23:24:49 +00003524echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003525# Make sure we can run config.sub.
3526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 ac_build_alias=$build_alias
3535test "x$ac_build_alias" = x &&
3536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3537test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_build" >&6; }
3545case $ac_cv_build in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549build=$ac_cv_build
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_build
3552shift
3553build_cpu=$1
3554build_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558build_os=$*
3559IFS=$ac_save_IFS
3560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3561
3562
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003565if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 if test "x$host_alias" = x; then
3569 ac_cv_host=$ac_cv_build
3570else
3571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003573fi
3574
3575fi
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo "$ac_cv_host" >&6; }
3578case $ac_cv_host in
3579*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003581esac
3582host=$ac_cv_host
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_host
3585shift
3586host_cpu=$1
3587host_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591host_os=$*
3592IFS=$ac_save_IFS
3593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3594
3595
cristy8b350f62009-11-15 23:12:43 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003598if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003599 $as_echo_n "(cached) " >&6
3600else
3601 if test "x$target_alias" = x; then
3602 ac_cv_target=$ac_cv_host
3603else
3604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606fi
3607
3608fi
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo "$ac_cv_target" >&6; }
3611case $ac_cv_target in
3612*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003614esac
3615target=$ac_cv_target
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_target
3618shift
3619target_cpu=$1
3620target_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624target_os=$*
3625IFS=$ac_save_IFS
3626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3627
3628
3629# The aliases save the names the user supplied, while $host etc.
3630# will get canonicalized.
3631test -n "$target_alias" &&
3632 test "$program_prefix$program_suffix$program_transform_name" = \
3633 NONENONEs,x,x, &&
3634 program_prefix=${target_alias}-
3635
cristy837d6dc2010-02-27 01:16:57 +00003636
3637
3638
cristy8be34142012-06-17 14:07:18 +00003639
cristy19615b82011-04-13 20:02:01 +00003640MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003641
3642
cristy27d53d62012-07-29 23:30:07 +00003643cat >>confdefs.h <<_ACEOF
3644#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3645_ACEOF
3646
3647
cristy19615b82011-04-13 20:02:01 +00003648MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003649
3650
cristy27d53d62012-07-29 23:30:07 +00003651cat >>confdefs.h <<_ACEOF
3652#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3653_ACEOF
3654
3655
cristy19615b82011-04-13 20:02:01 +00003656MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003657
3658
cristy27d53d62012-07-29 23:30:07 +00003659cat >>confdefs.h <<_ACEOF
3660#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3661_ACEOF
3662
3663
cristy3ed852e2009-09-05 21:47:34 +00003664# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003665MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3666
3667MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3668
cristy27d53d62012-07-29 23:30:07 +00003669MAGICK_SVN_REVISION=8756
cristyd694ca32011-03-27 21:42:54 +00003670
3671
cristy3ed852e2009-09-05 21:47:34 +00003672
3673
3674# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3676$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003677# Reject unsafe characters in $srcdir or the absolute working directory
3678# name. Accept space and tab only in the latter.
3679am_lf='
3680'
3681case `pwd` in
3682 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003683 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003684esac
3685case $srcdir in
3686 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003687 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003688esac
cristy3ed852e2009-09-05 21:47:34 +00003689
cristyc0890a62012-07-19 00:18:20 +00003690# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003691# arguments. Must try -L first in case configure is actually a
3692# symlink; some systems play weird games with the mod time of symlinks
3693# (eg FreeBSD returns the mod time of the symlink's containing
3694# directory).
3695if (
cristyc0890a62012-07-19 00:18:20 +00003696 am_has_slept=no
3697 for am_try in 1 2; do
3698 echo "timestamp, slept: $am_has_slept" > conftest.file
3699 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3700 if test "$*" = "X"; then
3701 # -L didn't work.
3702 set X `ls -t "$srcdir/configure" conftest.file`
3703 fi
3704 if test "$*" != "X $srcdir/configure conftest.file" \
3705 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003706
cristyc0890a62012-07-19 00:18:20 +00003707 # If neither matched, then we have a broken ls. This can happen
3708 # if, for instance, CONFIG_SHELL is bash and it inherits a
3709 # broken ls alias from the environment. This has actually
3710 # happened. Such a system could not be considered "sane".
3711 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3712 alias in your environment" "$LINENO" 5
3713 fi
3714 if test "$2" = conftest.file || test $am_try -eq 2; then
3715 break
3716 fi
3717 # Just in case.
3718 sleep 1
3719 am_has_slept=yes
3720 done
cristy73bd4a52010-10-05 11:24:23 +00003721 test "$2" = conftest.file
3722 )
3723then
3724 # Ok.
3725 :
3726else
cristy98dddb52010-11-04 00:30:15 +00003727 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003728Check your system clock" "$LINENO" 5
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003732# If we didn't sleep, we still need to ensure time stamps of config.status and
3733# generated files are strictly newer.
3734am_sleep_pid=
3735if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3736 ( sleep 1 ) &
3737 am_sleep_pid=$!
3738fi
cristy73bd4a52010-10-05 11:24:23 +00003739
cristyc0890a62012-07-19 00:18:20 +00003740rm -f conftest.file
3741
3742
3743am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003744
3745# Find a good install program. We prefer a C program (faster),
3746# so one script is as good as another. But avoid the broken or
3747# incompatible versions:
3748# SysV /etc/install, /usr/sbin/install
3749# SunOS /usr/etc/install
3750# IRIX /sbin/install
3751# AIX /bin/install
3752# AmigaOS /C/install, which installs bootblocks on floppy discs
3753# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3754# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3755# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3756# OS/2's system install, which has a completely different semantic
3757# ./install, which can be erroneously created by make from ./install.sh.
3758# Reject install programs that cannot install multiple files.
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3760$as_echo_n "checking for a BSD-compatible install... " >&6; }
3761if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003762if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003763 $as_echo_n "(cached) " >&6
3764else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 # Account for people who put trailing slashes in PATH elements.
3771case $as_dir/ in #((
3772 ./ | .// | /[cC]/* | \
3773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3774 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3775 /usr/ucb/* ) ;;
3776 *)
3777 # OSF1 and SCO ODT 3.0 have their own names for install.
3778 # Don't use installbsd from OSF since it installs stuff as root
3779 # by default.
3780 for ac_prog in ginstall scoinst install; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003782 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003783 if test $ac_prog = install &&
3784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3785 # AIX install. It has an incompatible calling convention.
3786 :
3787 elif test $ac_prog = install &&
3788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3789 # program-specific install script used by HP pwplus--don't use.
3790 :
3791 else
3792 rm -rf conftest.one conftest.two conftest.dir
3793 echo one > conftest.one
3794 echo two > conftest.two
3795 mkdir conftest.dir
3796 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3797 test -s conftest.one && test -s conftest.two &&
3798 test -s conftest.dir/conftest.one &&
3799 test -s conftest.dir/conftest.two
3800 then
3801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3802 break 3
3803 fi
3804 fi
3805 fi
3806 done
3807 done
3808 ;;
3809esac
3810
3811 done
3812IFS=$as_save_IFS
3813
3814rm -rf conftest.one conftest.two conftest.dir
3815
3816fi
3817 if test "${ac_cv_path_install+set}" = set; then
3818 INSTALL=$ac_cv_path_install
3819 else
3820 # As a last resort, use the slow shell script. Don't cache a
3821 # value for INSTALL within a source directory, because that will
3822 # break other packages using the cache if that directory is
3823 # removed, or if the value is a relative name.
3824 INSTALL=$ac_install_sh
3825 fi
3826fi
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3828$as_echo "$INSTALL" >&6; }
3829
3830# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3831# It thinks the first close brace ends the variable substitution.
3832test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3833
3834test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3835
3836test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837
3838test "$program_prefix" != NONE &&
3839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3840# Use a double $ so make ignores it.
3841test "$program_suffix" != NONE &&
3842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3843# Double any \ or $.
3844# By default was `s,x,x', remove it if useless.
3845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3846program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3847
3848# expand $ac_aux_dir to an absolute path
3849am_aux_dir=`cd $ac_aux_dir && pwd`
3850
3851if test x"${MISSING+set}" != xset; then
3852 case $am_aux_dir in
3853 *\ * | *\ *)
3854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3855 *)
3856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3857 esac
3858fi
3859# Use eval to expand $SHELL
3860if eval "$MISSING --run true"; then
3861 am_missing_run="$MISSING --run "
3862else
3863 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3865$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003866fi
3867
3868if test x"${install_sh}" != xset; then
3869 case $am_aux_dir in
3870 *\ * | *\ *)
3871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3872 *)
3873 install_sh="\${SHELL} $am_aux_dir/install-sh"
3874 esac
3875fi
3876
cristyc0890a62012-07-19 00:18:20 +00003877# Installed binaries are usually stripped using 'strip' when the user
3878# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003879# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003880# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003881if test "$cross_compiling" != no; then
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3884set dummy ${ac_tool_prefix}strip; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003887if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003888 $as_echo_n "(cached) " >&6
3889else
3890 if test -n "$STRIP"; then
3891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905 done
3906IFS=$as_save_IFS
3907
3908fi
3909fi
3910STRIP=$ac_cv_prog_STRIP
3911if test -n "$STRIP"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3913$as_echo "$STRIP" >&6; }
3914else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
3918
3919
3920fi
3921if test -z "$ac_cv_prog_STRIP"; then
3922 ac_ct_STRIP=$STRIP
3923 # Extract the first word of "strip", so it can be a program name with args.
3924set dummy strip; ac_word=$2
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003927if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003928 $as_echo_n "(cached) " >&6
3929else
3930 if test -n "$ac_ct_STRIP"; then
3931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3932else
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003940 ac_cv_prog_ac_ct_STRIP="strip"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948fi
3949fi
3950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3951if test -n "$ac_ct_STRIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3953$as_echo "$ac_ct_STRIP" >&6; }
3954else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957fi
3958
3959 if test "x$ac_ct_STRIP" = x; then
3960 STRIP=":"
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963yes:)
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966ac_tool_warned=yes ;;
3967esac
3968 STRIP=$ac_ct_STRIP
3969 fi
3970else
3971 STRIP="$ac_cv_prog_STRIP"
3972fi
3973
3974fi
3975INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3976
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3978$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3979if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003980 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003981 $as_echo_n "(cached) " >&6
3982else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_prog in mkdir gmkdir; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003990 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3992 'mkdir (GNU coreutils) '* | \
3993 'mkdir (coreutils) '* | \
3994 'mkdir (fileutils) '4.1*)
3995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3996 break 3;;
3997 esac
3998 done
3999 done
4000 done
4001IFS=$as_save_IFS
4002
4003fi
4004
4005 test -d ./--version && rmdir ./--version
4006 if test "${ac_cv_path_mkdir+set}" = set; then
4007 MKDIR_P="$ac_cv_path_mkdir -p"
4008 else
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for MKDIR_P within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 MKDIR_P="$ac_install_sh -d"
4014 fi
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4017$as_echo "$MKDIR_P" >&6; }
4018
cristy73bd4a52010-10-05 11:24:23 +00004019for ac_prog in gawk mawk nawk awk
4020do
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022set dummy $ac_prog; ac_word=$2
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004025if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004026 $as_echo_n "(cached) " >&6
4027else
4028 if test -n "$AWK"; then
4029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004038 ac_cv_prog_AWK="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042done
4043 done
4044IFS=$as_save_IFS
4045
4046fi
4047fi
4048AWK=$ac_cv_prog_AWK
4049if test -n "$AWK"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4051$as_echo "$AWK" >&6; }
4052else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
4055fi
4056
4057
4058 test -n "$AWK" && break
4059done
4060
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4062$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4063set x ${MAKE-make}
4064ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004065if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004066 $as_echo_n "(cached) " >&6
4067else
4068 cat >conftest.make <<\_ACEOF
4069SHELL = /bin/sh
4070all:
4071 @echo '@@@%%%=$(MAKE)=@@@%%%'
4072_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004073# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004074case `${MAKE-make} -f conftest.make 2>/dev/null` in
4075 *@@@%%%=?*=@@@%%%*)
4076 eval ac_cv_prog_make_${ac_make}_set=yes;;
4077 *)
4078 eval ac_cv_prog_make_${ac_make}_set=no;;
4079esac
4080rm -f conftest.make
4081fi
4082if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084$as_echo "yes" >&6; }
4085 SET_MAKE=
4086else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089 SET_MAKE="MAKE=${MAKE-make}"
4090fi
4091
4092rm -rf .tst 2>/dev/null
4093mkdir .tst 2>/dev/null
4094if test -d .tst; then
4095 am__leading_dot=.
4096else
4097 am__leading_dot=_
4098fi
4099rmdir .tst 2>/dev/null
4100
cristya448bd22011-10-14 12:38:13 +00004101# Check whether --enable-silent-rules was given.
4102if test "${enable_silent_rules+set}" = set; then :
4103 enableval=$enable_silent_rules;
4104fi
4105
cristyc0890a62012-07-19 00:18:20 +00004106case $enable_silent_rules in # (((
4107 yes) AM_DEFAULT_VERBOSITY=0;;
4108 no) AM_DEFAULT_VERBOSITY=1;;
4109 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004110esac
cristyc3fb77b2012-02-06 01:49:41 +00004111am_make=${MAKE-make}
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4113$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4114if ${am_cv_make_support_nested_variables+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116else
4117 if $as_echo 'TRUE=$(BAR$(V))
4118BAR0=false
4119BAR1=true
4120V=1
4121am__doit:
4122 @$(TRUE)
4123.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4124 am_cv_make_support_nested_variables=yes
4125else
4126 am_cv_make_support_nested_variables=no
4127fi
4128fi
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4130$as_echo "$am_cv_make_support_nested_variables" >&6; }
4131if test $am_cv_make_support_nested_variables = yes; then
4132 AM_V='$(V)'
4133 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4134else
4135 AM_V=$AM_DEFAULT_VERBOSITY
4136 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4137fi
cristya448bd22011-10-14 12:38:13 +00004138AM_BACKSLASH='\'
4139
cristy73bd4a52010-10-05 11:24:23 +00004140if test "`cd $srcdir && pwd`" != "`pwd`"; then
4141 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4142 # is not polluted with repeated "-I."
4143 am__isrc=' -I$(srcdir)'
4144 # test to see if srcdir already configured
4145 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004146 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004147 fi
4148fi
4149
4150# test whether we have cygpath
4151if test -z "$CYGPATH_W"; then
4152 if (cygpath --version) >/dev/null 2>/dev/null; then
4153 CYGPATH_W='cygpath -w'
4154 else
4155 CYGPATH_W=echo
4156 fi
4157fi
4158
4159
4160# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004161 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004162 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004163
4164
cristya448bd22011-10-14 12:38:13 +00004165cat >>confdefs.h <<_ACEOF
4166#define PACKAGE "$PACKAGE"
4167_ACEOF
4168
4169
4170cat >>confdefs.h <<_ACEOF
4171#define VERSION "$VERSION"
4172_ACEOF
4173
cristy73bd4a52010-10-05 11:24:23 +00004174# Some tools Automake needs.
4175
4176ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4177
4178
4179AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4180
4181
4182AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4183
4184
4185AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4186
4187
4188MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4189
cristyc0890a62012-07-19 00:18:20 +00004190# For better backward compatibility. To be removed once Automake 1.9.x
4191# dies out for good. For more background, see:
4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4193# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4194mkdir_p='$(MKDIR_P)'
4195
cristy73bd4a52010-10-05 11:24:23 +00004196# We need awk for the "check" target. The system "awk" is bad on
4197# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004198# Always define AMTAR for backward compatibility. Yes, it's still used
4199# in the wild :-( We should find a proper way to deprecate it ...
4200AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004201
cristyc3fb77b2012-02-06 01:49:41 +00004202am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004203
4204
4205
4206
4207
cristy3ed852e2009-09-05 21:47:34 +00004208
4209# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004210# Check whether --enable-silent-rules was given.
4211if test "${enable_silent_rules+set}" = set; then :
4212 enableval=$enable_silent_rules;
4213fi
4214
cristyc0890a62012-07-19 00:18:20 +00004215case $enable_silent_rules in # (((
4216 yes) AM_DEFAULT_VERBOSITY=0;;
4217 no) AM_DEFAULT_VERBOSITY=1;;
4218 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004219esac
cristyc3fb77b2012-02-06 01:49:41 +00004220am_make=${MAKE-make}
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4222$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4223if ${am_cv_make_support_nested_variables+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225else
4226 if $as_echo 'TRUE=$(BAR$(V))
4227BAR0=false
4228BAR1=true
4229V=1
4230am__doit:
4231 @$(TRUE)
4232.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4233 am_cv_make_support_nested_variables=yes
4234else
4235 am_cv_make_support_nested_variables=no
4236fi
4237fi
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4239$as_echo "$am_cv_make_support_nested_variables" >&6; }
4240if test $am_cv_make_support_nested_variables = yes; then
4241 AM_V='$(V)'
4242 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4243else
4244 AM_V=$AM_DEFAULT_VERBOSITY
4245 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4246fi
cristy73bd4a52010-10-05 11:24:23 +00004247AM_BACKSLASH='\'
4248
cristy3ed852e2009-09-05 21:47:34 +00004249
4250MAGICK_LIB_VERSION="0x"
4251if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4252 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4253fi
4254MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4255if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4256 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4257fi
4258MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4259if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4260 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4261fi
4262MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4263
4264
4265# Definition used to define MagickLibVersionText in version.h
4266MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4267
4268
4269# Definition used to define MagickLibVersionNumber in version.h
4270MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4271
4272
4273# Regenerate config.status if ChangeLog or version.sh is updated.
4274CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4275
4276
4277PERLMAINCC=$CC
4278
4279MAGICK_CFLAGS=''
4280MAGICK_CPPFLAGS=$CPPFLAGS_USER
4281MAGICK_PCFLAGS=$CPPFLAGS_USER
4282MAGICK_LDFLAGS=''
4283MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004284MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004285
4286#
4287# Evaluate shell variable equivalents to Makefile directory variables
4288#
4289if test "x$prefix" = xNONE; then
4290 prefix=$ac_default_prefix
4291fi
4292# Let make expand exec_prefix.
4293if test "x$exec_prefix" = xNONE; then
4294 exec_prefix='${prefix}'
4295fi
4296
4297#
4298eval "eval PREFIX_DIR=${prefix}"
4299
4300eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4301
4302eval "eval BIN_DIR=$bindir"
4303
4304eval "eval SBIN_DIR=$sbindir"
4305
4306eval "eval LIBEXEC_DIR=$libexecdir"
4307
4308eval "eval DATA_DIR=$datadir"
4309
cristy4e65ec22012-04-08 01:33:27 +00004310eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004311
cristy3ed852e2009-09-05 21:47:34 +00004312eval "eval SYSCONF_DIR=$sysconfdir"
4313
4314eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4315
4316eval "eval LOCALSTATE_DIR=$localstatedir"
4317
4318eval "eval LIB_DIR=$libdir"
4319
4320eval "eval INCLUDE_DIR=$includedir"
4321
4322eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4323
4324eval "eval INFO_DIR=$infodir"
4325
4326eval "eval MAN_DIR=$mandir"
4327
4328
4329# Get full paths to source and build directories
4330srcdirfull="`cd $srcdir && pwd`"
4331builddir="`pwd`"
4332
4333#
4334# Compute variables useful for running uninstalled software.
4335#
4336MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4337MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4338MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4339MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4340DIRSEP=':'
4341case "${build_os}" in
4342 mingw* )
4343 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4344 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4345 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4346 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4347 DIRSEP=';'
4348 ;;
4349esac
4350case "${host_os}" in
4351 mingw* )
4352 DIRSEP=';'
4353 ;;
4354esac
4355
4356
4357
4358
4359
4360
cristya0b81c32010-01-22 02:54:33 +00004361
4362#
4363# Enable OS features.
4364#
cristy73bd4a52010-10-05 11:24:23 +00004365DEPDIR="${am__leading_dot}deps"
4366
4367ac_config_commands="$ac_config_commands depfiles"
4368
4369
4370am_make=${MAKE-make}
4371cat > confinc << 'END'
4372am__doit:
4373 @echo this is the am__doit target
4374.PHONY: am__doit
4375END
4376# If we don't find an include directive, just comment out the code.
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4378$as_echo_n "checking for style of include used by $am_make... " >&6; }
4379am__include="#"
4380am__quote=
4381_am_result=none
4382# First try GNU make style include.
4383echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004384# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004385case `$am_make -s -f confmf 2> /dev/null` in #(
4386*the\ am__doit\ target*)
4387 am__include=include
4388 am__quote=
4389 _am_result=GNU
4390 ;;
4391esac
4392# Now try BSD make style include.
4393if test "$am__include" = "#"; then
4394 echo '.include "confinc"' > confmf
4395 case `$am_make -s -f confmf 2> /dev/null` in #(
4396 *the\ am__doit\ target*)
4397 am__include=.include
4398 am__quote="\""
4399 _am_result=BSD
4400 ;;
4401 esac
4402fi
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4406$as_echo "$_am_result" >&6; }
4407rm -f confinc confmf
4408
4409# Check whether --enable-dependency-tracking was given.
4410if test "${enable_dependency_tracking+set}" = set; then :
4411 enableval=$enable_dependency_tracking;
4412fi
4413
4414if test "x$enable_dependency_tracking" != xno; then
4415 am_depcomp="$ac_aux_dir/depcomp"
4416 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004417 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004418fi
4419 if test "x$enable_dependency_tracking" != xno; then
4420 AMDEP_TRUE=
4421 AMDEP_FALSE='#'
4422else
4423 AMDEP_TRUE='#'
4424 AMDEP_FALSE=
4425fi
4426
4427
cristy3ed852e2009-09-05 21:47:34 +00004428ac_ext=c
4429ac_cpp='$CPP $CPPFLAGS'
4430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4435set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004438if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004439 $as_echo_n "(cached) " >&6
4440else
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453 break 2
4454 fi
4455done
cristy8b350f62009-11-15 23:12:43 +00004456 done
cristy3ed852e2009-09-05 21:47:34 +00004457IFS=$as_save_IFS
4458
4459fi
4460fi
4461CC=$ac_cv_prog_CC
4462if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo "$CC" >&6; }
4465else
cristy8b350f62009-11-15 23:12:43 +00004466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo "no" >&6; }
4468fi
4469
4470
4471fi
4472if test -z "$ac_cv_prog_CC"; then
4473 ac_ct_CC=$CC
4474 # Extract the first word of "gcc", so it can be a program name with args.
4475set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004478if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004479 $as_echo_n "(cached) " >&6
4480else
4481 if test -n "$ac_ct_CC"; then
4482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4483else
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004491 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493 break 2
4494 fi
4495done
cristy8b350f62009-11-15 23:12:43 +00004496 done
cristy3ed852e2009-09-05 21:47:34 +00004497IFS=$as_save_IFS
4498
4499fi
4500fi
4501ac_ct_CC=$ac_cv_prog_ac_ct_CC
4502if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$ac_ct_CC" >&6; }
4505else
cristy8b350f62009-11-15 23:12:43 +00004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "no" >&6; }
4508fi
4509
4510 if test "x$ac_ct_CC" = x; then
4511 CC=""
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514yes:)
cristy8b350f62009-11-15 23:12:43 +00004515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517ac_tool_warned=yes ;;
4518esac
4519 CC=$ac_ct_CC
4520 fi
4521else
4522 CC="$ac_cv_prog_CC"
4523fi
4524
4525if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4528set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004531if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004532 $as_echo_n "(cached) " >&6
4533else
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004544 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546 break 2
4547 fi
4548done
cristy8b350f62009-11-15 23:12:43 +00004549 done
cristy3ed852e2009-09-05 21:47:34 +00004550IFS=$as_save_IFS
4551
4552fi
4553fi
4554CC=$ac_cv_prog_CC
4555if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557$as_echo "$CC" >&6; }
4558else
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "no" >&6; }
4561fi
4562
4563
4564 fi
4565fi
4566if test -z "$CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004571if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004572 $as_echo_n "(cached) " >&6
4573else
4574 if test -n "$CC"; then
4575 ac_cv_prog_CC="$CC" # Let the user override the test.
4576else
4577 ac_prog_rejected=no
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4586 ac_prog_rejected=yes
4587 continue
4588 fi
4589 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591 break 2
4592 fi
4593done
cristy8b350f62009-11-15 23:12:43 +00004594 done
cristy3ed852e2009-09-05 21:47:34 +00004595IFS=$as_save_IFS
4596
4597if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4600 shift
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4605 shift
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4607 fi
4608fi
4609fi
4610fi
4611CC=$ac_cv_prog_CC
4612if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614$as_echo "$CC" >&6; }
4615else
cristy8b350f62009-11-15 23:12:43 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo "no" >&6; }
4618fi
4619
4620
4621fi
4622if test -z "$CC"; then
4623 if test -n "$ac_tool_prefix"; then
4624 for ac_prog in cl.exe
4625 do
4626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4627set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004630if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004631 $as_echo_n "(cached) " >&6
4632else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645 break 2
4646 fi
4647done
cristy8b350f62009-11-15 23:12:43 +00004648 done
cristy3ed852e2009-09-05 21:47:34 +00004649IFS=$as_save_IFS
4650
4651fi
4652fi
4653CC=$ac_cv_prog_CC
4654if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656$as_echo "$CC" >&6; }
4657else
cristy8b350f62009-11-15 23:12:43 +00004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "no" >&6; }
4660fi
4661
4662
4663 test -n "$CC" && break
4664 done
4665fi
4666if test -z "$CC"; then
4667 ac_ct_CC=$CC
4668 for ac_prog in cl.exe
4669do
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004673$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004674if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004687 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689 break 2
4690 fi
4691done
cristy8b350f62009-11-15 23:12:43 +00004692 done
cristy3ed852e2009-09-05 21:47:34 +00004693IFS=$as_save_IFS
4694
4695fi
4696fi
4697ac_ct_CC=$ac_cv_prog_ac_ct_CC
4698if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700$as_echo "$ac_ct_CC" >&6; }
4701else
cristy8b350f62009-11-15 23:12:43 +00004702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703$as_echo "no" >&6; }
4704fi
4705
4706
4707 test -n "$ac_ct_CC" && break
4708done
4709
4710 if test "x$ac_ct_CC" = x; then
4711 CC=""
4712 else
4713 case $cross_compiling:$ac_tool_warned in
4714yes:)
cristy8b350f62009-11-15 23:12:43 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4717ac_tool_warned=yes ;;
4718esac
4719 CC=$ac_ct_CC
4720 fi
4721fi
4722
4723fi
4724
4725
cristy8b350f62009-11-15 23:12:43 +00004726test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004728as_fn_error $? "no acceptable C compiler found in \$PATH
4729See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004730
4731# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004732$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733set X $ac_compile
4734ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004735for ac_option in --version -v -V -qversion; do
4736 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004737case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740esac
cristy8b350f62009-11-15 23:12:43 +00004741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4742$as_echo "$ac_try_echo"; } >&5
4743 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004744 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004745 if test -s conftest.err; then
4746 sed '10a\
4747... rest of stderr output deleted ...
4748 10q' conftest.err >conftest.er1
4749 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004750 fi
cristycd4c5312009-11-22 01:19:08 +00004751 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753 test $ac_status = 0; }
4754done
cristy3ed852e2009-09-05 21:47:34 +00004755
cristy8b350f62009-11-15 23:12:43 +00004756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004757/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004758
cristy3ed852e2009-09-05 21:47:34 +00004759int
4760main ()
4761{
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
4767ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004768ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004769# Try to create an executable without -o first, disregard a.out.
4770# It will help us diagnose broken compilers, and finding out an intuition
4771# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4773$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004774ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4775
4776# The possible output files:
4777ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4778
4779ac_rmfiles=
4780for ac_file in $ac_files
4781do
4782 case $ac_file in
4783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4784 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4785 esac
4786done
4787rm -f $ac_rmfiles
4788
cristy8b350f62009-11-15 23:12:43 +00004789if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004790case "(($ac_try" in
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4793esac
cristy8b350f62009-11-15 23:12:43 +00004794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4795$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004796 (eval "$ac_link_default") 2>&5
4797 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004800 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4801# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4802# in a Makefile. We should not override ac_cv_exeext if it was cached,
4803# so that the user can short-circuit this test for compilers unknown to
4804# Autoconf.
4805for ac_file in $ac_files ''
4806do
4807 test -f "$ac_file" || continue
4808 case $ac_file in
4809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4810 ;;
4811 [ab].out )
4812 # We found the default executable, but exeext='' is most
4813 # certainly right.
4814 break;;
4815 *.* )
cristy8b350f62009-11-15 23:12:43 +00004816 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004817 then :; else
4818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4819 fi
4820 # We set ac_cv_exeext here because the later test for it is not
4821 # safe: cross compilers may not add the suffix if given an `-o'
4822 # argument, so we may need to know it at that point already.
4823 # Even if this section looks crufty: it has the advantage of
4824 # actually working.
4825 break;;
4826 * )
4827 break;;
4828 esac
4829done
4830test "$ac_cv_exeext" = no && ac_cv_exeext=
4831
4832else
4833 ac_file=''
4834fi
cristy8b350f62009-11-15 23:12:43 +00004835if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839sed 's/^/| /' conftest.$ac_ext >&5
4840
cristy8b350f62009-11-15 23:12:43 +00004841{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004843as_fn_error 77 "C compiler cannot create executables
4844See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004845else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004848fi
cristycd4c5312009-11-22 01:19:08 +00004849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4850$as_echo_n "checking for C compiler default output file name... " >&6; }
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4852$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004853ac_exeext=$ac_cv_exeext
4854
cristycd4c5312009-11-22 01:19:08 +00004855rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004856ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004859if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004860case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
cristy8b350f62009-11-15 23:12:43 +00004864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004866 (eval "$ac_link") 2>&5
4867 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4869 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4871# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4872# work properly (i.e., refer to `conftest.exe'), while it won't with
4873# `rm'.
4874for ac_file in conftest.exe conftest conftest.*; do
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 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4879 break;;
4880 * ) break;;
4881 esac
4882done
4883else
cristy8b350f62009-11-15 23:12:43 +00004884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004886as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4887See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004888fi
cristycd4c5312009-11-22 01:19:08 +00004889rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo "$ac_cv_exeext" >&6; }
4892
4893rm -f conftest.$ac_ext
4894EXEEXT=$ac_cv_exeext
4895ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h. */
4898#include <stdio.h>
4899int
4900main ()
4901{
4902FILE *f = fopen ("conftest.out", "w");
4903 return ferror (f) || fclose (f) != 0;
4904
4905 ;
4906 return 0;
4907}
4908_ACEOF
4909ac_clean_files="$ac_clean_files conftest.out"
4910# Check that the compiler produces executables we can run. If not, either
4911# the compiler is broken, or we cross compile.
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4913$as_echo_n "checking whether we are cross compiling... " >&6; }
4914if test "$cross_compiling" != yes; then
4915 { { ac_try="$ac_link"
4916case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919esac
4920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4921$as_echo "$ac_try_echo"; } >&5
4922 (eval "$ac_link") 2>&5
4923 ac_status=$?
4924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925 test $ac_status = 0; }
4926 if { ac_try='./conftest$ac_cv_exeext'
4927 { { case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4932$as_echo "$ac_try_echo"; } >&5
4933 (eval "$ac_try") 2>&5
4934 ac_status=$?
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }; }; then
4937 cross_compiling=no
4938 else
4939 if test "$cross_compiling" = maybe; then
4940 cross_compiling=yes
4941 else
4942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004944as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004945If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004946See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004947 fi
4948 fi
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4951$as_echo "$cross_compiling" >&6; }
4952
4953rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4954ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004957if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004958 $as_echo_n "(cached) " >&6
4959else
cristy8b350f62009-11-15 23:12:43 +00004960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004961/* end confdefs.h. */
4962
4963int
4964main ()
4965{
4966
4967 ;
4968 return 0;
4969}
4970_ACEOF
4971rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004972if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004973case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976esac
cristy8b350f62009-11-15 23:12:43 +00004977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004979 (eval "$ac_compile") 2>&5
4980 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004983 for ac_file in conftest.o conftest.obj conftest.*; do
4984 test -f "$ac_file" || continue;
4985 case $ac_file in
4986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4988 break;;
4989 esac
4990done
4991else
4992 $as_echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
cristy8b350f62009-11-15 23:12:43 +00004995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004997as_fn_error $? "cannot compute suffix of object files: cannot compile
4998See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004999fi
cristy3ed852e2009-09-05 21:47:34 +00005000rm -f conftest.$ac_cv_objext conftest.$ac_ext
5001fi
cristy8b350f62009-11-15 23:12:43 +00005002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "$ac_cv_objext" >&6; }
5004OBJEXT=$ac_cv_objext
5005ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005008if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005009 $as_echo_n "(cached) " >&6
5010else
cristy8b350f62009-11-15 23:12:43 +00005011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005012/* end confdefs.h. */
5013
5014int
5015main ()
5016{
5017#ifndef __GNUC__
5018 choke me
5019#endif
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 ac_compiler_gnu=yes
5027else
cristy8b350f62009-11-15 23:12:43 +00005028 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005029fi
cristy3ed852e2009-09-05 21:47:34 +00005030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031ac_cv_c_compiler_gnu=$ac_compiler_gnu
5032
5033fi
cristy8b350f62009-11-15 23:12:43 +00005034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005035$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5036if test $ac_compiler_gnu = yes; then
5037 GCC=yes
5038else
5039 GCC=
5040fi
5041ac_test_CFLAGS=${CFLAGS+set}
5042ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005045if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005046 $as_echo_n "(cached) " >&6
5047else
5048 ac_save_c_werror_flag=$ac_c_werror_flag
5049 ac_c_werror_flag=yes
5050 ac_cv_prog_cc_g=no
5051 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005053/* end confdefs.h. */
5054
5055int
5056main ()
5057{
5058
5059 ;
5060 return 0;
5061}
5062_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005063if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005064 ac_cv_prog_cc_g=yes
5065else
cristy8b350f62009-11-15 23:12:43 +00005066 CFLAGS=""
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005068/* end confdefs.h. */
5069
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005078if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005079
cristy8b350f62009-11-15 23:12:43 +00005080else
5081 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005082 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005084/* end confdefs.h. */
5085
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005095 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005096fi
cristy3ed852e2009-09-05 21:47:34 +00005097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098fi
cristy3ed852e2009-09-05 21:47:34 +00005099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
cristy3ed852e2009-09-05 21:47:34 +00005101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5103fi
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo "$ac_cv_prog_cc_g" >&6; }
5106if test "$ac_test_CFLAGS" = set; then
5107 CFLAGS=$ac_save_CFLAGS
5108elif test $ac_cv_prog_cc_g = yes; then
5109 if test "$GCC" = yes; then
5110 CFLAGS="-g -O2"
5111 else
5112 CFLAGS="-g"
5113 fi
5114else
5115 if test "$GCC" = yes; then
5116 CFLAGS="-O2"
5117 else
5118 CFLAGS=
5119 fi
5120fi
cristy8b350f62009-11-15 23:12:43 +00005121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005123if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005124 $as_echo_n "(cached) " >&6
5125else
5126 ac_cv_prog_cc_c89=no
5127ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
5130#include <stdarg.h>
5131#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005132struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5134struct buf { int x; };
5135FILE * (*rcsopen) (struct buf *, struct stat *, int);
5136static char *e (p, i)
5137 char **p;
5138 int i;
5139{
5140 return p[i];
5141}
5142static char *f (char * (*g) (char **, int), char **p, ...)
5143{
5144 char *s;
5145 va_list v;
5146 va_start (v,p);
5147 s = g (p, va_arg (v,int));
5148 va_end (v);
5149 return s;
5150}
5151
5152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5153 function prototypes and stuff, but not '\xHH' hex character constants.
5154 These don't provoke an error unfortunately, instead are silently treated
5155 as 'x'. The following induces an error, until -std is added to get
5156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5157 array size at least. It's necessary to write '\x00'==0 to get something
5158 that's true only with -std. */
5159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5160
5161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5162 inside strings and character constants. */
5163#define FOO(x) 'x'
5164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5165
5166int test (int i, double x);
5167struct s1 {int (*f) (int a);};
5168struct s2 {int (*f) (double a);};
5169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5170int argc;
5171char **argv;
5172int
5173main ()
5174{
5175return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182do
5183 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005184 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005186fi
cristy3ed852e2009-09-05 21:47:34 +00005187rm -f core conftest.err conftest.$ac_objext
5188 test "x$ac_cv_prog_cc_c89" != "xno" && break
5189done
5190rm -f conftest.$ac_ext
5191CC=$ac_save_CC
5192
5193fi
5194# AC_CACHE_VAL
5195case "x$ac_cv_prog_cc_c89" in
5196 x)
cristy8b350f62009-11-15 23:12:43 +00005197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005198$as_echo "none needed" >&6; } ;;
5199 xno)
cristy8b350f62009-11-15 23:12:43 +00005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005201$as_echo "unsupported" >&6; } ;;
5202 *)
5203 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5206esac
cristy8b350f62009-11-15 23:12:43 +00005207if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005208
cristy8b350f62009-11-15 23:12:43 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005216
cristy73bd4a52010-10-05 11:24:23 +00005217depcc="$CC" am_compiler_list=
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005222 $as_echo_n "(cached) " >&6
5223else
5224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5225 # We make a subdir and do the tests there. Otherwise we can end up
5226 # making bogus files that we don't know about and never remove. For
5227 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005228 # making a dummy file named 'D' -- because '-MD' means "put the output
5229 # in D".
cristy7247bba2012-02-05 16:37:27 +00005230 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005231 mkdir conftest.dir
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5235 cd conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5241 # directory.
5242 mkdir sub
5243
5244 am_cv_CC_dependencies_compiler_type=none
5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247 fi
5248 am__universal=false
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5251 esac
5252
5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5257 #
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5261 : > sub/conftest.c
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5265 # Solaris 10 /bin/sh.
5266 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005267 done
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5269
cristyc0890a62012-07-19 00:18:20 +00005270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005271 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005272 # handle '-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
5276 case $depmode in
5277 gcc)
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5280 ;;
5281 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005282 # After this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005284 if test "x$enable_dependency_tracking" = xyes; then
5285 continue
5286 else
5287 break
5288 fi
5289 ;;
cristy7247bba2012-02-05 16:37:27 +00005290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005291 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5295 am__minus_obj=
5296 ;;
5297 none) break ;;
5298 esac
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=$am__obj \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5318 break
5319 fi
5320 fi
5321 done
5322
5323 cd ..
5324 rm -rf conftest.dir
5325else
5326 am_cv_CC_dependencies_compiler_type=none
5327fi
5328
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5333
5334 if
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337 am__fastdepCC_TRUE=
5338 am__fastdepCC_FALSE='#'
5339else
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5342fi
5343
5344
cristy3ed852e2009-09-05 21:47:34 +00005345
cristya0b81c32010-01-22 02:54:33 +00005346ac_ext=c
5347ac_cpp='$CPP $CPPFLAGS'
5348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5352$as_echo_n "checking how to run the C preprocessor... " >&6; }
5353# On Suns, sometimes $CPP names a directory.
5354if test -n "$CPP" && test -d "$CPP"; then
5355 CPP=
5356fi
5357if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005358 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005359 $as_echo_n "(cached) " >&6
5360else
5361 # Double quotes because CPP needs to be expanded
5362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5363 do
5364 ac_preproc_ok=false
5365for ac_c_preproc_warn_flag in '' yes
5366do
5367 # Use a header file that comes with gcc, so configuring glibc
5368 # with a fresh cross-compiler works.
5369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370 # <limits.h> exists even on freestanding compilers.
5371 # On the NeXT, cc -E runs the code through the compiler's parser,
5372 # not just through cpp. "Syntax error" is here to catch this case.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h. */
5375#ifdef __STDC__
5376# include <limits.h>
5377#else
5378# include <assert.h>
5379#endif
5380 Syntax error
5381_ACEOF
5382if ac_fn_c_try_cpp "$LINENO"; then :
5383
5384else
5385 # Broken: fails on valid input.
5386continue
5387fi
cristyda16f162011-02-19 23:52:17 +00005388rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005389
5390 # OK, works on sane cases. Now check whether nonexistent headers
5391 # can be detected and how.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394#include <ac_nonexistent.h>
5395_ACEOF
5396if ac_fn_c_try_cpp "$LINENO"; then :
5397 # Broken: success on invalid input.
5398continue
5399else
5400 # Passes both tests.
5401ac_preproc_ok=:
5402break
5403fi
cristyda16f162011-02-19 23:52:17 +00005404rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005405
5406done
5407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005408rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005409if $ac_preproc_ok; then :
5410 break
5411fi
5412
5413 done
5414 ac_cv_prog_CPP=$CPP
5415
5416fi
5417 CPP=$ac_cv_prog_CPP
5418else
5419 ac_cv_prog_CPP=$CPP
5420fi
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5422$as_echo "$CPP" >&6; }
5423ac_preproc_ok=false
5424for ac_c_preproc_warn_flag in '' yes
5425do
5426 # Use a header file that comes with gcc, so configuring glibc
5427 # with a fresh cross-compiler works.
5428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5429 # <limits.h> exists even on freestanding compilers.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#ifdef __STDC__
5435# include <limits.h>
5436#else
5437# include <assert.h>
5438#endif
5439 Syntax error
5440_ACEOF
5441if ac_fn_c_try_cpp "$LINENO"; then :
5442
5443else
5444 # Broken: fails on valid input.
5445continue
5446fi
cristyda16f162011-02-19 23:52:17 +00005447rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005448
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h. */
5453#include <ac_nonexistent.h>
5454_ACEOF
5455if ac_fn_c_try_cpp "$LINENO"; then :
5456 # Broken: success on invalid input.
5457continue
5458else
5459 # Passes both tests.
5460ac_preproc_ok=:
5461break
5462fi
cristyda16f162011-02-19 23:52:17 +00005463rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005464
5465done
5466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005467rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005468if $ac_preproc_ok; then :
5469
5470else
5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005473as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5474See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005475fi
5476
5477ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482
5483
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5485$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005486if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005487 $as_echo_n "(cached) " >&6
5488else
5489 if test -z "$GREP"; then
5490 ac_path_GREP_found=false
5491 # Loop through the user's path and test for each of PROGNAME-LIST
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_prog in grep ggrep; do
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005500 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005501# Check for GNU ac_path_GREP and select it if it is found.
5502 # Check for GNU $ac_path_GREP
5503case `"$ac_path_GREP" --version 2>&1` in
5504*GNU*)
5505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5506*)
5507 ac_count=0
5508 $as_echo_n 0123456789 >"conftest.in"
5509 while :
5510 do
5511 cat "conftest.in" "conftest.in" >"conftest.tmp"
5512 mv "conftest.tmp" "conftest.in"
5513 cp "conftest.in" "conftest.nl"
5514 $as_echo 'GREP' >> "conftest.nl"
5515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517 as_fn_arith $ac_count + 1 && ac_count=$as_val
5518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5519 # Best one so far, save it but keep looking for a better one
5520 ac_cv_path_GREP="$ac_path_GREP"
5521 ac_path_GREP_max=$ac_count
5522 fi
5523 # 10*(2^10) chars as input seems more than enough
5524 test $ac_count -gt 10 && break
5525 done
5526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527esac
5528
5529 $ac_path_GREP_found && break 3
5530 done
5531 done
5532 done
5533IFS=$as_save_IFS
5534 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005535 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005536 fi
5537else
5538 ac_cv_path_GREP=$GREP
5539fi
5540
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5543$as_echo "$ac_cv_path_GREP" >&6; }
5544 GREP="$ac_cv_path_GREP"
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5548$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005549if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005550 $as_echo_n "(cached) " >&6
5551else
5552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5553 then ac_cv_path_EGREP="$GREP -E"
5554 else
5555 if test -z "$EGREP"; then
5556 ac_path_EGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in egrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005566 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005567# Check for GNU ac_path_EGREP and select it if it is found.
5568 # Check for GNU $ac_path_EGREP
5569case `"$ac_path_EGREP" --version 2>&1` in
5570*GNU*)
5571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5572*)
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5576 do
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'EGREP' >> "conftest.nl"
5581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_EGREP="$ac_path_EGREP"
5587 ac_path_EGREP_max=$ac_count
5588 fi
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593esac
5594
5595 $ac_path_EGREP_found && break 3
5596 done
5597 done
5598 done
5599IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005601 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005602 fi
5603else
5604 ac_cv_path_EGREP=$EGREP
5605fi
5606
5607 fi
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5610$as_echo "$ac_cv_path_EGREP" >&6; }
5611 EGREP="$ac_cv_path_EGREP"
5612
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5615$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005616if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005617 $as_echo_n "(cached) " >&6
5618else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h. */
5621#include <stdlib.h>
5622#include <stdarg.h>
5623#include <string.h>
5624#include <float.h>
5625
5626int
5627main ()
5628{
5629
5630 ;
5631 return 0;
5632}
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635 ac_cv_header_stdc=yes
5636else
5637 ac_cv_header_stdc=no
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640
5641if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645#include <string.h>
5646
5647_ACEOF
5648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then :
5650
5651else
5652 ac_cv_header_stdc=no
5653fi
5654rm -f conftest*
5655
5656fi
5657
5658if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h. */
5662#include <stdlib.h>
5663
5664_ACEOF
5665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "free" >/dev/null 2>&1; then :
5667
5668else
5669 ac_cv_header_stdc=no
5670fi
5671rm -f conftest*
5672
5673fi
5674
5675if test $ac_cv_header_stdc = yes; then
5676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5677 if test "$cross_compiling" = yes; then :
5678 :
5679else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#include <ctype.h>
5683#include <stdlib.h>
5684#if ((' ' & 0x0FF) == 0x020)
5685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5687#else
5688# define ISLOWER(c) \
5689 (('a' <= (c) && (c) <= 'i') \
5690 || ('j' <= (c) && (c) <= 'r') \
5691 || ('s' <= (c) && (c) <= 'z'))
5692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5693#endif
5694
5695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5696int
5697main ()
5698{
5699 int i;
5700 for (i = 0; i < 256; i++)
5701 if (XOR (islower (i), ISLOWER (i))
5702 || toupper (i) != TOUPPER (i))
5703 return 2;
5704 return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_run "$LINENO"; then :
5708
5709else
5710 ac_cv_header_stdc=no
5711fi
5712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713 conftest.$ac_objext conftest.beam conftest.$ac_ext
5714fi
5715
5716fi
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5719$as_echo "$ac_cv_header_stdc" >&6; }
5720if test $ac_cv_header_stdc = yes; then
5721
5722$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5723
5724fi
5725
5726# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5728 inttypes.h stdint.h unistd.h
5729do :
5730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5731ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5732"
cristy98dddb52010-11-04 00:30:15 +00005733if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005734 cat >>confdefs.h <<_ACEOF
5735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736_ACEOF
5737
5738fi
5739
5740done
5741
5742
5743
5744 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 +00005745if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005746 MINIX=yes
5747else
5748 MINIX=
5749fi
5750
5751
5752 if test "$MINIX" = yes; then
5753
5754$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5755
5756
5757$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5758
5759
5760$as_echo "#define _MINIX 1" >>confdefs.h
5761
5762 fi
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5766$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005767if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005768 $as_echo_n "(cached) " >&6
5769else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h. */
5772
cristy14fefe52012-05-21 00:59:18 +00005773# define __EXTENSIONS__ 1
5774 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005775int
5776main ()
5777{
5778
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_safe_to_define___extensions__=yes
5785else
5786 ac_cv_safe_to_define___extensions__=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5791$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5792 test $ac_cv_safe_to_define___extensions__ = yes &&
5793 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5794
5795 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5796
5797 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5798
5799 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5800
5801 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5802
5803
5804
5805# Check for programs
5806ac_ext=c
5807ac_cpp='$CPP $CPPFLAGS'
5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811if test -n "$ac_tool_prefix"; then
5812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5813set dummy ${ac_tool_prefix}gcc; ac_word=$2
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005816if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005817 $as_echo_n "(cached) " >&6
5818else
5819 if test -n "$CC"; then
5820 ac_cv_prog_CC="$CC" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5832 fi
5833done
5834 done
5835IFS=$as_save_IFS
5836
5837fi
5838fi
5839CC=$ac_cv_prog_CC
5840if test -n "$CC"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5842$as_echo "$CC" >&6; }
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846fi
5847
5848
5849fi
5850if test -z "$ac_cv_prog_CC"; then
5851 ac_ct_CC=$CC
5852 # Extract the first word of "gcc", so it can be a program name with args.
5853set dummy gcc; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005856if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005857 $as_echo_n "(cached) " >&6
5858else
5859 if test -n "$ac_ct_CC"; then
5860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005869 ac_cv_prog_ac_ct_CC="gcc"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874 done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879ac_ct_CC=$ac_cv_prog_ac_ct_CC
5880if test -n "$ac_ct_CC"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5882$as_echo "$ac_ct_CC" >&6; }
5883else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888 if test "x$ac_ct_CC" = x; then
5889 CC=""
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892yes:)
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895ac_tool_warned=yes ;;
5896esac
5897 CC=$ac_ct_CC
5898 fi
5899else
5900 CC="$ac_cv_prog_CC"
5901fi
5902
5903if test -z "$CC"; then
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5906set dummy ${ac_tool_prefix}cc; ac_word=$2
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005909if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005910 $as_echo_n "(cached) " >&6
5911else
5912 if test -n "$CC"; then
5913 ac_cv_prog_CC="$CC" # Let the user override the test.
5914else
5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005922 ac_cv_prog_CC="${ac_tool_prefix}cc"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926done
5927 done
5928IFS=$as_save_IFS
5929
5930fi
5931fi
5932CC=$ac_cv_prog_CC
5933if test -n "$CC"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5935$as_echo "$CC" >&6; }
5936else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938$as_echo "no" >&6; }
5939fi
5940
5941
5942 fi
5943fi
5944if test -z "$CC"; then
5945 # Extract the first word of "cc", so it can be a program name with args.
5946set dummy cc; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005949if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005950 $as_echo_n "(cached) " >&6
5951else
5952 if test -n "$CC"; then
5953 ac_cv_prog_CC="$CC" # Let the user override the test.
5954else
5955 ac_prog_rejected=no
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5964 ac_prog_rejected=yes
5965 continue
5966 fi
5967 ac_cv_prog_CC="cc"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972 done
5973IFS=$as_save_IFS
5974
5975if test $ac_prog_rejected = yes; then
5976 # We found a bogon in the path, so make sure we never use it.
5977 set dummy $ac_cv_prog_CC
5978 shift
5979 if test $# != 0; then
5980 # We chose a different compiler from the bogus one.
5981 # However, it has the same basename, so the bogon will be chosen
5982 # first if we set CC to just the basename; use the full file name.
5983 shift
5984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5985 fi
5986fi
5987fi
5988fi
5989CC=$ac_cv_prog_CC
5990if test -n "$CC"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5992$as_echo "$CC" >&6; }
5993else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998
5999fi
6000if test -z "$CC"; then
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in cl.exe
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006008if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006009 $as_echo_n "(cached) " >&6
6010else
6011 if test -n "$CC"; then
6012 ac_cv_prog_CC="$CC" # Let the user override the test.
6013else
6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025done
6026 done
6027IFS=$as_save_IFS
6028
6029fi
6030fi
6031CC=$ac_cv_prog_CC
6032if test -n "$CC"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6034$as_echo "$CC" >&6; }
6035else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037$as_echo "no" >&6; }
6038fi
6039
6040
6041 test -n "$CC" && break
6042 done
6043fi
6044if test -z "$CC"; then
6045 ac_ct_CC=$CC
6046 for ac_prog in cl.exe
6047do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049set dummy $ac_prog; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006052if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$ac_ct_CC"; then
6056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006065 ac_cv_prog_ac_ct_CC="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075ac_ct_CC=$ac_cv_prog_ac_ct_CC
6076if test -n "$ac_ct_CC"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6078$as_echo "$ac_ct_CC" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085 test -n "$ac_ct_CC" && break
6086done
6087
6088 if test "x$ac_ct_CC" = x; then
6089 CC=""
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097 CC=$ac_ct_CC
6098 fi
6099fi
6100
6101fi
6102
6103
6104test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006106as_fn_error $? "no acceptable C compiler found in \$PATH
6107See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006108
6109# Provide some information about the compiler.
6110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6111set X $ac_compile
6112ac_compiler=$2
6113for ac_option in --version -v -V -qversion; do
6114 { { ac_try="$ac_compiler $ac_option >&5"
6115case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6120$as_echo "$ac_try_echo"; } >&5
6121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6122 ac_status=$?
6123 if test -s conftest.err; then
6124 sed '10a\
6125... rest of stderr output deleted ...
6126 10q' conftest.err >conftest.er1
6127 cat conftest.er1 >&5
6128 fi
6129 rm -f conftest.er1 conftest.err
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; }
6132done
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6135$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006136if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006137 $as_echo_n "(cached) " >&6
6138else
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h. */
6141
6142int
6143main ()
6144{
6145#ifndef __GNUC__
6146 choke me
6147#endif
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_compile "$LINENO"; then :
6154 ac_compiler_gnu=yes
6155else
6156 ac_compiler_gnu=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159ac_cv_c_compiler_gnu=$ac_compiler_gnu
6160
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6163$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6164if test $ac_compiler_gnu = yes; then
6165 GCC=yes
6166else
6167 GCC=
6168fi
6169ac_test_CFLAGS=${CFLAGS+set}
6170ac_save_CFLAGS=$CFLAGS
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6172$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006173if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006174 $as_echo_n "(cached) " >&6
6175else
6176 ac_save_c_werror_flag=$ac_c_werror_flag
6177 ac_c_werror_flag=yes
6178 ac_cv_prog_cc_g=no
6179 CFLAGS="-g"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h. */
6182
6183int
6184main ()
6185{
6186
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_prog_cc_g=yes
6193else
6194 CFLAGS=""
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h. */
6197
6198int
6199main ()
6200{
6201
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207
6208else
6209 ac_c_werror_flag=$ac_save_c_werror_flag
6210 CFLAGS="-g"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h. */
6213
6214int
6215main ()
6216{
6217
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223 ac_cv_prog_cc_g=yes
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 ac_c_werror_flag=$ac_save_c_werror_flag
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6233$as_echo "$ac_cv_prog_cc_g" >&6; }
6234if test "$ac_test_CFLAGS" = set; then
6235 CFLAGS=$ac_save_CFLAGS
6236elif test $ac_cv_prog_cc_g = yes; then
6237 if test "$GCC" = yes; then
6238 CFLAGS="-g -O2"
6239 else
6240 CFLAGS="-g"
6241 fi
6242else
6243 if test "$GCC" = yes; then
6244 CFLAGS="-O2"
6245 else
6246 CFLAGS=
6247 fi
6248fi
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6250$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006251if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006252 $as_echo_n "(cached) " >&6
6253else
6254 ac_cv_prog_cc_c89=no
6255ac_save_CC=$CC
6256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258#include <stdarg.h>
6259#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006260struct stat;
cristya0b81c32010-01-22 02:54:33 +00006261/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6262struct buf { int x; };
6263FILE * (*rcsopen) (struct buf *, struct stat *, int);
6264static char *e (p, i)
6265 char **p;
6266 int i;
6267{
6268 return p[i];
6269}
6270static char *f (char * (*g) (char **, int), char **p, ...)
6271{
6272 char *s;
6273 va_list v;
6274 va_start (v,p);
6275 s = g (p, va_arg (v,int));
6276 va_end (v);
6277 return s;
6278}
6279
6280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6281 function prototypes and stuff, but not '\xHH' hex character constants.
6282 These don't provoke an error unfortunately, instead are silently treated
6283 as 'x'. The following induces an error, until -std is added to get
6284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6285 array size at least. It's necessary to write '\x00'==0 to get something
6286 that's true only with -std. */
6287int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6288
6289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6290 inside strings and character constants. */
6291#define FOO(x) 'x'
6292int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6293
6294int test (int i, double x);
6295struct s1 {int (*f) (int a);};
6296struct s2 {int (*f) (double a);};
6297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6298int argc;
6299char **argv;
6300int
6301main ()
6302{
6303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6310do
6311 CC="$ac_save_CC $ac_arg"
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 ac_cv_prog_cc_c89=$ac_arg
6314fi
6315rm -f core conftest.err conftest.$ac_objext
6316 test "x$ac_cv_prog_cc_c89" != "xno" && break
6317done
6318rm -f conftest.$ac_ext
6319CC=$ac_save_CC
6320
6321fi
6322# AC_CACHE_VAL
6323case "x$ac_cv_prog_cc_c89" in
6324 x)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6326$as_echo "none needed" >&6; } ;;
6327 xno)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6329$as_echo "unsupported" >&6; } ;;
6330 *)
6331 CC="$CC $ac_cv_prog_cc_c89"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6333$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6334esac
6335if test "x$ac_cv_prog_cc_c89" != xno; then :
6336
6337fi
6338
6339ac_ext=c
6340ac_cpp='$CPP $CPPFLAGS'
6341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
cristy73bd4a52010-10-05 11:24:23 +00006345depcc="$CC" am_compiler_list=
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6348$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006349if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006350 $as_echo_n "(cached) " >&6
6351else
6352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6353 # We make a subdir and do the tests there. Otherwise we can end up
6354 # making bogus files that we don't know about and never remove. For
6355 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006356 # making a dummy file named 'D' -- because '-MD' means "put the output
6357 # in D".
cristy7247bba2012-02-05 16:37:27 +00006358 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006359 mkdir conftest.dir
6360 # Copy depcomp to subdir because otherwise we won't find it if we're
6361 # using a relative directory.
6362 cp "$am_depcomp" conftest.dir
6363 cd conftest.dir
6364 # We will build objects and dependencies in a subdirectory because
6365 # it helps to detect inapplicable dependency modes. For instance
6366 # both Tru64's cc and ICC support -MD to output dependencies as a
6367 # side effect of compilation, but ICC will put the dependencies in
6368 # the current directory while Tru64 will put them in the object
6369 # directory.
6370 mkdir sub
6371
6372 am_cv_CC_dependencies_compiler_type=none
6373 if test "$am_compiler_list" = ""; then
6374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6375 fi
6376 am__universal=false
6377 case " $depcc " in #(
6378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6379 esac
6380
6381 for depmode in $am_compiler_list; do
6382 # Setup a source with many dependencies, because some compilers
6383 # like to wrap large dependency lists on column 80 (with \), and
6384 # we should not choose a depcomp mode which is confused by this.
6385 #
6386 # We need to recreate these files for each test, as the compiler may
6387 # overwrite some of them when testing with obscure command lines.
6388 # This happens at least with the AIX C compiler.
6389 : > sub/conftest.c
6390 for i in 1 2 3 4 5 6; do
6391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006392 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6393 # Solaris 10 /bin/sh.
6394 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006395 done
6396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6397
cristyc0890a62012-07-19 00:18:20 +00006398 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006399 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006400 # handle '-M -o', and we need to detect this. Also, some Intel
6401 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006402 am__obj=sub/conftest.${OBJEXT-o}
6403 am__minus_obj="-o $am__obj"
6404 case $depmode in
6405 gcc)
6406 # This depmode causes a compiler race in universal mode.
6407 test "$am__universal" = false || continue
6408 ;;
6409 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006410 # After this tag, mechanisms are not by side-effect, so they'll
6411 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006412 if test "x$enable_dependency_tracking" = xyes; then
6413 continue
6414 else
6415 break
6416 fi
6417 ;;
cristy7247bba2012-02-05 16:37:27 +00006418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006419 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006420 # not run yet. These depmodes are late enough in the game, and
6421 # so weak that their functioning should not be impacted.
6422 am__obj=conftest.${OBJEXT-o}
6423 am__minus_obj=
6424 ;;
6425 none) break ;;
6426 esac
6427 if depmode=$depmode \
6428 source=sub/conftest.c object=$am__obj \
6429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6431 >/dev/null 2>conftest.err &&
6432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6436 # icc doesn't choke on unknown options, it will just issue warnings
6437 # or remarks (even with -Werror). So we grep stderr for any message
6438 # that says an option was ignored or not supported.
6439 # When given -MP, icc 7.0 and 7.1 complain thusly:
6440 # icc: Command line warning: ignoring option '-M'; no argument required
6441 # The diagnosis changed in icc 8.0:
6442 # icc: Command line remark: option '-MP' not supported
6443 if (grep 'ignoring option' conftest.err ||
6444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6445 am_cv_CC_dependencies_compiler_type=$depmode
6446 break
6447 fi
6448 fi
6449 done
6450
6451 cd ..
6452 rm -rf conftest.dir
6453else
6454 am_cv_CC_dependencies_compiler_type=none
6455fi
6456
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6459$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6460CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6461
6462 if
6463 test "x$enable_dependency_tracking" != xno \
6464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6465 am__fastdepCC_TRUE=
6466 am__fastdepCC_FALSE='#'
6467else
6468 am__fastdepCC_TRUE='#'
6469 am__fastdepCC_FALSE=
6470fi
6471
6472
cristy95646052009-11-28 23:05:30 +00006473ac_ext=cpp
6474ac_cpp='$CXXCPP $CPPFLAGS'
6475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6478if test -z "$CXX"; then
6479 if test -n "$CCC"; then
6480 CXX=$CCC
6481 else
6482 if test -n "$ac_tool_prefix"; then
6483 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6484 do
6485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006489if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$CXX"; then
6493 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006502 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506done
6507 done
6508IFS=$as_save_IFS
6509
6510fi
6511fi
6512CXX=$ac_cv_prog_CXX
6513if test -n "$CXX"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6515$as_echo "$CXX" >&6; }
6516else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518$as_echo "no" >&6; }
6519fi
6520
6521
6522 test -n "$CXX" && break
6523 done
6524fi
6525if test -z "$CXX"; then
6526 ac_ct_CXX=$CXX
6527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6528do
6529 # Extract the first word of "$ac_prog", so it can be a program name with args.
6530set dummy $ac_prog; ac_word=$2
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006533if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006534 $as_echo_n "(cached) " >&6
6535else
6536 if test -n "$ac_ct_CXX"; then
6537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006546 ac_cv_prog_ac_ct_CXX="$ac_prog"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551 done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6557if test -n "$ac_ct_CXX"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6559$as_echo "$ac_ct_CXX" >&6; }
6560else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562$as_echo "no" >&6; }
6563fi
6564
6565
6566 test -n "$ac_ct_CXX" && break
6567done
6568
6569 if test "x$ac_ct_CXX" = x; then
6570 CXX="g++"
6571 else
6572 case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576ac_tool_warned=yes ;;
6577esac
6578 CXX=$ac_ct_CXX
6579 fi
6580fi
6581
6582 fi
6583fi
6584# Provide some information about the compiler.
6585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6586set X $ac_compile
6587ac_compiler=$2
6588for ac_option in --version -v -V -qversion; do
6589 { { ac_try="$ac_compiler $ac_option >&5"
6590case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6595$as_echo "$ac_try_echo"; } >&5
6596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6597 ac_status=$?
6598 if test -s conftest.err; then
6599 sed '10a\
6600... rest of stderr output deleted ...
6601 10q' conftest.err >conftest.er1
6602 cat conftest.er1 >&5
6603 fi
6604 rm -f conftest.er1 conftest.err
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; }
6607done
6608
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6610$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006611if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006612 $as_echo_n "(cached) " >&6
6613else
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h. */
6616
6617int
6618main ()
6619{
6620#ifndef __GNUC__
6621 choke me
6622#endif
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628if ac_fn_cxx_try_compile "$LINENO"; then :
6629 ac_compiler_gnu=yes
6630else
6631 ac_compiler_gnu=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6638$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6639if test $ac_compiler_gnu = yes; then
6640 GXX=yes
6641else
6642 GXX=
6643fi
6644ac_test_CXXFLAGS=${CXXFLAGS+set}
6645ac_save_CXXFLAGS=$CXXFLAGS
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6647$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006648if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006649 $as_echo_n "(cached) " >&6
6650else
6651 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6652 ac_cxx_werror_flag=yes
6653 ac_cv_prog_cxx_g=no
6654 CXXFLAGS="-g"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h. */
6657
6658int
6659main ()
6660{
6661
6662 ;
6663 return 0;
6664}
6665_ACEOF
6666if ac_fn_cxx_try_compile "$LINENO"; then :
6667 ac_cv_prog_cxx_g=yes
6668else
6669 CXXFLAGS=""
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h. */
6672
6673int
6674main ()
6675{
6676
6677 ;
6678 return 0;
6679}
6680_ACEOF
6681if ac_fn_cxx_try_compile "$LINENO"; then :
6682
6683else
6684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6685 CXXFLAGS="-g"
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h. */
6688
6689int
6690main ()
6691{
6692
6693 ;
6694 return 0;
6695}
6696_ACEOF
6697if ac_fn_cxx_try_compile "$LINENO"; then :
6698 ac_cv_prog_cxx_g=yes
6699fi
6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6708$as_echo "$ac_cv_prog_cxx_g" >&6; }
6709if test "$ac_test_CXXFLAGS" = set; then
6710 CXXFLAGS=$ac_save_CXXFLAGS
6711elif test $ac_cv_prog_cxx_g = yes; then
6712 if test "$GXX" = yes; then
6713 CXXFLAGS="-g -O2"
6714 else
6715 CXXFLAGS="-g"
6716 fi
6717else
6718 if test "$GXX" = yes; then
6719 CXXFLAGS="-O2"
6720 else
6721 CXXFLAGS=
6722 fi
6723fi
6724ac_ext=c
6725ac_cpp='$CPP $CPPFLAGS'
6726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6728ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729
cristy73bd4a52010-10-05 11:24:23 +00006730depcc="$CXX" am_compiler_list=
6731
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6733$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006734if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006735 $as_echo_n "(cached) " >&6
6736else
6737 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6738 # We make a subdir and do the tests there. Otherwise we can end up
6739 # making bogus files that we don't know about and never remove. For
6740 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006741 # making a dummy file named 'D' -- because '-MD' means "put the output
6742 # in D".
cristy7247bba2012-02-05 16:37:27 +00006743 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006744 mkdir conftest.dir
6745 # Copy depcomp to subdir because otherwise we won't find it if we're
6746 # using a relative directory.
6747 cp "$am_depcomp" conftest.dir
6748 cd conftest.dir
6749 # We will build objects and dependencies in a subdirectory because
6750 # it helps to detect inapplicable dependency modes. For instance
6751 # both Tru64's cc and ICC support -MD to output dependencies as a
6752 # side effect of compilation, but ICC will put the dependencies in
6753 # the current directory while Tru64 will put them in the object
6754 # directory.
6755 mkdir sub
6756
6757 am_cv_CXX_dependencies_compiler_type=none
6758 if test "$am_compiler_list" = ""; then
6759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6760 fi
6761 am__universal=false
6762 case " $depcc " in #(
6763 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6764 esac
6765
6766 for depmode in $am_compiler_list; do
6767 # Setup a source with many dependencies, because some compilers
6768 # like to wrap large dependency lists on column 80 (with \), and
6769 # we should not choose a depcomp mode which is confused by this.
6770 #
6771 # We need to recreate these files for each test, as the compiler may
6772 # overwrite some of them when testing with obscure command lines.
6773 # This happens at least with the AIX C compiler.
6774 : > sub/conftest.c
6775 for i in 1 2 3 4 5 6; do
6776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006777 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6778 # Solaris 10 /bin/sh.
6779 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006780 done
6781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6782
cristyc0890a62012-07-19 00:18:20 +00006783 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006784 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006785 # handle '-M -o', and we need to detect this. Also, some Intel
6786 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006787 am__obj=sub/conftest.${OBJEXT-o}
6788 am__minus_obj="-o $am__obj"
6789 case $depmode in
6790 gcc)
6791 # This depmode causes a compiler race in universal mode.
6792 test "$am__universal" = false || continue
6793 ;;
6794 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006795 # After this tag, mechanisms are not by side-effect, so they'll
6796 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006797 if test "x$enable_dependency_tracking" = xyes; then
6798 continue
6799 else
6800 break
6801 fi
6802 ;;
cristy7247bba2012-02-05 16:37:27 +00006803 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006804 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006805 # not run yet. These depmodes are late enough in the game, and
6806 # so weak that their functioning should not be impacted.
6807 am__obj=conftest.${OBJEXT-o}
6808 am__minus_obj=
6809 ;;
6810 none) break ;;
6811 esac
6812 if depmode=$depmode \
6813 source=sub/conftest.c object=$am__obj \
6814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6815 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6816 >/dev/null 2>conftest.err &&
6817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6819 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6821 # icc doesn't choke on unknown options, it will just issue warnings
6822 # or remarks (even with -Werror). So we grep stderr for any message
6823 # that says an option was ignored or not supported.
6824 # When given -MP, icc 7.0 and 7.1 complain thusly:
6825 # icc: Command line warning: ignoring option '-M'; no argument required
6826 # The diagnosis changed in icc 8.0:
6827 # icc: Command line remark: option '-MP' not supported
6828 if (grep 'ignoring option' conftest.err ||
6829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6830 am_cv_CXX_dependencies_compiler_type=$depmode
6831 break
6832 fi
6833 fi
6834 done
6835
6836 cd ..
6837 rm -rf conftest.dir
6838else
6839 am_cv_CXX_dependencies_compiler_type=none
6840fi
6841
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6844$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6845CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6846
6847 if
6848 test "x$enable_dependency_tracking" != xno \
6849 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6850 am__fastdepCXX_TRUE=
6851 am__fastdepCXX_FALSE='#'
6852else
6853 am__fastdepCXX_TRUE='#'
6854 am__fastdepCXX_FALSE=
6855fi
6856
6857
cristy8b350f62009-11-15 23:12:43 +00006858 case $ac_cv_prog_cc_stdc in #(
6859 no) :
6860 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6861 *) :
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006863$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006864if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006865 $as_echo_n "(cached) " >&6
6866else
6867 ac_cv_prog_cc_c99=no
6868ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006870/* end confdefs.h. */
6871#include <stdarg.h>
6872#include <stdbool.h>
6873#include <stdlib.h>
6874#include <wchar.h>
6875#include <stdio.h>
6876
6877// Check varargs macros. These examples are taken from C99 6.10.3.5.
6878#define debug(...) fprintf (stderr, __VA_ARGS__)
6879#define showlist(...) puts (#__VA_ARGS__)
6880#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6881static void
6882test_varargs_macros (void)
6883{
6884 int x = 1234;
6885 int y = 5678;
6886 debug ("Flag");
6887 debug ("X = %d\n", x);
6888 showlist (The first, second, and third items.);
6889 report (x>y, "x is %d but y is %d", x, y);
6890}
6891
6892// Check long long types.
6893#define BIG64 18446744073709551615ull
6894#define BIG32 4294967295ul
6895#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6896#if !BIG_OK
6897 your preprocessor is broken;
6898#endif
6899#if BIG_OK
6900#else
6901 your preprocessor is broken;
6902#endif
6903static long long int bignum = -9223372036854775807LL;
6904static unsigned long long int ubignum = BIG64;
6905
6906struct incomplete_array
6907{
6908 int datasize;
6909 double data[];
6910};
6911
6912struct named_init {
6913 int number;
6914 const wchar_t *name;
6915 double average;
6916};
6917
6918typedef const char *ccp;
6919
6920static inline int
6921test_restrict (ccp restrict text)
6922{
6923 // See if C++-style comments work.
6924 // Iterate through items via the restricted pointer.
6925 // Also check for declarations in for loops.
6926 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6927 continue;
6928 return 0;
6929}
6930
6931// Check varargs and va_copy.
6932static void
6933test_varargs (const char *format, ...)
6934{
6935 va_list args;
6936 va_start (args, format);
6937 va_list args_copy;
6938 va_copy (args_copy, args);
6939
6940 const char *str;
6941 int number;
6942 float fnumber;
6943
6944 while (*format)
6945 {
6946 switch (*format++)
6947 {
6948 case 's': // string
6949 str = va_arg (args_copy, const char *);
6950 break;
6951 case 'd': // int
6952 number = va_arg (args_copy, int);
6953 break;
6954 case 'f': // float
6955 fnumber = va_arg (args_copy, double);
6956 break;
6957 default:
6958 break;
6959 }
6960 }
6961 va_end (args_copy);
6962 va_end (args);
6963}
6964
6965int
6966main ()
6967{
6968
6969 // Check bool.
6970 _Bool success = false;
6971
6972 // Check restrict.
6973 if (test_restrict ("String literal") == 0)
6974 success = true;
6975 char *restrict newvar = "Another string";
6976
6977 // Check varargs.
6978 test_varargs ("s, d' f .", "string", 65, 34.234);
6979 test_varargs_macros ();
6980
6981 // Check flexible array members.
6982 struct incomplete_array *ia =
6983 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6984 ia->datasize = 10;
6985 for (int i = 0; i < ia->datasize; ++i)
6986 ia->data[i] = i * 1.234;
6987
6988 // Check named initializers.
6989 struct named_init ni = {
6990 .number = 34,
6991 .name = L"Test wide string",
6992 .average = 543.34343,
6993 };
6994
6995 ni.number = 58;
6996
6997 int dynamic_array[ni.number];
6998 dynamic_array[ni.number - 1] = 543;
6999
7000 // work around unused variable warnings
7001 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7002 || dynamic_array[ni.number - 1] != 543);
7003
7004 ;
7005 return 0;
7006}
7007_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007008for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007009do
7010 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007011 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007012 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007013fi
cristy3ed852e2009-09-05 21:47:34 +00007014rm -f core conftest.err conftest.$ac_objext
7015 test "x$ac_cv_prog_cc_c99" != "xno" && break
7016done
7017rm -f conftest.$ac_ext
7018CC=$ac_save_CC
7019
7020fi
7021# AC_CACHE_VAL
7022case "x$ac_cv_prog_cc_c99" in
7023 x)
cristy8b350f62009-11-15 23:12:43 +00007024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007025$as_echo "none needed" >&6; } ;;
7026 xno)
cristy8b350f62009-11-15 23:12:43 +00007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007028$as_echo "unsupported" >&6; } ;;
7029 *)
7030 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007032$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7033esac
cristy8b350f62009-11-15 23:12:43 +00007034if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7036else
cristy8b350f62009-11-15 23:12:43 +00007037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007038$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007039if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007040 $as_echo_n "(cached) " >&6
7041else
7042 ac_cv_prog_cc_c89=no
7043ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007045/* end confdefs.h. */
7046#include <stdarg.h>
7047#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007048struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007049/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7050struct buf { int x; };
7051FILE * (*rcsopen) (struct buf *, struct stat *, int);
7052static char *e (p, i)
7053 char **p;
7054 int i;
7055{
7056 return p[i];
7057}
7058static char *f (char * (*g) (char **, int), char **p, ...)
7059{
7060 char *s;
7061 va_list v;
7062 va_start (v,p);
7063 s = g (p, va_arg (v,int));
7064 va_end (v);
7065 return s;
7066}
7067
7068/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7069 function prototypes and stuff, but not '\xHH' hex character constants.
7070 These don't provoke an error unfortunately, instead are silently treated
7071 as 'x'. The following induces an error, until -std is added to get
7072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7073 array size at least. It's necessary to write '\x00'==0 to get something
7074 that's true only with -std. */
7075int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7076
7077/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7078 inside strings and character constants. */
7079#define FOO(x) 'x'
7080int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7081
7082int test (int i, double x);
7083struct s1 {int (*f) (int a);};
7084struct s2 {int (*f) (double a);};
7085int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7086int argc;
7087char **argv;
7088int
7089main ()
7090{
7091return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7092 ;
7093 return 0;
7094}
7095_ACEOF
7096for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7098do
7099 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007100 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007102fi
cristy3ed852e2009-09-05 21:47:34 +00007103rm -f core conftest.err conftest.$ac_objext
7104 test "x$ac_cv_prog_cc_c89" != "xno" && break
7105done
7106rm -f conftest.$ac_ext
7107CC=$ac_save_CC
7108
7109fi
7110# AC_CACHE_VAL
7111case "x$ac_cv_prog_cc_c89" in
7112 x)
cristy8b350f62009-11-15 23:12:43 +00007113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007114$as_echo "none needed" >&6; } ;;
7115 xno)
cristy8b350f62009-11-15 23:12:43 +00007116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007117$as_echo "unsupported" >&6; } ;;
7118 *)
7119 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007121$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7122esac
cristy8b350f62009-11-15 23:12:43 +00007123if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7125else
7126 ac_cv_prog_cc_stdc=no
7127fi
7128
cristy3ed852e2009-09-05 21:47:34 +00007129fi
cristy3ed852e2009-09-05 21:47:34 +00007130 ;;
7131esac
cristy8b350f62009-11-15 23:12:43 +00007132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007133$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007134 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007135 $as_echo_n "(cached) " >&6
7136fi
7137
cristy8b350f62009-11-15 23:12:43 +00007138 case $ac_cv_prog_cc_stdc in #(
7139 no) :
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7141$as_echo "unsupported" >&6; } ;; #(
7142 '') :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7144$as_echo "none needed" >&6; } ;; #(
7145 *) :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7148esac
7149
cristy3ed852e2009-09-05 21:47:34 +00007150ac_ext=c
7151ac_cpp='$CPP $CPPFLAGS'
7152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007156$as_echo_n "checking how to run the C preprocessor... " >&6; }
7157# On Suns, sometimes $CPP names a directory.
7158if test -n "$CPP" && test -d "$CPP"; then
7159 CPP=
7160fi
7161if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007162 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007163 $as_echo_n "(cached) " >&6
7164else
7165 # Double quotes because CPP needs to be expanded
7166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7167 do
7168 ac_preproc_ok=false
7169for ac_c_preproc_warn_flag in '' yes
7170do
7171 # Use a header file that comes with gcc, so configuring glibc
7172 # with a fresh cross-compiler works.
7173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7174 # <limits.h> exists even on freestanding compilers.
7175 # On the NeXT, cc -E runs the code through the compiler's parser,
7176 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007178/* end confdefs.h. */
7179#ifdef __STDC__
7180# include <limits.h>
7181#else
7182# include <assert.h>
7183#endif
7184 Syntax error
7185_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007186if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007187
cristy8b350f62009-11-15 23:12:43 +00007188else
cristy3ed852e2009-09-05 21:47:34 +00007189 # Broken: fails on valid input.
7190continue
7191fi
cristyda16f162011-02-19 23:52:17 +00007192rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007193
7194 # OK, works on sane cases. Now check whether nonexistent headers
7195 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007197/* end confdefs.h. */
7198#include <ac_nonexistent.h>
7199_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007200if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007201 # Broken: success on invalid input.
7202continue
7203else
cristy3ed852e2009-09-05 21:47:34 +00007204 # Passes both tests.
7205ac_preproc_ok=:
7206break
7207fi
cristyda16f162011-02-19 23:52:17 +00007208rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007209
7210done
7211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007212rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007213if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007214 break
7215fi
7216
7217 done
7218 ac_cv_prog_CPP=$CPP
7219
7220fi
7221 CPP=$ac_cv_prog_CPP
7222else
7223 ac_cv_prog_CPP=$CPP
7224fi
cristy8b350f62009-11-15 23:12:43 +00007225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007226$as_echo "$CPP" >&6; }
7227ac_preproc_ok=false
7228for ac_c_preproc_warn_flag in '' yes
7229do
7230 # Use a header file that comes with gcc, so configuring glibc
7231 # with a fresh cross-compiler works.
7232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 # <limits.h> exists even on freestanding compilers.
7234 # On the NeXT, cc -E runs the code through the compiler's parser,
7235 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007237/* end confdefs.h. */
7238#ifdef __STDC__
7239# include <limits.h>
7240#else
7241# include <assert.h>
7242#endif
7243 Syntax error
7244_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007245if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007246
cristy8b350f62009-11-15 23:12:43 +00007247else
cristy3ed852e2009-09-05 21:47:34 +00007248 # Broken: fails on valid input.
7249continue
7250fi
cristyda16f162011-02-19 23:52:17 +00007251rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007252
7253 # OK, works on sane cases. Now check whether nonexistent headers
7254 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007256/* end confdefs.h. */
7257#include <ac_nonexistent.h>
7258_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007259if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007260 # Broken: success on invalid input.
7261continue
7262else
cristy3ed852e2009-09-05 21:47:34 +00007263 # Passes both tests.
7264ac_preproc_ok=:
7265break
7266fi
cristyda16f162011-02-19 23:52:17 +00007267rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007268
7269done
7270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007271rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007272if $ac_preproc_ok; then :
7273
cristy3ed852e2009-09-05 21:47:34 +00007274else
cristy8b350f62009-11-15 23:12:43 +00007275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007277as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7278See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007279fi
7280
7281ac_ext=c
7282ac_cpp='$CPP $CPPFLAGS'
7283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286
cristy73bd4a52010-10-05 11:24:23 +00007287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7288$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007289if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007290 $as_echo_n "(cached) " >&6
7291else
7292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7293 for ac_i in 1 2 3 4 5 6 7; do
7294 ac_script="$ac_script$as_nl$ac_script"
7295 done
7296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7297 { ac_script=; unset ac_script;}
7298 if test -z "$SED"; then
7299 ac_path_SED_found=false
7300 # Loop through the user's path and test for each of PROGNAME-LIST
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_prog in sed gsed; do
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007309 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007310# Check for GNU ac_path_SED and select it if it is found.
7311 # Check for GNU $ac_path_SED
7312case `"$ac_path_SED" --version 2>&1` in
7313*GNU*)
7314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7315*)
7316 ac_count=0
7317 $as_echo_n 0123456789 >"conftest.in"
7318 while :
7319 do
7320 cat "conftest.in" "conftest.in" >"conftest.tmp"
7321 mv "conftest.tmp" "conftest.in"
7322 cp "conftest.in" "conftest.nl"
7323 $as_echo '' >> "conftest.nl"
7324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7326 as_fn_arith $ac_count + 1 && ac_count=$as_val
7327 if test $ac_count -gt ${ac_path_SED_max-0}; then
7328 # Best one so far, save it but keep looking for a better one
7329 ac_cv_path_SED="$ac_path_SED"
7330 ac_path_SED_max=$ac_count
7331 fi
7332 # 10*(2^10) chars as input seems more than enough
7333 test $ac_count -gt 10 && break
7334 done
7335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7336esac
7337
7338 $ac_path_SED_found && break 3
7339 done
7340 done
7341 done
7342IFS=$as_save_IFS
7343 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007345 fi
7346else
7347 ac_cv_path_SED=$SED
7348fi
7349
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7352$as_echo "$ac_cv_path_SED" >&6; }
7353 SED="$ac_cv_path_SED"
7354 rm -f conftest.sed
7355
7356test -z "$SED" && SED=sed
7357Xsed="$SED -e 1s/^X//"
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7370$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007371if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007372 $as_echo_n "(cached) " >&6
7373else
7374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7375 then ac_cv_path_FGREP="$GREP -F"
7376 else
7377 if test -z "$FGREP"; then
7378 ac_path_FGREP_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_prog in fgrep; do
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007388 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007389# Check for GNU ac_path_FGREP and select it if it is found.
7390 # Check for GNU $ac_path_FGREP
7391case `"$ac_path_FGREP" --version 2>&1` in
7392*GNU*)
7393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7394*)
7395 ac_count=0
7396 $as_echo_n 0123456789 >"conftest.in"
7397 while :
7398 do
7399 cat "conftest.in" "conftest.in" >"conftest.tmp"
7400 mv "conftest.tmp" "conftest.in"
7401 cp "conftest.in" "conftest.nl"
7402 $as_echo 'FGREP' >> "conftest.nl"
7403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7405 as_fn_arith $ac_count + 1 && ac_count=$as_val
7406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7407 # Best one so far, save it but keep looking for a better one
7408 ac_cv_path_FGREP="$ac_path_FGREP"
7409 ac_path_FGREP_max=$ac_count
7410 fi
7411 # 10*(2^10) chars as input seems more than enough
7412 test $ac_count -gt 10 && break
7413 done
7414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7415esac
7416
7417 $ac_path_FGREP_found && break 3
7418 done
7419 done
7420 done
7421IFS=$as_save_IFS
7422 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007424 fi
7425else
7426 ac_cv_path_FGREP=$FGREP
7427fi
7428
7429 fi
7430fi
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7432$as_echo "$ac_cv_path_FGREP" >&6; }
7433 FGREP="$ac_cv_path_FGREP"
7434
7435
7436test -z "$GREP" && GREP=grep
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
cristy0c60a692010-11-04 01:09:47 +00007454ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7455ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7456ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7457
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7459$as_echo_n "checking how to print strings... " >&6; }
7460# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007461if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007462 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7463 ECHO='print -r --'
7464elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7465 ECHO='printf %s\n'
7466else
7467 # Use this function as a fallback that always works.
7468 func_fallback_echo ()
7469 {
7470 eval 'cat <<_LTECHO_EOF
7471$1
7472_LTECHO_EOF'
7473 }
7474 ECHO='func_fallback_echo'
7475fi
7476
7477# func_echo_all arg...
7478# Invoke $ECHO with all args, space-separated.
7479func_echo_all ()
7480{
7481 $ECHO ""
7482}
7483
7484case "$ECHO" in
7485 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7486$as_echo "printf" >&6; } ;;
7487 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7488$as_echo "print -r" >&6; } ;;
7489 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7490$as_echo "cat" >&6; } ;;
7491esac
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
cristy73bd4a52010-10-05 11:24:23 +00007506
7507
7508# Check whether --with-gnu-ld was given.
7509if test "${with_gnu_ld+set}" = set; then :
7510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7511else
7512 with_gnu_ld=no
7513fi
7514
7515ac_prog=ld
7516if test "$GCC" = yes; then
7517 # Check if gcc -print-prog-name=ld gives a path.
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7519$as_echo_n "checking for ld used by $CC... " >&6; }
7520 case $host in
7521 *-*-mingw*)
7522 # gcc leaves a trailing carriage return which upsets mingw
7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7524 *)
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7526 esac
7527 case $ac_prog in
7528 # Accept absolute paths.
7529 [\\/]* | ?:[\\/]*)
7530 re_direlt='/[^/][^/]*/\.\./'
7531 # Canonicalize the pathname of ld
7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7535 done
7536 test -z "$LD" && LD="$ac_prog"
7537 ;;
7538 "")
7539 # If it fails, then pretend we aren't using GCC.
7540 ac_prog=ld
7541 ;;
7542 *)
7543 # If it is relative, then search for the first ld in PATH.
7544 with_gnu_ld=unknown
7545 ;;
7546 esac
7547elif test "$with_gnu_ld" = yes; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7549$as_echo_n "checking for GNU ld... " >&6; }
7550else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7552$as_echo_n "checking for non-GNU ld... " >&6; }
7553fi
cristyda16f162011-02-19 23:52:17 +00007554if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007555 $as_echo_n "(cached) " >&6
7556else
7557 if test -z "$LD"; then
7558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7559 for ac_dir in $PATH; do
7560 IFS="$lt_save_ifs"
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7563 lt_cv_path_LD="$ac_dir/$ac_prog"
7564 # Check to see if the program is GNU ld. I'd rather use --version,
7565 # but apparently some variants of GNU ld only accept -v.
7566 # Break only if it was the GNU/non-GNU ld that we prefer.
7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7568 *GNU* | *'with BFD'*)
7569 test "$with_gnu_ld" != no && break
7570 ;;
7571 *)
7572 test "$with_gnu_ld" != yes && break
7573 ;;
7574 esac
7575 fi
7576 done
7577 IFS="$lt_save_ifs"
7578else
7579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7580fi
7581fi
7582
7583LD="$lt_cv_path_LD"
7584if test -n "$LD"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7586$as_echo "$LD" >&6; }
7587else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
cristy98dddb52010-11-04 00:30:15 +00007591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007594if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007595 $as_echo_n "(cached) " >&6
7596else
7597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7598case `$LD -v 2>&1 </dev/null` in
7599*GNU* | *'with BFD'*)
7600 lt_cv_prog_gnu_ld=yes
7601 ;;
7602*)
7603 lt_cv_prog_gnu_ld=no
7604 ;;
7605esac
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7608$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7609with_gnu_ld=$lt_cv_prog_gnu_ld
7610
7611
7612
7613
7614
7615
7616
7617
7618
cristy3ed852e2009-09-05 21:47:34 +00007619
cristy837d6dc2010-02-27 01:16:57 +00007620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7621$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007622if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007623 $as_echo_n "(cached) " >&6
7624else
7625 ac_cv_prog_cc_c99=no
7626ac_save_CC=$CC
7627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#include <stdarg.h>
7630#include <stdbool.h>
7631#include <stdlib.h>
7632#include <wchar.h>
7633#include <stdio.h>
7634
7635// Check varargs macros. These examples are taken from C99 6.10.3.5.
7636#define debug(...) fprintf (stderr, __VA_ARGS__)
7637#define showlist(...) puts (#__VA_ARGS__)
7638#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7639static void
7640test_varargs_macros (void)
7641{
7642 int x = 1234;
7643 int y = 5678;
7644 debug ("Flag");
7645 debug ("X = %d\n", x);
7646 showlist (The first, second, and third items.);
7647 report (x>y, "x is %d but y is %d", x, y);
7648}
7649
7650// Check long long types.
7651#define BIG64 18446744073709551615ull
7652#define BIG32 4294967295ul
7653#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7654#if !BIG_OK
7655 your preprocessor is broken;
7656#endif
7657#if BIG_OK
7658#else
7659 your preprocessor is broken;
7660#endif
7661static long long int bignum = -9223372036854775807LL;
7662static unsigned long long int ubignum = BIG64;
7663
7664struct incomplete_array
7665{
7666 int datasize;
7667 double data[];
7668};
7669
7670struct named_init {
7671 int number;
7672 const wchar_t *name;
7673 double average;
7674};
7675
7676typedef const char *ccp;
7677
7678static inline int
7679test_restrict (ccp restrict text)
7680{
7681 // See if C++-style comments work.
7682 // Iterate through items via the restricted pointer.
7683 // Also check for declarations in for loops.
7684 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7685 continue;
7686 return 0;
7687}
7688
7689// Check varargs and va_copy.
7690static void
7691test_varargs (const char *format, ...)
7692{
7693 va_list args;
7694 va_start (args, format);
7695 va_list args_copy;
7696 va_copy (args_copy, args);
7697
7698 const char *str;
7699 int number;
7700 float fnumber;
7701
7702 while (*format)
7703 {
7704 switch (*format++)
7705 {
7706 case 's': // string
7707 str = va_arg (args_copy, const char *);
7708 break;
7709 case 'd': // int
7710 number = va_arg (args_copy, int);
7711 break;
7712 case 'f': // float
7713 fnumber = va_arg (args_copy, double);
7714 break;
7715 default:
7716 break;
7717 }
7718 }
7719 va_end (args_copy);
7720 va_end (args);
7721}
7722
7723int
7724main ()
7725{
7726
7727 // Check bool.
7728 _Bool success = false;
7729
7730 // Check restrict.
7731 if (test_restrict ("String literal") == 0)
7732 success = true;
7733 char *restrict newvar = "Another string";
7734
7735 // Check varargs.
7736 test_varargs ("s, d' f .", "string", 65, 34.234);
7737 test_varargs_macros ();
7738
7739 // Check flexible array members.
7740 struct incomplete_array *ia =
7741 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7742 ia->datasize = 10;
7743 for (int i = 0; i < ia->datasize; ++i)
7744 ia->data[i] = i * 1.234;
7745
7746 // Check named initializers.
7747 struct named_init ni = {
7748 .number = 34,
7749 .name = L"Test wide string",
7750 .average = 543.34343,
7751 };
7752
7753 ni.number = 58;
7754
7755 int dynamic_array[ni.number];
7756 dynamic_array[ni.number - 1] = 543;
7757
7758 // work around unused variable warnings
7759 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7760 || dynamic_array[ni.number - 1] != 543);
7761
7762 ;
7763 return 0;
7764}
7765_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007766for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007767do
7768 CC="$ac_save_CC $ac_arg"
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 ac_cv_prog_cc_c99=$ac_arg
7771fi
7772rm -f core conftest.err conftest.$ac_objext
7773 test "x$ac_cv_prog_cc_c99" != "xno" && break
7774done
7775rm -f conftest.$ac_ext
7776CC=$ac_save_CC
7777
7778fi
7779# AC_CACHE_VAL
7780case "x$ac_cv_prog_cc_c99" in
7781 x)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7783$as_echo "none needed" >&6; } ;;
7784 xno)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7786$as_echo "unsupported" >&6; } ;;
7787 *)
7788 CC="$CC $ac_cv_prog_cc_c99"
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7790$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7791esac
7792if test "x$ac_cv_prog_cc_c99" != xno; then :
7793
7794fi
7795
7796
cristy73bd4a52010-10-05 11:24:23 +00007797if test "x$CC" != xcc; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7799$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7802$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7803fi
7804set dummy $CC; ac_cc=`$as_echo "$2" |
7805 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007806if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007807 $as_echo_n "(cached) " >&6
7808else
cristy73bd4a52010-10-05 11:24:23 +00007809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820# Make sure it works both with $CC and with simple cc.
7821# We do the test twice because some compilers refuse to overwrite an
7822# existing .o file with -o, though they will create one.
7823ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7824rm -f conftest2.*
7825if { { case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828esac
7829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7830$as_echo "$ac_try_echo"; } >&5
7831 (eval "$ac_try") 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; } &&
7835 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7840$as_echo "$ac_try_echo"; } >&5
7841 (eval "$ac_try") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; };
7845then
7846 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7847 if test "x$CC" != xcc; then
7848 # Test first that cc exists at all.
7849 if { ac_try='cc -c conftest.$ac_ext >&5'
7850 { { case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853esac
7854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7855$as_echo "$ac_try_echo"; } >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859 test $ac_status = 0; }; }; then
7860 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7861 rm -f conftest2.*
7862 if { { case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865esac
7866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7867$as_echo "$ac_try_echo"; } >&5
7868 (eval "$ac_try") 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; } &&
7872 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875esac
7876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7877$as_echo "$ac_try_echo"; } >&5
7878 (eval "$ac_try") 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; };
7882 then
7883 # cc works too.
7884 :
7885 else
7886 # cc exists but doesn't like -o.
7887 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7888 fi
7889 fi
7890 fi
7891else
7892 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7893fi
7894rm -f core conftest*
7895
7896fi
7897if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7899$as_echo "yes" >&6; }
7900else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903
7904$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7905
7906fi
7907
7908# FIXME: we rely on the cache variable name because
7909# there is no other way.
7910set dummy $CC
7911am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7912eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7913if test "$am_t" != yes; then
7914 # Losing compiler, so override with the script.
7915 # FIXME: It is wrong to rewrite CC.
7916 # But if we don't then we get into trouble of one sort or another.
7917 # A longer-term fix would be to have automake use am__CC in this case,
7918 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7919 CC="$am_aux_dir/compile $CC"
7920fi
7921
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7924$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007925if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007929 ac_ext=c
7930ac_cpp='$CPP $CPPFLAGS'
7931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935 ac_save_CFLAGS="$CFLAGS"
7936for 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" #
7937do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h. */
7940
7941int
7942main ()
7943{
cristy24fc1fe2010-10-23 21:13:01 +00007944
cristy73bd4a52010-10-05 11:24:23 +00007945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7951fi
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953done
7954 CFLAGS="$ac_save_CFLAGS"
7955 ac_ext=c
7956ac_cpp='$CPP $CPPFLAGS'
7957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7964$as_echo "$ac_cv_cflags_warn_all" >&6; }
7965case ".$ac_cv_cflags_warn_all" in
7966 .ok|.ok,*) ;;
7967 .|.no|.no,*)
7968 ;;
7969 *)
7970 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7971 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7972 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7973 ac_status=$?
7974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7975 test $ac_status = 0; }
7976 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7977 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7978 ac_status=$?
7979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }
7981 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7982 fi
7983 ;;
nicolas6237c462010-10-05 06:11:49 +00007984esac
cristy3ed852e2009-09-05 21:47:34 +00007985
cristy568c2d42012-07-27 01:41:20 +00007986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7987$as_echo_n "checking for C compiler vendor... " >&6; }
7988if ${ax_cv_c_compiler_vendor+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 # note: don't check for gcc first since some other compilers define __GNUC__
7992 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7993 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7994 pathscale: __PATHCC__,__PATHSCALE__
7995 clang: __clang__
7996 gnu: __GNUC__
7997 sun: __SUNPRO_C,__SUNPRO_CC
7998 hp: __HP_cc,__HP_aCC
7999 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8000 borland: __BORLANDC__,__TURBOC__
8001 comeau: __COMO__
8002 cray: _CRAYC
8003 kai: __KCC
8004 lcc: __LCC__
8005 sgi: __sgi,sgi
8006 microsoft: _MSC_VER
8007 metrowerks: __MWERKS__
8008 watcom: __WATCOMC__
8009 portland: __PGI
8010 unknown: UNKNOWN"
8011 for ventest in $vendors; do
8012 case $ventest in
8013 *:) vendor=$ventest; continue ;;
8014 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8015 esac
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h. */
8018
8019int
8020main ()
8021{
8022
8023 #if !($vencpp)
8024 thisisanerror;
8025 #endif
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"; then :
8032 break
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035 done
8036 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8037
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8040$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8041
cristya0b81c32010-01-22 02:54:33 +00008042
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8045set x ${MAKE-make}
8046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008048 $as_echo_n "(cached) " >&6
8049else
8050 cat >conftest.make <<\_ACEOF
8051SHELL = /bin/sh
8052all:
8053 @echo '@@@%%%=$(MAKE)=@@@%%%'
8054_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008056case `${MAKE-make} -f conftest.make 2>/dev/null` in
8057 *@@@%%%=?*=@@@%%%*)
8058 eval ac_cv_prog_make_${ac_make}_set=yes;;
8059 *)
8060 eval ac_cv_prog_make_${ac_make}_set=no;;
8061esac
8062rm -f conftest.make
8063fi
8064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8066$as_echo "yes" >&6; }
8067 SET_MAKE=
8068else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
8071 SET_MAKE="MAKE=${MAKE-make}"
8072fi
8073
cristy8b350f62009-11-15 23:12:43 +00008074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008075$as_echo_n "checking whether ln -s works... " >&6; }
8076LN_S=$as_ln_s
8077if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008079$as_echo "yes" >&6; }
8080else
cristy8b350f62009-11-15 23:12:43 +00008081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo "no, using $LN_S" >&6; }
8083fi
8084
cristy73bd4a52010-10-05 11:24:23 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8086$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8087
8088# Check whether --with-dmalloc was given.
8089if test "${with_dmalloc+set}" = set; then :
8090 withval=$with_dmalloc; if test "$withval" = yes; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8092$as_echo "yes" >&6; }
8093
8094$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8095
8096 LIBS="$LIBS -ldmalloc"
8097 LDFLAGS="$LDFLAGS -g"
8098else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
8106
8107
8108
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8110$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008111if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008112 $as_echo_n "(cached) " >&6
8113else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h. */
8116#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008117 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008118 static void
8119 foo(void) {
8120 exit(1);
8121 }
8122
8123int
8124main ()
8125{
8126
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132 ax_cv___attribute__=yes
8133else
8134 ax_cv___attribute__=no
8135
8136fi
8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8141$as_echo "$ax_cv___attribute__" >&6; }
8142 if test "$ax_cv___attribute__" = "yes"; then
8143
8144$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8145
8146 fi
8147
8148
8149
cristy37110d62012-03-01 18:38:20 +00008150
8151
8152# Check whether --with-gcc-arch was given.
8153if test "${with_gcc_arch+set}" = set; then :
8154 withval=$with_gcc_arch; ax_gcc_arch=$withval
8155else
cristya32d1812012-03-02 19:24:21 +00008156 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008157fi
8158
8159
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8161$as_echo_n "checking for gcc architecture flag... " >&6; }
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8163$as_echo "" >&6; }
8164if ${ax_cv_gcc_archflag+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167
8168ax_cv_gcc_archflag="unknown"
8169
8170if test "$GCC" = yes; then
8171
8172if test "x$ax_gcc_arch" = xyes; then
8173ax_gcc_arch=""
8174if test "$cross_compiling" = no; then
8175case $host_cpu in
8176 i[3456]86*|x86_64*) # use cpuid codes
8177
8178ac_ext=c
8179ac_cpp='$CPP $CPPFLAGS'
8180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8182ac_compiler_gnu=$ac_cv_c_compiler_gnu
8183
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8185$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8186if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188else
8189 if test "$cross_compiling" = yes; then :
8190 ax_cv_gcc_x86_cpuid_0=unknown
8191else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h. */
8194#include <stdio.h>
8195int
8196main ()
8197{
8198
8199 int op = 0, eax, ebx, ecx, edx;
8200 FILE *f;
8201 __asm__("cpuid"
8202 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8203 : "a" (op));
8204 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8205 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8206 fclose(f);
8207 return 0;
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_run "$LINENO"; then :
8214 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8215else
8216 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8217fi
8218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8219 conftest.$ac_objext conftest.beam conftest.$ac_ext
8220fi
8221
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8224$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8225ac_ext=c
8226ac_cpp='$CPP $CPPFLAGS'
8227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
8231
8232
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8240$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8241if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243else
8244 if test "$cross_compiling" = yes; then :
8245 ax_cv_gcc_x86_cpuid_1=unknown
8246else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248/* end confdefs.h. */
8249#include <stdio.h>
8250int
8251main ()
8252{
8253
8254 int op = 1, eax, ebx, ecx, edx;
8255 FILE *f;
8256 __asm__("cpuid"
8257 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8258 : "a" (op));
8259 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8260 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8261 fclose(f);
8262 return 0;
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_run "$LINENO"; then :
8269 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8270else
8271 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8272fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8279$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8280ac_ext=c
8281ac_cpp='$CPP $CPPFLAGS'
8282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286
8287 case $ax_cv_gcc_x86_cpuid_0 in
8288 *:756e6547:*:*) # Intel
8289 case $ax_cv_gcc_x86_cpuid_1 in
8290 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8291 *5??:*:*:*) ax_gcc_arch=pentium ;;
8292 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8293 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8294 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8295 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8296 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8297 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8298 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8299 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8300 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8301 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8302 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8303 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8304 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8305 case $host_cpu in
8306 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8307 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8308 esac ;;
8309 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8310 esac ;;
8311 *:68747541:*:*) # AMD
8312 case $ax_cv_gcc_x86_cpuid_1 in
8313 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8314 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8315 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8316 *60?:*:*:*) ax_gcc_arch=k7 ;;
8317 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8318 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8319 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8320 *6[68a]?:*:*:*)
8321
8322ac_ext=c
8323ac_cpp='$CPP $CPPFLAGS'
8324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8326ac_compiler_gnu=$ac_cv_c_compiler_gnu
8327
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8329$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8330if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332else
8333 if test "$cross_compiling" = yes; then :
8334 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8335else
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h. */
8338#include <stdio.h>
8339int
8340main ()
8341{
8342
8343 int op = 0x80000006, eax, ebx, ecx, edx;
8344 FILE *f;
8345 __asm__("cpuid"
8346 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8347 : "a" (op));
8348 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8349 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8350 fclose(f);
8351 return 0;
8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357if ac_fn_c_try_run "$LINENO"; then :
8358 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8359else
8360 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8361fi
8362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8363 conftest.$ac_objext conftest.beam conftest.$ac_ext
8364fi
8365
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8368$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8369ac_ext=c
8370ac_cpp='$CPP $CPPFLAGS'
8371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8373ac_compiler_gnu=$ac_cv_c_compiler_gnu
8374
8375 # L2 cache size
8376 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8377 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8378 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8379 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8380 esac ;;
8381 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8382 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8383 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8384 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8385 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8386 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8387 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8388 esac ;;
8389 *:746e6543:*:*) # IDT
8390 case $ax_cv_gcc_x86_cpuid_1 in
8391 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8392 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8393 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8394 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8395 esac ;;
8396 esac
8397 if test x"$ax_gcc_arch" = x; then # fallback
8398 case $host_cpu in
8399 i586*) ax_gcc_arch=pentium ;;
8400 i686*) ax_gcc_arch=pentiumpro ;;
8401 esac
8402 fi
8403 ;;
8404
8405 sparc*)
8406 # Extract the first word of "prtdiag", so it can be a program name with args.
8407set dummy prtdiag; ac_word=$2
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409$as_echo_n "checking for $ac_word... " >&6; }
8410if ${ac_cv_path_PRTDIAG+:} false; then :
8411 $as_echo_n "(cached) " >&6
8412else
8413 case $PRTDIAG in
8414 [\\/]* | ?:[\\/]*)
8415 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8416 ;;
8417 *)
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8420for as_dir in $as_dummy
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008426 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431 done
8432IFS=$as_save_IFS
8433
8434 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8435 ;;
8436esac
8437fi
8438PRTDIAG=$ac_cv_path_PRTDIAG
8439if test -n "$PRTDIAG"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8441$as_echo "$PRTDIAG" >&6; }
8442else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
8445fi
8446
8447
8448 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`
8449 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8450 case $cputype in
8451 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8452 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8453 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8454 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8455 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8456 *cypress*) ax_gcc_arch=cypress ;;
8457 esac ;;
8458
8459 alphaev5) ax_gcc_arch=ev5 ;;
8460 alphaev56) ax_gcc_arch=ev56 ;;
8461 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8462 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8463 alphaev6) ax_gcc_arch=ev6 ;;
8464 alphaev67) ax_gcc_arch=ev67 ;;
8465 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8466 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8467 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8468 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8469
8470 powerpc*)
8471 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`
8472 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8473 case $cputype in
8474 *750*) ax_gcc_arch="750 G3" ;;
8475 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8476 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8477 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8478 *970*) ax_gcc_arch="970 G5 power4";;
8479 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8480 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8481 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8482 *) ax_gcc_arch=$cputype ;;
8483 esac
8484 ax_gcc_arch="$ax_gcc_arch powerpc"
8485 ;;
8486esac
8487fi # not cross-compiling
8488fi # guess arch
8489
8490if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8491for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008492 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008493 flags="-mtune=$arch"
8494 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8495 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8496 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8497 else
8498 flags="-march=$arch -mcpu=$arch -m$arch"
8499 fi
8500 for flag in $flags; do
8501 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8503$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8504if eval \${$as_CACHEVAR+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506else
8507
8508 ax_check_save_flags=$CFLAGS
8509 CFLAGS="$CFLAGS $flag"
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h. */
8512
8513int
8514main ()
8515{
8516
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522 eval "$as_CACHEVAR=yes"
8523else
8524 eval "$as_CACHEVAR=no"
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 CFLAGS=$ax_check_save_flags
8528fi
8529eval ac_res=\$$as_CACHEVAR
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8531$as_echo "$ac_res" >&6; }
8532if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8533 ax_cv_gcc_archflag=$flag; break
8534else
8535 :
8536fi
8537
8538 done
8539 test "x$ax_cv_gcc_archflag" = xunknown || break
8540done
8541fi
8542
8543fi # $GCC=yes
8544
8545fi
8546
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8548$as_echo_n "checking for gcc architecture flag... " >&6; }
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8550$as_echo "$ax_cv_gcc_archflag" >&6; }
8551if test "x$ax_cv_gcc_archflag" = xunknown; then
8552 :
8553else
8554 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8555fi
8556
8557
8558
cristy73bd4a52010-10-05 11:24:23 +00008559if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8562set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008565if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008566 $as_echo_n "(cached) " >&6
8567else
8568 case $PKG_CONFIG in
8569 [\\/]* | ?:[\\/]*)
8570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8571 ;;
8572 *)
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585 done
8586IFS=$as_save_IFS
8587
8588 ;;
8589esac
8590fi
8591PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8592if test -n "$PKG_CONFIG"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8594$as_echo "$PKG_CONFIG" >&6; }
8595else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598fi
8599
8600
8601fi
8602if test -z "$ac_cv_path_PKG_CONFIG"; then
8603 ac_pt_PKG_CONFIG=$PKG_CONFIG
8604 # Extract the first word of "pkg-config", so it can be a program name with args.
8605set dummy pkg-config; ac_word=$2
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008608if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008609 $as_echo_n "(cached) " >&6
8610else
8611 case $ac_pt_PKG_CONFIG in
8612 [\\/]* | ?:[\\/]*)
8613 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8614 ;;
8615 *)
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008623 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627done
8628 done
8629IFS=$as_save_IFS
8630
8631 ;;
8632esac
8633fi
8634ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8635if test -n "$ac_pt_PKG_CONFIG"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8637$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8638else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
8641fi
8642
8643 if test "x$ac_pt_PKG_CONFIG" = x; then
8644 PKG_CONFIG=""
8645 else
8646 case $cross_compiling:$ac_tool_warned in
8647yes:)
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8650ac_tool_warned=yes ;;
8651esac
8652 PKG_CONFIG=$ac_pt_PKG_CONFIG
8653 fi
8654else
8655 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8656fi
8657
8658fi
8659if test -n "$PKG_CONFIG"; then
8660 _pkg_min_version=0.9.0
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8662$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8663 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8665$as_echo "yes" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
8669 PKG_CONFIG=""
8670 fi
8671
8672fi
cristy3ed852e2009-09-05 21:47:34 +00008673
8674#
cristy3ed852e2009-09-05 21:47:34 +00008675# Enable run-time checking.
8676#
8677# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008678if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008679 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8680else
8681 enable_bounds_checking='no'
8682fi
8683
8684
8685if test "$enable_bounds_checking" = yes; then
8686
cristy8b350f62009-11-15 23:12:43 +00008687$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008688
8689fi
8690
8691#
8692# Tests for Windows
8693#
8694
8695
8696
8697GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008698native_win32_build='no'
8699cygwin_build='no'
8700case "${host_os}" in
8701 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008702 cygwin_build='yes'
8703 GDI32_LIBS='-lgdi32'
8704 ;;
8705 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008706 native_win32_build='yes'
8707 GDI32_LIBS='-lgdi32'
8708 ;;
8709esac
8710if test "${GDI32_LIBS}x" != 'x'; then
8711
cristy8b350f62009-11-15 23:12:43 +00008712$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008713
8714fi
8715
cristy73bd4a52010-10-05 11:24:23 +00008716 if test "${GDI32_LIBS}x" != 'x' ; then
8717 WINGDI32_DELEGATE_TRUE=
8718 WINGDI32_DELEGATE_FALSE='#'
8719else
8720 WINGDI32_DELEGATE_TRUE='#'
8721 WINGDI32_DELEGATE_FALSE=
8722fi
8723
8724 if test "${native_win32_build}" = 'yes' ; then
8725 WIN32_NATIVE_BUILD_TRUE=
8726 WIN32_NATIVE_BUILD_FALSE='#'
8727else
8728 WIN32_NATIVE_BUILD_TRUE='#'
8729 WIN32_NATIVE_BUILD_FALSE=
8730fi
8731
8732 if test "${cygwin_build}" = 'yes' ; then
8733 CYGWIN_BUILD_TRUE=
8734 CYGWIN_BUILD_FALSE='#'
8735else
8736 CYGWIN_BUILD_TRUE='#'
8737 CYGWIN_BUILD_FALSE=
8738fi
8739
8740 if test "x${CC}" = 'xcl.exe' ; then
8741 USING_CL_TRUE=
8742 USING_CL_FALSE='#'
8743else
8744 USING_CL_TRUE='#'
8745 USING_CL_FALSE=
8746fi
8747
cristy3ed852e2009-09-05 21:47:34 +00008748
8749WinPathScript="${srcdirfull}/winpath.sh"
8750
8751
8752#
8753# Compiler flags tweaks
8754#
8755if test "${GCC}" != "yes"; then
8756 case "${host}" in
8757 *-*-hpux* )
8758 # aCC: HP ANSI C++ B3910B A.03.34
8759 CFLAGS="${CFLAGS} -Wp,-H30000"
8760 if test -n "${CXXFLAGS}"; then
8761 CXXFLAGS='-AA'
8762 else
8763 CXXFLAGS="${CXXFLAGS} -AA"
8764 fi
8765 ;;
8766 *-dec-osf5.* )
8767 # Compaq alphaev68-dec-osf5.1 compiler
8768 if test -n "${CXXFLAGS}"; then
8769 CXXFLAGS='-std strict_ansi -noimplicit_include'
8770 else
8771 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8772 fi
8773 esac
8774fi
8775
8776# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008778$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008779if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008780 $as_echo_n "(cached) " >&6
8781else
8782
8783im_cv_ld_lazyload='none'
8784case "${host}" in
8785 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8786 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8787 im_cv_ld_lazyload='-Wl,-zlazyload'
8788 fi
8789 ;;
8790esac
8791
8792fi
cristy8b350f62009-11-15 23:12:43 +00008793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008794$as_echo "$im_cv_ld_lazyload" >&6; }
8795if test "${im_cv_ld_lazyload}" != 'none' ; then
8796 if test -z "${LDFLAGS}" ; then
8797 LDFLAGS="${im_cv_ld_lazyload}"
8798 else
8799 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8800 fi
8801fi
8802
8803case "$host" in
8804*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008805 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008806if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008807 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8808else
8809 build_osxuniversal=no
8810fi
8811
8812
8813 if test "${build_osxuniversal}" != no ; then
8814 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008815 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008816Please re-run configure with these options:
8817 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008818 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008819 fi
8820 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8821 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8822 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8823 fi
8824 ;;
8825esac
8826
cristy0151ae12011-10-28 16:32:29 +00008827#
8828# ARCH specific include directory
8829#
8830
cristy670aa3c2011-11-03 00:54:00 +00008831# Check whether --with-includearch-dir was given.
8832if test "${with_includearch_dir+set}" = set; then :
8833 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008834else
cristy670aa3c2011-11-03 00:54:00 +00008835 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008836fi
8837
8838
cristy670aa3c2011-11-03 00:54:00 +00008839eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008840
cristy0151ae12011-10-28 16:32:29 +00008841
8842#
8843# ARCH specific configuration directory
8844#
8845
cristy670aa3c2011-11-03 00:54:00 +00008846# Check whether --with-sharearch-dir was given.
8847if test "${with_sharearch_dir+set}" = set; then :
8848 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008849else
cristy408ebcd2011-11-14 01:36:57 +00008850 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008851fi
8852
8853
cristy670aa3c2011-11-03 00:54:00 +00008854eval "eval SHAREARCH_DIR=$sharearch_dir"
8855SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008856
cristy0151ae12011-10-28 16:32:29 +00008857
8858#
cristy3ed852e2009-09-05 21:47:34 +00008859# Enable support for threads
8860
8861# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008862if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008863 withval=$with_threads; with_threads=$withval
8864else
8865 with_threads='yes'
8866fi
8867
8868
8869have_threads=no
8870if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008871
8872
cristy73bd4a52010-10-05 11:24:23 +00008873ac_ext=c
8874ac_cpp='$CPP $CPPFLAGS'
8875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878
8879ax_pthread_ok=no
8880
8881# We used to check for pthread.h first, but this fails if pthread.h
8882# requires special compiler flags (e.g. on True64 or Sequent).
8883# It gets checked for in the link test anyway.
8884
8885# First of all, check if the user has set any of the PTHREAD_LIBS,
8886# etcetera environment variables, and if threads linking works using
8887# them:
8888if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8889 save_CFLAGS="$CFLAGS"
8890 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8891 save_LIBS="$LIBS"
8892 LIBS="$PTHREAD_LIBS $LIBS"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8894$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h. */
8897
8898/* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901#ifdef __cplusplus
8902extern "C"
8903#endif
8904char pthread_join ();
8905int
8906main ()
8907{
8908return pthread_join ();
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_link "$LINENO"; then :
8914 ax_pthread_ok=yes
8915fi
8916rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8919$as_echo "$ax_pthread_ok" >&6; }
8920 if test x"$ax_pthread_ok" = xno; then
8921 PTHREAD_LIBS=""
8922 PTHREAD_CFLAGS=""
8923 fi
8924 LIBS="$save_LIBS"
8925 CFLAGS="$save_CFLAGS"
8926fi
8927
8928# We must check for the threads library under a number of different
8929# names; the ordering is very important because some systems
8930# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8931# libraries is broken (non-POSIX).
8932
8933# Create a list of thread flags to try. Items starting with a "-" are
8934# C compiler flags, and other items are library names, except for "none"
8935# which indicates that we try without any flags at all, and "pthread-config"
8936# which is a program returning the flags for the Pth emulation library.
8937
cristy18307f12011-12-30 01:20:16 +00008938ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008939
8940# The ordering *is* (sometimes) important. Some notes on the
8941# individual items follow:
8942
8943# pthreads: AIX (must check this before -lpthread)
8944# none: in case threads are in libc; should be tried before -Kthread and
8945# other compiler flags to prevent continual compiler warnings
8946# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8947# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8948# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8949# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8950# -pthreads: Solaris/gcc
8951# -mthreads: Mingw32/gcc, Lynx/gcc
8952# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8953# doesn't hurt to check since this sometimes defines pthreads too;
8954# also defines -D_REENTRANT)
8955# ... -mt is also the pthreads flag for HP/aCC
8956# pthread: Linux, etcetera
8957# --thread-safe: KAI C++
8958# pthread-config: use pthread-config program (for GNU Pth library)
8959
8960case "${host_cpu}-${host_os}" in
8961 *solaris*)
8962
8963 # On Solaris (at least, for some versions), libc contains stubbed
8964 # (non-functional) versions of the pthreads routines, so link-based
8965 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8966 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8967 # a function called by this macro, so we could check for that, but
8968 # who knows whether they'll stub that too in a future libc.) So,
8969 # we'll just look for -pthreads and -lpthread first:
8970
8971 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8972 ;;
8973
cristya316db12011-10-24 00:49:45 +00008974 *-darwin*)
8975 ax_pthread_flags="-pthread $ax_pthread_flags"
8976 ;;
cristy73bd4a52010-10-05 11:24:23 +00008977esac
8978
8979if test x"$ax_pthread_ok" = xno; then
8980for flag in $ax_pthread_flags; do
8981
8982 case $flag in
8983 none)
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8985$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8986 ;;
8987
8988 -*)
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8990$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8991 PTHREAD_CFLAGS="$flag"
8992 ;;
8993
cristya316db12011-10-24 00:49:45 +00008994 pthread-config)
8995 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008996set dummy pthread-config; ac_word=$2
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008999if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009000 $as_echo_n "(cached) " >&6
9001else
9002 if test -n "$ax_pthread_config"; then
9003 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9004else
9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006for as_dir in $PATH
9007do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009012 ac_cv_prog_ax_pthread_config="yes"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9015 fi
9016done
9017 done
9018IFS=$as_save_IFS
9019
9020 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9021fi
9022fi
9023ax_pthread_config=$ac_cv_prog_ax_pthread_config
9024if test -n "$ax_pthread_config"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9026$as_echo "$ax_pthread_config" >&6; }
9027else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
9030fi
9031
9032
cristya316db12011-10-24 00:49:45 +00009033 if test x"$ax_pthread_config" = xno; then continue; fi
9034 PTHREAD_CFLAGS="`pthread-config --cflags`"
9035 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9036 ;;
cristy73bd4a52010-10-05 11:24:23 +00009037
9038 *)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9040$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9041 PTHREAD_LIBS="-l$flag"
9042 ;;
9043 esac
9044
9045 save_LIBS="$LIBS"
9046 save_CFLAGS="$CFLAGS"
9047 LIBS="$PTHREAD_LIBS $LIBS"
9048 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9049
9050 # Check for various functions. We must include pthread.h,
9051 # since some functions may be macros. (On the Sequent, we
9052 # need a special flag -Kthread to make this header compile.)
9053 # We check for pthread_join because it is in -lpthread on IRIX
9054 # while pthread_create is in libc. We check for pthread_attr_init
9055 # due to DEC craziness with -lpthreads. We check for
9056 # pthread_cleanup_push because it is one of the few pthread
9057 # functions on Solaris that doesn't have a non-functional libc stub.
9058 # We try pthread_create on general principles.
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h. */
9061#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009062 static void routine(void *a) { a = 0; }
9063 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009064int
9065main ()
9066{
9067pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009068 pthread_create(&th, 0, start_routine, 0);
9069 pthread_join(th, 0);
9070 pthread_attr_init(&attr);
9071 pthread_cleanup_push(routine, 0);
9072 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009073 ;
9074 return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078 ax_pthread_ok=yes
9079fi
9080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082
9083 LIBS="$save_LIBS"
9084 CFLAGS="$save_CFLAGS"
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9087$as_echo "$ax_pthread_ok" >&6; }
9088 if test "x$ax_pthread_ok" = xyes; then
9089 break;
9090 fi
9091
9092 PTHREAD_LIBS=""
9093 PTHREAD_CFLAGS=""
9094done
9095fi
9096
9097# Various other checks:
9098if test "x$ax_pthread_ok" = xyes; then
9099 save_LIBS="$LIBS"
9100 LIBS="$PTHREAD_LIBS $LIBS"
9101 save_CFLAGS="$CFLAGS"
9102 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9103
9104 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009106$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009107 attr_name=unknown
9108 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009110/* end confdefs.h. */
9111#include <pthread.h>
9112int
9113main ()
9114{
cristya316db12011-10-24 00:49:45 +00009115int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009116 ;
9117 return 0;
9118}
9119_ACEOF
9120if ac_fn_c_try_link "$LINENO"; then :
9121 attr_name=$attr; break
9122fi
9123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009125 done
cristy73bd4a52010-10-05 11:24:23 +00009126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9127$as_echo "$attr_name" >&6; }
9128 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9129
9130cat >>confdefs.h <<_ACEOF
9131#define PTHREAD_CREATE_JOINABLE $attr_name
9132_ACEOF
9133
9134 fi
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9137$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9138 flag=no
9139 case "${host_cpu}-${host_os}" in
9140 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9141 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9142 esac
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9144$as_echo "${flag}" >&6; }
9145 if test "x$flag" != xno; then
9146 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9147 fi
9148
cristya316db12011-10-24 00:49:45 +00009149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9150$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9151if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153else
9154
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h. */
9157
9158 #include <pthread.h>
9159int
9160main ()
9161{
9162int i = PTHREAD_PRIO_INHERIT;
9163 ;
9164 return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168 ax_cv_PTHREAD_PRIO_INHERIT=yes
9169else
9170 ax_cv_PTHREAD_PRIO_INHERIT=no
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174
9175fi
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9177$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9178 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9179
9180$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9181
9182fi
9183
cristy73bd4a52010-10-05 11:24:23 +00009184 LIBS="$save_LIBS"
9185 CFLAGS="$save_CFLAGS"
9186
9187 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009188 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009189 for ac_prog in xlc_r cc_r
9190do
9191 # Extract the first word of "$ac_prog", so it can be a program name with args.
9192set dummy $ac_prog; ac_word=$2
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009195if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009196 $as_echo_n "(cached) " >&6
9197else
9198 if test -n "$PTHREAD_CC"; then
9199 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9200else
9201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202for as_dir in $PATH
9203do
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009208 ac_cv_prog_PTHREAD_CC="$ac_prog"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9211 fi
9212done
9213 done
9214IFS=$as_save_IFS
9215
9216fi
9217fi
9218PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9219if test -n "$PTHREAD_CC"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9221$as_echo "$PTHREAD_CC" >&6; }
9222else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224$as_echo "no" >&6; }
9225fi
9226
9227
9228 test -n "$PTHREAD_CC" && break
9229done
9230test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9231
9232 else
9233 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009234 fi
cristy73bd4a52010-10-05 11:24:23 +00009235else
9236 PTHREAD_CC="$CC"
9237fi
9238
9239
9240
9241
9242
9243# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9244if test x"$ax_pthread_ok" = xyes; then
9245
9246$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9247
9248 :
9249else
9250 ax_pthread_ok=no
9251
9252fi
9253ac_ext=c
9254ac_cpp='$CPP $CPPFLAGS'
9255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259
cristy7acf8fb2010-09-23 19:58:53 +00009260 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009261 have_threads=yes
9262 DEF_THREAD="$PTHREAD_CFLAGS"
9263 CFLAGS="$CFLAGS $DEF_THREAD"
9264 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9265 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009266 { $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 +00009267$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9268 CC="$PTHREAD_CC"
9269 fi
cristy55bf91c2010-09-24 00:29:41 +00009270
9271$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9272
cristy3ed852e2009-09-05 21:47:34 +00009273 fi
9274fi
9275
9276# Enable support for OpenMP
9277if test "$have_threads" != 'yes'; then
9278 ac_cv_prog_c_openmp=unsupported
9279fi
9280
9281 OPENMP_CFLAGS=
9282 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009283if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 enableval=$enable_openmp;
9285fi
9286
9287 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009289$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009290if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009291 $as_echo_n "(cached) " >&6
9292else
cristy8b350f62009-11-15 23:12:43 +00009293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009295
9296#ifndef _OPENMP
9297 choke me
9298#endif
9299#include <omp.h>
9300int main () { return omp_get_num_threads (); }
9301
9302_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009303if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_cv_prog_c_openmp='none needed'
9305else
cristy8b350f62009-11-15 23:12:43 +00009306 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009307 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9308 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009309 ac_save_CFLAGS=$CFLAGS
9310 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009313
9314#ifndef _OPENMP
9315 choke me
9316#endif
9317#include <omp.h>
9318int main () { return omp_get_num_threads (); }
9319
9320_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009322 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009323fi
cristy8b350f62009-11-15 23:12:43 +00009324rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009326 CFLAGS=$ac_save_CFLAGS
9327 if test "$ac_cv_prog_c_openmp" != unsupported; then
9328 break
9329 fi
9330 done
9331fi
cristy8b350f62009-11-15 23:12:43 +00009332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009334fi
cristy8b350f62009-11-15 23:12:43 +00009335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo "$ac_cv_prog_c_openmp" >&6; }
9337 case $ac_cv_prog_c_openmp in #(
9338 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009339 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009340 *)
cristy8b350f62009-11-15 23:12:43 +00009341 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009342 esac
9343 fi
9344
9345
9346CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9347MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9348
cristy391f1ce2010-09-09 17:23:28 +00009349if test "$enable_openmp" != no; then
9350 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9351 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9352 fi
9353fi
cristy3ed852e2009-09-05 21:47:34 +00009354
cristy736173a2009-09-20 21:18:22 +00009355# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009356
9357
cristy73bd4a52010-10-05 11:24:23 +00009358ac_ext=c
9359ac_cpp='$CPP $CPPFLAGS'
9360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362ac_compiler_gnu=$ac_cv_c_compiler_gnu
9363
9364ax_pthread_ok=no
9365
9366# We used to check for pthread.h first, but this fails if pthread.h
9367# requires special compiler flags (e.g. on True64 or Sequent).
9368# It gets checked for in the link test anyway.
9369
9370# First of all, check if the user has set any of the PTHREAD_LIBS,
9371# etcetera environment variables, and if threads linking works using
9372# them:
9373if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9374 save_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9376 save_LIBS="$LIBS"
9377 LIBS="$PTHREAD_LIBS $LIBS"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9379$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
9382
9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386#ifdef __cplusplus
9387extern "C"
9388#endif
9389char pthread_join ();
9390int
9391main ()
9392{
9393return pthread_join ();
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399 ax_pthread_ok=yes
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9404$as_echo "$ax_pthread_ok" >&6; }
9405 if test x"$ax_pthread_ok" = xno; then
9406 PTHREAD_LIBS=""
9407 PTHREAD_CFLAGS=""
9408 fi
9409 LIBS="$save_LIBS"
9410 CFLAGS="$save_CFLAGS"
9411fi
9412
9413# We must check for the threads library under a number of different
9414# names; the ordering is very important because some systems
9415# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9416# libraries is broken (non-POSIX).
9417
9418# Create a list of thread flags to try. Items starting with a "-" are
9419# C compiler flags, and other items are library names, except for "none"
9420# which indicates that we try without any flags at all, and "pthread-config"
9421# which is a program returning the flags for the Pth emulation library.
9422
cristy18307f12011-12-30 01:20:16 +00009423ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009424
9425# The ordering *is* (sometimes) important. Some notes on the
9426# individual items follow:
9427
9428# pthreads: AIX (must check this before -lpthread)
9429# none: in case threads are in libc; should be tried before -Kthread and
9430# other compiler flags to prevent continual compiler warnings
9431# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9432# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9433# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9434# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9435# -pthreads: Solaris/gcc
9436# -mthreads: Mingw32/gcc, Lynx/gcc
9437# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9438# doesn't hurt to check since this sometimes defines pthreads too;
9439# also defines -D_REENTRANT)
9440# ... -mt is also the pthreads flag for HP/aCC
9441# pthread: Linux, etcetera
9442# --thread-safe: KAI C++
9443# pthread-config: use pthread-config program (for GNU Pth library)
9444
9445case "${host_cpu}-${host_os}" in
9446 *solaris*)
9447
9448 # On Solaris (at least, for some versions), libc contains stubbed
9449 # (non-functional) versions of the pthreads routines, so link-based
9450 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9451 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9452 # a function called by this macro, so we could check for that, but
9453 # who knows whether they'll stub that too in a future libc.) So,
9454 # we'll just look for -pthreads and -lpthread first:
9455
9456 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9457 ;;
9458
cristya316db12011-10-24 00:49:45 +00009459 *-darwin*)
9460 ax_pthread_flags="-pthread $ax_pthread_flags"
9461 ;;
cristy73bd4a52010-10-05 11:24:23 +00009462esac
9463
9464if test x"$ax_pthread_ok" = xno; then
9465for flag in $ax_pthread_flags; do
9466
9467 case $flag in
9468 none)
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9470$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9471 ;;
9472
9473 -*)
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9475$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9476 PTHREAD_CFLAGS="$flag"
9477 ;;
9478
cristya316db12011-10-24 00:49:45 +00009479 pthread-config)
9480 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009481set dummy pthread-config; ac_word=$2
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009484if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009485 $as_echo_n "(cached) " >&6
9486else
9487 if test -n "$ax_pthread_config"; then
9488 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009497 ac_cv_prog_ax_pthread_config="yes"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502 done
9503IFS=$as_save_IFS
9504
9505 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9506fi
9507fi
9508ax_pthread_config=$ac_cv_prog_ax_pthread_config
9509if test -n "$ax_pthread_config"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9511$as_echo "$ax_pthread_config" >&6; }
9512else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514$as_echo "no" >&6; }
9515fi
9516
9517
cristya316db12011-10-24 00:49:45 +00009518 if test x"$ax_pthread_config" = xno; then continue; fi
9519 PTHREAD_CFLAGS="`pthread-config --cflags`"
9520 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9521 ;;
cristy73bd4a52010-10-05 11:24:23 +00009522
9523 *)
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9525$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9526 PTHREAD_LIBS="-l$flag"
9527 ;;
9528 esac
9529
9530 save_LIBS="$LIBS"
9531 save_CFLAGS="$CFLAGS"
9532 LIBS="$PTHREAD_LIBS $LIBS"
9533 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9534
9535 # Check for various functions. We must include pthread.h,
9536 # since some functions may be macros. (On the Sequent, we
9537 # need a special flag -Kthread to make this header compile.)
9538 # We check for pthread_join because it is in -lpthread on IRIX
9539 # while pthread_create is in libc. We check for pthread_attr_init
9540 # due to DEC craziness with -lpthreads. We check for
9541 # pthread_cleanup_push because it is one of the few pthread
9542 # functions on Solaris that doesn't have a non-functional libc stub.
9543 # We try pthread_create on general principles.
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h. */
9546#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009547 static void routine(void *a) { a = 0; }
9548 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009549int
9550main ()
9551{
9552pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009553 pthread_create(&th, 0, start_routine, 0);
9554 pthread_join(th, 0);
9555 pthread_attr_init(&attr);
9556 pthread_cleanup_push(routine, 0);
9557 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009558 ;
9559 return 0;
9560}
9561_ACEOF
9562if ac_fn_c_try_link "$LINENO"; then :
9563 ax_pthread_ok=yes
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567
9568 LIBS="$save_LIBS"
9569 CFLAGS="$save_CFLAGS"
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9572$as_echo "$ax_pthread_ok" >&6; }
9573 if test "x$ax_pthread_ok" = xyes; then
9574 break;
9575 fi
9576
9577 PTHREAD_LIBS=""
9578 PTHREAD_CFLAGS=""
9579done
9580fi
9581
9582# Various other checks:
9583if test "x$ax_pthread_ok" = xyes; then
9584 save_LIBS="$LIBS"
9585 LIBS="$PTHREAD_LIBS $LIBS"
9586 save_CFLAGS="$CFLAGS"
9587 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9588
9589 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009591$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009592 attr_name=unknown
9593 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009595/* end confdefs.h. */
9596#include <pthread.h>
9597int
9598main ()
9599{
cristya316db12011-10-24 00:49:45 +00009600int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009601 ;
9602 return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606 attr_name=$attr; break
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009610 done
cristy73bd4a52010-10-05 11:24:23 +00009611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9612$as_echo "$attr_name" >&6; }
9613 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9614
9615cat >>confdefs.h <<_ACEOF
9616#define PTHREAD_CREATE_JOINABLE $attr_name
9617_ACEOF
9618
9619 fi
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9622$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9623 flag=no
9624 case "${host_cpu}-${host_os}" in
9625 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9626 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9627 esac
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9629$as_echo "${flag}" >&6; }
9630 if test "x$flag" != xno; then
9631 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9632 fi
9633
cristya316db12011-10-24 00:49:45 +00009634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9635$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9636if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h. */
9642
9643 #include <pthread.h>
9644int
9645main ()
9646{
9647int i = PTHREAD_PRIO_INHERIT;
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653 ax_cv_PTHREAD_PRIO_INHERIT=yes
9654else
9655 ax_cv_PTHREAD_PRIO_INHERIT=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9662$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9663 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9664
9665$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9666
9667fi
9668
cristy73bd4a52010-10-05 11:24:23 +00009669 LIBS="$save_LIBS"
9670 CFLAGS="$save_CFLAGS"
9671
9672 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009673 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009674 for ac_prog in xlc_r cc_r
9675do
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677set dummy $ac_prog; ac_word=$2
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009680if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009681 $as_echo_n "(cached) " >&6
9682else
9683 if test -n "$PTHREAD_CC"; then
9684 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9685else
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009693 ac_cv_prog_PTHREAD_CC="$ac_prog"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697done
9698 done
9699IFS=$as_save_IFS
9700
9701fi
9702fi
9703PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9704if test -n "$PTHREAD_CC"; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9706$as_echo "$PTHREAD_CC" >&6; }
9707else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
9710fi
9711
9712
9713 test -n "$PTHREAD_CC" && break
9714done
9715test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9716
9717 else
9718 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009719 fi
cristy73bd4a52010-10-05 11:24:23 +00009720else
9721 PTHREAD_CC="$CC"
9722fi
9723
9724
9725
9726
9727
9728# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9729if test x"$ax_pthread_ok" = xyes; then
9730
9731$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9732
9733 :
9734else
9735 ax_pthread_ok=no
9736
9737fi
9738ac_ext=c
9739ac_cpp='$CPP $CPPFLAGS'
9740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742ac_compiler_gnu=$ac_cv_c_compiler_gnu
9743
9744
9745
9746# Check whether --enable-opencl was given.
9747if test "${enable_opencl+set}" = set; then :
9748 enableval=$enable_opencl; disable_opencl=$enableval
9749else
9750 disable_opencl='yes'
9751fi
9752
9753
9754if test "$disable_opencl" = 'yes'; then
9755 ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
cristy568c2d42012-07-27 01:41:20 +00009761 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009762 if test X$ax_compiler_ms = Xno; then :
9763 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9764fi
9765
9766 ax_save_CPPFLAGS=$CPPFLAGS
9767 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9768 for ac_header in CL/cl.h OpenCL/cl.h
9769do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009772if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009773 cat >>confdefs.h <<_ACEOF
9774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9775_ACEOF
9776
9777fi
9778
9779done
9780
9781 CPPFLAGS=$ax_save_CPPFLAGS
9782
9783 for ac_header in windows.h
9784do :
9785 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009786if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009787 cat >>confdefs.h <<_ACEOF
9788#define HAVE_WINDOWS_H 1
9789_ACEOF
9790
9791fi
9792
9793done
9794
9795
9796
9797
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9799$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009800if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009801 $as_echo_n "(cached) " >&6
9802else
9803 ax_cv_check_cl_libcl=no
9804 case $host_cpu in
9805 x86_64) ax_check_cl_libdir=lib64 ;;
9806 *) ax_check_cl_libdir=lib ;;
9807 esac
9808 ax_save_CPPFLAGS=$CPPFLAGS
9809 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9810 ax_save_LIBS=$LIBS
9811 LIBS=""
9812 ax_check_libs="-lOpenCL -lCL -lclparser"
9813 for ax_lib in $ax_check_libs; do
9814 if test X$ax_compiler_ms = Xyes; then :
9815 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9816else
9817 ax_try_lib=$ax_lib
9818fi
9819 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h. */
9822
9823 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9824 # include <windows.h>
9825 # endif
9826 # ifdef HAVE_CL_CL_H
9827 # include <CL/cl.h>
9828 # elif defined(HAVE_OPENCL_CL_H)
9829 # include <OpenCL/cl.h>
9830 # else
9831 # error no CL.h
9832 # endif
9833int
9834main ()
9835{
9836clCreateContextFromType(0,0,0,0,0)
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"; then :
9842 ax_cv_check_cl_libcl=$ax_try_lib; break
9843else
9844 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"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h. */
9847
9848 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9849 # include <windows.h>
9850 # endif
9851 # ifdef HAVE_CL_CL_H
9852 # include <CL/cl.h>
9853 # elif defined(HAVE_OPENCL_CL_H)
9854 # include <OpenCL/cl.h>
9855 # else
9856 # error no CL.h
9857 # endif
9858int
9859main ()
9860{
9861clCreateContextFromType(0,0,0,0,0)
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9868else
cristy78c5a0c2010-12-04 20:00:59 +00009869 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 +00009870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h. */
9872
9873 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9874 # include <windows.h>
9875 # endif
9876 # ifdef HAVE_CL_CL_H
9877 # include <CL/cl.h>
9878 # elif defined(HAVE_OPENCL_CL_H)
9879 # include <OpenCL/cl.h>
9880 # else
9881 # error no CL.h
9882 # endif
9883int
9884main ()
9885{
9886clCreateContextFromType(0,0,0,0,0)
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891if ac_fn_c_try_link "$LINENO"; then :
9892 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9893fi
9894rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896fi
9897rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 done
9903
cristyc3f8b8e2011-12-22 14:55:16 +00009904 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009905 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h. */
9908
9909 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9910 # include <windows.h>
9911 # endif
9912 # ifdef HAVE_CL_CL_H
9913 # include <CL/cl.h>
9914 # elif defined(HAVE_OPENCL_CL_H)
9915 # include <OpenCL/cl.h>
9916 # else
9917 # error no CL.h
9918 # endif
9919int
9920main ()
9921{
9922clCreateContextFromType(0,0,0,0,0)
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927if ac_fn_c_try_link "$LINENO"; then :
9928 ax_cv_check_cl_libcl=$LIBS
9929fi
9930rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932fi
9933
9934 LIBS=$ax_save_LIBS
9935 CPPFLAGS=$ax_save_CPPFLAGS
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9938$as_echo "$ax_cv_check_cl_libcl" >&6; }
9939
9940 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9941 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9942else
9943 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9944$as_echo "#define _OPENCL 1" >>confdefs.h
9945
9946fi
9947 ac_ext=c
9948ac_cpp='$CPP $CPPFLAGS'
9949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9951ac_compiler_gnu=$ac_cv_c_compiler_gnu
9952
9953fi
9954
9955
9956
9957
cristyc7083c12009-10-14 03:16:55 +00009958CFLAGS="$CL_CFLAGS $CFLAGS"
9959LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009960
cristy391f1ce2010-09-09 17:23:28 +00009961if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009962 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009963 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9964 fi
cristyfd9dcd42010-08-08 18:07:02 +00009965fi
cristy2e8b51d2009-10-17 18:26:15 +00009966
cristy3ed852e2009-09-05 21:47:34 +00009967########
9968#
9969# Check for large file support
9970#
9971########
9972# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009973if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009974 enableval=$enable_largefile;
9975fi
9976
9977if test "$enable_largefile" != no; then
9978
cristy8b350f62009-11-15 23:12:43 +00009979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009980$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009981if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009982 $as_echo_n "(cached) " >&6
9983else
9984 ac_cv_sys_largefile_CC=no
9985 if test "$GCC" != yes; then
9986 ac_save_CC=$CC
9987 while :; do
9988 # IRIX 6.2 and later do not support large files by default,
9989 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009991/* end confdefs.h. */
9992#include <sys/types.h>
9993 /* Check that off_t can represent 2**63 - 1 correctly.
9994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9995 since some C++ compilers masquerading as C compilers
9996 incorrectly reject 9223372036854775807. */
9997#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9999 && LARGE_OFF_T % 2147483647 == 1)
10000 ? 1 : -1];
10001int
10002main ()
10003{
10004
10005 ;
10006 return 0;
10007}
10008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010009 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010010 break
cristy3ed852e2009-09-05 21:47:34 +000010011fi
cristy3ed852e2009-09-05 21:47:34 +000010012rm -f core conftest.err conftest.$ac_objext
10013 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010014 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010015 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010016fi
cristy3ed852e2009-09-05 21:47:34 +000010017rm -f core conftest.err conftest.$ac_objext
10018 break
10019 done
10020 CC=$ac_save_CC
10021 rm -f conftest.$ac_ext
10022 fi
10023fi
cristy8b350f62009-11-15 23:12:43 +000010024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10026 if test "$ac_cv_sys_largefile_CC" != no; then
10027 CC=$CC$ac_cv_sys_largefile_CC
10028 fi
10029
cristy8b350f62009-11-15 23:12:43 +000010030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010031$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010032if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010033 $as_echo_n "(cached) " >&6
10034else
10035 while :; do
cristy8b350f62009-11-15 23:12:43 +000010036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010037/* end confdefs.h. */
10038#include <sys/types.h>
10039 /* Check that off_t can represent 2**63 - 1 correctly.
10040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10041 since some C++ compilers masquerading as C compilers
10042 incorrectly reject 9223372036854775807. */
10043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10045 && LARGE_OFF_T % 2147483647 == 1)
10046 ? 1 : -1];
10047int
10048main ()
10049{
10050
10051 ;
10052 return 0;
10053}
10054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010055if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010056 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010057fi
cristy3ed852e2009-09-05 21:47:34 +000010058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010060/* end confdefs.h. */
10061#define _FILE_OFFSET_BITS 64
10062#include <sys/types.h>
10063 /* Check that off_t can represent 2**63 - 1 correctly.
10064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10065 since some C++ compilers masquerading as C compilers
10066 incorrectly reject 9223372036854775807. */
10067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10069 && LARGE_OFF_T % 2147483647 == 1)
10070 ? 1 : -1];
10071int
10072main ()
10073{
10074
10075 ;
10076 return 0;
10077}
10078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010079if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010080 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010081fi
cristy3ed852e2009-09-05 21:47:34 +000010082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 ac_cv_sys_file_offset_bits=unknown
10084 break
10085done
10086fi
cristy8b350f62009-11-15 23:12:43 +000010087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010088$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10089case $ac_cv_sys_file_offset_bits in #(
10090 no | unknown) ;;
10091 *)
10092cat >>confdefs.h <<_ACEOF
10093#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10094_ACEOF
10095;;
10096esac
10097rm -rf conftest*
10098 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010100$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010101if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010102 $as_echo_n "(cached) " >&6
10103else
10104 while :; do
cristy8b350f62009-11-15 23:12:43 +000010105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010106/* end confdefs.h. */
10107#include <sys/types.h>
10108 /* Check that off_t can represent 2**63 - 1 correctly.
10109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10110 since some C++ compilers masquerading as C compilers
10111 incorrectly reject 9223372036854775807. */
10112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10114 && LARGE_OFF_T % 2147483647 == 1)
10115 ? 1 : -1];
10116int
10117main ()
10118{
10119
10120 ;
10121 return 0;
10122}
10123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010125 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010126fi
cristy3ed852e2009-09-05 21:47:34 +000010127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010129/* end confdefs.h. */
10130#define _LARGE_FILES 1
10131#include <sys/types.h>
10132 /* Check that off_t can represent 2**63 - 1 correctly.
10133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10134 since some C++ compilers masquerading as C compilers
10135 incorrectly reject 9223372036854775807. */
10136#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10138 && LARGE_OFF_T % 2147483647 == 1)
10139 ? 1 : -1];
10140int
10141main ()
10142{
10143
10144 ;
10145 return 0;
10146}
10147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010148if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010149 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010150fi
cristy3ed852e2009-09-05 21:47:34 +000010151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 ac_cv_sys_large_files=unknown
10153 break
10154done
10155fi
cristy8b350f62009-11-15 23:12:43 +000010156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010157$as_echo "$ac_cv_sys_large_files" >&6; }
10158case $ac_cv_sys_large_files in #(
10159 no | unknown) ;;
10160 *)
10161cat >>confdefs.h <<_ACEOF
10162#define _LARGE_FILES $ac_cv_sys_large_files
10163_ACEOF
10164;;
10165esac
10166rm -rf conftest*
10167 fi
cristy14fefe52012-05-21 00:59:18 +000010168
10169
cristy3ed852e2009-09-05 21:47:34 +000010170fi
10171
cristy8b350f62009-11-15 23:12:43 +000010172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010173$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010174if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 $as_echo_n "(cached) " >&6
10176else
10177 while :; do
cristy8b350f62009-11-15 23:12:43 +000010178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010179/* end confdefs.h. */
10180#include <sys/types.h> /* for off_t */
10181 #include <stdio.h>
10182int
10183main ()
10184{
10185int (*fp) (FILE *, off_t, int) = fseeko;
10186 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10187 ;
10188 return 0;
10189}
10190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010192 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010193fi
cristy8b350f62009-11-15 23:12:43 +000010194rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010197/* end confdefs.h. */
10198#define _LARGEFILE_SOURCE 1
10199#include <sys/types.h> /* for off_t */
10200 #include <stdio.h>
10201int
10202main ()
10203{
10204int (*fp) (FILE *, off_t, int) = fseeko;
10205 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10206 ;
10207 return 0;
10208}
10209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010211 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010212fi
cristy8b350f62009-11-15 23:12:43 +000010213rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010215 ac_cv_sys_largefile_source=unknown
10216 break
10217done
10218fi
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$ac_cv_sys_largefile_source" >&6; }
10221case $ac_cv_sys_largefile_source in #(
10222 no | unknown) ;;
10223 *)
10224cat >>confdefs.h <<_ACEOF
10225#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10226_ACEOF
10227;;
10228esac
10229rm -rf conftest*
10230
10231# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10232# in glibc 2.1.3, but that breaks too many other things.
10233# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10234if test $ac_cv_sys_largefile_source != unknown; then
10235
cristy8b350f62009-11-15 23:12:43 +000010236$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010237
10238fi
10239
10240LFS_CPPFLAGS=''
10241if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010242 case $ac_cv_sys_file_offset_bits in
10243 no)
10244 # nothing to do here as the host supports LFS fine
10245 ;;
10246 unknown)
cristy8b350f62009-11-15 23:12:43 +000010247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010248$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010249 if test "$cross_compiling" = yes; then :
10250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010252as_fn_error $? "cannot run test program while cross compiling
10253See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010254else
cristy8b350f62009-11-15 23:12:43 +000010255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010257#include <unistd.h>
10258 main () {
10259 exit(!(sizeof(off_t) == 8));
10260 }
cristyda16f162011-02-19 23:52:17 +000010261int
10262main ()
10263{
10264
10265 ;
10266 return 0;
10267}
cristy3ed852e2009-09-05 21:47:34 +000010268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010269if ac_fn_c_try_run "$LINENO"; then :
10270 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010271
cristy09b53e12011-10-14 12:47:22 +000010272 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10273$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010274else
cristy09b53e12011-10-14 12:47:22 +000010275 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10276$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010277fi
cristy8b350f62009-11-15 23:12:43 +000010278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10279 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010280fi
10281
cristyc1e0cc12011-09-21 16:41:16 +000010282 ;;
10283 *)
10284 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10285 ;;
10286 esac
cristy3ed852e2009-09-05 21:47:34 +000010287 if test "$ac_cv_sys_large_files" != 'no'; then
10288 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10289 fi
10290 if test "$ac_cv_sys_largefile_source" != 'no'; then
10291 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10292 fi
10293fi
10294
10295
cristy3ed852e2009-09-05 21:47:34 +000010296# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010297enable_dlopen=yes
10298
10299
10300
10301case `pwd` in
10302 *\ * | *\ *)
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10304$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10305esac
10306
10307
10308
cristy99bd5232011-12-07 14:38:20 +000010309macro_version='2.4.2'
10310macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324ltmain="$ac_aux_dir/ltmain.sh"
10325
cristy0c60a692010-11-04 01:09:47 +000010326# Backslashify metacharacters that are still active within
10327# double-quoted strings.
10328sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10329
10330# Same as above, but do not quote variable references.
10331double_quote_subst='s/\(["`\\]\)/\\\1/g'
10332
10333# Sed substitution to delay expansion of an escaped shell variable in a
10334# double_quote_subst'ed string.
10335delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10336
10337# Sed substitution to delay expansion of an escaped single quote.
10338delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10339
10340# Sed substitution to avoid accidental globbing in evaled expressions
10341no_glob_subst='s/\*/\\\*/g'
10342
cristy73bd4a52010-10-05 11:24:23 +000010343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10344$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010345if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010346 $as_echo_n "(cached) " >&6
10347else
10348 if test -n "$NM"; then
10349 # Let the user override the test.
10350 lt_cv_path_NM="$NM"
10351else
10352 lt_nm_to_check="${ac_tool_prefix}nm"
10353 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10354 lt_nm_to_check="$lt_nm_to_check nm"
10355 fi
10356 for lt_tmp_nm in $lt_nm_to_check; do
10357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10358 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10359 IFS="$lt_save_ifs"
10360 test -z "$ac_dir" && ac_dir=.
10361 tmp_nm="$ac_dir/$lt_tmp_nm"
10362 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10363 # Check to see if the nm accepts a BSD-compat flag.
10364 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10365 # nm: unknown option "B" ignored
10366 # Tru64's nm complains that /dev/null is an invalid object file
10367 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10368 */dev/null* | *'Invalid file or object type'*)
10369 lt_cv_path_NM="$tmp_nm -B"
10370 break
10371 ;;
10372 *)
10373 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10374 */dev/null*)
10375 lt_cv_path_NM="$tmp_nm -p"
10376 break
10377 ;;
10378 *)
10379 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10380 continue # so that we can try to find one that supports BSD flags
10381 ;;
10382 esac
10383 ;;
10384 esac
10385 fi
10386 done
10387 IFS="$lt_save_ifs"
10388 done
10389 : ${lt_cv_path_NM=no}
10390fi
10391fi
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10393$as_echo "$lt_cv_path_NM" >&6; }
10394if test "$lt_cv_path_NM" != "no"; then
10395 NM="$lt_cv_path_NM"
10396else
10397 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010398 if test -n "$DUMPBIN"; then :
10399 # Let the user override the test.
10400 else
10401 if test -n "$ac_tool_prefix"; then
10402 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010403 do
10404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10405set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010408if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010409 $as_echo_n "(cached) " >&6
10410else
10411 if test -n "$DUMPBIN"; then
10412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10413else
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426 done
10427IFS=$as_save_IFS
10428
10429fi
10430fi
10431DUMPBIN=$ac_cv_prog_DUMPBIN
10432if test -n "$DUMPBIN"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10434$as_echo "$DUMPBIN" >&6; }
10435else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
10438fi
10439
10440
10441 test -n "$DUMPBIN" && break
10442 done
10443fi
10444if test -z "$DUMPBIN"; then
10445 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010446 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010447do
10448 # Extract the first word of "$ac_prog", so it can be a program name with args.
10449set dummy $ac_prog; ac_word=$2
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010452if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010453 $as_echo_n "(cached) " >&6
10454else
10455 if test -n "$ac_ct_DUMPBIN"; then
10456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10457else
10458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459for as_dir in $PATH
10460do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469done
10470 done
10471IFS=$as_save_IFS
10472
10473fi
10474fi
10475ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10476if test -n "$ac_ct_DUMPBIN"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10478$as_echo "$ac_ct_DUMPBIN" >&6; }
10479else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481$as_echo "no" >&6; }
10482fi
10483
10484
10485 test -n "$ac_ct_DUMPBIN" && break
10486done
10487
10488 if test "x$ac_ct_DUMPBIN" = x; then
10489 DUMPBIN=":"
10490 else
10491 case $cross_compiling:$ac_tool_warned in
10492yes:)
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10495ac_tool_warned=yes ;;
10496esac
10497 DUMPBIN=$ac_ct_DUMPBIN
10498 fi
10499fi
10500
cristy0c60a692010-11-04 01:09:47 +000010501 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10502 *COFF*)
10503 DUMPBIN="$DUMPBIN -symbols"
10504 ;;
10505 *)
10506 DUMPBIN=:
10507 ;;
10508 esac
10509 fi
cristy73bd4a52010-10-05 11:24:23 +000010510
10511 if test "$DUMPBIN" != ":"; then
10512 NM="$DUMPBIN"
10513 fi
10514fi
10515test -z "$NM" && NM=nm
10516
10517
10518
10519
10520
10521
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10523$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010524if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010525 $as_echo_n "(cached) " >&6
10526else
10527 lt_cv_nm_interface="BSD nm"
10528 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010529 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010530 (eval "$ac_compile" 2>conftest.err)
10531 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010532 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010533 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10534 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010535 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010536 cat conftest.out >&5
10537 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10538 lt_cv_nm_interface="MS dumpbin"
10539 fi
10540 rm -f conftest*
10541fi
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10543$as_echo "$lt_cv_nm_interface" >&6; }
10544
10545# find the maximum length of command line arguments
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010548if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010549 $as_echo_n "(cached) " >&6
10550else
10551 i=0
10552 teststring="ABCD"
10553
10554 case $build_os in
10555 msdosdjgpp*)
10556 # On DJGPP, this test can blow up pretty badly due to problems in libc
10557 # (any single argument exceeding 2000 bytes causes a buffer overrun
10558 # during glob expansion). Even if it were fixed, the result of this
10559 # check would be larger than it should be.
10560 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10561 ;;
10562
10563 gnu*)
10564 # Under GNU Hurd, this test is not required because there is
10565 # no limit to the length of command line arguments.
10566 # Libtool will interpret -1 as no limit whatsoever
10567 lt_cv_sys_max_cmd_len=-1;
10568 ;;
10569
10570 cygwin* | mingw* | cegcc*)
10571 # On Win9x/ME, this test blows up -- it succeeds, but takes
10572 # about 5 minutes as the teststring grows exponentially.
10573 # Worse, since 9x/ME are not pre-emptively multitasking,
10574 # you end up with a "frozen" computer, even though with patience
10575 # the test eventually succeeds (with a max line length of 256k).
10576 # Instead, let's just punt: use the minimum linelength reported by
10577 # all of the supported platforms: 8192 (on NT/2K/XP).
10578 lt_cv_sys_max_cmd_len=8192;
10579 ;;
10580
cristy0c60a692010-11-04 01:09:47 +000010581 mint*)
10582 # On MiNT this can take a long time and run out of memory.
10583 lt_cv_sys_max_cmd_len=8192;
10584 ;;
10585
cristy73bd4a52010-10-05 11:24:23 +000010586 amigaos*)
10587 # On AmigaOS with pdksh, this test takes hours, literally.
10588 # So we just punt and use a minimum line length of 8192.
10589 lt_cv_sys_max_cmd_len=8192;
10590 ;;
10591
10592 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10593 # This has been around since 386BSD, at least. Likely further.
10594 if test -x /sbin/sysctl; then
10595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10596 elif test -x /usr/sbin/sysctl; then
10597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10598 else
10599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10600 fi
10601 # And add a safety zone
10602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10604 ;;
10605
10606 interix*)
10607 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10608 lt_cv_sys_max_cmd_len=196608
10609 ;;
10610
cristy99bd5232011-12-07 14:38:20 +000010611 os2*)
10612 # The test takes a long time on OS/2.
10613 lt_cv_sys_max_cmd_len=8192
10614 ;;
10615
cristy73bd4a52010-10-05 11:24:23 +000010616 osf*)
10617 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10618 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10619 # nice to cause kernel panics so lets avoid the loop below.
10620 # First set a reasonable default.
10621 lt_cv_sys_max_cmd_len=16384
10622 #
10623 if test -x /sbin/sysconfig; then
10624 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10625 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10626 esac
10627 fi
10628 ;;
10629 sco3.2v5*)
10630 lt_cv_sys_max_cmd_len=102400
10631 ;;
10632 sysv5* | sco5v6* | sysv4.2uw2*)
10633 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10634 if test -n "$kargmax"; then
10635 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10636 else
10637 lt_cv_sys_max_cmd_len=32768
10638 fi
10639 ;;
10640 *)
10641 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10642 if test -n "$lt_cv_sys_max_cmd_len"; then
10643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10645 else
10646 # Make teststring a little bigger before we do anything with it.
10647 # a 1K string should be a reasonable start.
10648 for i in 1 2 3 4 5 6 7 8 ; do
10649 teststring=$teststring$teststring
10650 done
10651 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10652 # If test is not a shell built-in, we'll probably end up computing a
10653 # maximum length that is only half of the actual maximum length, but
10654 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010655 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010656 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010657 test $i != 17 # 1/2 MB should be enough
10658 do
10659 i=`expr $i + 1`
10660 teststring=$teststring$teststring
10661 done
10662 # Only check the string length outside the loop.
10663 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10664 teststring=
10665 # Add a significant safety factor because C++ compilers can tack on
10666 # massive amounts of additional arguments before passing them to the
10667 # linker. It appears as though 1/2 is a usable value.
10668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10669 fi
10670 ;;
10671 esac
10672
10673fi
10674
10675if test -n $lt_cv_sys_max_cmd_len ; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10677$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10678else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10680$as_echo "none" >&6; }
10681fi
10682max_cmd_len=$lt_cv_sys_max_cmd_len
10683
10684
10685
10686
10687
10688
10689: ${CP="cp -f"}
10690: ${MV="mv -f"}
10691: ${RM="rm -f"}
10692
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10694$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10695# Try some XSI features
10696xsi_shell=no
10697( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010698 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10699 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010700 && eval 'test $(( 1 + 1 )) -eq 2 \
10701 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10702 && xsi_shell=yes
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10704$as_echo "$xsi_shell" >&6; }
10705
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10708$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10709lt_shell_append=no
10710( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10711 >/dev/null 2>&1 \
10712 && lt_shell_append=yes
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10714$as_echo "$lt_shell_append" >&6; }
10715
10716
10717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10718 lt_unset=unset
10719else
10720 lt_unset=false
10721fi
10722
10723
10724
10725
10726
10727# test EBCDIC or ASCII
10728case `echo X|tr X '\101'` in
10729 A) # ASCII based system
10730 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10731 lt_SP2NL='tr \040 \012'
10732 lt_NL2SP='tr \015\012 \040\040'
10733 ;;
10734 *) # EBCDIC based system
10735 lt_SP2NL='tr \100 \n'
10736 lt_NL2SP='tr \r\n \100\100'
10737 ;;
10738esac
10739
10740
10741
10742
10743
10744
10745
10746
10747
cristyda16f162011-02-19 23:52:17 +000010748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10749$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10750if ${lt_cv_to_host_file_cmd+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752else
10753 case $host in
10754 *-*-mingw* )
10755 case $build in
10756 *-*-mingw* ) # actually msys
10757 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10758 ;;
10759 *-*-cygwin* )
10760 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10761 ;;
10762 * ) # otherwise, assume *nix
10763 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10764 ;;
10765 esac
10766 ;;
10767 *-*-cygwin* )
10768 case $build in
10769 *-*-mingw* ) # actually msys
10770 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10771 ;;
10772 *-*-cygwin* )
10773 lt_cv_to_host_file_cmd=func_convert_file_noop
10774 ;;
10775 * ) # otherwise, assume *nix
10776 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10777 ;;
10778 esac
10779 ;;
10780 * ) # unhandled hosts (and "normal" native builds)
10781 lt_cv_to_host_file_cmd=func_convert_file_noop
10782 ;;
10783esac
10784
10785fi
10786
10787to_host_file_cmd=$lt_cv_to_host_file_cmd
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10789$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10790
10791
10792
10793
10794
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10796$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10797if ${lt_cv_to_tool_file_cmd+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799else
10800 #assume ordinary cross tools, or native build.
10801lt_cv_to_tool_file_cmd=func_convert_file_noop
10802case $host in
10803 *-*-mingw* )
10804 case $build in
10805 *-*-mingw* ) # actually msys
10806 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10807 ;;
10808 esac
10809 ;;
10810esac
10811
10812fi
10813
10814to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10816$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10817
10818
10819
10820
10821
cristy73bd4a52010-10-05 11:24:23 +000010822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10823$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010824if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010825 $as_echo_n "(cached) " >&6
10826else
10827 lt_cv_ld_reload_flag='-r'
10828fi
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10830$as_echo "$lt_cv_ld_reload_flag" >&6; }
10831reload_flag=$lt_cv_ld_reload_flag
10832case $reload_flag in
10833"" | " "*) ;;
10834*) reload_flag=" $reload_flag" ;;
10835esac
10836reload_cmds='$LD$reload_flag -o $output$reload_objs'
10837case $host_os in
cristyda16f162011-02-19 23:52:17 +000010838 cygwin* | mingw* | pw32* | cegcc*)
10839 if test "$GCC" != yes; then
10840 reload_cmds=false
10841 fi
10842 ;;
cristy73bd4a52010-10-05 11:24:23 +000010843 darwin*)
10844 if test "$GCC" = yes; then
10845 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10846 else
10847 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10848 fi
10849 ;;
10850esac
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860if test -n "$ac_tool_prefix"; then
10861 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10862set dummy ${ac_tool_prefix}objdump; ac_word=$2
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$OBJDUMP"; then
10869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010878 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883 done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888OBJDUMP=$ac_cv_prog_OBJDUMP
10889if test -n "$OBJDUMP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10891$as_echo "$OBJDUMP" >&6; }
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895fi
10896
10897
10898fi
10899if test -z "$ac_cv_prog_OBJDUMP"; then
10900 ac_ct_OBJDUMP=$OBJDUMP
10901 # Extract the first word of "objdump", so it can be a program name with args.
10902set dummy objdump; ac_word=$2
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010905if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010906 $as_echo_n "(cached) " >&6
10907else
10908 if test -n "$ac_ct_OBJDUMP"; then
10909 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010918 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923 done
10924IFS=$as_save_IFS
10925
10926fi
10927fi
10928ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10929if test -n "$ac_ct_OBJDUMP"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10931$as_echo "$ac_ct_OBJDUMP" >&6; }
10932else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934$as_echo "no" >&6; }
10935fi
10936
10937 if test "x$ac_ct_OBJDUMP" = x; then
10938 OBJDUMP="false"
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941yes:)
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944ac_tool_warned=yes ;;
10945esac
10946 OBJDUMP=$ac_ct_OBJDUMP
10947 fi
10948else
10949 OBJDUMP="$ac_cv_prog_OBJDUMP"
10950fi
10951
10952test -z "$OBJDUMP" && OBJDUMP=objdump
10953
10954
10955
10956
10957
10958
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10960$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010961if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010962 $as_echo_n "(cached) " >&6
10963else
10964 lt_cv_file_magic_cmd='$MAGIC_CMD'
10965lt_cv_file_magic_test_file=
10966lt_cv_deplibs_check_method='unknown'
10967# Need to set the preceding variable on all platforms that support
10968# interlibrary dependencies.
10969# 'none' -- dependencies not supported.
10970# `unknown' -- same as none, but documents that we really don't know.
10971# 'pass_all' -- all dependencies passed with no checks.
10972# 'test_compile' -- check by making test program.
10973# 'file_magic [[regex]]' -- check by looking for files in library path
10974# which responds to the $file_magic_cmd with a given extended regex.
10975# If you have `file' or equivalent on your system and you're not sure
10976# whether `pass_all' will *always* work, you probably want this one.
10977
10978case $host_os in
10979aix[4-9]*)
10980 lt_cv_deplibs_check_method=pass_all
10981 ;;
10982
10983beos*)
10984 lt_cv_deplibs_check_method=pass_all
10985 ;;
10986
10987bsdi[45]*)
10988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10989 lt_cv_file_magic_cmd='/usr/bin/file -L'
10990 lt_cv_file_magic_test_file=/shlib/libc.so
10991 ;;
10992
10993cygwin*)
10994 # func_win32_libid is a shell function defined in ltmain.sh
10995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10996 lt_cv_file_magic_cmd='func_win32_libid'
10997 ;;
10998
10999mingw* | pw32*)
11000 # Base MSYS/MinGW do not provide the 'file' command needed by
11001 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11002 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011003 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11004 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11006 lt_cv_file_magic_cmd='func_win32_libid'
11007 else
cristy0c60a692010-11-04 01:09:47 +000011008 # Keep this pattern in sync with the one in func_win32_libid.
11009 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 +000011010 lt_cv_file_magic_cmd='$OBJDUMP -f'
11011 fi
11012 ;;
11013
cristy0c60a692010-11-04 01:09:47 +000011014cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011015 # use the weaker test based on 'objdump'. See mingw*.
11016 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11017 lt_cv_file_magic_cmd='$OBJDUMP -f'
11018 ;;
11019
11020darwin* | rhapsody*)
11021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
11024freebsd* | dragonfly*)
11025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11026 case $host_cpu in
11027 i*86 )
11028 # Not sure whether the presence of OpenBSD here was a mistake.
11029 # Let's accept both of them until this is cleared up.
11030 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11031 lt_cv_file_magic_cmd=/usr/bin/file
11032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11033 ;;
11034 esac
11035 else
11036 lt_cv_deplibs_check_method=pass_all
11037 fi
11038 ;;
11039
11040gnu*)
11041 lt_cv_deplibs_check_method=pass_all
11042 ;;
11043
cristy0c60a692010-11-04 01:09:47 +000011044haiku*)
11045 lt_cv_deplibs_check_method=pass_all
11046 ;;
11047
cristy73bd4a52010-10-05 11:24:23 +000011048hpux10.20* | hpux11*)
11049 lt_cv_file_magic_cmd=/usr/bin/file
11050 case $host_cpu in
11051 ia64*)
11052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11054 ;;
11055 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011056 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 +000011057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11058 ;;
11059 *)
cristy0c60a692010-11-04 01:09:47 +000011060 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 +000011061 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11062 ;;
11063 esac
11064 ;;
11065
11066interix[3-9]*)
11067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11069 ;;
11070
11071irix5* | irix6* | nonstopux*)
11072 case $LD in
11073 *-32|*"-32 ") libmagic=32-bit;;
11074 *-n32|*"-n32 ") libmagic=N32;;
11075 *-64|*"-64 ") libmagic=64-bit;;
11076 *) libmagic=never-match;;
11077 esac
11078 lt_cv_deplibs_check_method=pass_all
11079 ;;
11080
cristy99bd5232011-12-07 14:38:20 +000011081# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011082linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011083 lt_cv_deplibs_check_method=pass_all
11084 ;;
11085
11086netbsd*)
11087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11089 else
11090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11091 fi
11092 ;;
11093
11094newos6*)
11095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11096 lt_cv_file_magic_cmd=/usr/bin/file
11097 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11098 ;;
11099
11100*nto* | *qnx*)
11101 lt_cv_deplibs_check_method=pass_all
11102 ;;
11103
11104openbsd*)
11105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11107 else
11108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11109 fi
11110 ;;
11111
11112osf3* | osf4* | osf5*)
11113 lt_cv_deplibs_check_method=pass_all
11114 ;;
11115
11116rdos*)
11117 lt_cv_deplibs_check_method=pass_all
11118 ;;
11119
11120solaris*)
11121 lt_cv_deplibs_check_method=pass_all
11122 ;;
11123
11124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11125 lt_cv_deplibs_check_method=pass_all
11126 ;;
11127
11128sysv4 | sysv4.3*)
11129 case $host_vendor in
11130 motorola)
11131 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]'
11132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11133 ;;
11134 ncr)
11135 lt_cv_deplibs_check_method=pass_all
11136 ;;
11137 sequent)
11138 lt_cv_file_magic_cmd='/bin/file'
11139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11140 ;;
11141 sni)
11142 lt_cv_file_magic_cmd='/bin/file'
11143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11144 lt_cv_file_magic_test_file=/lib/libc.so
11145 ;;
11146 siemens)
11147 lt_cv_deplibs_check_method=pass_all
11148 ;;
11149 pc)
11150 lt_cv_deplibs_check_method=pass_all
11151 ;;
11152 esac
11153 ;;
11154
11155tpf*)
11156 lt_cv_deplibs_check_method=pass_all
11157 ;;
11158esac
11159
11160fi
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11162$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011163
11164file_magic_glob=
11165want_nocaseglob=no
11166if test "$build" = "$host"; then
11167 case $host_os in
11168 mingw* | pw32*)
11169 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11170 want_nocaseglob=yes
11171 else
11172 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11173 fi
11174 ;;
11175 esac
11176fi
11177
cristy73bd4a52010-10-05 11:24:23 +000011178file_magic_cmd=$lt_cv_file_magic_cmd
11179deplibs_check_method=$lt_cv_deplibs_check_method
11180test -z "$deplibs_check_method" && deplibs_check_method=unknown
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
cristyda16f162011-02-19 23:52:17 +000011193
11194
11195
11196
11197
11198
11199
11200
11201
11202
cristy73bd4a52010-10-05 11:24:23 +000011203if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011204 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11205set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011208if ${ac_cv_prog_DLLTOOL+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210else
11211 if test -n "$DLLTOOL"; then
11212 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11213else
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011221 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226 done
11227IFS=$as_save_IFS
11228
11229fi
11230fi
11231DLLTOOL=$ac_cv_prog_DLLTOOL
11232if test -n "$DLLTOOL"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11234$as_echo "$DLLTOOL" >&6; }
11235else
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
11238fi
11239
11240
11241fi
11242if test -z "$ac_cv_prog_DLLTOOL"; then
11243 ac_ct_DLLTOOL=$DLLTOOL
11244 # Extract the first word of "dlltool", so it can be a program name with args.
11245set dummy dlltool; ac_word=$2
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11249 $as_echo_n "(cached) " >&6
11250else
11251 if test -n "$ac_ct_DLLTOOL"; then
11252 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011261 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265done
11266 done
11267IFS=$as_save_IFS
11268
11269fi
11270fi
11271ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11272if test -n "$ac_ct_DLLTOOL"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11274$as_echo "$ac_ct_DLLTOOL" >&6; }
11275else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
11278fi
11279
11280 if test "x$ac_ct_DLLTOOL" = x; then
11281 DLLTOOL="false"
11282 else
11283 case $cross_compiling:$ac_tool_warned in
11284yes:)
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11287ac_tool_warned=yes ;;
11288esac
11289 DLLTOOL=$ac_ct_DLLTOOL
11290 fi
11291else
11292 DLLTOOL="$ac_cv_prog_DLLTOOL"
11293fi
11294
11295test -z "$DLLTOOL" && DLLTOOL=dlltool
11296
11297
11298
11299
11300
11301
11302
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11304$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307else
11308 lt_cv_sharedlib_from_linklib_cmd='unknown'
11309
11310case $host_os in
11311cygwin* | mingw* | pw32* | cegcc*)
11312 # two different shell functions defined in ltmain.sh
11313 # decide which to use based on capabilities of $DLLTOOL
11314 case `$DLLTOOL --help 2>&1` in
11315 *--identify-strict*)
11316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11317 ;;
11318 *)
11319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11320 ;;
11321 esac
11322 ;;
11323*)
11324 # fallback: assume linklib IS sharedlib
11325 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11326 ;;
11327esac
11328
11329fi
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11334
11335
11336
11337
11338
11339
11340
11341if test -n "$ac_tool_prefix"; then
11342 for ac_prog in ar
11343 do
11344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011349 $as_echo_n "(cached) " >&6
11350else
11351 if test -n "$AR"; then
11352 ac_cv_prog_AR="$AR" # Let the user override the test.
11353else
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11364 fi
11365done
11366 done
11367IFS=$as_save_IFS
11368
11369fi
11370fi
11371AR=$ac_cv_prog_AR
11372if test -n "$AR"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11374$as_echo "$AR" >&6; }
11375else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379
11380
cristyda16f162011-02-19 23:52:17 +000011381 test -n "$AR" && break
11382 done
cristy73bd4a52010-10-05 11:24:23 +000011383fi
cristyda16f162011-02-19 23:52:17 +000011384if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011385 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011386 for ac_prog in ar
11387do
11388 # Extract the first word of "$ac_prog", so it can be a program name with args.
11389set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011392if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011393 $as_echo_n "(cached) " >&6
11394else
11395 if test -n "$ac_ct_AR"; then
11396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11397else
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011405 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11408 fi
11409done
11410 done
11411IFS=$as_save_IFS
11412
11413fi
11414fi
11415ac_ct_AR=$ac_cv_prog_ac_ct_AR
11416if test -n "$ac_ct_AR"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11418$as_echo "$ac_ct_AR" >&6; }
11419else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
11422fi
11423
cristyda16f162011-02-19 23:52:17 +000011424
11425 test -n "$ac_ct_AR" && break
11426done
11427
cristy73bd4a52010-10-05 11:24:23 +000011428 if test "x$ac_ct_AR" = x; then
11429 AR="false"
11430 else
11431 case $cross_compiling:$ac_tool_warned in
11432yes:)
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11435ac_tool_warned=yes ;;
11436esac
11437 AR=$ac_ct_AR
11438 fi
cristy73bd4a52010-10-05 11:24:23 +000011439fi
11440
cristyda16f162011-02-19 23:52:17 +000011441: ${AR=ar}
11442: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
cristyda16f162011-02-19 23:52:17 +000011454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11455$as_echo_n "checking for archiver @FILE support... " >&6; }
11456if ${lt_cv_ar_at_file+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458else
11459 lt_cv_ar_at_file=no
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462
11463int
11464main ()
11465{
11466
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_compile "$LINENO"; then :
11472 echo conftest.$ac_objext > conftest.lst
11473 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11475 (eval $lt_ar_try) 2>&5
11476 ac_status=$?
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; }
11479 if test "$ac_status" -eq 0; then
11480 # Ensure the archiver fails upon bogus file names.
11481 rm -f conftest.$ac_objext libconftest.a
11482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11483 (eval $lt_ar_try) 2>&5
11484 ac_status=$?
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; }
11487 if test "$ac_status" -ne 0; then
11488 lt_cv_ar_at_file=@
11489 fi
11490 fi
11491 rm -f conftest.* libconftest.a
11492
11493fi
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11498$as_echo "$lt_cv_ar_at_file" >&6; }
11499
11500if test "x$lt_cv_ar_at_file" = xno; then
11501 archiver_list_spec=
11502else
11503 archiver_list_spec=$lt_cv_ar_at_file
11504fi
11505
11506
11507
11508
11509
11510
11511
cristy73bd4a52010-10-05 11:24:23 +000011512if test -n "$ac_tool_prefix"; then
11513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11514set dummy ${ac_tool_prefix}strip; ac_word=$2
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011517if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011518 $as_echo_n "(cached) " >&6
11519else
11520 if test -n "$STRIP"; then
11521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535 done
11536IFS=$as_save_IFS
11537
11538fi
11539fi
11540STRIP=$ac_cv_prog_STRIP
11541if test -n "$STRIP"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11543$as_echo "$STRIP" >&6; }
11544else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547fi
11548
11549
11550fi
11551if test -z "$ac_cv_prog_STRIP"; then
11552 ac_ct_STRIP=$STRIP
11553 # Extract the first word of "strip", so it can be a program name with args.
11554set dummy strip; ac_word=$2
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011558 $as_echo_n "(cached) " >&6
11559else
11560 if test -n "$ac_ct_STRIP"; then
11561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011570 ac_cv_prog_ac_ct_STRIP="strip"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575 done
11576IFS=$as_save_IFS
11577
11578fi
11579fi
11580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11581if test -n "$ac_ct_STRIP"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11583$as_echo "$ac_ct_STRIP" >&6; }
11584else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589 if test "x$ac_ct_STRIP" = x; then
11590 STRIP=":"
11591 else
11592 case $cross_compiling:$ac_tool_warned in
11593yes:)
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11596ac_tool_warned=yes ;;
11597esac
11598 STRIP=$ac_ct_STRIP
11599 fi
11600else
11601 STRIP="$ac_cv_prog_STRIP"
11602fi
11603
11604test -z "$STRIP" && STRIP=:
11605
11606
11607
11608
11609
11610
11611if test -n "$ac_tool_prefix"; then
11612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011616if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011617 $as_echo_n "(cached) " >&6
11618else
11619 if test -n "$RANLIB"; then
11620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11621else
11622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $PATH
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11632 fi
11633done
11634 done
11635IFS=$as_save_IFS
11636
11637fi
11638fi
11639RANLIB=$ac_cv_prog_RANLIB
11640if test -n "$RANLIB"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11642$as_echo "$RANLIB" >&6; }
11643else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646fi
11647
11648
11649fi
11650if test -z "$ac_cv_prog_RANLIB"; then
11651 ac_ct_RANLIB=$RANLIB
11652 # Extract the first word of "ranlib", so it can be a program name with args.
11653set dummy ranlib; ac_word=$2
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011657 $as_echo_n "(cached) " >&6
11658else
11659 if test -n "$ac_ct_RANLIB"; then
11660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011669 ac_cv_prog_ac_ct_RANLIB="ranlib"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673done
11674 done
11675IFS=$as_save_IFS
11676
11677fi
11678fi
11679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11680if test -n "$ac_ct_RANLIB"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11682$as_echo "$ac_ct_RANLIB" >&6; }
11683else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686fi
11687
11688 if test "x$ac_ct_RANLIB" = x; then
11689 RANLIB=":"
11690 else
11691 case $cross_compiling:$ac_tool_warned in
11692yes:)
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11695ac_tool_warned=yes ;;
11696esac
11697 RANLIB=$ac_ct_RANLIB
11698 fi
11699else
11700 RANLIB="$ac_cv_prog_RANLIB"
11701fi
11702
11703test -z "$RANLIB" && RANLIB=:
11704
11705
11706
11707
11708
11709
11710# Determine commands to create old-style static archives.
11711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11712old_postinstall_cmds='chmod 644 $oldlib'
11713old_postuninstall_cmds=
11714
11715if test -n "$RANLIB"; then
11716 case $host_os in
11717 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011719 ;;
11720 *)
cristy99bd5232011-12-07 14:38:20 +000011721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011722 ;;
11723 esac
cristy99bd5232011-12-07 14:38:20 +000011724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011725fi
11726
cristy0c60a692010-11-04 01:09:47 +000011727case $host_os in
11728 darwin*)
11729 lock_old_archive_extraction=yes ;;
11730 *)
11731 lock_old_archive_extraction=no ;;
11732esac
11733
11734
11735
11736
11737
11738
cristy73bd4a52010-10-05 11:24:23 +000011739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772# If no C compiler was specified, use CC.
11773LTCC=${LTCC-"$CC"}
11774
11775# If no C compiler flags were specified, use CFLAGS.
11776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11777
11778# Allow CC to be a program name with arguments.
11779compiler=$CC
11780
11781
11782# Check for command to grab the raw symbol name followed by C symbol from nm.
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011785if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011786 $as_echo_n "(cached) " >&6
11787else
11788
11789# These are sane defaults that work on at least a few old systems.
11790# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11791
11792# Character class describing NM global symbol codes.
11793symcode='[BCDEGRST]'
11794
11795# Regexp to match symbols that can be accessed directly from C.
11796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11797
11798# Define system-specific variables.
11799case $host_os in
11800aix*)
11801 symcode='[BCDT]'
11802 ;;
11803cygwin* | mingw* | pw32* | cegcc*)
11804 symcode='[ABCDGISTW]'
11805 ;;
11806hpux*)
11807 if test "$host_cpu" = ia64; then
11808 symcode='[ABCDEGRST]'
11809 fi
11810 ;;
11811irix* | nonstopux*)
11812 symcode='[BCDEGRST]'
11813 ;;
11814osf*)
11815 symcode='[BCDEGQRST]'
11816 ;;
11817solaris*)
11818 symcode='[BDRT]'
11819 ;;
11820sco3.2v5*)
11821 symcode='[DT]'
11822 ;;
11823sysv4.2uw2*)
11824 symcode='[DT]'
11825 ;;
11826sysv5* | sco5v6* | unixware* | OpenUNIX*)
11827 symcode='[ABDT]'
11828 ;;
11829sysv4)
11830 symcode='[DFNSTU]'
11831 ;;
11832esac
11833
11834# If we're using GNU nm, then use its standard symbol codes.
11835case `$NM -V 2>&1` in
11836*GNU* | *'with BFD'*)
11837 symcode='[ABCDGIRSTW]' ;;
11838esac
11839
11840# Transform an extracted symbol line into a proper C declaration.
11841# Some systems (esp. on ia64) link data and code symbols differently,
11842# so use this general approach.
11843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11844
11845# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11847lt_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 +000011848
11849# Handle CRLF in mingw tool chain
11850opt_cr=
11851case $build_os in
11852mingw*)
11853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11854 ;;
11855esac
11856
11857# Try without a prefix underscore, then with it.
11858for ac_symprfx in "" "_"; do
11859
11860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11861 symxfrm="\\1 $ac_symprfx\\2 \\2"
11862
11863 # Write the raw and C identifiers.
11864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11865 # Fake it for dumpbin and say T for any non-static function
11866 # and D for any global variable.
11867 # Also find C++ and __fastcall symbols from MSVC++,
11868 # which start with @ or ?.
11869 lt_cv_sys_global_symbol_pipe="$AWK '"\
11870" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011871" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011872" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11873" \$ 0!~/External *\|/{next};"\
11874" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11875" {if(hide[section]) next};"\
11876" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11877" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11878" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11879" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11880" ' prfx=^$ac_symprfx"
11881 else
11882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11883 fi
cristyda16f162011-02-19 23:52:17 +000011884 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011885
11886 # Check to see that the pipe works correctly.
11887 pipe_works=no
11888
11889 rm -f conftest*
11890 cat > conftest.$ac_ext <<_LT_EOF
11891#ifdef __cplusplus
11892extern "C" {
11893#endif
11894char nm_test_var;
11895void nm_test_func(void);
11896void nm_test_func(void){}
11897#ifdef __cplusplus
11898}
11899#endif
11900int main(){nm_test_var='a';nm_test_func();return(0);}
11901_LT_EOF
11902
11903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; }; then
11908 # Now try to grab the symbols.
11909 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011912 ac_status=$?
11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11914 test $ac_status = 0; } && test -s "$nlist"; then
11915 # Try sorting and uniquifying the output.
11916 if sort "$nlist" | uniq > "$nlist"T; then
11917 mv -f "$nlist"T "$nlist"
11918 else
11919 rm -f "$nlist"T
11920 fi
11921
11922 # Make sure that we snagged all the symbols we need.
11923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11925 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011926/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11927#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11928/* DATA imports from DLLs on WIN32 con't be const, because runtime
11929 relocations are performed -- see ld's documentation on pseudo-relocs. */
11930# define LT_DLSYM_CONST
11931#elif defined(__osf__)
11932/* This system does not cope well with relocations in const data. */
11933# define LT_DLSYM_CONST
11934#else
11935# define LT_DLSYM_CONST const
11936#endif
11937
cristy73bd4a52010-10-05 11:24:23 +000011938#ifdef __cplusplus
11939extern "C" {
11940#endif
11941
11942_LT_EOF
11943 # Now generate the symbol file.
11944 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11945
11946 cat <<_LT_EOF >> conftest.$ac_ext
11947
11948/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011949LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011950 const char *name;
11951 void *address;
11952}
11953lt__PROGRAM__LTX_preloaded_symbols[] =
11954{
11955 { "@PROGRAM@", (void *) 0 },
11956_LT_EOF
11957 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11958 cat <<\_LT_EOF >> conftest.$ac_ext
11959 {0, (void *) 0}
11960};
11961
11962/* This works around a problem in FreeBSD linker */
11963#ifdef FREEBSD_WORKAROUND
11964static const void *lt_preloaded_setup() {
11965 return lt__PROGRAM__LTX_preloaded_symbols;
11966}
11967#endif
11968
11969#ifdef __cplusplus
11970}
11971#endif
11972_LT_EOF
11973 # Now try linking the two files.
11974 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011975 lt_globsym_save_LIBS=$LIBS
11976 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011977 LIBS="conftstm.$ac_objext"
11978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11980 (eval $ac_link) 2>&5
11981 ac_status=$?
11982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11984 pipe_works=yes
11985 fi
cristyda16f162011-02-19 23:52:17 +000011986 LIBS=$lt_globsym_save_LIBS
11987 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011988 else
11989 echo "cannot find nm_test_func in $nlist" >&5
11990 fi
11991 else
11992 echo "cannot find nm_test_var in $nlist" >&5
11993 fi
11994 else
11995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11996 fi
11997 else
11998 echo "$progname: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 fi
12001 rm -rf conftest* conftst*
12002
12003 # Do not use the global_symbol_pipe unless it works.
12004 if test "$pipe_works" = yes; then
12005 break
12006 else
12007 lt_cv_sys_global_symbol_pipe=
12008 fi
12009done
12010
12011fi
12012
12013if test -z "$lt_cv_sys_global_symbol_pipe"; then
12014 lt_cv_sys_global_symbol_to_cdecl=
12015fi
12016if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12018$as_echo "failed" >&6; }
12019else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12021$as_echo "ok" >&6; }
12022fi
12023
cristyda16f162011-02-19 23:52:17 +000012024# Response file support.
12025if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12026 nm_file_list_spec='@'
12027elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12028 nm_file_list_spec='@'
12029fi
cristy73bd4a52010-10-05 11:24:23 +000012030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
cristyda16f162011-02-19 23:52:17 +000012051
12052
12053
12054
12055
12056
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12058$as_echo_n "checking for sysroot... " >&6; }
12059
12060# Check whether --with-sysroot was given.
12061if test "${with_sysroot+set}" = set; then :
12062 withval=$with_sysroot;
12063else
12064 with_sysroot=no
12065fi
12066
12067
12068lt_sysroot=
12069case ${with_sysroot} in #(
12070 yes)
12071 if test "$GCC" = yes; then
12072 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12073 fi
12074 ;; #(
12075 /*)
12076 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12077 ;; #(
12078 no|'')
12079 ;; #(
12080 *)
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12082$as_echo "${with_sysroot}" >&6; }
12083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12084 ;;
12085esac
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12088$as_echo "${lt_sysroot:-no}" >&6; }
12089
12090
12091
12092
12093
cristy73bd4a52010-10-05 11:24:23 +000012094# Check whether --enable-libtool-lock was given.
12095if test "${enable_libtool_lock+set}" = set; then :
12096 enableval=$enable_libtool_lock;
12097fi
12098
12099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12100
12101# Some flags need to be propagated to the compiler or linker for good
12102# libtool support.
12103case $host in
12104ia64-*-hpux*)
12105 # Find out which ABI we are using.
12106 echo 'int i;' > conftest.$ac_ext
12107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12108 (eval $ac_compile) 2>&5
12109 ac_status=$?
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; }; then
12112 case `/usr/bin/file conftest.$ac_objext` in
12113 *ELF-32*)
12114 HPUX_IA64_MODE="32"
12115 ;;
12116 *ELF-64*)
12117 HPUX_IA64_MODE="64"
12118 ;;
12119 esac
12120 fi
12121 rm -rf conftest*
12122 ;;
12123*-*-irix6*)
12124 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012125 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12127 (eval $ac_compile) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; }; then
12131 if test "$lt_cv_prog_gnu_ld" = yes; then
12132 case `/usr/bin/file conftest.$ac_objext` in
12133 *32-bit*)
12134 LD="${LD-ld} -melf32bsmip"
12135 ;;
12136 *N32*)
12137 LD="${LD-ld} -melf32bmipn32"
12138 ;;
12139 *64-bit*)
12140 LD="${LD-ld} -melf64bmip"
12141 ;;
12142 esac
12143 else
12144 case `/usr/bin/file conftest.$ac_objext` in
12145 *32-bit*)
12146 LD="${LD-ld} -32"
12147 ;;
12148 *N32*)
12149 LD="${LD-ld} -n32"
12150 ;;
12151 *64-bit*)
12152 LD="${LD-ld} -64"
12153 ;;
12154 esac
12155 fi
12156 fi
12157 rm -rf conftest*
12158 ;;
12159
12160x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12161s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12162 # Find out which ABI we are using.
12163 echo 'int i;' > conftest.$ac_ext
12164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12165 (eval $ac_compile) 2>&5
12166 ac_status=$?
12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168 test $ac_status = 0; }; then
12169 case `/usr/bin/file conftest.o` in
12170 *32-bit*)
12171 case $host in
12172 x86_64-*kfreebsd*-gnu)
12173 LD="${LD-ld} -m elf_i386_fbsd"
12174 ;;
12175 x86_64-*linux*)
12176 LD="${LD-ld} -m elf_i386"
12177 ;;
12178 ppc64-*linux*|powerpc64-*linux*)
12179 LD="${LD-ld} -m elf32ppclinux"
12180 ;;
12181 s390x-*linux*)
12182 LD="${LD-ld} -m elf_s390"
12183 ;;
12184 sparc64-*linux*)
12185 LD="${LD-ld} -m elf32_sparc"
12186 ;;
12187 esac
12188 ;;
12189 *64-bit*)
12190 case $host in
12191 x86_64-*kfreebsd*-gnu)
12192 LD="${LD-ld} -m elf_x86_64_fbsd"
12193 ;;
12194 x86_64-*linux*)
12195 LD="${LD-ld} -m elf_x86_64"
12196 ;;
12197 ppc*-*linux*|powerpc*-*linux*)
12198 LD="${LD-ld} -m elf64ppc"
12199 ;;
12200 s390*-*linux*|s390*-*tpf*)
12201 LD="${LD-ld} -m elf64_s390"
12202 ;;
12203 sparc*-*linux*)
12204 LD="${LD-ld} -m elf64_sparc"
12205 ;;
12206 esac
12207 ;;
12208 esac
12209 fi
12210 rm -rf conftest*
12211 ;;
12212
12213*-*-sco3.2v5*)
12214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12215 SAVE_CFLAGS="$CFLAGS"
12216 CFLAGS="$CFLAGS -belf"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12218$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012219if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012220 $as_echo_n "(cached) " >&6
12221else
12222 ac_ext=c
12223ac_cpp='$CPP $CPPFLAGS'
12224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h. */
12230
12231int
12232main ()
12233{
12234
12235 ;
12236 return 0;
12237}
12238_ACEOF
12239if ac_fn_c_try_link "$LINENO"; then :
12240 lt_cv_cc_needs_belf=yes
12241else
12242 lt_cv_cc_needs_belf=no
12243fi
12244rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 ac_ext=c
12247ac_cpp='$CPP $CPPFLAGS'
12248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250ac_compiler_gnu=$ac_cv_c_compiler_gnu
12251
12252fi
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12254$as_echo "$lt_cv_cc_needs_belf" >&6; }
12255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12257 CFLAGS="$SAVE_CFLAGS"
12258 fi
12259 ;;
cristy99bd5232011-12-07 14:38:20 +000012260*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012261 # Find out which ABI we are using.
12262 echo 'int i;' > conftest.$ac_ext
12263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12264 (eval $ac_compile) 2>&5
12265 ac_status=$?
12266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12267 test $ac_status = 0; }; then
12268 case `/usr/bin/file conftest.o` in
12269 *64-bit*)
12270 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012271 yes*)
12272 case $host in
12273 i?86-*-solaris*)
12274 LD="${LD-ld} -m elf_x86_64"
12275 ;;
12276 sparc*-*-solaris*)
12277 LD="${LD-ld} -m elf64_sparc"
12278 ;;
12279 esac
12280 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12281 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12282 LD="${LD-ld}_sol2"
12283 fi
12284 ;;
cristy73bd4a52010-10-05 11:24:23 +000012285 *)
12286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12287 LD="${LD-ld} -64"
12288 fi
12289 ;;
12290 esac
12291 ;;
12292 esac
12293 fi
12294 rm -rf conftest*
12295 ;;
12296esac
12297
12298need_locks="$enable_libtool_lock"
12299
cristyda16f162011-02-19 23:52:17 +000012300if test -n "$ac_tool_prefix"; then
12301 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12302set dummy ${ac_tool_prefix}mt; ac_word=$2
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
12305if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307else
12308 if test -n "$MANIFEST_TOOL"; then
12309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12310else
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012318 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12320 break 2
12321 fi
12322done
12323 done
12324IFS=$as_save_IFS
12325
12326fi
12327fi
12328MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12329if test -n "$MANIFEST_TOOL"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12331$as_echo "$MANIFEST_TOOL" >&6; }
12332else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
12335fi
12336
12337
12338fi
12339if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12340 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12341 # Extract the first word of "mt", so it can be a program name with args.
12342set dummy mt; ac_word=$2
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347else
12348 if test -n "$ac_ct_MANIFEST_TOOL"; then
12349 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12350else
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012358 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12361 fi
12362done
12363 done
12364IFS=$as_save_IFS
12365
12366fi
12367fi
12368ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12369if test -n "$ac_ct_MANIFEST_TOOL"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12371$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12372else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
12375fi
12376
12377 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12378 MANIFEST_TOOL=":"
12379 else
12380 case $cross_compiling:$ac_tool_warned in
12381yes:)
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12384ac_tool_warned=yes ;;
12385esac
12386 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12387 fi
12388else
12389 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12390fi
12391
12392test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12394$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12395if ${lt_cv_path_mainfest_tool+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397else
12398 lt_cv_path_mainfest_tool=no
12399 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12400 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12401 cat conftest.err >&5
12402 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12403 lt_cv_path_mainfest_tool=yes
12404 fi
12405 rm -f conftest*
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12408$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12409if test "x$lt_cv_path_mainfest_tool" != xyes; then
12410 MANIFEST_TOOL=:
12411fi
12412
12413
12414
12415
12416
cristy73bd4a52010-10-05 11:24:23 +000012417
12418 case $host_os in
12419 rhapsody* | darwin*)
12420 if test -n "$ac_tool_prefix"; then
12421 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12422set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012425if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012426 $as_echo_n "(cached) " >&6
12427else
12428 if test -n "$DSYMUTIL"; then
12429 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12430else
12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $PATH
12433do
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440 break 2
12441 fi
12442done
12443 done
12444IFS=$as_save_IFS
12445
12446fi
12447fi
12448DSYMUTIL=$ac_cv_prog_DSYMUTIL
12449if test -n "$DSYMUTIL"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12451$as_echo "$DSYMUTIL" >&6; }
12452else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454$as_echo "no" >&6; }
12455fi
12456
12457
12458fi
12459if test -z "$ac_cv_prog_DSYMUTIL"; then
12460 ac_ct_DSYMUTIL=$DSYMUTIL
12461 # Extract the first word of "dsymutil", so it can be a program name with args.
12462set dummy dsymutil; ac_word=$2
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012465if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012466 $as_echo_n "(cached) " >&6
12467else
12468 if test -n "$ac_ct_DSYMUTIL"; then
12469 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12470else
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012478 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480 break 2
12481 fi
12482done
12483 done
12484IFS=$as_save_IFS
12485
12486fi
12487fi
12488ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12489if test -n "$ac_ct_DSYMUTIL"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12491$as_echo "$ac_ct_DSYMUTIL" >&6; }
12492else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495fi
12496
12497 if test "x$ac_ct_DSYMUTIL" = x; then
12498 DSYMUTIL=":"
12499 else
12500 case $cross_compiling:$ac_tool_warned in
12501yes:)
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12504ac_tool_warned=yes ;;
12505esac
12506 DSYMUTIL=$ac_ct_DSYMUTIL
12507 fi
12508else
12509 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12510fi
12511
12512 if test -n "$ac_tool_prefix"; then
12513 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12514set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012517if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012518 $as_echo_n "(cached) " >&6
12519else
12520 if test -n "$NMEDIT"; then
12521 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012530 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534done
12535 done
12536IFS=$as_save_IFS
12537
12538fi
12539fi
12540NMEDIT=$ac_cv_prog_NMEDIT
12541if test -n "$NMEDIT"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12543$as_echo "$NMEDIT" >&6; }
12544else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550fi
12551if test -z "$ac_cv_prog_NMEDIT"; then
12552 ac_ct_NMEDIT=$NMEDIT
12553 # Extract the first word of "nmedit", so it can be a program name with args.
12554set dummy nmedit; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012557if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012558 $as_echo_n "(cached) " >&6
12559else
12560 if test -n "$ac_ct_NMEDIT"; then
12561 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012570 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574done
12575 done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12581if test -n "$ac_ct_NMEDIT"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12583$as_echo "$ac_ct_NMEDIT" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589 if test "x$ac_ct_NMEDIT" = x; then
12590 NMEDIT=":"
12591 else
12592 case $cross_compiling:$ac_tool_warned in
12593yes:)
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12596ac_tool_warned=yes ;;
12597esac
12598 NMEDIT=$ac_ct_NMEDIT
12599 fi
12600else
12601 NMEDIT="$ac_cv_prog_NMEDIT"
12602fi
12603
12604 if test -n "$ac_tool_prefix"; then
12605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12606set dummy ${ac_tool_prefix}lipo; ac_word=$2
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012609if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012610 $as_echo_n "(cached) " >&6
12611else
12612 if test -n "$LIPO"; then
12613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12614else
12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616for as_dir in $PATH
12617do
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12625 fi
12626done
12627 done
12628IFS=$as_save_IFS
12629
12630fi
12631fi
12632LIPO=$ac_cv_prog_LIPO
12633if test -n "$LIPO"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12635$as_echo "$LIPO" >&6; }
12636else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638$as_echo "no" >&6; }
12639fi
12640
12641
12642fi
12643if test -z "$ac_cv_prog_LIPO"; then
12644 ac_ct_LIPO=$LIPO
12645 # Extract the first word of "lipo", so it can be a program name with args.
12646set dummy lipo; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012649if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$ac_ct_LIPO"; then
12653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012662 ac_cv_prog_ac_ct_LIPO="lipo"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12673if test -n "$ac_ct_LIPO"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12675$as_echo "$ac_ct_LIPO" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681 if test "x$ac_ct_LIPO" = x; then
12682 LIPO=":"
12683 else
12684 case $cross_compiling:$ac_tool_warned in
12685yes:)
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12688ac_tool_warned=yes ;;
12689esac
12690 LIPO=$ac_ct_LIPO
12691 fi
12692else
12693 LIPO="$ac_cv_prog_LIPO"
12694fi
12695
12696 if test -n "$ac_tool_prefix"; then
12697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12698set dummy ${ac_tool_prefix}otool; ac_word=$2
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012701if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012702 $as_echo_n "(cached) " >&6
12703else
12704 if test -n "$OTOOL"; then
12705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12706else
12707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12717 fi
12718done
12719 done
12720IFS=$as_save_IFS
12721
12722fi
12723fi
12724OTOOL=$ac_cv_prog_OTOOL
12725if test -n "$OTOOL"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12727$as_echo "$OTOOL" >&6; }
12728else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733
12734fi
12735if test -z "$ac_cv_prog_OTOOL"; then
12736 ac_ct_OTOOL=$OTOOL
12737 # Extract the first word of "otool", so it can be a program name with args.
12738set dummy otool; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012741if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012742 $as_echo_n "(cached) " >&6
12743else
12744 if test -n "$ac_ct_OTOOL"; then
12745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012754 ac_cv_prog_ac_ct_OTOOL="otool"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758done
12759 done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12765if test -n "$ac_ct_OTOOL"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12767$as_echo "$ac_ct_OTOOL" >&6; }
12768else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773 if test "x$ac_ct_OTOOL" = x; then
12774 OTOOL=":"
12775 else
12776 case $cross_compiling:$ac_tool_warned in
12777yes:)
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12780ac_tool_warned=yes ;;
12781esac
12782 OTOOL=$ac_ct_OTOOL
12783 fi
12784else
12785 OTOOL="$ac_cv_prog_OTOOL"
12786fi
12787
12788 if test -n "$ac_tool_prefix"; then
12789 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12790set dummy ${ac_tool_prefix}otool64; ac_word=$2
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012793if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012794 $as_echo_n "(cached) " >&6
12795else
12796 if test -n "$OTOOL64"; then
12797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12798else
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012806 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12809 fi
12810done
12811 done
12812IFS=$as_save_IFS
12813
12814fi
12815fi
12816OTOOL64=$ac_cv_prog_OTOOL64
12817if test -n "$OTOOL64"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12819$as_echo "$OTOOL64" >&6; }
12820else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
12823fi
12824
12825
12826fi
12827if test -z "$ac_cv_prog_OTOOL64"; then
12828 ac_ct_OTOOL64=$OTOOL64
12829 # Extract the first word of "otool64", so it can be a program name with args.
12830set dummy otool64; ac_word=$2
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012833if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012834 $as_echo_n "(cached) " >&6
12835else
12836 if test -n "$ac_ct_OTOOL64"; then
12837 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12838else
12839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840for as_dir in $PATH
12841do
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012846 ac_cv_prog_ac_ct_OTOOL64="otool64"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12849 fi
12850done
12851 done
12852IFS=$as_save_IFS
12853
12854fi
12855fi
12856ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12857if test -n "$ac_ct_OTOOL64"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12859$as_echo "$ac_ct_OTOOL64" >&6; }
12860else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863fi
12864
12865 if test "x$ac_ct_OTOOL64" = x; then
12866 OTOOL64=":"
12867 else
12868 case $cross_compiling:$ac_tool_warned in
12869yes:)
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12872ac_tool_warned=yes ;;
12873esac
12874 OTOOL64=$ac_ct_OTOOL64
12875 fi
12876else
12877 OTOOL64="$ac_cv_prog_OTOOL64"
12878fi
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12907$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012908if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012909 $as_echo_n "(cached) " >&6
12910else
12911 lt_cv_apple_cc_single_mod=no
12912 if test -z "${LT_MULTI_MODULE}"; then
12913 # By default we will add the -single_module flag. You can override
12914 # by either setting the environment variable LT_MULTI_MODULE
12915 # non-empty at configure time, or by adding -multi_module to the
12916 # link flags.
12917 rm -rf libconftest.dylib*
12918 echo "int foo(void){return 1;}" > conftest.c
12919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12920-dynamiclib -Wl,-single_module conftest.c" >&5
12921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12923 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012924 # If there is a non-empty error log, and "single_module"
12925 # appears in it, assume the flag caused a linker warning
12926 if test -s conftest.err && $GREP single_module conftest.err; then
12927 cat conftest.err >&5
12928 # Otherwise, if the output was created with a 0 exit code from
12929 # the compiler, it worked.
12930 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012931 lt_cv_apple_cc_single_mod=yes
12932 else
12933 cat conftest.err >&5
12934 fi
12935 rm -rf libconftest.dylib*
12936 rm -f conftest.*
12937 fi
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12940$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012941
cristy73bd4a52010-10-05 11:24:23 +000012942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12943$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012944if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012945 $as_echo_n "(cached) " >&6
12946else
12947 lt_cv_ld_exported_symbols_list=no
12948 save_LDFLAGS=$LDFLAGS
12949 echo "_main" > conftest.sym
12950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h. */
12953
12954int
12955main ()
12956{
12957
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962if ac_fn_c_try_link "$LINENO"; then :
12963 lt_cv_ld_exported_symbols_list=yes
12964else
12965 lt_cv_ld_exported_symbols_list=no
12966fi
12967rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LDFLAGS="$save_LDFLAGS"
12970
12971fi
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12973$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012974
cristy0c60a692010-11-04 01:09:47 +000012975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12976$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012977if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012978 $as_echo_n "(cached) " >&6
12979else
12980 lt_cv_ld_force_load=no
12981 cat > conftest.c << _LT_EOF
12982int forced_loaded() { return 2;}
12983_LT_EOF
12984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12986 echo "$AR cru libconftest.a conftest.o" >&5
12987 $AR cru libconftest.a conftest.o 2>&5
12988 echo "$RANLIB libconftest.a" >&5
12989 $RANLIB libconftest.a 2>&5
12990 cat > conftest.c << _LT_EOF
12991int main() { return 0;}
12992_LT_EOF
12993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12995 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012996 if test -s conftest.err && $GREP force_load conftest.err; then
12997 cat conftest.err >&5
12998 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012999 lt_cv_ld_force_load=yes
13000 else
13001 cat conftest.err >&5
13002 fi
13003 rm -f conftest.err libconftest.a conftest conftest.c
13004 rm -rf conftest.dSYM
13005
13006fi
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13008$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013009 case $host_os in
13010 rhapsody* | darwin1.[012])
13011 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13012 darwin1.*)
13013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13014 darwin*) # darwin 5.x on
13015 # if running on 10.5 or later, the deployment target defaults
13016 # to the OS version, if on x86, and 10.4, the deployment
13017 # target defaults to 10.4. Don't you love it?
13018 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13019 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13021 10.[012]*)
13022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13023 10.*)
13024 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13025 esac
13026 ;;
13027 esac
13028 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13029 _lt_dar_single_mod='$single_module'
13030 fi
13031 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13032 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13033 else
13034 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13035 fi
cristy0c60a692010-11-04 01:09:47 +000013036 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013037 _lt_dsymutil='~$DSYMUTIL $lib || :'
13038 else
13039 _lt_dsymutil=
13040 fi
13041 ;;
13042 esac
13043
13044for ac_header in dlfcn.h
13045do :
13046 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13047"
cristyda16f162011-02-19 23:52:17 +000013048if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013049 cat >>confdefs.h <<_ACEOF
13050#define HAVE_DLFCN_H 1
13051_ACEOF
13052
13053fi
13054
13055done
13056
13057
13058
cristy73bd4a52010-10-05 11:24:23 +000013059
cristyda16f162011-02-19 23:52:17 +000013060func_stripname_cnf ()
13061{
13062 case ${2} in
13063 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13064 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13065 esac
13066} # func_stripname_cnf
13067
13068
13069
cristy73bd4a52010-10-05 11:24:23 +000013070
13071
13072# Set options
13073enable_win32_dll=yes
13074
13075case $host in
cristy0c60a692010-11-04 01:09:47 +000013076*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013077 if test -n "$ac_tool_prefix"; then
13078 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13079set dummy ${ac_tool_prefix}as; ac_word=$2
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013082if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013083 $as_echo_n "(cached) " >&6
13084else
13085 if test -n "$AS"; then
13086 ac_cv_prog_AS="$AS" # Let the user override the test.
13087else
13088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089for as_dir in $PATH
13090do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013095 ac_cv_prog_AS="${ac_tool_prefix}as"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099done
13100 done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105AS=$ac_cv_prog_AS
13106if test -n "$AS"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13108$as_echo "$AS" >&6; }
13109else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
13112fi
13113
13114
13115fi
13116if test -z "$ac_cv_prog_AS"; then
13117 ac_ct_AS=$AS
13118 # Extract the first word of "as", so it can be a program name with args.
13119set dummy as; ac_word=$2
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013122if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013123 $as_echo_n "(cached) " >&6
13124else
13125 if test -n "$ac_ct_AS"; then
13126 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13127else
13128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129for as_dir in $PATH
13130do
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013135 ac_cv_prog_ac_ct_AS="as"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13138 fi
13139done
13140 done
13141IFS=$as_save_IFS
13142
13143fi
13144fi
13145ac_ct_AS=$ac_cv_prog_ac_ct_AS
13146if test -n "$ac_ct_AS"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13148$as_echo "$ac_ct_AS" >&6; }
13149else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152fi
13153
13154 if test "x$ac_ct_AS" = x; then
13155 AS="false"
13156 else
13157 case $cross_compiling:$ac_tool_warned in
13158yes:)
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13161ac_tool_warned=yes ;;
13162esac
13163 AS=$ac_ct_AS
13164 fi
13165else
13166 AS="$ac_cv_prog_AS"
13167fi
13168
13169 if test -n "$ac_tool_prefix"; then
13170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013174if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013175 $as_echo_n "(cached) " >&6
13176else
13177 if test -n "$DLLTOOL"; then
13178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13179else
13180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181for as_dir in $PATH
13182do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191done
13192 done
13193IFS=$as_save_IFS
13194
13195fi
13196fi
13197DLLTOOL=$ac_cv_prog_DLLTOOL
13198if test -n "$DLLTOOL"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13200$as_echo "$DLLTOOL" >&6; }
13201else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203$as_echo "no" >&6; }
13204fi
13205
13206
13207fi
13208if test -z "$ac_cv_prog_DLLTOOL"; then
13209 ac_ct_DLLTOOL=$DLLTOOL
13210 # Extract the first word of "dlltool", so it can be a program name with args.
13211set dummy dlltool; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013215 $as_echo_n "(cached) " >&6
13216else
13217 if test -n "$ac_ct_DLLTOOL"; then
13218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13219else
13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $PATH
13222do
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13230 fi
13231done
13232 done
13233IFS=$as_save_IFS
13234
13235fi
13236fi
13237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13238if test -n "$ac_ct_DLLTOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13240$as_echo "$ac_ct_DLLTOOL" >&6; }
13241else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246 if test "x$ac_ct_DLLTOOL" = x; then
13247 DLLTOOL="false"
13248 else
13249 case $cross_compiling:$ac_tool_warned in
13250yes:)
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13253ac_tool_warned=yes ;;
13254esac
13255 DLLTOOL=$ac_ct_DLLTOOL
13256 fi
13257else
13258 DLLTOOL="$ac_cv_prog_DLLTOOL"
13259fi
13260
13261 if test -n "$ac_tool_prefix"; then
13262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13263set dummy ${ac_tool_prefix}objdump; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013266if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013267 $as_echo_n "(cached) " >&6
13268else
13269 if test -n "$OBJDUMP"; then
13270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283done
13284 done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289OBJDUMP=$ac_cv_prog_OBJDUMP
13290if test -n "$OBJDUMP"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13292$as_echo "$OBJDUMP" >&6; }
13293else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298
13299fi
13300if test -z "$ac_cv_prog_OBJDUMP"; then
13301 ac_ct_OBJDUMP=$OBJDUMP
13302 # Extract the first word of "objdump", so it can be a program name with args.
13303set dummy objdump; ac_word=$2
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013306if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013307 $as_echo_n "(cached) " >&6
13308else
13309 if test -n "$ac_ct_OBJDUMP"; then
13310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13311else
13312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013319 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323done
13324 done
13325IFS=$as_save_IFS
13326
13327fi
13328fi
13329ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13330if test -n "$ac_ct_OBJDUMP"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13332$as_echo "$ac_ct_OBJDUMP" >&6; }
13333else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337
13338 if test "x$ac_ct_OBJDUMP" = x; then
13339 OBJDUMP="false"
13340 else
13341 case $cross_compiling:$ac_tool_warned in
13342yes:)
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345ac_tool_warned=yes ;;
13346esac
13347 OBJDUMP=$ac_ct_OBJDUMP
13348 fi
13349else
13350 OBJDUMP="$ac_cv_prog_OBJDUMP"
13351fi
13352
13353 ;;
13354esac
13355
13356test -z "$AS" && AS=as
13357
13358
13359
13360
13361
13362test -z "$DLLTOOL" && DLLTOOL=dlltool
13363
13364
13365
13366
13367
13368test -z "$OBJDUMP" && OBJDUMP=objdump
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378 # Check whether --enable-shared was given.
13379if test "${enable_shared+set}" = set; then :
13380 enableval=$enable_shared; p=${PACKAGE-default}
13381 case $enableval in
13382 yes) enable_shared=yes ;;
13383 no) enable_shared=no ;;
13384 *)
13385 enable_shared=no
13386 # Look at the argument we got. We use all the common list separators.
13387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13388 for pkg in $enableval; do
13389 IFS="$lt_save_ifs"
13390 if test "X$pkg" = "X$p"; then
13391 enable_shared=yes
13392 fi
13393 done
13394 IFS="$lt_save_ifs"
13395 ;;
13396 esac
13397else
13398 enable_shared=yes
13399fi
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409 # Check whether --enable-static was given.
13410if test "${enable_static+set}" = set; then :
13411 enableval=$enable_static; p=${PACKAGE-default}
13412 case $enableval in
13413 yes) enable_static=yes ;;
13414 no) enable_static=no ;;
13415 *)
13416 enable_static=no
13417 # Look at the argument we got. We use all the common list separators.
13418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13419 for pkg in $enableval; do
13420 IFS="$lt_save_ifs"
13421 if test "X$pkg" = "X$p"; then
13422 enable_static=yes
13423 fi
13424 done
13425 IFS="$lt_save_ifs"
13426 ;;
13427 esac
13428else
13429 enable_static=yes
13430fi
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441# Check whether --with-pic was given.
13442if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013443 withval=$with_pic; lt_p=${PACKAGE-default}
13444 case $withval in
13445 yes|no) pic_mode=$withval ;;
13446 *)
13447 pic_mode=default
13448 # Look at the argument we got. We use all the common list separators.
13449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13450 for lt_pkg in $withval; do
13451 IFS="$lt_save_ifs"
13452 if test "X$lt_pkg" = "X$lt_p"; then
13453 pic_mode=yes
13454 fi
13455 done
13456 IFS="$lt_save_ifs"
13457 ;;
13458 esac
cristy73bd4a52010-10-05 11:24:23 +000013459else
13460 pic_mode=default
13461fi
13462
13463
13464test -z "$pic_mode" && pic_mode=default
13465
13466
13467
13468
13469
13470
13471
13472 # Check whether --enable-fast-install was given.
13473if test "${enable_fast_install+set}" = set; then :
13474 enableval=$enable_fast_install; p=${PACKAGE-default}
13475 case $enableval in
13476 yes) enable_fast_install=yes ;;
13477 no) enable_fast_install=no ;;
13478 *)
13479 enable_fast_install=no
13480 # Look at the argument we got. We use all the common list separators.
13481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13482 for pkg in $enableval; do
13483 IFS="$lt_save_ifs"
13484 if test "X$pkg" = "X$p"; then
13485 enable_fast_install=yes
13486 fi
13487 done
13488 IFS="$lt_save_ifs"
13489 ;;
13490 esac
13491else
13492 enable_fast_install=yes
13493fi
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505# This can be used to rebuild libtool when needed
13506LIBTOOL_DEPS="$ltmain"
13507
13508# Always use our own libtool.
13509LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
cristy0c60a692010-11-04 01:09:47 +000013535
cristy99bd5232011-12-07 14:38:20 +000013536
13537
13538
13539
cristy73bd4a52010-10-05 11:24:23 +000013540test -z "$LN_S" && LN_S="ln -s"
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555if test -n "${ZSH_VERSION+set}" ; then
13556 setopt NO_GLOB_SUBST
13557fi
13558
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13560$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013561if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013562 $as_echo_n "(cached) " >&6
13563else
13564 rm -f .libs 2>/dev/null
13565mkdir .libs 2>/dev/null
13566if test -d .libs; then
13567 lt_cv_objdir=.libs
13568else
13569 # MS-DOS does not allow filenames that begin with a dot.
13570 lt_cv_objdir=_libs
13571fi
13572rmdir .libs 2>/dev/null
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13575$as_echo "$lt_cv_objdir" >&6; }
13576objdir=$lt_cv_objdir
13577
13578
13579
13580
13581
13582cat >>confdefs.h <<_ACEOF
13583#define LT_OBJDIR "$lt_cv_objdir/"
13584_ACEOF
13585
13586
13587
13588
cristy73bd4a52010-10-05 11:24:23 +000013589case $host_os in
13590aix3*)
13591 # AIX sometimes has problems with the GCC collect2 program. For some
13592 # reason, if we set the COLLECT_NAMES environment variable, the problems
13593 # vanish in a puff of smoke.
13594 if test "X${COLLECT_NAMES+set}" != Xset; then
13595 COLLECT_NAMES=
13596 export COLLECT_NAMES
13597 fi
13598 ;;
13599esac
13600
cristy73bd4a52010-10-05 11:24:23 +000013601# Global variables:
13602ofile=libtool
13603can_build_shared=yes
13604
13605# All known linkers require a `.a' archive for static linking (except MSVC,
13606# which needs '.lib').
13607libext=a
13608
13609with_gnu_ld="$lt_cv_prog_gnu_ld"
13610
13611old_CC="$CC"
13612old_CFLAGS="$CFLAGS"
13613
13614# Set sane defaults for various variables
13615test -z "$CC" && CC=cc
13616test -z "$LTCC" && LTCC=$CC
13617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13618test -z "$LD" && LD=ld
13619test -z "$ac_objext" && ac_objext=o
13620
13621for cc_temp in $compiler""; do
13622 case $cc_temp in
13623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13625 \-*) ;;
13626 *) break;;
13627 esac
13628done
cristy0c60a692010-11-04 01:09:47 +000013629cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013630
13631
13632# Only perform the check for file, if the check method requires it
13633test -z "$MAGIC_CMD" && MAGIC_CMD=file
13634case $deplibs_check_method in
13635file_magic*)
13636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13638$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013639if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013640 $as_echo_n "(cached) " >&6
13641else
13642 case $MAGIC_CMD in
13643[\\/*] | ?:[\\/]*)
13644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13645 ;;
13646*)
13647 lt_save_MAGIC_CMD="$MAGIC_CMD"
13648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13650 for ac_dir in $ac_dummy; do
13651 IFS="$lt_save_ifs"
13652 test -z "$ac_dir" && ac_dir=.
13653 if test -f $ac_dir/${ac_tool_prefix}file; then
13654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13655 if test -n "$file_magic_test_file"; then
13656 case $deplibs_check_method in
13657 "file_magic "*)
13658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13661 $EGREP "$file_magic_regex" > /dev/null; then
13662 :
13663 else
13664 cat <<_LT_EOF 1>&2
13665
13666*** Warning: the command libtool uses to detect shared libraries,
13667*** $file_magic_cmd, produces output that libtool cannot recognize.
13668*** The result is that libtool may fail to recognize shared libraries
13669*** as such. This will affect the creation of libtool libraries that
13670*** depend on shared libraries, but programs linked with such libtool
13671*** libraries will work regardless of this problem. Nevertheless, you
13672*** may want to report the problem to your system manager and/or to
13673*** bug-libtool@gnu.org
13674
13675_LT_EOF
13676 fi ;;
13677 esac
13678 fi
13679 break
13680 fi
13681 done
13682 IFS="$lt_save_ifs"
13683 MAGIC_CMD="$lt_save_MAGIC_CMD"
13684 ;;
13685esac
13686fi
13687
13688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13689if test -n "$MAGIC_CMD"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13691$as_echo "$MAGIC_CMD" >&6; }
13692else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694$as_echo "no" >&6; }
13695fi
13696
13697
13698
13699
13700
13701if test -z "$lt_cv_path_MAGIC_CMD"; then
13702 if test -n "$ac_tool_prefix"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13704$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013705if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013706 $as_echo_n "(cached) " >&6
13707else
13708 case $MAGIC_CMD in
13709[\\/*] | ?:[\\/]*)
13710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13711 ;;
13712*)
13713 lt_save_MAGIC_CMD="$MAGIC_CMD"
13714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13716 for ac_dir in $ac_dummy; do
13717 IFS="$lt_save_ifs"
13718 test -z "$ac_dir" && ac_dir=.
13719 if test -f $ac_dir/file; then
13720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13721 if test -n "$file_magic_test_file"; then
13722 case $deplibs_check_method in
13723 "file_magic "*)
13724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13727 $EGREP "$file_magic_regex" > /dev/null; then
13728 :
13729 else
13730 cat <<_LT_EOF 1>&2
13731
13732*** Warning: the command libtool uses to detect shared libraries,
13733*** $file_magic_cmd, produces output that libtool cannot recognize.
13734*** The result is that libtool may fail to recognize shared libraries
13735*** as such. This will affect the creation of libtool libraries that
13736*** depend on shared libraries, but programs linked with such libtool
13737*** libraries will work regardless of this problem. Nevertheless, you
13738*** may want to report the problem to your system manager and/or to
13739*** bug-libtool@gnu.org
13740
13741_LT_EOF
13742 fi ;;
13743 esac
13744 fi
13745 break
13746 fi
13747 done
13748 IFS="$lt_save_ifs"
13749 MAGIC_CMD="$lt_save_MAGIC_CMD"
13750 ;;
13751esac
13752fi
13753
13754MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13755if test -n "$MAGIC_CMD"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13757$as_echo "$MAGIC_CMD" >&6; }
13758else
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
13761fi
13762
13763
13764 else
13765 MAGIC_CMD=:
13766 fi
13767fi
13768
13769 fi
13770 ;;
13771esac
13772
13773# Use C for the default configuration in the libtool script
13774
13775lt_save_CC="$CC"
13776ac_ext=c
13777ac_cpp='$CPP $CPPFLAGS'
13778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781
13782
13783# Source file extension for C test sources.
13784ac_ext=c
13785
13786# Object file extension for compiled C test sources.
13787objext=o
13788objext=$objext
13789
13790# Code to be used in simple compile tests
13791lt_simple_compile_test_code="int some_variable = 0;"
13792
13793# Code to be used in simple link tests
13794lt_simple_link_test_code='int main(){return(0);}'
13795
13796
13797
13798
13799
13800
13801
13802# If no C compiler was specified, use CC.
13803LTCC=${LTCC-"$CC"}
13804
13805# If no C compiler flags were specified, use CFLAGS.
13806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13807
13808# Allow CC to be a program name with arguments.
13809compiler=$CC
13810
13811# Save the default compiler, since it gets overwritten when the other
13812# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13813compiler_DEFAULT=$CC
13814
13815# save warnings/boilerplate of simple test code
13816ac_outfile=conftest.$ac_objext
13817echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13819_lt_compiler_boilerplate=`cat conftest.err`
13820$RM conftest*
13821
13822ac_outfile=conftest.$ac_objext
13823echo "$lt_simple_link_test_code" >conftest.$ac_ext
13824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13825_lt_linker_boilerplate=`cat conftest.err`
13826$RM -r conftest*
13827
13828
13829## CAVEAT EMPTOR:
13830## There is no encapsulation within the following macros, do not change
13831## the running order or otherwise move them around unless you know exactly
13832## what you are doing...
13833if test -n "$compiler"; then
13834
13835lt_prog_compiler_no_builtin_flag=
13836
13837if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013838 case $cc_basename in
13839 nvcc*)
13840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13841 *)
13842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13843 esac
cristy73bd4a52010-10-05 11:24:23 +000013844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13846$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013847if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013848 $as_echo_n "(cached) " >&6
13849else
13850 lt_cv_prog_compiler_rtti_exceptions=no
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13853 lt_compiler_flag="-fno-rtti -fno-exceptions"
13854 # Insert the option either (1) after the last *FLAGS variable, or
13855 # (2) before a word containing "conftest.", or (3) at the end.
13856 # Note that $ac_compile itself does not contain backslashes and begins
13857 # with a dollar sign (not a hyphen), so the echo should work correctly.
13858 # The option is referenced via a variable to avoid confusing sed.
13859 lt_compile=`echo "$ac_compile" | $SED \
13860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13862 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013864 (eval "$lt_compile" 2>conftest.err)
13865 ac_status=$?
13866 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013868 if (exit $ac_status) && test -s "$ac_outfile"; then
13869 # The compiler can only warn and ignore the option if not recognized
13870 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13874 lt_cv_prog_compiler_rtti_exceptions=yes
13875 fi
13876 fi
13877 $RM conftest*
13878
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13881$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13882
13883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13884 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13885else
13886 :
13887fi
13888
13889fi
13890
13891
13892
13893
13894
13895
13896 lt_prog_compiler_wl=
13897lt_prog_compiler_pic=
13898lt_prog_compiler_static=
13899
cristy73bd4a52010-10-05 11:24:23 +000013900
13901 if test "$GCC" = yes; then
13902 lt_prog_compiler_wl='-Wl,'
13903 lt_prog_compiler_static='-static'
13904
13905 case $host_os in
13906 aix*)
13907 # All AIX code is PIC.
13908 if test "$host_cpu" = ia64; then
13909 # AIX 5 now supports IA64 processor
13910 lt_prog_compiler_static='-Bstatic'
13911 fi
13912 ;;
13913
13914 amigaos*)
13915 case $host_cpu in
13916 powerpc)
13917 # see comment about AmigaOS4 .so support
13918 lt_prog_compiler_pic='-fPIC'
13919 ;;
13920 m68k)
13921 # FIXME: we need at least 68020 code to build shared libraries, but
13922 # adding the `-m68020' flag to GCC prevents building anything better,
13923 # like `-m68040'.
13924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13925 ;;
13926 esac
13927 ;;
13928
13929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13930 # PIC is the default for these OSes.
13931 ;;
13932
13933 mingw* | cygwin* | pw32* | os2* | cegcc*)
13934 # This hack is so that the source file can tell whether it is being
13935 # built for inclusion in a dll (and should export symbols for example).
13936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13937 # (--disable-auto-import) libraries
13938 lt_prog_compiler_pic='-DDLL_EXPORT'
13939 ;;
13940
13941 darwin* | rhapsody*)
13942 # PIC is the default on this platform
13943 # Common symbols not allowed in MH_DYLIB files
13944 lt_prog_compiler_pic='-fno-common'
13945 ;;
13946
cristy0c60a692010-11-04 01:09:47 +000013947 haiku*)
13948 # PIC is the default for Haiku.
13949 # The "-static" flag exists, but is broken.
13950 lt_prog_compiler_static=
13951 ;;
13952
cristy73bd4a52010-10-05 11:24:23 +000013953 hpux*)
13954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13956 # sets the default TLS model and affects inlining.
13957 case $host_cpu in
13958 hppa*64*)
13959 # +Z the default
13960 ;;
13961 *)
13962 lt_prog_compiler_pic='-fPIC'
13963 ;;
13964 esac
13965 ;;
13966
13967 interix[3-9]*)
13968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13969 # Instead, we relocate shared libraries at runtime.
13970 ;;
13971
13972 msdosdjgpp*)
13973 # Just because we use GCC doesn't mean we suddenly get shared libraries
13974 # on systems that don't support them.
13975 lt_prog_compiler_can_build_shared=no
13976 enable_shared=no
13977 ;;
13978
13979 *nto* | *qnx*)
13980 # QNX uses GNU C++, but need to define -shared option too, otherwise
13981 # it will coredump.
13982 lt_prog_compiler_pic='-fPIC -shared'
13983 ;;
13984
13985 sysv4*MP*)
13986 if test -d /usr/nec; then
13987 lt_prog_compiler_pic=-Kconform_pic
13988 fi
13989 ;;
13990
13991 *)
13992 lt_prog_compiler_pic='-fPIC'
13993 ;;
13994 esac
cristy0c60a692010-11-04 01:09:47 +000013995
13996 case $cc_basename in
13997 nvcc*) # Cuda Compiler Driver 2.2
13998 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013999 if test -n "$lt_prog_compiler_pic"; then
14000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14001 fi
cristy0c60a692010-11-04 01:09:47 +000014002 ;;
14003 esac
cristy73bd4a52010-10-05 11:24:23 +000014004 else
14005 # PORTME Check for flag to pass linker flags through the system compiler.
14006 case $host_os in
14007 aix*)
14008 lt_prog_compiler_wl='-Wl,'
14009 if test "$host_cpu" = ia64; then
14010 # AIX 5 now supports IA64 processor
14011 lt_prog_compiler_static='-Bstatic'
14012 else
14013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14014 fi
14015 ;;
14016
14017 mingw* | cygwin* | pw32* | os2* | cegcc*)
14018 # This hack is so that the source file can tell whether it is being
14019 # built for inclusion in a dll (and should export symbols for example).
14020 lt_prog_compiler_pic='-DDLL_EXPORT'
14021 ;;
14022
14023 hpux9* | hpux10* | hpux11*)
14024 lt_prog_compiler_wl='-Wl,'
14025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14026 # not for PA HP-UX.
14027 case $host_cpu in
14028 hppa*64*|ia64*)
14029 # +Z the default
14030 ;;
14031 *)
14032 lt_prog_compiler_pic='+Z'
14033 ;;
14034 esac
14035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14036 lt_prog_compiler_static='${wl}-a ${wl}archive'
14037 ;;
14038
14039 irix5* | irix6* | nonstopux*)
14040 lt_prog_compiler_wl='-Wl,'
14041 # PIC (with -KPIC) is the default.
14042 lt_prog_compiler_static='-non_shared'
14043 ;;
14044
cristy0c60a692010-11-04 01:09:47 +000014045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014046 case $cc_basename in
14047 # old Intel for x86_64 which still supported -KPIC.
14048 ecc*)
14049 lt_prog_compiler_wl='-Wl,'
14050 lt_prog_compiler_pic='-KPIC'
14051 lt_prog_compiler_static='-static'
14052 ;;
14053 # icc used to be incompatible with GCC.
14054 # ICC 10 doesn't accept -KPIC any more.
14055 icc* | ifort*)
14056 lt_prog_compiler_wl='-Wl,'
14057 lt_prog_compiler_pic='-fPIC'
14058 lt_prog_compiler_static='-static'
14059 ;;
14060 # Lahey Fortran 8.1.
14061 lf95*)
14062 lt_prog_compiler_wl='-Wl,'
14063 lt_prog_compiler_pic='--shared'
14064 lt_prog_compiler_static='--static'
14065 ;;
cristyda16f162011-02-19 23:52:17 +000014066 nagfor*)
14067 # NAG Fortran compiler
14068 lt_prog_compiler_wl='-Wl,-Wl,,'
14069 lt_prog_compiler_pic='-PIC'
14070 lt_prog_compiler_static='-Bstatic'
14071 ;;
cristy0c60a692010-11-04 01:09:47 +000014072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014073 # Portland Group compilers (*not* the Pentium gcc compiler,
14074 # which looks to be a dead project)
14075 lt_prog_compiler_wl='-Wl,'
14076 lt_prog_compiler_pic='-fpic'
14077 lt_prog_compiler_static='-Bstatic'
14078 ;;
14079 ccc*)
14080 lt_prog_compiler_wl='-Wl,'
14081 # All Alpha code is PIC.
14082 lt_prog_compiler_static='-non_shared'
14083 ;;
cristy0c60a692010-11-04 01:09:47 +000014084 xl* | bgxl* | bgf* | mpixl*)
14085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014086 lt_prog_compiler_wl='-Wl,'
14087 lt_prog_compiler_pic='-qpic'
14088 lt_prog_compiler_static='-qstaticlink'
14089 ;;
14090 *)
14091 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14094 lt_prog_compiler_pic='-KPIC'
14095 lt_prog_compiler_static='-Bstatic'
14096 lt_prog_compiler_wl=''
14097 ;;
cristy99bd5232011-12-07 14:38:20 +000014098 *Sun\ F* | *Sun*Fortran*)
14099 lt_prog_compiler_pic='-KPIC'
14100 lt_prog_compiler_static='-Bstatic'
14101 lt_prog_compiler_wl='-Qoption ld '
14102 ;;
cristy73bd4a52010-10-05 11:24:23 +000014103 *Sun\ C*)
14104 # Sun C 5.9
14105 lt_prog_compiler_pic='-KPIC'
14106 lt_prog_compiler_static='-Bstatic'
14107 lt_prog_compiler_wl='-Wl,'
14108 ;;
cristy99bd5232011-12-07 14:38:20 +000014109 *Intel*\ [CF]*Compiler*)
14110 lt_prog_compiler_wl='-Wl,'
14111 lt_prog_compiler_pic='-fPIC'
14112 lt_prog_compiler_static='-static'
14113 ;;
14114 *Portland\ Group*)
14115 lt_prog_compiler_wl='-Wl,'
14116 lt_prog_compiler_pic='-fpic'
14117 lt_prog_compiler_static='-Bstatic'
14118 ;;
cristy73bd4a52010-10-05 11:24:23 +000014119 esac
14120 ;;
14121 esac
14122 ;;
14123
14124 newsos6)
14125 lt_prog_compiler_pic='-KPIC'
14126 lt_prog_compiler_static='-Bstatic'
14127 ;;
14128
14129 *nto* | *qnx*)
14130 # QNX uses GNU C++, but need to define -shared option too, otherwise
14131 # it will coredump.
14132 lt_prog_compiler_pic='-fPIC -shared'
14133 ;;
14134
14135 osf3* | osf4* | osf5*)
14136 lt_prog_compiler_wl='-Wl,'
14137 # All OSF/1 code is PIC.
14138 lt_prog_compiler_static='-non_shared'
14139 ;;
14140
14141 rdos*)
14142 lt_prog_compiler_static='-non_shared'
14143 ;;
14144
14145 solaris*)
14146 lt_prog_compiler_pic='-KPIC'
14147 lt_prog_compiler_static='-Bstatic'
14148 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014150 lt_prog_compiler_wl='-Qoption ld ';;
14151 *)
14152 lt_prog_compiler_wl='-Wl,';;
14153 esac
14154 ;;
14155
14156 sunos4*)
14157 lt_prog_compiler_wl='-Qoption ld '
14158 lt_prog_compiler_pic='-PIC'
14159 lt_prog_compiler_static='-Bstatic'
14160 ;;
14161
14162 sysv4 | sysv4.2uw2* | sysv4.3*)
14163 lt_prog_compiler_wl='-Wl,'
14164 lt_prog_compiler_pic='-KPIC'
14165 lt_prog_compiler_static='-Bstatic'
14166 ;;
14167
14168 sysv4*MP*)
14169 if test -d /usr/nec ;then
14170 lt_prog_compiler_pic='-Kconform_pic'
14171 lt_prog_compiler_static='-Bstatic'
14172 fi
14173 ;;
14174
14175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14176 lt_prog_compiler_wl='-Wl,'
14177 lt_prog_compiler_pic='-KPIC'
14178 lt_prog_compiler_static='-Bstatic'
14179 ;;
14180
14181 unicos*)
14182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_can_build_shared=no
14184 ;;
14185
14186 uts4*)
14187 lt_prog_compiler_pic='-pic'
14188 lt_prog_compiler_static='-Bstatic'
14189 ;;
14190
14191 *)
14192 lt_prog_compiler_can_build_shared=no
14193 ;;
14194 esac
14195 fi
14196
14197case $host_os in
14198 # For platforms which do not support PIC, -DPIC is meaningless:
14199 *djgpp*)
14200 lt_prog_compiler_pic=
14201 ;;
14202 *)
14203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14204 ;;
14205esac
cristy73bd4a52010-10-05 11:24:23 +000014206
cristyda16f162011-02-19 23:52:17 +000014207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14208$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14209if ${lt_cv_prog_compiler_pic+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211else
14212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14215$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14216lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014217
14218#
14219# Check to make sure the PIC flag actually works.
14220#
14221if test -n "$lt_prog_compiler_pic"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014224if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014225 $as_echo_n "(cached) " >&6
14226else
14227 lt_cv_prog_compiler_pic_works=no
14228 ac_outfile=conftest.$ac_objext
14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14231 # Insert the option either (1) after the last *FLAGS variable, or
14232 # (2) before a word containing "conftest.", or (3) at the end.
14233 # Note that $ac_compile itself does not contain backslashes and begins
14234 # with a dollar sign (not a hyphen), so the echo should work correctly.
14235 # The option is referenced via a variable to avoid confusing sed.
14236 lt_compile=`echo "$ac_compile" | $SED \
14237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14239 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014241 (eval "$lt_compile" 2>conftest.err)
14242 ac_status=$?
14243 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014245 if (exit $ac_status) && test -s "$ac_outfile"; then
14246 # The compiler can only warn and ignore the option if not recognized
14247 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14251 lt_cv_prog_compiler_pic_works=yes
14252 fi
14253 fi
14254 $RM conftest*
14255
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14259
14260if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14261 case $lt_prog_compiler_pic in
14262 "" | " "*) ;;
14263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14264 esac
14265else
14266 lt_prog_compiler_pic=
14267 lt_prog_compiler_can_build_shared=no
14268fi
14269
14270fi
14271
14272
14273
14274
14275
14276
cristyda16f162011-02-19 23:52:17 +000014277
14278
14279
14280
14281
cristy73bd4a52010-10-05 11:24:23 +000014282#
14283# Check to make sure the static flag actually works.
14284#
14285wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14287$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014288if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014289 $as_echo_n "(cached) " >&6
14290else
14291 lt_cv_prog_compiler_static_works=no
14292 save_LDFLAGS="$LDFLAGS"
14293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14296 # The linker can only warn and ignore the option if not recognized
14297 # So say no if there are warnings
14298 if test -s conftest.err; then
14299 # Append any errors to the config.log.
14300 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14303 if diff conftest.exp conftest.er2 >/dev/null; then
14304 lt_cv_prog_compiler_static_works=yes
14305 fi
14306 else
14307 lt_cv_prog_compiler_static_works=yes
14308 fi
14309 fi
14310 $RM -r conftest*
14311 LDFLAGS="$save_LDFLAGS"
14312
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14315$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14316
14317if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14318 :
14319else
14320 lt_prog_compiler_static=
14321fi
14322
14323
14324
14325
14326
14327
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014331if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014332 $as_echo_n "(cached) " >&6
14333else
14334 lt_cv_prog_compiler_c_o=no
14335 $RM -r conftest 2>/dev/null
14336 mkdir conftest
14337 cd conftest
14338 mkdir out
14339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341 lt_compiler_flag="-o out/conftest2.$ac_objext"
14342 # Insert the option either (1) after the last *FLAGS variable, or
14343 # (2) before a word containing "conftest.", or (3) at the end.
14344 # Note that $ac_compile itself does not contain backslashes and begins
14345 # with a dollar sign (not a hyphen), so the echo should work correctly.
14346 lt_compile=`echo "$ac_compile" | $SED \
14347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14349 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014351 (eval "$lt_compile" 2>out/conftest.err)
14352 ac_status=$?
14353 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14356 then
14357 # The compiler can only warn and ignore the option if not recognized
14358 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14362 lt_cv_prog_compiler_c_o=yes
14363 fi
14364 fi
14365 chmod u+w . 2>&5
14366 $RM conftest*
14367 # SGI C++ compiler will create directory out/ii_files/ for
14368 # template instantiation
14369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14370 $RM out/* && rmdir out
14371 cd ..
14372 $RM -r conftest
14373 $RM conftest*
14374
14375fi
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14378
14379
14380
14381
14382
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14385$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014386if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014387 $as_echo_n "(cached) " >&6
14388else
14389 lt_cv_prog_compiler_c_o=no
14390 $RM -r conftest 2>/dev/null
14391 mkdir conftest
14392 cd conftest
14393 mkdir out
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395
14396 lt_compiler_flag="-o out/conftest2.$ac_objext"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014406 (eval "$lt_compile" 2>out/conftest.err)
14407 ac_status=$?
14408 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14411 then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_c_o=yes
14418 fi
14419 fi
14420 chmod u+w . 2>&5
14421 $RM conftest*
14422 # SGI C++ compiler will create directory out/ii_files/ for
14423 # template instantiation
14424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14425 $RM out/* && rmdir out
14426 cd ..
14427 $RM -r conftest
14428 $RM conftest*
14429
14430fi
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14432$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14433
14434
14435
14436
14437hard_links="nottested"
14438if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14439 # do not overwrite the value of need_locks provided by the user
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14441$as_echo_n "checking if we can lock with hard links... " >&6; }
14442 hard_links=yes
14443 $RM conftest*
14444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14445 touch conftest.a
14446 ln conftest.a conftest.b 2>&5 || hard_links=no
14447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14449$as_echo "$hard_links" >&6; }
14450 if test "$hard_links" = no; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14452$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14453 need_locks=warn
14454 fi
14455else
14456 need_locks=no
14457fi
14458
14459
14460
14461
14462
14463
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14466
14467 runpath_var=
14468 allow_undefined_flag=
14469 always_export_symbols=no
14470 archive_cmds=
14471 archive_expsym_cmds=
14472 compiler_needs_object=no
14473 enable_shared_with_static_runtimes=no
14474 export_dynamic_flag_spec=
14475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476 hardcode_automatic=no
14477 hardcode_direct=no
14478 hardcode_direct_absolute=no
14479 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014480 hardcode_libdir_separator=
14481 hardcode_minus_L=no
14482 hardcode_shlibpath_var=unsupported
14483 inherit_rpath=no
14484 link_all_deplibs=unknown
14485 module_cmds=
14486 module_expsym_cmds=
14487 old_archive_from_new_cmds=
14488 old_archive_from_expsyms_cmds=
14489 thread_safe_flag_spec=
14490 whole_archive_flag_spec=
14491 # include_expsyms should be a list of space-separated symbols to be *always*
14492 # included in the symbol list
14493 include_expsyms=
14494 # exclude_expsyms can be an extended regexp of symbols to exclude
14495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14497 # as well as any symbol that contains `d'.
14498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14500 # platforms (ab)use it in PIC code, but their linkers get confused if
14501 # the symbol is explicitly referenced. Since portable code cannot
14502 # rely on this symbol name, it's probably fine to never include it in
14503 # preloaded symbol tables.
14504 # Exclude shared library initialization/finalization symbols.
14505 extract_expsyms_cmds=
14506
14507 case $host_os in
14508 cygwin* | mingw* | pw32* | cegcc*)
14509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14510 # When not using gcc, we currently assume that we are using
14511 # Microsoft Visual C++.
14512 if test "$GCC" != yes; then
14513 with_gnu_ld=no
14514 fi
14515 ;;
14516 interix*)
14517 # we just hope/assume this is gcc and not c89 (= MSVC++)
14518 with_gnu_ld=yes
14519 ;;
14520 openbsd*)
14521 with_gnu_ld=no
14522 ;;
14523 esac
14524
14525 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014526
14527 # On some targets, GNU ld is compatible enough with the native linker
14528 # that we're better off using the native interface for both.
14529 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014530 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014531 case $host_os in
14532 aix*)
14533 # The AIX port of GNU ld has always aspired to compatibility
14534 # with the native linker. However, as the warning in the GNU ld
14535 # block says, versions before 2.19.5* couldn't really create working
14536 # shared libraries, regardless of the interface used.
14537 case `$LD -v 2>&1` in
14538 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14539 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14540 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14541 *)
14542 lt_use_gnu_ld_interface=yes
14543 ;;
14544 esac
14545 ;;
14546 *)
14547 lt_use_gnu_ld_interface=yes
14548 ;;
14549 esac
14550 fi
14551
14552 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014553 # If archive_cmds runs LD, not CC, wlarc should be empty
14554 wlarc='${wl}'
14555
14556 # Set some defaults for GNU ld with shared library support. These
14557 # are reset later if shared libraries are not supported. Putting them
14558 # here allows them to be overridden if necessary.
14559 runpath_var=LD_RUN_PATH
14560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14561 export_dynamic_flag_spec='${wl}--export-dynamic'
14562 # ancient GNU ld didn't support --whole-archive et. al.
14563 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14564 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14565 else
14566 whole_archive_flag_spec=
14567 fi
14568 supports_anon_versioning=no
14569 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014570 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014571 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14574 *\ 2.11.*) ;; # other 2.11 versions
14575 *) supports_anon_versioning=yes ;;
14576 esac
14577
14578 # See if GNU ld supports shared libraries.
14579 case $host_os in
14580 aix[3-9]*)
14581 # On AIX/PPC, the GNU linker is very broken
14582 if test "$host_cpu" != ia64; then
14583 ld_shlibs=no
14584 cat <<_LT_EOF 1>&2
14585
cristy0c60a692010-11-04 01:09:47 +000014586*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014587*** to be unable to reliably create shared libraries on AIX.
14588*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014589*** really care for shared libraries, you may want to install binutils
14590*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14591*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014592
14593_LT_EOF
14594 fi
14595 ;;
14596
14597 amigaos*)
14598 case $host_cpu in
14599 powerpc)
14600 # see comment about AmigaOS4 .so support
14601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602 archive_expsym_cmds=''
14603 ;;
14604 m68k)
14605 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)'
14606 hardcode_libdir_flag_spec='-L$libdir'
14607 hardcode_minus_L=yes
14608 ;;
14609 esac
14610 ;;
14611
14612 beos*)
14613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14614 allow_undefined_flag=unsupported
14615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14616 # support --undefined. This deserves some investigation. FIXME
14617 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 else
14619 ld_shlibs=no
14620 fi
14621 ;;
14622
14623 cygwin* | mingw* | pw32* | cegcc*)
14624 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14625 # as there is no search path for DLLs.
14626 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014627 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014628 allow_undefined_flag=unsupported
14629 always_export_symbols=no
14630 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014631 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'
14632 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 +000014633
14634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14636 # If the export-symbols file already is a .def file (1st line
14637 # is EXPORTS), use it as is; otherwise, prepend...
14638 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14639 cp $export_symbols $output_objdir/$soname.def;
14640 else
14641 echo EXPORTS > $output_objdir/$soname.def;
14642 cat $export_symbols >> $output_objdir/$soname.def;
14643 fi~
14644 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14645 else
14646 ld_shlibs=no
14647 fi
14648 ;;
14649
cristy0c60a692010-11-04 01:09:47 +000014650 haiku*)
14651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652 link_all_deplibs=yes
14653 ;;
14654
cristy73bd4a52010-10-05 11:24:23 +000014655 interix[3-9]*)
14656 hardcode_direct=no
14657 hardcode_shlibpath_var=no
14658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14659 export_dynamic_flag_spec='${wl}-E'
14660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14661 # Instead, shared libraries are loaded at an image base (0x10000000 by
14662 # default) and relocated if they conflict, which is a slow very memory
14663 # consuming and fragmenting process. To avoid this, we pick a random,
14664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14667 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'
14668 ;;
14669
cristy0c60a692010-11-04 01:09:47 +000014670 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014671 tmp_diet=no
14672 if test "$host_os" = linux-dietlibc; then
14673 case $cc_basename in
14674 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14675 esac
14676 fi
14677 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14678 && test "$tmp_diet" = no
14679 then
cristyda16f162011-02-19 23:52:17 +000014680 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014681 tmp_sharedflag='-shared'
14682 case $cc_basename,$host_cpu in
14683 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014684 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 +000014685 tmp_addflag=' $pic_flag'
14686 ;;
cristy0c60a692010-11-04 01:09:47 +000014687 pgf77* | pgf90* | pgf95* | pgfortran*)
14688 # Portland Group f77 and f90 compilers
14689 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 +000014690 tmp_addflag=' $pic_flag -Mnomain' ;;
14691 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14692 tmp_addflag=' -i_dynamic' ;;
14693 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14694 tmp_addflag=' -i_dynamic -nofor_main' ;;
14695 ifc* | ifort*) # Intel Fortran compiler
14696 tmp_addflag=' -nofor_main' ;;
14697 lf95*) # Lahey Fortran 8.1
14698 whole_archive_flag_spec=
14699 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014700 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014701 tmp_sharedflag='-qmkshrobj'
14702 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014703 nvcc*) # Cuda Compiler Driver 2.2
14704 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'
14705 compiler_needs_object=yes
14706 ;;
cristy73bd4a52010-10-05 11:24:23 +000014707 esac
14708 case `$CC -V 2>&1 | sed 5q` in
14709 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014710 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 +000014711 compiler_needs_object=yes
14712 tmp_sharedflag='-G' ;;
14713 *Sun\ F*) # Sun Fortran 8.3
14714 tmp_sharedflag='-G' ;;
14715 esac
14716 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14717
14718 if test "x$supports_anon_versioning" = xyes; then
14719 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14720 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14721 echo "local: *; };" >> $output_objdir/$libname.ver~
14722 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14723 fi
14724
14725 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014726 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014727 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14728 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014730 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014731 if test "x$supports_anon_versioning" = xyes; then
14732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14734 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014735 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014736 fi
14737 ;;
14738 esac
14739 else
14740 ld_shlibs=no
14741 fi
14742 ;;
14743
14744 netbsd*)
14745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14747 wlarc=
14748 else
cristyda16f162011-02-19 23:52:17 +000014749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 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 +000014751 fi
14752 ;;
14753
14754 solaris*)
14755 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14756 ld_shlibs=no
14757 cat <<_LT_EOF 1>&2
14758
14759*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14760*** create shared libraries on Solaris systems. Therefore, libtool
14761*** is disabling shared libraries support. We urge you to upgrade GNU
14762*** binutils to release 2.9.1 or newer. Another option is to modify
14763*** your PATH or compiler configuration so that the native linker is
14764*** used, and then restart.
14765
14766_LT_EOF
14767 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769 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 +000014770 else
14771 ld_shlibs=no
14772 fi
14773 ;;
14774
14775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14776 case `$LD -v 2>&1` in
14777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14778 ld_shlibs=no
14779 cat <<_LT_EOF 1>&2
14780
14781*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14782*** reliably create shared libraries on SCO systems. Therefore, libtool
14783*** is disabling shared libraries support. We urge you to upgrade GNU
14784*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14785*** your PATH or compiler configuration so that the native linker is
14786*** used, and then restart.
14787
14788_LT_EOF
14789 ;;
14790 *)
14791 # For security reasons, it is highly recommended that you always
14792 # use absolute paths for naming shared libraries, and exclude the
14793 # DT_RUNPATH tag from executables and libraries. But doing so
14794 # requires that you compile everything twice, which is a pain.
14795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14799 else
14800 ld_shlibs=no
14801 fi
14802 ;;
14803 esac
14804 ;;
14805
14806 sunos4*)
14807 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14808 wlarc=
14809 hardcode_direct=yes
14810 hardcode_shlibpath_var=no
14811 ;;
14812
14813 *)
14814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816 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 +000014817 else
14818 ld_shlibs=no
14819 fi
14820 ;;
14821 esac
14822
14823 if test "$ld_shlibs" = no; then
14824 runpath_var=
14825 hardcode_libdir_flag_spec=
14826 export_dynamic_flag_spec=
14827 whole_archive_flag_spec=
14828 fi
14829 else
14830 # PORTME fill in a description of your system's linker (not GNU ld)
14831 case $host_os in
14832 aix3*)
14833 allow_undefined_flag=unsupported
14834 always_export_symbols=yes
14835 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'
14836 # Note: this linker hardcodes the directories in LIBPATH if there
14837 # are no directories specified by -L.
14838 hardcode_minus_L=yes
14839 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14840 # Neither direct hardcoding nor static linking is supported with a
14841 # broken collect2.
14842 hardcode_direct=unsupported
14843 fi
14844 ;;
14845
14846 aix[4-9]*)
14847 if test "$host_cpu" = ia64; then
14848 # On IA64, the linker does run time linking by default, so we don't
14849 # have to do anything special.
14850 aix_use_runtimelinking=no
14851 exp_sym_flag='-Bexport'
14852 no_entry_flag=""
14853 else
14854 # If we're using GNU nm, then we don't want the "-C" option.
14855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014856 # Also, AIX nm treats weak defined symbols like other global
14857 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014858 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014859 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 +000014860 else
14861 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'
14862 fi
14863 aix_use_runtimelinking=no
14864
14865 # Test if we are trying to use run time linking or normal
14866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14867 # need to do runtime linking.
14868 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14869 for ld_flag in $LDFLAGS; do
14870 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14871 aix_use_runtimelinking=yes
14872 break
14873 fi
14874 done
14875 ;;
14876 esac
14877
14878 exp_sym_flag='-bexport'
14879 no_entry_flag='-bnoentry'
14880 fi
14881
14882 # When large executables or shared objects are built, AIX ld can
14883 # have problems creating the table of contents. If linking a library
14884 # or program results in "error TOC overflow" add -mminimal-toc to
14885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14887
14888 archive_cmds=''
14889 hardcode_direct=yes
14890 hardcode_direct_absolute=yes
14891 hardcode_libdir_separator=':'
14892 link_all_deplibs=yes
14893 file_list_spec='${wl}-f,'
14894
14895 if test "$GCC" = yes; then
14896 case $host_os in aix4.[012]|aix4.[012].*)
14897 # We only want to do this on AIX 4.2 and lower, the check
14898 # below for broken collect2 doesn't work under 4.3+
14899 collect2name=`${CC} -print-prog-name=collect2`
14900 if test -f "$collect2name" &&
14901 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14902 then
14903 # We have reworked collect2
14904 :
14905 else
14906 # We have old collect2
14907 hardcode_direct=unsupported
14908 # It fails to find uninstalled libraries when the uninstalled
14909 # path is not listed in the libpath. Setting hardcode_minus_L
14910 # to unsupported forces relinking
14911 hardcode_minus_L=yes
14912 hardcode_libdir_flag_spec='-L$libdir'
14913 hardcode_libdir_separator=
14914 fi
14915 ;;
14916 esac
14917 shared_flag='-shared'
14918 if test "$aix_use_runtimelinking" = yes; then
14919 shared_flag="$shared_flag "'${wl}-G'
14920 fi
14921 else
14922 # not using gcc
14923 if test "$host_cpu" = ia64; then
14924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14925 # chokes on -Wl,-G. The following line is correct:
14926 shared_flag='-G'
14927 else
14928 if test "$aix_use_runtimelinking" = yes; then
14929 shared_flag='${wl}-G'
14930 else
14931 shared_flag='${wl}-bM:SRE'
14932 fi
14933 fi
14934 fi
14935
14936 export_dynamic_flag_spec='${wl}-bexpall'
14937 # It seems that -bexpall does not export symbols beginning with
14938 # underscore (_), so it is better to generate a list of symbols to export.
14939 always_export_symbols=yes
14940 if test "$aix_use_runtimelinking" = yes; then
14941 # Warning - without using the other runtime loading flags (-brtl),
14942 # -berok will link without error, but may produce a broken library.
14943 allow_undefined_flag='-berok'
14944 # Determine the default libpath from the value encoded in an
14945 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014946 if test "${lt_cv_aix_libpath+set}" = set; then
14947 aix_libpath=$lt_cv_aix_libpath
14948else
14949 if ${lt_cv_aix_libpath_+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014953/* end confdefs.h. */
14954
14955int
14956main ()
14957{
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963if ac_fn_c_try_link "$LINENO"; then :
14964
cristyda16f162011-02-19 23:52:17 +000014965 lt_aix_libpath_sed='
14966 /Import File Strings/,/^$/ {
14967 /^0/ {
14968 s/^0 *\([^ ]*\) *$/\1/
14969 p
14970 }
14971 }'
14972 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14973 # Check for a 64-bit object if we didn't find anything.
14974 if test -z "$lt_cv_aix_libpath_"; then
14975 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14976 fi
cristy73bd4a52010-10-05 11:24:23 +000014977fi
14978rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014980 if test -z "$lt_cv_aix_libpath_"; then
14981 lt_cv_aix_libpath_="/usr/lib:/lib"
14982 fi
14983
14984fi
14985
14986 aix_libpath=$lt_cv_aix_libpath_
14987fi
cristy73bd4a52010-10-05 11:24:23 +000014988
14989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014990 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 +000014991 else
14992 if test "$host_cpu" = ia64; then
14993 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14994 allow_undefined_flag="-z nodefs"
14995 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"
14996 else
14997 # Determine the default libpath from the value encoded in an
14998 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014999 if test "${lt_cv_aix_libpath+set}" = set; then
15000 aix_libpath=$lt_cv_aix_libpath
15001else
15002 if ${lt_cv_aix_libpath_+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015006/* end confdefs.h. */
15007
15008int
15009main ()
15010{
15011
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016if ac_fn_c_try_link "$LINENO"; then :
15017
cristyda16f162011-02-19 23:52:17 +000015018 lt_aix_libpath_sed='
15019 /Import File Strings/,/^$/ {
15020 /^0/ {
15021 s/^0 *\([^ ]*\) *$/\1/
15022 p
15023 }
15024 }'
15025 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15026 # Check for a 64-bit object if we didn't find anything.
15027 if test -z "$lt_cv_aix_libpath_"; then
15028 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15029 fi
cristy73bd4a52010-10-05 11:24:23 +000015030fi
15031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015033 if test -z "$lt_cv_aix_libpath_"; then
15034 lt_cv_aix_libpath_="/usr/lib:/lib"
15035 fi
15036
15037fi
15038
15039 aix_libpath=$lt_cv_aix_libpath_
15040fi
cristy73bd4a52010-10-05 11:24:23 +000015041
15042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15043 # Warning - without using the other run time loading flags,
15044 # -berok will link without error, but may produce a broken library.
15045 no_undefined_flag=' ${wl}-bernotok'
15046 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015047 if test "$with_gnu_ld" = yes; then
15048 # We only use this code for GNU lds that support --whole-archive.
15049 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15050 else
15051 # Exported symbols can be pulled into shared objects from archives
15052 whole_archive_flag_spec='$convenience'
15053 fi
cristy73bd4a52010-10-05 11:24:23 +000015054 archive_cmds_need_lc=yes
15055 # This is similar to how AIX traditionally builds its shared libraries.
15056 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'
15057 fi
15058 fi
15059 ;;
15060
15061 amigaos*)
15062 case $host_cpu in
15063 powerpc)
15064 # see comment about AmigaOS4 .so support
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 archive_expsym_cmds=''
15067 ;;
15068 m68k)
15069 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)'
15070 hardcode_libdir_flag_spec='-L$libdir'
15071 hardcode_minus_L=yes
15072 ;;
15073 esac
15074 ;;
15075
15076 bsdi[45]*)
15077 export_dynamic_flag_spec=-rdynamic
15078 ;;
15079
15080 cygwin* | mingw* | pw32* | cegcc*)
15081 # When not using gcc, we currently assume that we are using
15082 # Microsoft Visual C++.
15083 # hardcode_libdir_flag_spec is actually meaningless, as there is
15084 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015085 case $cc_basename in
15086 cl*)
15087 # Native MSVC
15088 hardcode_libdir_flag_spec=' '
15089 allow_undefined_flag=unsupported
15090 always_export_symbols=yes
15091 file_list_spec='@'
15092 # Tell ltmain to make .lib files, not .a files.
15093 libext=lib
15094 # Tell ltmain to make .dll files, not .so files.
15095 shrext_cmds=".dll"
15096 # FIXME: Setting linknames here is a bad hack.
15097 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15098 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15099 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15100 else
15101 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15102 fi~
15103 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15104 linknames='
15105 # The linker will not automatically build a static lib if we build a DLL.
15106 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15107 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015108 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15110 # Don't use ranlib
15111 old_postinstall_cmds='chmod 644 $oldlib'
15112 postlink_cmds='lt_outputfile="@OUTPUT@"~
15113 lt_tool_outputfile="@TOOL_OUTPUT@"~
15114 case $lt_outputfile in
15115 *.exe|*.EXE) ;;
15116 *)
15117 lt_outputfile="$lt_outputfile.exe"
15118 lt_tool_outputfile="$lt_tool_outputfile.exe"
15119 ;;
15120 esac~
15121 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15122 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15123 $RM "$lt_outputfile.manifest";
15124 fi'
15125 ;;
15126 *)
15127 # Assume MSVC wrapper
15128 hardcode_libdir_flag_spec=' '
15129 allow_undefined_flag=unsupported
15130 # Tell ltmain to make .lib files, not .a files.
15131 libext=lib
15132 # Tell ltmain to make .dll files, not .so files.
15133 shrext_cmds=".dll"
15134 # FIXME: Setting linknames here is a bad hack.
15135 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15136 # The linker will automatically build a .lib file if we build a DLL.
15137 old_archive_from_new_cmds='true'
15138 # FIXME: Should let the user specify the lib program.
15139 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15140 enable_shared_with_static_runtimes=yes
15141 ;;
15142 esac
cristy73bd4a52010-10-05 11:24:23 +000015143 ;;
15144
15145 darwin* | rhapsody*)
15146
15147
15148 archive_cmds_need_lc=no
15149 hardcode_direct=no
15150 hardcode_automatic=yes
15151 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015152 if test "$lt_cv_ld_force_load" = "yes"; then
15153 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 +000015154
cristy0c60a692010-11-04 01:09:47 +000015155 else
15156 whole_archive_flag_spec=''
15157 fi
cristy73bd4a52010-10-05 11:24:23 +000015158 link_all_deplibs=yes
15159 allow_undefined_flag="$_lt_dar_allow_undefined"
15160 case $cc_basename in
15161 ifort*) _lt_dar_can_shared=yes ;;
15162 *) _lt_dar_can_shared=$GCC ;;
15163 esac
15164 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015165 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015166 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15167 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15168 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}"
15169 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}"
15170
15171 else
15172 ld_shlibs=no
15173 fi
15174
15175 ;;
15176
15177 dgux*)
15178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_libdir_flag_spec='-L$libdir'
15180 hardcode_shlibpath_var=no
15181 ;;
15182
cristy73bd4a52010-10-05 11:24:23 +000015183 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15184 # support. Future versions do this automatically, but an explicit c++rt0.o
15185 # does not break anything, and helps significantly (at the cost of a little
15186 # extra space).
15187 freebsd2.2*)
15188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15189 hardcode_libdir_flag_spec='-R$libdir'
15190 hardcode_direct=yes
15191 hardcode_shlibpath_var=no
15192 ;;
15193
15194 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015195 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15197 hardcode_direct=yes
15198 hardcode_minus_L=yes
15199 hardcode_shlibpath_var=no
15200 ;;
15201
15202 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15203 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015205 hardcode_libdir_flag_spec='-R$libdir'
15206 hardcode_direct=yes
15207 hardcode_shlibpath_var=no
15208 ;;
15209
15210 hpux9*)
15211 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015212 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 +000015213 else
15214 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'
15215 fi
15216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15217 hardcode_libdir_separator=:
15218 hardcode_direct=yes
15219
15220 # hardcode_minus_L: Not really in the search PATH,
15221 # but as the default location of the library.
15222 hardcode_minus_L=yes
15223 export_dynamic_flag_spec='${wl}-E'
15224 ;;
15225
15226 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015227 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015228 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 +000015229 else
15230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15231 fi
15232 if test "$with_gnu_ld" = no; then
15233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015234 hardcode_libdir_separator=:
15235 hardcode_direct=yes
15236 hardcode_direct_absolute=yes
15237 export_dynamic_flag_spec='${wl}-E'
15238 # hardcode_minus_L: Not really in the search PATH,
15239 # but as the default location of the library.
15240 hardcode_minus_L=yes
15241 fi
15242 ;;
15243
15244 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015246 case $host_cpu in
15247 hppa*64*)
15248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249 ;;
15250 ia64*)
cristyda16f162011-02-19 23:52:17 +000015251 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015252 ;;
15253 *)
cristyda16f162011-02-19 23:52:17 +000015254 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 +000015255 ;;
15256 esac
15257 else
15258 case $host_cpu in
15259 hppa*64*)
15260 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 ;;
15262 ia64*)
15263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264 ;;
15265 *)
cristy0c60a692010-11-04 01:09:47 +000015266
15267 # Older versions of the 11.00 compiler do not understand -b yet
15268 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15270$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015271if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015272 $as_echo_n "(cached) " >&6
15273else
15274 lt_cv_prog_compiler__b=no
15275 save_LDFLAGS="$LDFLAGS"
15276 LDFLAGS="$LDFLAGS -b"
15277 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15279 # The linker can only warn and ignore the option if not recognized
15280 # So say no if there are warnings
15281 if test -s conftest.err; then
15282 # Append any errors to the config.log.
15283 cat conftest.err 1>&5
15284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15286 if diff conftest.exp conftest.er2 >/dev/null; then
15287 lt_cv_prog_compiler__b=yes
15288 fi
15289 else
15290 lt_cv_prog_compiler__b=yes
15291 fi
15292 fi
15293 $RM -r conftest*
15294 LDFLAGS="$save_LDFLAGS"
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15298$as_echo "$lt_cv_prog_compiler__b" >&6; }
15299
15300if test x"$lt_cv_prog_compiler__b" = xyes; then
15301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15302else
15303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15304fi
15305
cristy73bd4a52010-10-05 11:24:23 +000015306 ;;
15307 esac
15308 fi
15309 if test "$with_gnu_ld" = no; then
15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15311 hardcode_libdir_separator=:
15312
15313 case $host_cpu in
15314 hppa*64*|ia64*)
15315 hardcode_direct=no
15316 hardcode_shlibpath_var=no
15317 ;;
15318 *)
15319 hardcode_direct=yes
15320 hardcode_direct_absolute=yes
15321 export_dynamic_flag_spec='${wl}-E'
15322
15323 # hardcode_minus_L: Not really in the search PATH,
15324 # but as the default location of the library.
15325 hardcode_minus_L=yes
15326 ;;
15327 esac
15328 fi
15329 ;;
15330
15331 irix5* | irix6* | nonstopux*)
15332 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015333 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 +000015334 # Try to use the -exported_symbol ld option, if it does not
15335 # work, assume that -exports_file does not work either and
15336 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015337 # This should be the same for all languages, so no per-tag cache variable.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15339$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15340if ${lt_cv_irix_exported_symbol+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342else
15343 save_LDFLAGS="$LDFLAGS"
15344 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015346/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015347int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015348_ACEOF
15349if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015350 lt_cv_irix_exported_symbol=yes
15351else
15352 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015356 LDFLAGS="$save_LDFLAGS"
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15359$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15360 if test "$lt_cv_irix_exported_symbol" = yes; then
15361 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'
15362 fi
cristy73bd4a52010-10-05 11:24:23 +000015363 else
cristy0c60a692010-11-04 01:09:47 +000015364 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'
15365 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 +000015366 fi
15367 archive_cmds_need_lc='no'
15368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator=:
15370 inherit_rpath=yes
15371 link_all_deplibs=yes
15372 ;;
15373
15374 netbsd*)
15375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15377 else
15378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15379 fi
15380 hardcode_libdir_flag_spec='-R$libdir'
15381 hardcode_direct=yes
15382 hardcode_shlibpath_var=no
15383 ;;
15384
15385 newsos6)
15386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387 hardcode_direct=yes
15388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15389 hardcode_libdir_separator=:
15390 hardcode_shlibpath_var=no
15391 ;;
15392
15393 *nto* | *qnx*)
15394 ;;
15395
15396 openbsd*)
15397 if test -f /usr/libexec/ld.so; then
15398 hardcode_direct=yes
15399 hardcode_shlibpath_var=no
15400 hardcode_direct_absolute=yes
15401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15405 export_dynamic_flag_spec='${wl}-E'
15406 else
15407 case $host_os in
15408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410 hardcode_libdir_flag_spec='-R$libdir'
15411 ;;
15412 *)
15413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15415 ;;
15416 esac
15417 fi
15418 else
15419 ld_shlibs=no
15420 fi
15421 ;;
15422
15423 os2*)
15424 hardcode_libdir_flag_spec='-L$libdir'
15425 hardcode_minus_L=yes
15426 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015427 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 +000015428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15429 ;;
15430
15431 osf3*)
15432 if test "$GCC" = yes; then
15433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015434 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 +000015435 else
15436 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015437 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 +000015438 fi
15439 archive_cmds_need_lc='no'
15440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15441 hardcode_libdir_separator=:
15442 ;;
15443
15444 osf4* | osf5*) # as osf3* with the addition of -msym flag
15445 if test "$GCC" = yes; then
15446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015447 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 +000015448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15449 else
15450 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015451 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 +000015452 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 +000015453 $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 +000015454
15455 # Both c and cxx compiler support -rpath directly
15456 hardcode_libdir_flag_spec='-rpath $libdir'
15457 fi
15458 archive_cmds_need_lc='no'
15459 hardcode_libdir_separator=:
15460 ;;
15461
15462 solaris*)
15463 no_undefined_flag=' -z defs'
15464 if test "$GCC" = yes; then
15465 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015466 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 +000015467 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 +000015468 $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 +000015469 else
15470 case `$CC -V 2>&1` in
15471 *"Compilers 5.0"*)
15472 wlarc=''
15473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15476 ;;
15477 *)
15478 wlarc='${wl}'
15479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15482 ;;
15483 esac
15484 fi
15485 hardcode_libdir_flag_spec='-R$libdir'
15486 hardcode_shlibpath_var=no
15487 case $host_os in
15488 solaris2.[0-5] | solaris2.[0-5].*) ;;
15489 *)
15490 # The compiler driver will combine and reorder linker options,
15491 # but understands `-z linker_flag'. GCC discards it without `$wl',
15492 # but is careful enough not to reorder.
15493 # Supported since Solaris 2.6 (maybe 2.5.1?)
15494 if test "$GCC" = yes; then
15495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15496 else
15497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15498 fi
15499 ;;
15500 esac
15501 link_all_deplibs=yes
15502 ;;
15503
15504 sunos4*)
15505 if test "x$host_vendor" = xsequent; then
15506 # Use $CC to link under sequent, because it throws in some extra .o
15507 # files that make .init and .fini sections work.
15508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15509 else
15510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15511 fi
15512 hardcode_libdir_flag_spec='-L$libdir'
15513 hardcode_direct=yes
15514 hardcode_minus_L=yes
15515 hardcode_shlibpath_var=no
15516 ;;
15517
15518 sysv4)
15519 case $host_vendor in
15520 sni)
15521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes # is this really true???
15523 ;;
15524 siemens)
15525 ## LD is ld it makes a PLAMLIB
15526 ## CC just makes a GrossModule.
15527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15528 reload_cmds='$CC -r -o $output$reload_objs'
15529 hardcode_direct=no
15530 ;;
15531 motorola)
15532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15534 ;;
15535 esac
15536 runpath_var='LD_RUN_PATH'
15537 hardcode_shlibpath_var=no
15538 ;;
15539
15540 sysv4.3*)
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var=no
15543 export_dynamic_flag_spec='-Bexport'
15544 ;;
15545
15546 sysv4*MP*)
15547 if test -d /usr/nec; then
15548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var=no
15550 runpath_var=LD_RUN_PATH
15551 hardcode_runpath_var=yes
15552 ld_shlibs=yes
15553 fi
15554 ;;
15555
15556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15557 no_undefined_flag='${wl}-z,text'
15558 archive_cmds_need_lc=no
15559 hardcode_shlibpath_var=no
15560 runpath_var='LD_RUN_PATH'
15561
15562 if test "$GCC" = yes; then
15563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 else
15566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568 fi
15569 ;;
15570
15571 sysv5* | sco3.2v5* | sco5v6*)
15572 # Note: We can NOT use -z defs as we might desire, because we do not
15573 # link with -lc, and that would cause any symbols used from libc to
15574 # always be unresolved, which means just about no library would
15575 # ever link correctly. If we're not using GNU ld we use -z text
15576 # though, which does catch some bad symbols but isn't as heavy-handed
15577 # as -z defs.
15578 no_undefined_flag='${wl}-z,text'
15579 allow_undefined_flag='${wl}-z,nodefs'
15580 archive_cmds_need_lc=no
15581 hardcode_shlibpath_var=no
15582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15583 hardcode_libdir_separator=':'
15584 link_all_deplibs=yes
15585 export_dynamic_flag_spec='${wl}-Bexport'
15586 runpath_var='LD_RUN_PATH'
15587
15588 if test "$GCC" = yes; then
15589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 else
15592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 fi
15595 ;;
15596
15597 uts4*)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec='-L$libdir'
15600 hardcode_shlibpath_var=no
15601 ;;
15602
15603 *)
15604 ld_shlibs=no
15605 ;;
15606 esac
15607
15608 if test x$host_vendor = xsni; then
15609 case $host in
15610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15611 export_dynamic_flag_spec='${wl}-Blargedynsym'
15612 ;;
15613 esac
15614 fi
15615 fi
15616
15617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15618$as_echo "$ld_shlibs" >&6; }
15619test "$ld_shlibs" = no && can_build_shared=no
15620
15621with_gnu_ld=$with_gnu_ld
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637#
15638# Do we need to explicitly link libc?
15639#
15640case "x$archive_cmds_need_lc" in
15641x|xyes)
15642 # Assume -lc should be added
15643 archive_cmds_need_lc=yes
15644
15645 if test "$enable_shared" = yes && test "$GCC" = yes; then
15646 case $archive_cmds in
15647 *'~'*)
15648 # FIXME: we may have to deal with multi-command sequences.
15649 ;;
15650 '$CC '*)
15651 # Test whether the compiler implicitly links with -lc since on some
15652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15653 # to ld, don't add -lc before -lgcc.
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15655$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015656if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015657 $as_echo_n "(cached) " >&6
15658else
15659 $RM conftest*
15660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015661
cristy0c60a692010-11-04 01:09:47 +000015662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015663 (eval $ac_compile) 2>&5
15664 ac_status=$?
15665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15666 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015667 soname=conftest
15668 lib=conftest
15669 libobjs=conftest.$ac_objext
15670 deplibs=
15671 wl=$lt_prog_compiler_wl
15672 pic_flag=$lt_prog_compiler_pic
15673 compiler_flags=-v
15674 linker_flags=-v
15675 verstring=
15676 output_objdir=.
15677 libname=conftest
15678 lt_save_allow_undefined_flag=$allow_undefined_flag
15679 allow_undefined_flag=
15680 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 +000015681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15682 ac_status=$?
15683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15684 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015685 then
15686 lt_cv_archive_cmds_need_lc=no
15687 else
15688 lt_cv_archive_cmds_need_lc=yes
15689 fi
15690 allow_undefined_flag=$lt_save_allow_undefined_flag
15691 else
15692 cat conftest.err 1>&5
15693 fi
15694 $RM conftest*
15695
15696fi
15697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15698$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015700 ;;
15701 esac
15702 fi
15703 ;;
15704esac
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
cristy73bd4a52010-10-05 11:24:23 +000015857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15858$as_echo_n "checking dynamic linker characteristics... " >&6; }
15859
15860if test "$GCC" = yes; then
15861 case $host_os in
15862 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15863 *) lt_awk_arg="/^libraries:/" ;;
15864 esac
cristy0c60a692010-11-04 01:09:47 +000015865 case $host_os in
15866 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15867 *) lt_sed_strip_eq="s,=/,/,g" ;;
15868 esac
15869 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15870 case $lt_search_path_spec in
15871 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015872 # if the path contains ";" then we assume it to be the separator
15873 # otherwise default to the standard path separator (i.e. ":") - it is
15874 # assumed that no part of a normal pathname contains ";" but that should
15875 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015876 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15877 ;;
15878 *)
15879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15880 ;;
15881 esac
cristy73bd4a52010-10-05 11:24:23 +000015882 # Ok, now we have the path, separated by spaces, we can step through it
15883 # and add multilib dir if necessary.
15884 lt_tmp_lt_search_path_spec=
15885 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15886 for lt_sys_path in $lt_search_path_spec; do
15887 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15888 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15889 else
15890 test -d "$lt_sys_path" && \
15891 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15892 fi
15893 done
cristy0c60a692010-11-04 01:09:47 +000015894 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015895BEGIN {RS=" "; FS="/|\n";} {
15896 lt_foo="";
15897 lt_count=0;
15898 for (lt_i = NF; lt_i > 0; lt_i--) {
15899 if ($lt_i != "" && $lt_i != ".") {
15900 if ($lt_i == "..") {
15901 lt_count++;
15902 } else {
15903 if (lt_count == 0) {
15904 lt_foo="/" $lt_i lt_foo;
15905 } else {
15906 lt_count--;
15907 }
15908 }
15909 }
15910 }
15911 if (lt_foo != "") { lt_freq[lt_foo]++; }
15912 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15913}'`
cristy0c60a692010-11-04 01:09:47 +000015914 # AWK program above erroneously prepends '/' to C:/dos/paths
15915 # for these hosts.
15916 case $host_os in
15917 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15918 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15919 esac
15920 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015921else
15922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15923fi
15924library_names_spec=
15925libname_spec='lib$name'
15926soname_spec=
15927shrext_cmds=".so"
15928postinstall_cmds=
15929postuninstall_cmds=
15930finish_cmds=
15931finish_eval=
15932shlibpath_var=
15933shlibpath_overrides_runpath=unknown
15934version_type=none
15935dynamic_linker="$host_os ld.so"
15936sys_lib_dlsearch_path_spec="/lib /usr/lib"
15937need_lib_prefix=unknown
15938hardcode_into_libs=no
15939
15940# when you set need_version to no, make sure it does not cause -set_version
15941# flags to be left without arguments
15942need_version=unknown
15943
15944case $host_os in
15945aix3*)
cristy99bd5232011-12-07 14:38:20 +000015946 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15948 shlibpath_var=LIBPATH
15949
15950 # AIX 3 has no versioning support, so we append a major version to the name.
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 ;;
15953
15954aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015955 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015956 need_lib_prefix=no
15957 need_version=no
15958 hardcode_into_libs=yes
15959 if test "$host_cpu" = ia64; then
15960 # AIX 5 supports IA64
15961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 else
15964 # With GCC up to 2.95.x, collect2 would create an import file
15965 # for dependence libraries. The import file would start with
15966 # the line `#! .'. This would cause the generated library to
15967 # depend on `.', always an invalid library. This was fixed in
15968 # development snapshots of GCC prior to 3.0.
15969 case $host_os in
15970 aix4 | aix4.[01] | aix4.[01].*)
15971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15972 echo ' yes '
15973 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15974 :
15975 else
15976 can_build_shared=no
15977 fi
15978 ;;
15979 esac
15980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15981 # soname into executable. Probably we can add versioning support to
15982 # collect2, so additional links can be useful in future.
15983 if test "$aix_use_runtimelinking" = yes; then
15984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15985 # instead of lib<name>.a to let people know that these are not
15986 # typical AIX shared libraries.
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 else
15989 # We preserve .a as extension for shared libraries through AIX4.2
15990 # and later when we are not doing run time linking.
15991 library_names_spec='${libname}${release}.a $libname.a'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 fi
15994 shlibpath_var=LIBPATH
15995 fi
15996 ;;
15997
15998amigaos*)
15999 case $host_cpu in
16000 powerpc)
16001 # Since July 2007 AmigaOS4 officially supports .so libraries.
16002 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 ;;
16005 m68k)
16006 library_names_spec='$libname.ixlibrary $libname.a'
16007 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016008 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 +000016009 ;;
16010 esac
16011 ;;
16012
16013beos*)
16014 library_names_spec='${libname}${shared_ext}'
16015 dynamic_linker="$host_os ld.so"
16016 shlibpath_var=LIBRARY_PATH
16017 ;;
16018
16019bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016020 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016021 need_version=no
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16028 # the default ld.so.conf also contains /usr/contrib/lib and
16029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16030 # libtool to hard-code these into programs
16031 ;;
16032
16033cygwin* | mingw* | pw32* | cegcc*)
16034 version_type=windows
16035 shrext_cmds=".dll"
16036 need_version=no
16037 need_lib_prefix=no
16038
cristyda16f162011-02-19 23:52:17 +000016039 case $GCC,$cc_basename in
16040 yes,*)
16041 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016042 library_names_spec='$libname.dll.a'
16043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16044 postinstall_cmds='base_file=`basename \${file}`~
16045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16046 dldir=$destdir/`dirname \$dlpath`~
16047 test -d \$dldir || mkdir -p \$dldir~
16048 $install_prog $dir/$dlname \$dldir/$dlname~
16049 chmod a+x \$dldir/$dlname~
16050 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16051 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16052 fi'
16053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16054 dlpath=$dir/\$dldll~
16055 $RM \$dlpath'
16056 shlibpath_overrides_runpath=yes
16057
16058 case $host_os in
16059 cygwin*)
16060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16061 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016062
16063 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016064 ;;
16065 mingw* | cegcc*)
16066 # MinGW DLLs use traditional 'lib' prefix
16067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016068 ;;
16069 pw32*)
16070 # pw32 DLLs use 'pw' prefix rather than 'lib'
16071 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 ;;
16073 esac
cristyda16f162011-02-19 23:52:17 +000016074 dynamic_linker='Win32 ld.exe'
16075 ;;
16076
16077 *,cl*)
16078 # Native MSVC
16079 libname_spec='$name'
16080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16081 library_names_spec='${libname}.dll.lib'
16082
16083 case $build_os in
16084 mingw*)
16085 sys_lib_search_path_spec=
16086 lt_save_ifs=$IFS
16087 IFS=';'
16088 for lt_path in $LIB
16089 do
16090 IFS=$lt_save_ifs
16091 # Let DOS variable expansion print the short 8.3 style file name.
16092 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16093 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16094 done
16095 IFS=$lt_save_ifs
16096 # Convert to MSYS style.
16097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16098 ;;
16099 cygwin*)
16100 # Convert to unix form, then to dos form, then back to unix form
16101 # but this time dos style (no spaces!) so that the unix form looks
16102 # like /cygdrive/c/PROGRA~1:/cygdr...
16103 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16104 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16105 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16106 ;;
16107 *)
16108 sys_lib_search_path_spec="$LIB"
16109 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16110 # It is most probably a Windows format PATH.
16111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16112 else
16113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16114 fi
16115 # FIXME: find the short name or the path components, as spaces are
16116 # common. (e.g. "Program Files" -> "PROGRA~1")
16117 ;;
16118 esac
16119
16120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16121 postinstall_cmds='base_file=`basename \${file}`~
16122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16123 dldir=$destdir/`dirname \$dlpath`~
16124 test -d \$dldir || mkdir -p \$dldir~
16125 $install_prog $dir/$dlname \$dldir/$dlname'
16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16127 dlpath=$dir/\$dldll~
16128 $RM \$dlpath'
16129 shlibpath_overrides_runpath=yes
16130 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016131 ;;
16132
16133 *)
cristyda16f162011-02-19 23:52:17 +000016134 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016135 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016136 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016137 ;;
16138 esac
cristy73bd4a52010-10-05 11:24:23 +000016139 # FIXME: first we should search . and the directory the executable is in
16140 shlibpath_var=PATH
16141 ;;
16142
16143darwin* | rhapsody*)
16144 dynamic_linker="$host_os dyld"
16145 version_type=darwin
16146 need_lib_prefix=no
16147 need_version=no
16148 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16149 soname_spec='${libname}${release}${major}$shared_ext'
16150 shlibpath_overrides_runpath=yes
16151 shlibpath_var=DYLD_LIBRARY_PATH
16152 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16153
16154 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16155 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16156 ;;
16157
16158dgux*)
cristy99bd5232011-12-07 14:38:20 +000016159 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016160 need_lib_prefix=no
16161 need_version=no
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 ;;
16166
cristy73bd4a52010-10-05 11:24:23 +000016167freebsd* | dragonfly*)
16168 # DragonFly does not have aout. When/if they implement a new
16169 # versioning mechanism, adjust this.
16170 if test -x /usr/bin/objformat; then
16171 objformat=`/usr/bin/objformat`
16172 else
16173 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016174 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016175 *) objformat=elf ;;
16176 esac
16177 fi
16178 version_type=freebsd-$objformat
16179 case $version_type in
16180 freebsd-elf*)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 need_version=no
16183 need_lib_prefix=no
16184 ;;
16185 freebsd-*)
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187 need_version=yes
16188 ;;
16189 esac
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016192 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016193 shlibpath_overrides_runpath=yes
16194 ;;
16195 freebsd3.[01]* | freebsdelf3.[01]*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16198 ;;
16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16203 ;;
16204 *) # from 4.6 on, and DragonFly
16205 shlibpath_overrides_runpath=yes
16206 hardcode_into_libs=yes
16207 ;;
16208 esac
16209 ;;
16210
16211gnu*)
cristy99bd5232011-12-07 14:38:20 +000016212 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016213 need_lib_prefix=no
16214 need_version=no
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016218 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016219 hardcode_into_libs=yes
16220 ;;
16221
cristy0c60a692010-11-04 01:09:47 +000016222haiku*)
cristy99bd5232011-12-07 14:38:20 +000016223 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016224 need_lib_prefix=no
16225 need_version=no
16226 dynamic_linker="$host_os runtime_loader"
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16232 hardcode_into_libs=yes
16233 ;;
16234
cristy73bd4a52010-10-05 11:24:23 +000016235hpux9* | hpux10* | hpux11*)
16236 # Give a soname corresponding to the major version so that dld.sl refuses to
16237 # link against other versions.
16238 version_type=sunos
16239 need_lib_prefix=no
16240 need_version=no
16241 case $host_cpu in
16242 ia64*)
16243 shrext_cmds='.so'
16244 hardcode_into_libs=yes
16245 dynamic_linker="$host_os dld.so"
16246 shlibpath_var=LD_LIBRARY_PATH
16247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 if test "X$HPUX_IA64_MODE" = X32; then
16251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16252 else
16253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16254 fi
16255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256 ;;
16257 hppa*64*)
16258 shrext_cmds='.sl'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.sl"
16261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16267 ;;
16268 *)
16269 shrext_cmds='.sl'
16270 dynamic_linker="$host_os dld.sl"
16271 shlibpath_var=SHLIB_PATH
16272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 ;;
16276 esac
cristy0c60a692010-11-04 01:09:47 +000016277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016278 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016279 # or fails outright, so override atomically:
16280 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016281 ;;
16282
16283interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016284 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016285 need_lib_prefix=no
16286 need_version=no
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=no
16292 hardcode_into_libs=yes
16293 ;;
16294
16295irix5* | irix6* | nonstopux*)
16296 case $host_os in
16297 nonstopux*) version_type=nonstopux ;;
16298 *)
16299 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016300 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016301 else
16302 version_type=irix
16303 fi ;;
16304 esac
16305 need_lib_prefix=no
16306 need_version=no
16307 soname_spec='${libname}${release}${shared_ext}$major'
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16309 case $host_os in
16310 irix5* | nonstopux*)
16311 libsuff= shlibsuff=
16312 ;;
16313 *)
16314 case $LD in # libtool.m4 will add one of these switches to LD
16315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16316 libsuff= shlibsuff= libmagic=32-bit;;
16317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16318 libsuff=32 shlibsuff=N32 libmagic=N32;;
16319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16321 *) libsuff= shlibsuff= libmagic=never-match;;
16322 esac
16323 ;;
16324 esac
16325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16326 shlibpath_overrides_runpath=no
16327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16329 hardcode_into_libs=yes
16330 ;;
16331
16332# No shared lib support for Linux oldld, aout, or coff.
16333linux*oldld* | linux*aout* | linux*coff*)
16334 dynamic_linker=no
16335 ;;
16336
cristy99bd5232011-12-07 14:38:20 +000016337# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016338linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016339 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016340 need_lib_prefix=no
16341 need_version=no
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016347
cristy73bd4a52010-10-05 11:24:23 +000016348 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016349 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016350 $as_echo_n "(cached) " >&6
16351else
16352 lt_cv_shlibpath_overrides_runpath=no
16353 save_LDFLAGS=$LDFLAGS
16354 save_libdir=$libdir
16355 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16356 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016358/* end confdefs.h. */
16359
16360int
16361main ()
16362{
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_link "$LINENO"; then :
16369 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016370 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016371fi
16372fi
16373rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016375 LDFLAGS=$save_LDFLAGS
16376 libdir=$save_libdir
16377
16378fi
16379
16380 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016381
16382 # This implies no fast_install, which is unacceptable.
16383 # Some rework will be needed to allow for fast_install
16384 # before this can be enabled.
16385 hardcode_into_libs=yes
16386
16387 # Add ABI-specific directories to the system library path.
16388 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16389
16390 # Append ld.so.conf contents to the search path
16391 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016392 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 +000016393 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016394
cristy73bd4a52010-10-05 11:24:23 +000016395 fi
16396
16397 # We used to test for /lib/ld.so.1 and disable shared libraries on
16398 # powerpc, because MkLinux only supported shared libraries with the
16399 # GNU dynamic linker. Since this was broken with cross compilers,
16400 # most powerpc-linux boxes support dynamic linking these days and
16401 # people can always --disable-shared, the test was removed, and we
16402 # assume the GNU/Linux dynamic linker is in use.
16403 dynamic_linker='GNU/Linux ld.so'
16404 ;;
16405
16406netbsd*)
16407 version_type=sunos
16408 need_lib_prefix=no
16409 need_version=no
16410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16413 dynamic_linker='NetBSD (a.out) ld.so'
16414 else
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 dynamic_linker='NetBSD ld.elf_so'
16418 fi
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 hardcode_into_libs=yes
16422 ;;
16423
16424newsos6)
cristy99bd5232011-12-07 14:38:20 +000016425 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 ;;
16430
16431*nto* | *qnx*)
16432 version_type=qnx
16433 need_lib_prefix=no
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 shlibpath_overrides_runpath=no
16439 hardcode_into_libs=yes
16440 dynamic_linker='ldqnx.so'
16441 ;;
16442
16443openbsd*)
16444 version_type=sunos
16445 sys_lib_dlsearch_path_spec="/usr/lib"
16446 need_lib_prefix=no
16447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16448 case $host_os in
16449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16450 *) need_version=no ;;
16451 esac
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16456 case $host_os in
16457 openbsd2.[89] | openbsd2.[89].*)
16458 shlibpath_overrides_runpath=no
16459 ;;
16460 *)
16461 shlibpath_overrides_runpath=yes
16462 ;;
16463 esac
16464 else
16465 shlibpath_overrides_runpath=yes
16466 fi
16467 ;;
16468
16469os2*)
16470 libname_spec='$name'
16471 shrext_cmds=".dll"
16472 need_lib_prefix=no
16473 library_names_spec='$libname${shared_ext} $libname.a'
16474 dynamic_linker='OS/2 ld.exe'
16475 shlibpath_var=LIBPATH
16476 ;;
16477
16478osf3* | osf4* | osf5*)
16479 version_type=osf
16480 need_lib_prefix=no
16481 need_version=no
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16487 ;;
16488
16489rdos*)
16490 dynamic_linker=no
16491 ;;
16492
16493solaris*)
cristy99bd5232011-12-07 14:38:20 +000016494 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=yes
16501 hardcode_into_libs=yes
16502 # ldd complains unless libraries are executable
16503 postinstall_cmds='chmod +x $lib'
16504 ;;
16505
16506sunos4*)
16507 version_type=sunos
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16509 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=yes
16512 if test "$with_gnu_ld" = yes; then
16513 need_lib_prefix=no
16514 fi
16515 need_version=yes
16516 ;;
16517
16518sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016519 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 case $host_vendor in
16524 sni)
16525 shlibpath_overrides_runpath=no
16526 need_lib_prefix=no
16527 runpath_var=LD_RUN_PATH
16528 ;;
16529 siemens)
16530 need_lib_prefix=no
16531 ;;
16532 motorola)
16533 need_lib_prefix=no
16534 need_version=no
16535 shlibpath_overrides_runpath=no
16536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16537 ;;
16538 esac
16539 ;;
16540
16541sysv4*MP*)
16542 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016543 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16545 soname_spec='$libname${shared_ext}.$major'
16546 shlibpath_var=LD_LIBRARY_PATH
16547 fi
16548 ;;
16549
16550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16551 version_type=freebsd-elf
16552 need_lib_prefix=no
16553 need_version=no
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 hardcode_into_libs=yes
16559 if test "$with_gnu_ld" = yes; then
16560 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16561 else
16562 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16563 case $host_os in
16564 sco3.2v5*)
16565 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16566 ;;
16567 esac
16568 fi
16569 sys_lib_dlsearch_path_spec='/usr/lib'
16570 ;;
16571
16572tpf*)
16573 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016574 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=no
16580 hardcode_into_libs=yes
16581 ;;
16582
16583uts4*)
cristy99bd5232011-12-07 14:38:20 +000016584 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 ;;
16589
16590*)
16591 dynamic_linker=no
16592 ;;
16593esac
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16595$as_echo "$dynamic_linker" >&6; }
16596test "$dynamic_linker" = no && can_build_shared=no
16597
16598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16599if test "$GCC" = yes; then
16600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16601fi
16602
16603if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16604 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16605fi
16606if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16607 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16608fi
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
cristy0c60a692010-11-04 01:09:47 +000016696
16697
16698
16699
16700
cristy73bd4a52010-10-05 11:24:23 +000016701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16702$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16703hardcode_action=
16704if test -n "$hardcode_libdir_flag_spec" ||
16705 test -n "$runpath_var" ||
16706 test "X$hardcode_automatic" = "Xyes" ; then
16707
16708 # We can hardcode non-existent directories.
16709 if test "$hardcode_direct" != no &&
16710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16711 # have to relink, otherwise we might link with an installed library
16712 # when we should be linking with a yet-to-be-installed one
16713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16714 test "$hardcode_minus_L" != no; then
16715 # Linking always hardcodes the temporary library directory.
16716 hardcode_action=relink
16717 else
16718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16719 hardcode_action=immediate
16720 fi
16721else
16722 # We cannot hardcode anything, or else we can only hardcode existing
16723 # directories.
16724 hardcode_action=unsupported
16725fi
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16727$as_echo "$hardcode_action" >&6; }
16728
16729if test "$hardcode_action" = relink ||
16730 test "$inherit_rpath" = yes; then
16731 # Fast installation is not supported
16732 enable_fast_install=no
16733elif test "$shlibpath_overrides_runpath" = yes ||
16734 test "$enable_shared" = no; then
16735 # Fast installation is not necessary
16736 enable_fast_install=needless
16737fi
16738
16739
16740
16741
16742
16743
16744 if test "x$enable_dlopen" != xyes; then
16745 enable_dlopen=unknown
16746 enable_dlopen_self=unknown
16747 enable_dlopen_self_static=unknown
16748else
16749 lt_cv_dlopen=no
16750 lt_cv_dlopen_libs=
16751
16752 case $host_os in
16753 beos*)
16754 lt_cv_dlopen="load_add_on"
16755 lt_cv_dlopen_libs=
16756 lt_cv_dlopen_self=yes
16757 ;;
16758
16759 mingw* | pw32* | cegcc*)
16760 lt_cv_dlopen="LoadLibrary"
16761 lt_cv_dlopen_libs=
16762 ;;
16763
16764 cygwin*)
16765 lt_cv_dlopen="dlopen"
16766 lt_cv_dlopen_libs=
16767 ;;
16768
16769 darwin*)
16770 # if libdl is installed we need to link against it
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16772$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016773if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016774 $as_echo_n "(cached) " >&6
16775else
16776 ac_check_lib_save_LIBS=$LIBS
16777LIBS="-ldl $LIBS"
16778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h. */
16780
16781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784#ifdef __cplusplus
16785extern "C"
16786#endif
16787char dlopen ();
16788int
16789main ()
16790{
16791return dlopen ();
16792 ;
16793 return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797 ac_cv_lib_dl_dlopen=yes
16798else
16799 ac_cv_lib_dl_dlopen=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802 conftest$ac_exeext conftest.$ac_ext
16803LIBS=$ac_check_lib_save_LIBS
16804fi
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016807if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16809else
16810
16811 lt_cv_dlopen="dyld"
16812 lt_cv_dlopen_libs=
16813 lt_cv_dlopen_self=yes
16814
16815fi
16816
16817 ;;
16818
16819 *)
16820 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016821if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016822 lt_cv_dlopen="shl_load"
16823else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16825$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016826if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016827 $as_echo_n "(cached) " >&6
16828else
16829 ac_check_lib_save_LIBS=$LIBS
16830LIBS="-ldld $LIBS"
16831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h. */
16833
16834/* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char shl_load ();
16841int
16842main ()
16843{
16844return shl_load ();
16845 ;
16846 return 0;
16847}
16848_ACEOF
16849if ac_fn_c_try_link "$LINENO"; then :
16850 ac_cv_lib_dld_shl_load=yes
16851else
16852 ac_cv_lib_dld_shl_load=no
16853fi
16854rm -f core conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856LIBS=$ac_check_lib_save_LIBS
16857fi
16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16859$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016860if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16862else
16863 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016864if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016865 lt_cv_dlopen="dlopen"
16866else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16868$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016869if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016870 $as_echo_n "(cached) " >&6
16871else
16872 ac_check_lib_save_LIBS=$LIBS
16873LIBS="-ldl $LIBS"
16874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875/* end confdefs.h. */
16876
16877/* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16880#ifdef __cplusplus
16881extern "C"
16882#endif
16883char dlopen ();
16884int
16885main ()
16886{
16887return dlopen ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892if ac_fn_c_try_link "$LINENO"; then :
16893 ac_cv_lib_dl_dlopen=yes
16894else
16895 ac_cv_lib_dl_dlopen=no
16896fi
16897rm -f core conftest.err conftest.$ac_objext \
16898 conftest$ac_exeext conftest.$ac_ext
16899LIBS=$ac_check_lib_save_LIBS
16900fi
16901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016903if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16905else
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016908if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016909 $as_echo_n "(cached) " >&6
16910else
16911 ac_check_lib_save_LIBS=$LIBS
16912LIBS="-lsvld $LIBS"
16913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h. */
16915
16916/* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16919#ifdef __cplusplus
16920extern "C"
16921#endif
16922char dlopen ();
16923int
16924main ()
16925{
16926return dlopen ();
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"; then :
16932 ac_cv_lib_svld_dlopen=yes
16933else
16934 ac_cv_lib_svld_dlopen=no
16935fi
16936rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938LIBS=$ac_check_lib_save_LIBS
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16941$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016942if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16944else
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16946$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016947if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016948 $as_echo_n "(cached) " >&6
16949else
16950 ac_check_lib_save_LIBS=$LIBS
16951LIBS="-ldld $LIBS"
16952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953/* end confdefs.h. */
16954
16955/* Override any GCC internal prototype to avoid an error.
16956 Use char because int might match the return type of a GCC
16957 builtin and then its argument prototype would still apply. */
16958#ifdef __cplusplus
16959extern "C"
16960#endif
16961char dld_link ();
16962int
16963main ()
16964{
16965return dld_link ();
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970if ac_fn_c_try_link "$LINENO"; then :
16971 ac_cv_lib_dld_dld_link=yes
16972else
16973 ac_cv_lib_dld_dld_link=no
16974fi
16975rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16977LIBS=$ac_check_lib_save_LIBS
16978fi
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16980$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016981if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16983fi
16984
16985
16986fi
16987
16988
16989fi
16990
16991
16992fi
16993
16994
16995fi
16996
16997
16998fi
16999
17000 ;;
17001 esac
17002
17003 if test "x$lt_cv_dlopen" != xno; then
17004 enable_dlopen=yes
17005 else
17006 enable_dlopen=no
17007 fi
17008
17009 case $lt_cv_dlopen in
17010 dlopen)
17011 save_CPPFLAGS="$CPPFLAGS"
17012 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17013
17014 save_LDFLAGS="$LDFLAGS"
17015 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17016
17017 save_LIBS="$LIBS"
17018 LIBS="$lt_cv_dlopen_libs $LIBS"
17019
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17021$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017022if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017023 $as_echo_n "(cached) " >&6
17024else
17025 if test "$cross_compiling" = yes; then :
17026 lt_cv_dlopen_self=cross
17027else
17028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17029 lt_status=$lt_dlunknown
17030 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017031#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017032#include "confdefs.h"
17033
17034#if HAVE_DLFCN_H
17035#include <dlfcn.h>
17036#endif
17037
17038#include <stdio.h>
17039
17040#ifdef RTLD_GLOBAL
17041# define LT_DLGLOBAL RTLD_GLOBAL
17042#else
17043# ifdef DL_GLOBAL
17044# define LT_DLGLOBAL DL_GLOBAL
17045# else
17046# define LT_DLGLOBAL 0
17047# endif
17048#endif
17049
17050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17051 find out it does not work in some platform. */
17052#ifndef LT_DLLAZY_OR_NOW
17053# ifdef RTLD_LAZY
17054# define LT_DLLAZY_OR_NOW RTLD_LAZY
17055# else
17056# ifdef DL_LAZY
17057# define LT_DLLAZY_OR_NOW DL_LAZY
17058# else
17059# ifdef RTLD_NOW
17060# define LT_DLLAZY_OR_NOW RTLD_NOW
17061# else
17062# ifdef DL_NOW
17063# define LT_DLLAZY_OR_NOW DL_NOW
17064# else
17065# define LT_DLLAZY_OR_NOW 0
17066# endif
17067# endif
17068# endif
17069# endif
17070#endif
17071
cristy0c60a692010-11-04 01:09:47 +000017072/* When -fvisbility=hidden is used, assume the code has been annotated
17073 correspondingly for the symbols needed. */
17074#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017075int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017076#endif
17077
cristyda16f162011-02-19 23:52:17 +000017078int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017079int main ()
17080{
17081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17082 int status = $lt_dlunknown;
17083
17084 if (self)
17085 {
17086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017087 else
17088 {
17089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17090 else puts (dlerror ());
17091 }
cristy73bd4a52010-10-05 11:24:23 +000017092 /* dlclose (self); */
17093 }
17094 else
17095 puts (dlerror ());
17096
17097 return status;
17098}
17099_LT_EOF
17100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17101 (eval $ac_link) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17105 (./conftest; exit; ) >&5 2>/dev/null
17106 lt_status=$?
17107 case x$lt_status in
17108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17110 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17111 esac
17112 else :
17113 # compilation failed
17114 lt_cv_dlopen_self=no
17115 fi
17116fi
17117rm -fr conftest*
17118
17119
17120fi
17121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17122$as_echo "$lt_cv_dlopen_self" >&6; }
17123
17124 if test "x$lt_cv_dlopen_self" = xyes; then
17125 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17127$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017128if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017129 $as_echo_n "(cached) " >&6
17130else
17131 if test "$cross_compiling" = yes; then :
17132 lt_cv_dlopen_self_static=cross
17133else
17134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17135 lt_status=$lt_dlunknown
17136 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017137#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017138#include "confdefs.h"
17139
17140#if HAVE_DLFCN_H
17141#include <dlfcn.h>
17142#endif
17143
17144#include <stdio.h>
17145
17146#ifdef RTLD_GLOBAL
17147# define LT_DLGLOBAL RTLD_GLOBAL
17148#else
17149# ifdef DL_GLOBAL
17150# define LT_DLGLOBAL DL_GLOBAL
17151# else
17152# define LT_DLGLOBAL 0
17153# endif
17154#endif
17155
17156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17157 find out it does not work in some platform. */
17158#ifndef LT_DLLAZY_OR_NOW
17159# ifdef RTLD_LAZY
17160# define LT_DLLAZY_OR_NOW RTLD_LAZY
17161# else
17162# ifdef DL_LAZY
17163# define LT_DLLAZY_OR_NOW DL_LAZY
17164# else
17165# ifdef RTLD_NOW
17166# define LT_DLLAZY_OR_NOW RTLD_NOW
17167# else
17168# ifdef DL_NOW
17169# define LT_DLLAZY_OR_NOW DL_NOW
17170# else
17171# define LT_DLLAZY_OR_NOW 0
17172# endif
17173# endif
17174# endif
17175# endif
17176#endif
17177
cristy0c60a692010-11-04 01:09:47 +000017178/* When -fvisbility=hidden is used, assume the code has been annotated
17179 correspondingly for the symbols needed. */
17180#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017181int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017182#endif
17183
cristyda16f162011-02-19 23:52:17 +000017184int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017185int main ()
17186{
17187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17188 int status = $lt_dlunknown;
17189
17190 if (self)
17191 {
17192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017193 else
17194 {
17195 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17196 else puts (dlerror ());
17197 }
cristy73bd4a52010-10-05 11:24:23 +000017198 /* dlclose (self); */
17199 }
17200 else
17201 puts (dlerror ());
17202
17203 return status;
17204}
17205_LT_EOF
17206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17207 (eval $ac_link) 2>&5
17208 ac_status=$?
17209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17210 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17211 (./conftest; exit; ) >&5 2>/dev/null
17212 lt_status=$?
17213 case x$lt_status in
17214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17217 esac
17218 else :
17219 # compilation failed
17220 lt_cv_dlopen_self_static=no
17221 fi
17222fi
17223rm -fr conftest*
17224
17225
17226fi
17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17228$as_echo "$lt_cv_dlopen_self_static" >&6; }
17229 fi
17230
17231 CPPFLAGS="$save_CPPFLAGS"
17232 LDFLAGS="$save_LDFLAGS"
17233 LIBS="$save_LIBS"
17234 ;;
17235 esac
17236
17237 case $lt_cv_dlopen_self in
17238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17239 *) enable_dlopen_self=unknown ;;
17240 esac
17241
17242 case $lt_cv_dlopen_self_static in
17243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17244 *) enable_dlopen_self_static=unknown ;;
17245 esac
17246fi
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264striplib=
17265old_striplib=
17266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17267$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17268if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272$as_echo "yes" >&6; }
17273else
17274# FIXME - insert some real tests, host_os isn't really good enough
17275 case $host_os in
17276 darwin*)
17277 if test -n "$STRIP" ; then
17278 striplib="$STRIP -x"
17279 old_striplib="$STRIP -S"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281$as_echo "yes" >&6; }
17282 else
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284$as_echo "no" >&6; }
17285 fi
17286 ;;
17287 *)
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289$as_echo "no" >&6; }
17290 ;;
17291 esac
17292fi
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305 # Report which library types will actually be built
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17307$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17309$as_echo "$can_build_shared" >&6; }
17310
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17312$as_echo_n "checking whether to build shared libraries... " >&6; }
17313 test "$can_build_shared" = "no" && enable_shared=no
17314
17315 # On AIX, shared libraries and static libraries use the same namespace, and
17316 # are all built from PIC.
17317 case $host_os in
17318 aix3*)
17319 test "$enable_shared" = yes && enable_static=no
17320 if test -n "$RANLIB"; then
17321 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17322 postinstall_cmds='$RANLIB $lib'
17323 fi
17324 ;;
17325
17326 aix[4-9]*)
17327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17328 test "$enable_shared" = yes && enable_static=no
17329 fi
17330 ;;
17331 esac
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17333$as_echo "$enable_shared" >&6; }
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17336$as_echo_n "checking whether to build static libraries... " >&6; }
17337 # Make sure either enable_shared or enable_static is yes.
17338 test "$enable_shared" = yes || enable_static=yes
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17340$as_echo "$enable_static" >&6; }
17341
17342
17343
17344
17345fi
17346ac_ext=c
17347ac_cpp='$CPP $CPPFLAGS'
17348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17350ac_compiler_gnu=$ac_cv_c_compiler_gnu
17351
17352CC="$lt_save_CC"
17353
cristy0c60a692010-11-04 01:09:47 +000017354 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17356 (test "X$CXX" != "Xg++"))) ; then
17357 ac_ext=cpp
17358ac_cpp='$CXXCPP $CPPFLAGS'
17359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17363$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17364if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017365 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017366 $as_echo_n "(cached) " >&6
17367else
17368 # Double quotes because CXXCPP needs to be expanded
17369 for CXXCPP in "$CXX -E" "/lib/cpp"
17370 do
17371 ac_preproc_ok=false
17372for ac_cxx_preproc_warn_flag in '' yes
17373do
17374 # Use a header file that comes with gcc, so configuring glibc
17375 # with a fresh cross-compiler works.
17376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377 # <limits.h> exists even on freestanding compilers.
17378 # On the NeXT, cc -E runs the code through the compiler's parser,
17379 # not just through cpp. "Syntax error" is here to catch this case.
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h. */
17382#ifdef __STDC__
17383# include <limits.h>
17384#else
17385# include <assert.h>
17386#endif
17387 Syntax error
17388_ACEOF
17389if ac_fn_cxx_try_cpp "$LINENO"; then :
17390
17391else
17392 # Broken: fails on valid input.
17393continue
17394fi
cristyda16f162011-02-19 23:52:17 +000017395rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017396
17397 # OK, works on sane cases. Now check whether nonexistent headers
17398 # can be detected and how.
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400/* end confdefs.h. */
17401#include <ac_nonexistent.h>
17402_ACEOF
17403if ac_fn_cxx_try_cpp "$LINENO"; then :
17404 # Broken: success on invalid input.
17405continue
17406else
17407 # Passes both tests.
17408ac_preproc_ok=:
17409break
17410fi
cristyda16f162011-02-19 23:52:17 +000017411rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017412
17413done
17414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017415rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017416if $ac_preproc_ok; then :
17417 break
17418fi
17419
17420 done
17421 ac_cv_prog_CXXCPP=$CXXCPP
17422
17423fi
17424 CXXCPP=$ac_cv_prog_CXXCPP
17425else
17426 ac_cv_prog_CXXCPP=$CXXCPP
17427fi
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17429$as_echo "$CXXCPP" >&6; }
17430ac_preproc_ok=false
17431for ac_cxx_preproc_warn_flag in '' yes
17432do
17433 # Use a header file that comes with gcc, so configuring glibc
17434 # with a fresh cross-compiler works.
17435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17436 # <limits.h> exists even on freestanding compilers.
17437 # On the NeXT, cc -E runs the code through the compiler's parser,
17438 # not just through cpp. "Syntax error" is here to catch this case.
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440/* end confdefs.h. */
17441#ifdef __STDC__
17442# include <limits.h>
17443#else
17444# include <assert.h>
17445#endif
17446 Syntax error
17447_ACEOF
17448if ac_fn_cxx_try_cpp "$LINENO"; then :
17449
17450else
17451 # Broken: fails on valid input.
17452continue
17453fi
cristyda16f162011-02-19 23:52:17 +000017454rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017455
17456 # OK, works on sane cases. Now check whether nonexistent headers
17457 # can be detected and how.
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459/* end confdefs.h. */
17460#include <ac_nonexistent.h>
17461_ACEOF
17462if ac_fn_cxx_try_cpp "$LINENO"; then :
17463 # Broken: success on invalid input.
17464continue
17465else
17466 # Passes both tests.
17467ac_preproc_ok=:
17468break
17469fi
cristyda16f162011-02-19 23:52:17 +000017470rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017471
17472done
17473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017474rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017475if $ac_preproc_ok; then :
17476
17477else
17478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17480as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17481See \`config.log' for more details" "$LINENO" 5; }
17482fi
17483
17484ac_ext=c
17485ac_cpp='$CPP $CPPFLAGS'
17486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17488ac_compiler_gnu=$ac_cv_c_compiler_gnu
17489
17490else
17491 _lt_caught_CXX_error=yes
17492fi
cristy73bd4a52010-10-05 11:24:23 +000017493
17494ac_ext=cpp
17495ac_cpp='$CXXCPP $CPPFLAGS'
17496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499
17500archive_cmds_need_lc_CXX=no
17501allow_undefined_flag_CXX=
17502always_export_symbols_CXX=no
17503archive_expsym_cmds_CXX=
17504compiler_needs_object_CXX=no
17505export_dynamic_flag_spec_CXX=
17506hardcode_direct_CXX=no
17507hardcode_direct_absolute_CXX=no
17508hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017509hardcode_libdir_separator_CXX=
17510hardcode_minus_L_CXX=no
17511hardcode_shlibpath_var_CXX=unsupported
17512hardcode_automatic_CXX=no
17513inherit_rpath_CXX=no
17514module_cmds_CXX=
17515module_expsym_cmds_CXX=
17516link_all_deplibs_CXX=unknown
17517old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017518reload_flag_CXX=$reload_flag
17519reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017520no_undefined_flag_CXX=
17521whole_archive_flag_spec_CXX=
17522enable_shared_with_static_runtimes_CXX=no
17523
17524# Source file extension for C++ test sources.
17525ac_ext=cpp
17526
17527# Object file extension for compiled C++ test sources.
17528objext=o
17529objext_CXX=$objext
17530
17531# No sense in running all these tests if we already determined that
17532# the CXX compiler isn't working. Some variables (like enable_shared)
17533# are currently assumed to apply to all compilers on this platform,
17534# and will be corrupted by setting them based on a non-working compiler.
17535if test "$_lt_caught_CXX_error" != yes; then
17536 # Code to be used in simple compile tests
17537 lt_simple_compile_test_code="int some_variable = 0;"
17538
17539 # Code to be used in simple link tests
17540 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17541
17542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17543
17544
17545
17546
17547
17548
17549# If no C compiler was specified, use CC.
17550LTCC=${LTCC-"$CC"}
17551
17552# If no C compiler flags were specified, use CFLAGS.
17553LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17554
17555# Allow CC to be a program name with arguments.
17556compiler=$CC
17557
17558
17559 # save warnings/boilerplate of simple test code
17560 ac_outfile=conftest.$ac_objext
17561echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17562eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17563_lt_compiler_boilerplate=`cat conftest.err`
17564$RM conftest*
17565
17566 ac_outfile=conftest.$ac_objext
17567echo "$lt_simple_link_test_code" >conftest.$ac_ext
17568eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17569_lt_linker_boilerplate=`cat conftest.err`
17570$RM -r conftest*
17571
17572
17573 # Allow CC to be a program name with arguments.
17574 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017575 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017576 lt_save_LD=$LD
17577 lt_save_GCC=$GCC
17578 GCC=$GXX
17579 lt_save_with_gnu_ld=$with_gnu_ld
17580 lt_save_path_LD=$lt_cv_path_LD
17581 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17582 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17583 else
17584 $as_unset lt_cv_prog_gnu_ld
17585 fi
17586 if test -n "${lt_cv_path_LDCXX+set}"; then
17587 lt_cv_path_LD=$lt_cv_path_LDCXX
17588 else
17589 $as_unset lt_cv_path_LD
17590 fi
17591 test -z "${LDCXX+set}" || LD=$LDCXX
17592 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017593 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017594 compiler=$CC
17595 compiler_CXX=$CC
17596 for cc_temp in $compiler""; do
17597 case $cc_temp in
17598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17600 \-*) ;;
17601 *) break;;
17602 esac
17603done
cristy0c60a692010-11-04 01:09:47 +000017604cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017605
17606
17607 if test -n "$compiler"; then
17608 # We don't want -fno-exception when compiling C++ code, so set the
17609 # no_builtin_flag separately
17610 if test "$GXX" = yes; then
17611 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17612 else
17613 lt_prog_compiler_no_builtin_flag_CXX=
17614 fi
17615
17616 if test "$GXX" = yes; then
17617 # Set up default GNU C++ configuration
17618
17619
17620
17621# Check whether --with-gnu-ld was given.
17622if test "${with_gnu_ld+set}" = set; then :
17623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17624else
17625 with_gnu_ld=no
17626fi
17627
17628ac_prog=ld
17629if test "$GCC" = yes; then
17630 # Check if gcc -print-prog-name=ld gives a path.
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17632$as_echo_n "checking for ld used by $CC... " >&6; }
17633 case $host in
17634 *-*-mingw*)
17635 # gcc leaves a trailing carriage return which upsets mingw
17636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17637 *)
17638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17639 esac
17640 case $ac_prog in
17641 # Accept absolute paths.
17642 [\\/]* | ?:[\\/]*)
17643 re_direlt='/[^/][^/]*/\.\./'
17644 # Canonicalize the pathname of ld
17645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17648 done
17649 test -z "$LD" && LD="$ac_prog"
17650 ;;
17651 "")
17652 # If it fails, then pretend we aren't using GCC.
17653 ac_prog=ld
17654 ;;
17655 *)
17656 # If it is relative, then search for the first ld in PATH.
17657 with_gnu_ld=unknown
17658 ;;
17659 esac
17660elif test "$with_gnu_ld" = yes; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17662$as_echo_n "checking for GNU ld... " >&6; }
17663else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17665$as_echo_n "checking for non-GNU ld... " >&6; }
17666fi
cristyda16f162011-02-19 23:52:17 +000017667if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017668 $as_echo_n "(cached) " >&6
17669else
17670 if test -z "$LD"; then
17671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17672 for ac_dir in $PATH; do
17673 IFS="$lt_save_ifs"
17674 test -z "$ac_dir" && ac_dir=.
17675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17676 lt_cv_path_LD="$ac_dir/$ac_prog"
17677 # Check to see if the program is GNU ld. I'd rather use --version,
17678 # but apparently some variants of GNU ld only accept -v.
17679 # Break only if it was the GNU/non-GNU ld that we prefer.
17680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17681 *GNU* | *'with BFD'*)
17682 test "$with_gnu_ld" != no && break
17683 ;;
17684 *)
17685 test "$with_gnu_ld" != yes && break
17686 ;;
17687 esac
17688 fi
17689 done
17690 IFS="$lt_save_ifs"
17691else
17692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17693fi
17694fi
17695
17696LD="$lt_cv_path_LD"
17697if test -n "$LD"; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17699$as_echo "$LD" >&6; }
17700else
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702$as_echo "no" >&6; }
17703fi
cristy98dddb52010-11-04 00:30:15 +000017704test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17706$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017707if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017708 $as_echo_n "(cached) " >&6
17709else
17710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17711case `$LD -v 2>&1 </dev/null` in
17712*GNU* | *'with BFD'*)
17713 lt_cv_prog_gnu_ld=yes
17714 ;;
17715*)
17716 lt_cv_prog_gnu_ld=no
17717 ;;
17718esac
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17721$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17722with_gnu_ld=$lt_cv_prog_gnu_ld
17723
17724
17725
17726
17727
17728
17729
17730 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17731 # archiving commands below assume that GNU ld is being used.
17732 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017733 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17734 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 +000017735
17736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17738
17739 # If archive_cmds runs LD, not CC, wlarc should be empty
17740 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17741 # investigate it a little bit more. (MM)
17742 wlarc='${wl}'
17743
17744 # ancient GNU ld didn't support --whole-archive et. al.
17745 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17746 $GREP 'no-whole-archive' > /dev/null; then
17747 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17748 else
17749 whole_archive_flag_spec_CXX=
17750 fi
17751 else
17752 with_gnu_ld=no
17753 wlarc=
17754
17755 # A generic and very simple default shared library creation
17756 # command for GNU C++ for the case where it uses the native
17757 # linker, instead of GNU ld. If possible, this setting should
17758 # overridden to take advantage of the native linker features on
17759 # the platform it is being used on.
17760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17761 fi
17762
17763 # Commands to make compiler produce verbose output that lists
17764 # what "hidden" libraries, object files and flags are used when
17765 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017767
17768 else
17769 GXX=no
17770 with_gnu_ld=no
17771 wlarc=
17772 fi
17773
17774 # PORTME: fill in a description of your system's C++ link characteristics
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17776$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17777 ld_shlibs_CXX=yes
17778 case $host_os in
17779 aix3*)
17780 # FIXME: insert proper C++ library support
17781 ld_shlibs_CXX=no
17782 ;;
17783 aix[4-9]*)
17784 if test "$host_cpu" = ia64; then
17785 # On IA64, the linker does run time linking by default, so we don't
17786 # have to do anything special.
17787 aix_use_runtimelinking=no
17788 exp_sym_flag='-Bexport'
17789 no_entry_flag=""
17790 else
17791 aix_use_runtimelinking=no
17792
17793 # Test if we are trying to use run time linking or normal
17794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17795 # need to do runtime linking.
17796 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17797 for ld_flag in $LDFLAGS; do
17798 case $ld_flag in
17799 *-brtl*)
17800 aix_use_runtimelinking=yes
17801 break
17802 ;;
17803 esac
17804 done
17805 ;;
17806 esac
17807
17808 exp_sym_flag='-bexport'
17809 no_entry_flag='-bnoentry'
17810 fi
17811
17812 # When large executables or shared objects are built, AIX ld can
17813 # have problems creating the table of contents. If linking a library
17814 # or program results in "error TOC overflow" add -mminimal-toc to
17815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17817
17818 archive_cmds_CXX=''
17819 hardcode_direct_CXX=yes
17820 hardcode_direct_absolute_CXX=yes
17821 hardcode_libdir_separator_CXX=':'
17822 link_all_deplibs_CXX=yes
17823 file_list_spec_CXX='${wl}-f,'
17824
17825 if test "$GXX" = yes; then
17826 case $host_os in aix4.[012]|aix4.[012].*)
17827 # We only want to do this on AIX 4.2 and lower, the check
17828 # below for broken collect2 doesn't work under 4.3+
17829 collect2name=`${CC} -print-prog-name=collect2`
17830 if test -f "$collect2name" &&
17831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17832 then
17833 # We have reworked collect2
17834 :
17835 else
17836 # We have old collect2
17837 hardcode_direct_CXX=unsupported
17838 # It fails to find uninstalled libraries when the uninstalled
17839 # path is not listed in the libpath. Setting hardcode_minus_L
17840 # to unsupported forces relinking
17841 hardcode_minus_L_CXX=yes
17842 hardcode_libdir_flag_spec_CXX='-L$libdir'
17843 hardcode_libdir_separator_CXX=
17844 fi
17845 esac
17846 shared_flag='-shared'
17847 if test "$aix_use_runtimelinking" = yes; then
17848 shared_flag="$shared_flag "'${wl}-G'
17849 fi
17850 else
17851 # not using gcc
17852 if test "$host_cpu" = ia64; then
17853 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17854 # chokes on -Wl,-G. The following line is correct:
17855 shared_flag='-G'
17856 else
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag='${wl}-G'
17859 else
17860 shared_flag='${wl}-bM:SRE'
17861 fi
17862 fi
17863 fi
17864
17865 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17866 # It seems that -bexpall does not export symbols beginning with
17867 # underscore (_), so it is better to generate a list of symbols to
17868 # export.
17869 always_export_symbols_CXX=yes
17870 if test "$aix_use_runtimelinking" = yes; then
17871 # Warning - without using the other runtime loading flags (-brtl),
17872 # -berok will link without error, but may produce a broken library.
17873 allow_undefined_flag_CXX='-berok'
17874 # Determine the default libpath from the value encoded in an empty
17875 # executable.
cristyda16f162011-02-19 23:52:17 +000017876 if test "${lt_cv_aix_libpath+set}" = set; then
17877 aix_libpath=$lt_cv_aix_libpath
17878else
17879 if ${lt_cv_aix_libpath__CXX+:} false; then :
17880 $as_echo_n "(cached) " >&6
17881else
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017883/* end confdefs.h. */
17884
17885int
17886main ()
17887{
17888
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893if ac_fn_cxx_try_link "$LINENO"; then :
17894
cristyda16f162011-02-19 23:52:17 +000017895 lt_aix_libpath_sed='
17896 /Import File Strings/,/^$/ {
17897 /^0/ {
17898 s/^0 *\([^ ]*\) *$/\1/
17899 p
17900 }
17901 }'
17902 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17903 # Check for a 64-bit object if we didn't find anything.
17904 if test -z "$lt_cv_aix_libpath__CXX"; then
17905 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17906 fi
cristy73bd4a52010-10-05 11:24:23 +000017907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017910 if test -z "$lt_cv_aix_libpath__CXX"; then
17911 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17912 fi
17913
17914fi
17915
17916 aix_libpath=$lt_cv_aix_libpath__CXX
17917fi
cristy73bd4a52010-10-05 11:24:23 +000017918
17919 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17920
cristy0c60a692010-11-04 01:09:47 +000017921 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 +000017922 else
17923 if test "$host_cpu" = ia64; then
17924 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17925 allow_undefined_flag_CXX="-z nodefs"
17926 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"
17927 else
17928 # Determine the default libpath from the value encoded in an
17929 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017930 if test "${lt_cv_aix_libpath+set}" = set; then
17931 aix_libpath=$lt_cv_aix_libpath
17932else
17933 if ${lt_cv_aix_libpath__CXX+:} false; then :
17934 $as_echo_n "(cached) " >&6
17935else
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017937/* end confdefs.h. */
17938
17939int
17940main ()
17941{
17942
17943 ;
17944 return 0;
17945}
17946_ACEOF
17947if ac_fn_cxx_try_link "$LINENO"; then :
17948
cristyda16f162011-02-19 23:52:17 +000017949 lt_aix_libpath_sed='
17950 /Import File Strings/,/^$/ {
17951 /^0/ {
17952 s/^0 *\([^ ]*\) *$/\1/
17953 p
17954 }
17955 }'
17956 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17957 # Check for a 64-bit object if we didn't find anything.
17958 if test -z "$lt_cv_aix_libpath__CXX"; then
17959 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 fi
cristy73bd4a52010-10-05 11:24:23 +000017961fi
17962rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017964 if test -z "$lt_cv_aix_libpath__CXX"; then
17965 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17966 fi
17967
17968fi
17969
17970 aix_libpath=$lt_cv_aix_libpath__CXX
17971fi
cristy73bd4a52010-10-05 11:24:23 +000017972
17973 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17974 # Warning - without using the other run time loading flags,
17975 # -berok will link without error, but may produce a broken library.
17976 no_undefined_flag_CXX=' ${wl}-bernotok'
17977 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017978 if test "$with_gnu_ld" = yes; then
17979 # We only use this code for GNU lds that support --whole-archive.
17980 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17981 else
17982 # Exported symbols can be pulled into shared objects from archives
17983 whole_archive_flag_spec_CXX='$convenience'
17984 fi
cristy73bd4a52010-10-05 11:24:23 +000017985 archive_cmds_need_lc_CXX=yes
17986 # This is similar to how AIX traditionally builds its shared
17987 # libraries.
17988 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'
17989 fi
17990 fi
17991 ;;
17992
17993 beos*)
17994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17995 allow_undefined_flag_CXX=unsupported
17996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17997 # support --undefined. This deserves some investigation. FIXME
17998 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17999 else
18000 ld_shlibs_CXX=no
18001 fi
18002 ;;
18003
18004 chorus*)
18005 case $cc_basename in
18006 *)
18007 # FIXME: insert proper C++ library support
18008 ld_shlibs_CXX=no
18009 ;;
18010 esac
18011 ;;
18012
18013 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018014 case $GXX,$cc_basename in
18015 ,cl* | no,cl*)
18016 # Native MSVC
18017 # hardcode_libdir_flag_spec is actually meaningless, as there is
18018 # no search path for DLLs.
18019 hardcode_libdir_flag_spec_CXX=' '
18020 allow_undefined_flag_CXX=unsupported
18021 always_export_symbols_CXX=yes
18022 file_list_spec_CXX='@'
18023 # Tell ltmain to make .lib files, not .a files.
18024 libext=lib
18025 # Tell ltmain to make .dll files, not .so files.
18026 shrext_cmds=".dll"
18027 # FIXME: Setting linknames here is a bad hack.
18028 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18030 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18031 else
18032 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18033 fi~
18034 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18035 linknames='
18036 # The linker will not automatically build a static lib if we build a DLL.
18037 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18038 enable_shared_with_static_runtimes_CXX=yes
18039 # Don't use ranlib
18040 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18041 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18042 lt_tool_outputfile="@TOOL_OUTPUT@"~
18043 case $lt_outputfile in
18044 *.exe|*.EXE) ;;
18045 *)
18046 lt_outputfile="$lt_outputfile.exe"
18047 lt_tool_outputfile="$lt_tool_outputfile.exe"
18048 ;;
18049 esac~
18050 func_to_tool_file "$lt_outputfile"~
18051 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18052 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18053 $RM "$lt_outputfile.manifest";
18054 fi'
18055 ;;
18056 *)
18057 # g++
18058 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18059 # as there is no search path for DLLs.
18060 hardcode_libdir_flag_spec_CXX='-L$libdir'
18061 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18062 allow_undefined_flag_CXX=unsupported
18063 always_export_symbols_CXX=no
18064 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018065
cristyda16f162011-02-19 23:52:17 +000018066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18067 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'
18068 # If the export-symbols file already is a .def file (1st line
18069 # is EXPORTS), use it as is; otherwise, prepend...
18070 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18071 cp $export_symbols $output_objdir/$soname.def;
18072 else
18073 echo EXPORTS > $output_objdir/$soname.def;
18074 cat $export_symbols >> $output_objdir/$soname.def;
18075 fi~
18076 $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'
18077 else
18078 ld_shlibs_CXX=no
18079 fi
18080 ;;
18081 esac
18082 ;;
cristy73bd4a52010-10-05 11:24:23 +000018083 darwin* | rhapsody*)
18084
18085
18086 archive_cmds_need_lc_CXX=no
18087 hardcode_direct_CXX=no
18088 hardcode_automatic_CXX=yes
18089 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018090 if test "$lt_cv_ld_force_load" = "yes"; then
18091 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 +000018092
cristy0c60a692010-11-04 01:09:47 +000018093 else
18094 whole_archive_flag_spec_CXX=''
18095 fi
cristy73bd4a52010-10-05 11:24:23 +000018096 link_all_deplibs_CXX=yes
18097 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18098 case $cc_basename in
18099 ifort*) _lt_dar_can_shared=yes ;;
18100 *) _lt_dar_can_shared=$GCC ;;
18101 esac
18102 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018103 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018104 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}"
18105 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18106 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}"
18107 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}"
18108 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18109 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}"
18110 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}"
18111 fi
18112
18113 else
18114 ld_shlibs_CXX=no
18115 fi
18116
18117 ;;
18118
18119 dgux*)
18120 case $cc_basename in
18121 ec++*)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 ;;
18125 ghcx*)
18126 # Green Hills C++ Compiler
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130 *)
18131 # FIXME: insert proper C++ library support
18132 ld_shlibs_CXX=no
18133 ;;
18134 esac
18135 ;;
18136
cristy99bd5232011-12-07 14:38:20 +000018137 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018138 # C++ shared libraries reported to be fairly broken before
18139 # switch to ELF
18140 ld_shlibs_CXX=no
18141 ;;
18142
18143 freebsd-elf*)
18144 archive_cmds_need_lc_CXX=no
18145 ;;
18146
18147 freebsd* | dragonfly*)
18148 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18149 # conventions
18150 ld_shlibs_CXX=yes
18151 ;;
18152
18153 gnu*)
18154 ;;
18155
cristy0c60a692010-11-04 01:09:47 +000018156 haiku*)
18157 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18158 link_all_deplibs_CXX=yes
18159 ;;
18160
cristy73bd4a52010-10-05 11:24:23 +000018161 hpux9*)
18162 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18163 hardcode_libdir_separator_CXX=:
18164 export_dynamic_flag_spec_CXX='${wl}-E'
18165 hardcode_direct_CXX=yes
18166 hardcode_minus_L_CXX=yes # Not in the search PATH,
18167 # but as the default
18168 # location of the library.
18169
18170 case $cc_basename in
18171 CC*)
18172 # FIXME: insert proper C++ library support
18173 ld_shlibs_CXX=no
18174 ;;
18175 aCC*)
18176 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'
18177 # Commands to make compiler produce verbose output that lists
18178 # what "hidden" libraries, object files and flags are used when
18179 # linking a shared library.
18180 #
18181 # There doesn't appear to be a way to prevent this compiler from
18182 # explicitly linking system object files so we need to strip them
18183 # from the output so that they don't get included in the library
18184 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018185 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 +000018186 ;;
18187 *)
18188 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018189 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 +000018190 else
18191 # FIXME: insert proper C++ library support
18192 ld_shlibs_CXX=no
18193 fi
18194 ;;
18195 esac
18196 ;;
18197
18198 hpux10*|hpux11*)
18199 if test $with_gnu_ld = no; then
18200 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18201 hardcode_libdir_separator_CXX=:
18202
18203 case $host_cpu in
18204 hppa*64*|ia64*)
18205 ;;
18206 *)
18207 export_dynamic_flag_spec_CXX='${wl}-E'
18208 ;;
18209 esac
18210 fi
18211 case $host_cpu in
18212 hppa*64*|ia64*)
18213 hardcode_direct_CXX=no
18214 hardcode_shlibpath_var_CXX=no
18215 ;;
18216 *)
18217 hardcode_direct_CXX=yes
18218 hardcode_direct_absolute_CXX=yes
18219 hardcode_minus_L_CXX=yes # Not in the search PATH,
18220 # but as the default
18221 # location of the library.
18222 ;;
18223 esac
18224
18225 case $cc_basename in
18226 CC*)
18227 # FIXME: insert proper C++ library support
18228 ld_shlibs_CXX=no
18229 ;;
18230 aCC*)
18231 case $host_cpu in
18232 hppa*64*)
18233 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18234 ;;
18235 ia64*)
18236 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18237 ;;
18238 *)
18239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18240 ;;
18241 esac
18242 # Commands to make compiler produce verbose output that lists
18243 # what "hidden" libraries, object files and flags are used when
18244 # linking a shared library.
18245 #
18246 # There doesn't appear to be a way to prevent this compiler from
18247 # explicitly linking system object files so we need to strip them
18248 # from the output so that they don't get included in the library
18249 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018250 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 +000018251 ;;
18252 *)
18253 if test "$GXX" = yes; then
18254 if test $with_gnu_ld = no; then
18255 case $host_cpu in
18256 hppa*64*)
18257 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18258 ;;
18259 ia64*)
cristyda16f162011-02-19 23:52:17 +000018260 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 +000018261 ;;
18262 *)
cristyda16f162011-02-19 23:52:17 +000018263 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 +000018264 ;;
18265 esac
18266 fi
18267 else
18268 # FIXME: insert proper C++ library support
18269 ld_shlibs_CXX=no
18270 fi
18271 ;;
18272 esac
18273 ;;
18274
18275 interix[3-9]*)
18276 hardcode_direct_CXX=no
18277 hardcode_shlibpath_var_CXX=no
18278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18279 export_dynamic_flag_spec_CXX='${wl}-E'
18280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18281 # Instead, shared libraries are loaded at an image base (0x10000000 by
18282 # default) and relocated if they conflict, which is a slow very memory
18283 # consuming and fragmenting process. To avoid this, we pick a random,
18284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18286 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'
18287 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'
18288 ;;
18289 irix5* | irix6*)
18290 case $cc_basename in
18291 CC*)
18292 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018293 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 +000018294
18295 # Archives containing C++ object files must be created using
18296 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18297 # necessary to make sure instantiated templates are included
18298 # in the archive.
18299 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18300 ;;
18301 *)
18302 if test "$GXX" = yes; then
18303 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018304 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 +000018305 else
cristyda16f162011-02-19 23:52:17 +000018306 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 +000018307 fi
18308 fi
18309 link_all_deplibs_CXX=yes
18310 ;;
18311 esac
18312 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18313 hardcode_libdir_separator_CXX=:
18314 inherit_rpath_CXX=yes
18315 ;;
18316
cristy0c60a692010-11-04 01:09:47 +000018317 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018318 case $cc_basename in
18319 KCC*)
18320 # Kuck and Associates, Inc. (KAI) C++ Compiler
18321
18322 # KCC will only create a shared library if the output file
18323 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18324 # to its proper name (with version) after linking.
18325 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'
18326 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'
18327 # Commands to make compiler produce verbose output that lists
18328 # what "hidden" libraries, object files and flags are used when
18329 # linking a shared library.
18330 #
18331 # There doesn't appear to be a way to prevent this compiler from
18332 # explicitly linking system object files so we need to strip them
18333 # from the output so that they don't get included in the library
18334 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018335 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 +000018336
18337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18339
18340 # Archives containing C++ object files must be created using
18341 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18342 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18343 ;;
18344 icpc* | ecpc* )
18345 # Intel C++
18346 with_gnu_ld=yes
18347 # version 8.0 and above of icpc choke on multiply defined symbols
18348 # if we add $predep_objects and $postdep_objects, however 7.1 and
18349 # earlier do not add the objects themselves.
18350 case `$CC -V 2>&1` in
18351 *"Version 7."*)
18352 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353 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'
18354 ;;
18355 *) # Version 8.0 or newer
18356 tmp_idyn=
18357 case $host_cpu in
18358 ia64*) tmp_idyn=' -i_dynamic';;
18359 esac
18360 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18361 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'
18362 ;;
18363 esac
18364 archive_cmds_need_lc_CXX=no
18365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18368 ;;
18369 pgCC* | pgcpp*)
18370 # Portland Group C++ compiler
18371 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018372 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018373 prelink_cmds_CXX='tpldir=Template.dir~
18374 rm -rf $tpldir~
18375 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018376 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018377 old_archive_cmds_CXX='tpldir=Template.dir~
18378 rm -rf $tpldir~
18379 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018380 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018381 $RANLIB $oldlib'
18382 archive_cmds_CXX='tpldir=Template.dir~
18383 rm -rf $tpldir~
18384 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018385 $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 +000018386 archive_expsym_cmds_CXX='tpldir=Template.dir~
18387 rm -rf $tpldir~
18388 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018389 $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 +000018390 ;;
cristy0c60a692010-11-04 01:09:47 +000018391 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18393 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'
18394 ;;
18395 esac
18396
18397 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018399 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 +000018400 ;;
18401 cxx*)
18402 # Compaq C++
18403 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18404 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'
18405
18406 runpath_var=LD_RUN_PATH
18407 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18408 hardcode_libdir_separator_CXX=:
18409
18410 # Commands to make compiler produce verbose output that lists
18411 # what "hidden" libraries, object files and flags are used when
18412 # linking a shared library.
18413 #
18414 # There doesn't appear to be a way to prevent this compiler from
18415 # explicitly linking system object files so we need to strip them
18416 # from the output so that they don't get included in the library
18417 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018418 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 +000018419 ;;
cristy0c60a692010-11-04 01:09:47 +000018420 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018421 # IBM XL 8.0 on PPC, with GNU ld
18422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18424 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18425 if test "x$supports_anon_versioning" = xyes; then
18426 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18428 echo "local: *; };" >> $output_objdir/$libname.ver~
18429 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18430 fi
18431 ;;
18432 *)
18433 case `$CC -V 2>&1 | sed 5q` in
18434 *Sun\ C*)
18435 # Sun C++ 5.9
18436 no_undefined_flag_CXX=' -zdefs'
18437 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18438 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'
18439 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018440 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 +000018441 compiler_needs_object_CXX=yes
18442
18443 # Not sure whether something based on
18444 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18445 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018446 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018447
18448 # Archives containing C++ object files must be created using
18449 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18450 # necessary to make sure instantiated templates are included
18451 # in the archive.
18452 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18453 ;;
18454 esac
18455 ;;
18456 esac
18457 ;;
18458
18459 lynxos*)
18460 # FIXME: insert proper C++ library support
18461 ld_shlibs_CXX=no
18462 ;;
18463
18464 m88k*)
18465 # FIXME: insert proper C++ library support
18466 ld_shlibs_CXX=no
18467 ;;
18468
18469 mvs*)
18470 case $cc_basename in
18471 cxx*)
18472 # FIXME: insert proper C++ library support
18473 ld_shlibs_CXX=no
18474 ;;
18475 *)
18476 # FIXME: insert proper C++ library support
18477 ld_shlibs_CXX=no
18478 ;;
18479 esac
18480 ;;
18481
18482 netbsd*)
18483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18484 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18485 wlarc=
18486 hardcode_libdir_flag_spec_CXX='-R$libdir'
18487 hardcode_direct_CXX=yes
18488 hardcode_shlibpath_var_CXX=no
18489 fi
18490 # Workaround some broken pre-1.5 toolchains
18491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18492 ;;
18493
18494 *nto* | *qnx*)
18495 ld_shlibs_CXX=yes
18496 ;;
18497
18498 openbsd2*)
18499 # C++ shared libraries are fairly broken
18500 ld_shlibs_CXX=no
18501 ;;
18502
18503 openbsd*)
18504 if test -f /usr/libexec/ld.so; then
18505 hardcode_direct_CXX=yes
18506 hardcode_shlibpath_var_CXX=no
18507 hardcode_direct_absolute_CXX=yes
18508 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18509 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18511 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18512 export_dynamic_flag_spec_CXX='${wl}-E'
18513 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18514 fi
cristy0c60a692010-11-04 01:09:47 +000018515 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018516 else
18517 ld_shlibs_CXX=no
18518 fi
18519 ;;
18520
18521 osf3* | osf4* | osf5*)
18522 case $cc_basename in
18523 KCC*)
18524 # Kuck and Associates, Inc. (KAI) C++ Compiler
18525
18526 # KCC will only create a shared library if the output file
18527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18528 # to its proper name (with version) after linking.
18529 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'
18530
18531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18532 hardcode_libdir_separator_CXX=:
18533
18534 # Archives containing C++ object files must be created using
18535 # the KAI C++ compiler.
18536 case $host in
18537 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18538 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18539 esac
18540 ;;
18541 RCC*)
18542 # Rational C++ 2.4.1
18543 # FIXME: insert proper C++ library support
18544 ld_shlibs_CXX=no
18545 ;;
18546 cxx*)
18547 case $host in
18548 osf3*)
18549 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018550 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 +000018551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18552 ;;
18553 *)
18554 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018555 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 +000018556 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18557 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018558 $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 +000018559 $RM $lib.exp'
18560 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18561 ;;
18562 esac
18563
18564 hardcode_libdir_separator_CXX=:
18565
18566 # Commands to make compiler produce verbose output that lists
18567 # what "hidden" libraries, object files and flags are used when
18568 # linking a shared library.
18569 #
18570 # There doesn't appear to be a way to prevent this compiler from
18571 # explicitly linking system object files so we need to strip them
18572 # from the output so that they don't get included in the library
18573 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018574 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 +000018575 ;;
18576 *)
18577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18579 case $host in
18580 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018581 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 +000018582 ;;
18583 *)
cristyda16f162011-02-19 23:52:17 +000018584 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 +000018585 ;;
18586 esac
18587
18588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 hardcode_libdir_separator_CXX=:
18590
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018595
18596 else
18597 # FIXME: insert proper C++ library support
18598 ld_shlibs_CXX=no
18599 fi
18600 ;;
18601 esac
18602 ;;
18603
18604 psos*)
18605 # FIXME: insert proper C++ library support
18606 ld_shlibs_CXX=no
18607 ;;
18608
18609 sunos4*)
18610 case $cc_basename in
18611 CC*)
18612 # Sun C++ 4.x
18613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18615 ;;
18616 lcc*)
18617 # Lucid
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621 *)
18622 # FIXME: insert proper C++ library support
18623 ld_shlibs_CXX=no
18624 ;;
18625 esac
18626 ;;
18627
18628 solaris*)
18629 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018630 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018631 # Sun C++ 4.2, 5.x and Centerline C++
18632 archive_cmds_need_lc_CXX=yes
18633 no_undefined_flag_CXX=' -zdefs'
18634 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18635 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18636 $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'
18637
18638 hardcode_libdir_flag_spec_CXX='-R$libdir'
18639 hardcode_shlibpath_var_CXX=no
18640 case $host_os in
18641 solaris2.[0-5] | solaris2.[0-5].*) ;;
18642 *)
18643 # The compiler driver will combine and reorder linker options,
18644 # but understands `-z linker_flag'.
18645 # Supported since Solaris 2.6 (maybe 2.5.1?)
18646 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18647 ;;
18648 esac
18649 link_all_deplibs_CXX=yes
18650
cristy0c60a692010-11-04 01:09:47 +000018651 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018652
18653 # Archives containing C++ object files must be created using
18654 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18655 # necessary to make sure instantiated templates are included
18656 # in the archive.
18657 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18658 ;;
18659 gcx*)
18660 # Green Hills C++ Compiler
18661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18662
18663 # The C++ compiler must be used to create the archive.
18664 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18665 ;;
18666 *)
18667 # GNU C++ compiler with Solaris linker
18668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18669 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18670 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018671 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 +000018672 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 +000018673 $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 +000018674
18675 # Commands to make compiler produce verbose output that lists
18676 # what "hidden" libraries, object files and flags are used when
18677 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018679 else
18680 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18681 # platform.
18682 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18683 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18684 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18685
18686 # Commands to make compiler produce verbose output that lists
18687 # what "hidden" libraries, object files and flags are used when
18688 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018689 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018690 fi
18691
18692 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18693 case $host_os in
18694 solaris2.[0-5] | solaris2.[0-5].*) ;;
18695 *)
18696 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18697 ;;
18698 esac
18699 fi
18700 ;;
18701 esac
18702 ;;
18703
18704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18705 no_undefined_flag_CXX='${wl}-z,text'
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_shlibpath_var_CXX=no
18708 runpath_var='LD_RUN_PATH'
18709
18710 case $cc_basename in
18711 CC*)
18712 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 ;;
18715 *)
18716 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18717 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 ;;
18719 esac
18720 ;;
18721
18722 sysv5* | sco3.2v5* | sco5v6*)
18723 # Note: We can NOT use -z defs as we might desire, because we do not
18724 # link with -lc, and that would cause any symbols used from libc to
18725 # always be unresolved, which means just about no library would
18726 # ever link correctly. If we're not using GNU ld we use -z text
18727 # though, which does catch some bad symbols but isn't as heavy-handed
18728 # as -z defs.
18729 no_undefined_flag_CXX='${wl}-z,text'
18730 allow_undefined_flag_CXX='${wl}-z,nodefs'
18731 archive_cmds_need_lc_CXX=no
18732 hardcode_shlibpath_var_CXX=no
18733 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18734 hardcode_libdir_separator_CXX=':'
18735 link_all_deplibs_CXX=yes
18736 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18737 runpath_var='LD_RUN_PATH'
18738
18739 case $cc_basename in
18740 CC*)
18741 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 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 +000018743 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18744 '"$old_archive_cmds_CXX"
18745 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18746 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018747 ;;
18748 *)
18749 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18751 ;;
18752 esac
18753 ;;
18754
18755 tandem*)
18756 case $cc_basename in
18757 NCC*)
18758 # NonStop-UX NCC 3.20
18759 # FIXME: insert proper C++ library support
18760 ld_shlibs_CXX=no
18761 ;;
18762 *)
18763 # FIXME: insert proper C++ library support
18764 ld_shlibs_CXX=no
18765 ;;
18766 esac
18767 ;;
18768
18769 vxworks*)
18770 # FIXME: insert proper C++ library support
18771 ld_shlibs_CXX=no
18772 ;;
18773
18774 *)
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 ;;
18778 esac
18779
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18781$as_echo "$ld_shlibs_CXX" >&6; }
18782 test "$ld_shlibs_CXX" = no && can_build_shared=no
18783
18784 GCC_CXX="$GXX"
18785 LD_CXX="$LD"
18786
18787 ## CAVEAT EMPTOR:
18788 ## There is no encapsulation within the following macros, do not change
18789 ## the running order or otherwise move them around unless you know exactly
18790 ## what you are doing...
18791 # Dependencies to place before and after the object being linked:
18792predep_objects_CXX=
18793postdep_objects_CXX=
18794predeps_CXX=
18795postdeps_CXX=
18796compiler_lib_search_path_CXX=
18797
18798cat > conftest.$ac_ext <<_LT_EOF
18799class Foo
18800{
18801public:
18802 Foo (void) { a = 0; }
18803private:
18804 int a;
18805};
18806_LT_EOF
18807
cristyda16f162011-02-19 23:52:17 +000018808
18809_lt_libdeps_save_CFLAGS=$CFLAGS
18810case "$CC $CFLAGS " in #(
18811*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18812*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018813*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018814esac
18815
cristy73bd4a52010-10-05 11:24:23 +000018816if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18817 (eval $ac_compile) 2>&5
18818 ac_status=$?
18819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18820 test $ac_status = 0; }; then
18821 # Parse the compiler output and extract the necessary
18822 # objects, libraries and library flags.
18823
18824 # Sentinel used to keep track of whether or not we are before
18825 # the conftest object file.
18826 pre_test_object_deps_done=no
18827
18828 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018829 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018830
18831 -L* | -R* | -l*)
18832 # Some compilers place space between "-{L,R}" and the path.
18833 # Remove the space.
18834 if test $p = "-L" ||
18835 test $p = "-R"; then
18836 prev=$p
18837 continue
cristy73bd4a52010-10-05 11:24:23 +000018838 fi
18839
cristyda16f162011-02-19 23:52:17 +000018840 # Expand the sysroot to ease extracting the directories later.
18841 if test -z "$prev"; then
18842 case $p in
18843 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18844 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18845 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18846 esac
18847 fi
18848 case $p in
18849 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18850 esac
cristy73bd4a52010-10-05 11:24:23 +000018851 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018852 case ${prev} in
18853 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018854 # Internal compiler library paths should come after those
18855 # provided the user. The postdeps already come after the
18856 # user supplied libs so there is no need to process them.
18857 if test -z "$compiler_lib_search_path_CXX"; then
18858 compiler_lib_search_path_CXX="${prev}${p}"
18859 else
18860 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18861 fi
18862 ;;
18863 # The "-l" case would never come before the object being
18864 # linked, so don't bother handling this case.
18865 esac
18866 else
18867 if test -z "$postdeps_CXX"; then
18868 postdeps_CXX="${prev}${p}"
18869 else
18870 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18871 fi
18872 fi
cristyda16f162011-02-19 23:52:17 +000018873 prev=
cristy73bd4a52010-10-05 11:24:23 +000018874 ;;
18875
cristyda16f162011-02-19 23:52:17 +000018876 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018877 *.$objext)
18878 # This assumes that the test object file only shows up
18879 # once in the compiler output.
18880 if test "$p" = "conftest.$objext"; then
18881 pre_test_object_deps_done=yes
18882 continue
18883 fi
18884
18885 if test "$pre_test_object_deps_done" = no; then
18886 if test -z "$predep_objects_CXX"; then
18887 predep_objects_CXX="$p"
18888 else
18889 predep_objects_CXX="$predep_objects_CXX $p"
18890 fi
18891 else
18892 if test -z "$postdep_objects_CXX"; then
18893 postdep_objects_CXX="$p"
18894 else
18895 postdep_objects_CXX="$postdep_objects_CXX $p"
18896 fi
18897 fi
18898 ;;
18899
18900 *) ;; # Ignore the rest.
18901
18902 esac
18903 done
18904
18905 # Clean up.
18906 rm -f a.out a.exe
18907else
18908 echo "libtool.m4: error: problem compiling CXX test program"
18909fi
18910
18911$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018912CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018913
18914# PORTME: override above test on systems where it is broken
18915case $host_os in
18916interix[3-9]*)
18917 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18918 # hack all around it, let's just trust "g++" to DTRT.
18919 predep_objects_CXX=
18920 postdep_objects_CXX=
18921 postdeps_CXX=
18922 ;;
18923
18924linux*)
18925 case `$CC -V 2>&1 | sed 5q` in
18926 *Sun\ C*)
18927 # Sun C++ 5.9
18928
18929 # The more standards-conforming stlport4 library is
18930 # incompatible with the Cstd library. Avoid specifying
18931 # it if it's in CXXFLAGS. Ignore libCrun as
18932 # -library=stlport4 depends on it.
18933 case " $CXX $CXXFLAGS " in
18934 *" -library=stlport4 "*)
18935 solaris_use_stlport4=yes
18936 ;;
18937 esac
18938
18939 if test "$solaris_use_stlport4" != yes; then
18940 postdeps_CXX='-library=Cstd -library=Crun'
18941 fi
18942 ;;
18943 esac
18944 ;;
18945
18946solaris*)
18947 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018948 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018949 # The more standards-conforming stlport4 library is
18950 # incompatible with the Cstd library. Avoid specifying
18951 # it if it's in CXXFLAGS. Ignore libCrun as
18952 # -library=stlport4 depends on it.
18953 case " $CXX $CXXFLAGS " in
18954 *" -library=stlport4 "*)
18955 solaris_use_stlport4=yes
18956 ;;
18957 esac
18958
18959 # Adding this requires a known-good setup of shared libraries for
18960 # Sun compiler versions before 5.6, else PIC objects from an old
18961 # archive will be linked into the output, leading to subtle bugs.
18962 if test "$solaris_use_stlport4" != yes; then
18963 postdeps_CXX='-library=Cstd -library=Crun'
18964 fi
18965 ;;
18966 esac
18967 ;;
18968esac
18969
18970
18971case " $postdeps_CXX " in
18972*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18973esac
18974 compiler_lib_search_dirs_CXX=
18975if test -n "${compiler_lib_search_path_CXX}"; then
18976 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18977fi
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009 lt_prog_compiler_wl_CXX=
19010lt_prog_compiler_pic_CXX=
19011lt_prog_compiler_static_CXX=
19012
cristy73bd4a52010-10-05 11:24:23 +000019013
19014 # C++ specific cases for pic, static, wl, etc.
19015 if test "$GXX" = yes; then
19016 lt_prog_compiler_wl_CXX='-Wl,'
19017 lt_prog_compiler_static_CXX='-static'
19018
19019 case $host_os in
19020 aix*)
19021 # All AIX code is PIC.
19022 if test "$host_cpu" = ia64; then
19023 # AIX 5 now supports IA64 processor
19024 lt_prog_compiler_static_CXX='-Bstatic'
19025 fi
19026 ;;
19027
19028 amigaos*)
19029 case $host_cpu in
19030 powerpc)
19031 # see comment about AmigaOS4 .so support
19032 lt_prog_compiler_pic_CXX='-fPIC'
19033 ;;
19034 m68k)
19035 # FIXME: we need at least 68020 code to build shared libraries, but
19036 # adding the `-m68020' flag to GCC prevents building anything better,
19037 # like `-m68040'.
19038 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19039 ;;
19040 esac
19041 ;;
19042
19043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19044 # PIC is the default for these OSes.
19045 ;;
19046 mingw* | cygwin* | os2* | pw32* | cegcc*)
19047 # This hack is so that the source file can tell whether it is being
19048 # built for inclusion in a dll (and should export symbols for example).
19049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19050 # (--disable-auto-import) libraries
19051 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19052 ;;
19053 darwin* | rhapsody*)
19054 # PIC is the default on this platform
19055 # Common symbols not allowed in MH_DYLIB files
19056 lt_prog_compiler_pic_CXX='-fno-common'
19057 ;;
19058 *djgpp*)
19059 # DJGPP does not support shared libraries at all
19060 lt_prog_compiler_pic_CXX=
19061 ;;
cristy0c60a692010-11-04 01:09:47 +000019062 haiku*)
19063 # PIC is the default for Haiku.
19064 # The "-static" flag exists, but is broken.
19065 lt_prog_compiler_static_CXX=
19066 ;;
cristy73bd4a52010-10-05 11:24:23 +000019067 interix[3-9]*)
19068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19069 # Instead, we relocate shared libraries at runtime.
19070 ;;
19071 sysv4*MP*)
19072 if test -d /usr/nec; then
19073 lt_prog_compiler_pic_CXX=-Kconform_pic
19074 fi
19075 ;;
19076 hpux*)
19077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19079 # sets the default TLS model and affects inlining.
19080 case $host_cpu in
19081 hppa*64*)
19082 ;;
19083 *)
19084 lt_prog_compiler_pic_CXX='-fPIC'
19085 ;;
19086 esac
19087 ;;
19088 *qnx* | *nto*)
19089 # QNX uses GNU C++, but need to define -shared option too, otherwise
19090 # it will coredump.
19091 lt_prog_compiler_pic_CXX='-fPIC -shared'
19092 ;;
19093 *)
19094 lt_prog_compiler_pic_CXX='-fPIC'
19095 ;;
19096 esac
19097 else
19098 case $host_os in
19099 aix[4-9]*)
19100 # All AIX code is PIC.
19101 if test "$host_cpu" = ia64; then
19102 # AIX 5 now supports IA64 processor
19103 lt_prog_compiler_static_CXX='-Bstatic'
19104 else
19105 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19106 fi
19107 ;;
19108 chorus*)
19109 case $cc_basename in
19110 cxch68*)
19111 # Green Hills C++ Compiler
19112 # _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"
19113 ;;
19114 esac
19115 ;;
cristyda16f162011-02-19 23:52:17 +000019116 mingw* | cygwin* | os2* | pw32* | cegcc*)
19117 # This hack is so that the source file can tell whether it is being
19118 # built for inclusion in a dll (and should export symbols for example).
19119 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19120 ;;
cristy73bd4a52010-10-05 11:24:23 +000019121 dgux*)
19122 case $cc_basename in
19123 ec++*)
19124 lt_prog_compiler_pic_CXX='-KPIC'
19125 ;;
19126 ghcx*)
19127 # Green Hills C++ Compiler
19128 lt_prog_compiler_pic_CXX='-pic'
19129 ;;
19130 *)
19131 ;;
19132 esac
19133 ;;
19134 freebsd* | dragonfly*)
19135 # FreeBSD uses GNU C++
19136 ;;
19137 hpux9* | hpux10* | hpux11*)
19138 case $cc_basename in
19139 CC*)
19140 lt_prog_compiler_wl_CXX='-Wl,'
19141 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19142 if test "$host_cpu" != ia64; then
19143 lt_prog_compiler_pic_CXX='+Z'
19144 fi
19145 ;;
19146 aCC*)
19147 lt_prog_compiler_wl_CXX='-Wl,'
19148 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19149 case $host_cpu in
19150 hppa*64*|ia64*)
19151 # +Z the default
19152 ;;
19153 *)
19154 lt_prog_compiler_pic_CXX='+Z'
19155 ;;
19156 esac
19157 ;;
19158 *)
19159 ;;
19160 esac
19161 ;;
19162 interix*)
19163 # This is c89, which is MS Visual C++ (no shared libs)
19164 # Anyone wants to do a port?
19165 ;;
19166 irix5* | irix6* | nonstopux*)
19167 case $cc_basename in
19168 CC*)
19169 lt_prog_compiler_wl_CXX='-Wl,'
19170 lt_prog_compiler_static_CXX='-non_shared'
19171 # CC pic flag -KPIC is the default.
19172 ;;
19173 *)
19174 ;;
19175 esac
19176 ;;
cristy0c60a692010-11-04 01:09:47 +000019177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019178 case $cc_basename in
19179 KCC*)
19180 # KAI C++ Compiler
19181 lt_prog_compiler_wl_CXX='--backend -Wl,'
19182 lt_prog_compiler_pic_CXX='-fPIC'
19183 ;;
19184 ecpc* )
19185 # old Intel C++ for x86_64 which still supported -KPIC.
19186 lt_prog_compiler_wl_CXX='-Wl,'
19187 lt_prog_compiler_pic_CXX='-KPIC'
19188 lt_prog_compiler_static_CXX='-static'
19189 ;;
19190 icpc* )
19191 # Intel C++, used to be incompatible with GCC.
19192 # ICC 10 doesn't accept -KPIC any more.
19193 lt_prog_compiler_wl_CXX='-Wl,'
19194 lt_prog_compiler_pic_CXX='-fPIC'
19195 lt_prog_compiler_static_CXX='-static'
19196 ;;
19197 pgCC* | pgcpp*)
19198 # Portland Group C++ compiler
19199 lt_prog_compiler_wl_CXX='-Wl,'
19200 lt_prog_compiler_pic_CXX='-fpic'
19201 lt_prog_compiler_static_CXX='-Bstatic'
19202 ;;
19203 cxx*)
19204 # Compaq C++
19205 # Make sure the PIC flag is empty. It appears that all Alpha
19206 # Linux and Compaq Tru64 Unix objects are PIC.
19207 lt_prog_compiler_pic_CXX=
19208 lt_prog_compiler_static_CXX='-non_shared'
19209 ;;
cristy0c60a692010-11-04 01:09:47 +000019210 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19211 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019212 lt_prog_compiler_wl_CXX='-Wl,'
19213 lt_prog_compiler_pic_CXX='-qpic'
19214 lt_prog_compiler_static_CXX='-qstaticlink'
19215 ;;
19216 *)
19217 case `$CC -V 2>&1 | sed 5q` in
19218 *Sun\ C*)
19219 # Sun C++ 5.9
19220 lt_prog_compiler_pic_CXX='-KPIC'
19221 lt_prog_compiler_static_CXX='-Bstatic'
19222 lt_prog_compiler_wl_CXX='-Qoption ld '
19223 ;;
19224 esac
19225 ;;
19226 esac
19227 ;;
19228 lynxos*)
19229 ;;
19230 m88k*)
19231 ;;
19232 mvs*)
19233 case $cc_basename in
19234 cxx*)
19235 lt_prog_compiler_pic_CXX='-W c,exportall'
19236 ;;
19237 *)
19238 ;;
19239 esac
19240 ;;
19241 netbsd*)
19242 ;;
19243 *qnx* | *nto*)
19244 # QNX uses GNU C++, but need to define -shared option too, otherwise
19245 # it will coredump.
19246 lt_prog_compiler_pic_CXX='-fPIC -shared'
19247 ;;
19248 osf3* | osf4* | osf5*)
19249 case $cc_basename in
19250 KCC*)
19251 lt_prog_compiler_wl_CXX='--backend -Wl,'
19252 ;;
19253 RCC*)
19254 # Rational C++ 2.4.1
19255 lt_prog_compiler_pic_CXX='-pic'
19256 ;;
19257 cxx*)
19258 # Digital/Compaq C++
19259 lt_prog_compiler_wl_CXX='-Wl,'
19260 # Make sure the PIC flag is empty. It appears that all Alpha
19261 # Linux and Compaq Tru64 Unix objects are PIC.
19262 lt_prog_compiler_pic_CXX=
19263 lt_prog_compiler_static_CXX='-non_shared'
19264 ;;
19265 *)
19266 ;;
19267 esac
19268 ;;
19269 psos*)
19270 ;;
19271 solaris*)
19272 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019273 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019274 # Sun C++ 4.2, 5.x and Centerline C++
19275 lt_prog_compiler_pic_CXX='-KPIC'
19276 lt_prog_compiler_static_CXX='-Bstatic'
19277 lt_prog_compiler_wl_CXX='-Qoption ld '
19278 ;;
19279 gcx*)
19280 # Green Hills C++ Compiler
19281 lt_prog_compiler_pic_CXX='-PIC'
19282 ;;
19283 *)
19284 ;;
19285 esac
19286 ;;
19287 sunos4*)
19288 case $cc_basename in
19289 CC*)
19290 # Sun C++ 4.x
19291 lt_prog_compiler_pic_CXX='-pic'
19292 lt_prog_compiler_static_CXX='-Bstatic'
19293 ;;
19294 lcc*)
19295 # Lucid
19296 lt_prog_compiler_pic_CXX='-pic'
19297 ;;
19298 *)
19299 ;;
19300 esac
19301 ;;
19302 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19303 case $cc_basename in
19304 CC*)
19305 lt_prog_compiler_wl_CXX='-Wl,'
19306 lt_prog_compiler_pic_CXX='-KPIC'
19307 lt_prog_compiler_static_CXX='-Bstatic'
19308 ;;
19309 esac
19310 ;;
19311 tandem*)
19312 case $cc_basename in
19313 NCC*)
19314 # NonStop-UX NCC 3.20
19315 lt_prog_compiler_pic_CXX='-KPIC'
19316 ;;
19317 *)
19318 ;;
19319 esac
19320 ;;
19321 vxworks*)
19322 ;;
19323 *)
19324 lt_prog_compiler_can_build_shared_CXX=no
19325 ;;
19326 esac
19327 fi
19328
19329case $host_os in
19330 # For platforms which do not support PIC, -DPIC is meaningless:
19331 *djgpp*)
19332 lt_prog_compiler_pic_CXX=
19333 ;;
19334 *)
19335 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19336 ;;
19337esac
cristy73bd4a52010-10-05 11:24:23 +000019338
cristyda16f162011-02-19 23:52:17 +000019339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19340$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19341if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19342 $as_echo_n "(cached) " >&6
19343else
19344 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19345fi
19346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19347$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19348lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019349
19350#
19351# Check to make sure the PIC flag actually works.
19352#
19353if test -n "$lt_prog_compiler_pic_CXX"; then
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19355$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019356if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019357 $as_echo_n "(cached) " >&6
19358else
19359 lt_cv_prog_compiler_pic_works_CXX=no
19360 ac_outfile=conftest.$ac_objext
19361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19362 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19363 # Insert the option either (1) after the last *FLAGS variable, or
19364 # (2) before a word containing "conftest.", or (3) at the end.
19365 # Note that $ac_compile itself does not contain backslashes and begins
19366 # with a dollar sign (not a hyphen), so the echo should work correctly.
19367 # The option is referenced via a variable to avoid confusing sed.
19368 lt_compile=`echo "$ac_compile" | $SED \
19369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19371 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019373 (eval "$lt_compile" 2>conftest.err)
19374 ac_status=$?
19375 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019377 if (exit $ac_status) && test -s "$ac_outfile"; then
19378 # The compiler can only warn and ignore the option if not recognized
19379 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19383 lt_cv_prog_compiler_pic_works_CXX=yes
19384 fi
19385 fi
19386 $RM conftest*
19387
19388fi
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19390$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19391
19392if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19393 case $lt_prog_compiler_pic_CXX in
19394 "" | " "*) ;;
19395 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19396 esac
19397else
19398 lt_prog_compiler_pic_CXX=
19399 lt_prog_compiler_can_build_shared_CXX=no
19400fi
19401
19402fi
19403
19404
19405
cristyda16f162011-02-19 23:52:17 +000019406
19407
cristy73bd4a52010-10-05 11:24:23 +000019408#
19409# Check to make sure the static flag actually works.
19410#
19411wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19413$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019414if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019415 $as_echo_n "(cached) " >&6
19416else
19417 lt_cv_prog_compiler_static_works_CXX=no
19418 save_LDFLAGS="$LDFLAGS"
19419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19422 # The linker can only warn and ignore the option if not recognized
19423 # So say no if there are warnings
19424 if test -s conftest.err; then
19425 # Append any errors to the config.log.
19426 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19429 if diff conftest.exp conftest.er2 >/dev/null; then
19430 lt_cv_prog_compiler_static_works_CXX=yes
19431 fi
19432 else
19433 lt_cv_prog_compiler_static_works_CXX=yes
19434 fi
19435 fi
19436 $RM -r conftest*
19437 LDFLAGS="$save_LDFLAGS"
19438
19439fi
19440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19441$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19442
19443if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19444 :
19445else
19446 lt_prog_compiler_static_CXX=
19447fi
19448
19449
19450
19451
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19453$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019454if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019455 $as_echo_n "(cached) " >&6
19456else
19457 lt_cv_prog_compiler_c_o_CXX=no
19458 $RM -r conftest 2>/dev/null
19459 mkdir conftest
19460 cd conftest
19461 mkdir out
19462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19463
19464 lt_compiler_flag="-o out/conftest2.$ac_objext"
19465 # Insert the option either (1) after the last *FLAGS variable, or
19466 # (2) before a word containing "conftest.", or (3) at the end.
19467 # Note that $ac_compile itself does not contain backslashes and begins
19468 # with a dollar sign (not a hyphen), so the echo should work correctly.
19469 lt_compile=`echo "$ac_compile" | $SED \
19470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19472 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019474 (eval "$lt_compile" 2>out/conftest.err)
19475 ac_status=$?
19476 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19479 then
19480 # The compiler can only warn and ignore the option if not recognized
19481 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19485 lt_cv_prog_compiler_c_o_CXX=yes
19486 fi
19487 fi
19488 chmod u+w . 2>&5
19489 $RM conftest*
19490 # SGI C++ compiler will create directory out/ii_files/ for
19491 # template instantiation
19492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19493 $RM out/* && rmdir out
19494 cd ..
19495 $RM -r conftest
19496 $RM conftest*
19497
19498fi
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19500$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19501
19502
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19505$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019506if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019507 $as_echo_n "(cached) " >&6
19508else
19509 lt_cv_prog_compiler_c_o_CXX=no
19510 $RM -r conftest 2>/dev/null
19511 mkdir conftest
19512 cd conftest
19513 mkdir out
19514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19515
19516 lt_compiler_flag="-o out/conftest2.$ac_objext"
19517 # Insert the option either (1) after the last *FLAGS variable, or
19518 # (2) before a word containing "conftest.", or (3) at the end.
19519 # Note that $ac_compile itself does not contain backslashes and begins
19520 # with a dollar sign (not a hyphen), so the echo should work correctly.
19521 lt_compile=`echo "$ac_compile" | $SED \
19522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19524 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019526 (eval "$lt_compile" 2>out/conftest.err)
19527 ac_status=$?
19528 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19531 then
19532 # The compiler can only warn and ignore the option if not recognized
19533 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19537 lt_cv_prog_compiler_c_o_CXX=yes
19538 fi
19539 fi
19540 chmod u+w . 2>&5
19541 $RM conftest*
19542 # SGI C++ compiler will create directory out/ii_files/ for
19543 # template instantiation
19544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19545 $RM out/* && rmdir out
19546 cd ..
19547 $RM -r conftest
19548 $RM conftest*
19549
19550fi
19551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19552$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19553
19554
19555
19556
19557hard_links="nottested"
19558if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19559 # do not overwrite the value of need_locks provided by the user
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19561$as_echo_n "checking if we can lock with hard links... " >&6; }
19562 hard_links=yes
19563 $RM conftest*
19564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19565 touch conftest.a
19566 ln conftest.a conftest.b 2>&5 || hard_links=no
19567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19569$as_echo "$hard_links" >&6; }
19570 if test "$hard_links" = no; then
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19572$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19573 need_locks=warn
19574 fi
19575else
19576 need_locks=no
19577fi
19578
19579
19580
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19583
19584 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019585 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019586 case $host_os in
19587 aix[4-9]*)
19588 # If we're using GNU nm, then we don't want the "-C" option.
19589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019590 # Also, AIX nm treats weak defined symbols like other global defined
19591 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019593 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 +000019594 else
19595 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'
19596 fi
19597 ;;
19598 pw32*)
19599 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019600 ;;
cristy73bd4a52010-10-05 11:24:23 +000019601 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019602 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019603 cl*)
19604 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19605 ;;
cristyda16f162011-02-19 23:52:17 +000019606 *)
19607 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'
19608 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19609 ;;
19610 esac
19611 ;;
cristy73bd4a52010-10-05 11:24:23 +000019612 *)
19613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019614 ;;
cristy73bd4a52010-10-05 11:24:23 +000019615 esac
cristy73bd4a52010-10-05 11:24:23 +000019616
19617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19618$as_echo "$ld_shlibs_CXX" >&6; }
19619test "$ld_shlibs_CXX" = no && can_build_shared=no
19620
19621with_gnu_ld_CXX=$with_gnu_ld
19622
19623
19624
19625
19626
19627
19628#
19629# Do we need to explicitly link libc?
19630#
19631case "x$archive_cmds_need_lc_CXX" in
19632x|xyes)
19633 # Assume -lc should be added
19634 archive_cmds_need_lc_CXX=yes
19635
19636 if test "$enable_shared" = yes && test "$GCC" = yes; then
19637 case $archive_cmds_CXX in
19638 *'~'*)
19639 # FIXME: we may have to deal with multi-command sequences.
19640 ;;
19641 '$CC '*)
19642 # Test whether the compiler implicitly links with -lc since on some
19643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19644 # to ld, don't add -lc before -lgcc.
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19646$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019647if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019648 $as_echo_n "(cached) " >&6
19649else
19650 $RM conftest*
19651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019652
cristy0c60a692010-11-04 01:09:47 +000019653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019654 (eval $ac_compile) 2>&5
19655 ac_status=$?
19656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19657 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019658 soname=conftest
19659 lib=conftest
19660 libobjs=conftest.$ac_objext
19661 deplibs=
19662 wl=$lt_prog_compiler_wl_CXX
19663 pic_flag=$lt_prog_compiler_pic_CXX
19664 compiler_flags=-v
19665 linker_flags=-v
19666 verstring=
19667 output_objdir=.
19668 libname=conftest
19669 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19670 allow_undefined_flag_CXX=
19671 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 +000019672 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19673 ac_status=$?
19674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19675 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019676 then
19677 lt_cv_archive_cmds_need_lc_CXX=no
19678 else
19679 lt_cv_archive_cmds_need_lc_CXX=yes
19680 fi
19681 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19682 else
19683 cat conftest.err 1>&5
19684 fi
19685 $RM conftest*
19686
19687fi
19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19689$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19690 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019691 ;;
19692 esac
19693 fi
19694 ;;
19695esac
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
cristy73bd4a52010-10-05 11:24:23 +000019758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19759$as_echo_n "checking dynamic linker characteristics... " >&6; }
19760
19761library_names_spec=
19762libname_spec='lib$name'
19763soname_spec=
19764shrext_cmds=".so"
19765postinstall_cmds=
19766postuninstall_cmds=
19767finish_cmds=
19768finish_eval=
19769shlibpath_var=
19770shlibpath_overrides_runpath=unknown
19771version_type=none
19772dynamic_linker="$host_os ld.so"
19773sys_lib_dlsearch_path_spec="/lib /usr/lib"
19774need_lib_prefix=unknown
19775hardcode_into_libs=no
19776
19777# when you set need_version to no, make sure it does not cause -set_version
19778# flags to be left without arguments
19779need_version=unknown
19780
19781case $host_os in
19782aix3*)
cristy99bd5232011-12-07 14:38:20 +000019783 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19786
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 ;;
19790
19791aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019792 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019793 need_lib_prefix=no
19794 need_version=no
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 else
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19806 case $host_os in
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo ' yes '
19810 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19811 :
19812 else
19813 can_build_shared=no
19814 fi
19815 ;;
19816 esac
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 else
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 fi
19831 shlibpath_var=LIBPATH
19832 fi
19833 ;;
19834
19835amigaos*)
19836 case $host_cpu in
19837 powerpc)
19838 # Since July 2007 AmigaOS4 officially supports .so libraries.
19839 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841 ;;
19842 m68k)
19843 library_names_spec='$libname.ixlibrary $libname.a'
19844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019845 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 +000019846 ;;
19847 esac
19848 ;;
19849
19850beos*)
19851 library_names_spec='${libname}${shared_ext}'
19852 dynamic_linker="$host_os ld.so"
19853 shlibpath_var=LIBRARY_PATH
19854 ;;
19855
19856bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019857 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019858 need_version=no
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19862 shlibpath_var=LD_LIBRARY_PATH
19863 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19864 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19865 # the default ld.so.conf also contains /usr/contrib/lib and
19866 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19867 # libtool to hard-code these into programs
19868 ;;
19869
19870cygwin* | mingw* | pw32* | cegcc*)
19871 version_type=windows
19872 shrext_cmds=".dll"
19873 need_version=no
19874 need_lib_prefix=no
19875
cristyda16f162011-02-19 23:52:17 +000019876 case $GCC,$cc_basename in
19877 yes,*)
19878 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019879 library_names_spec='$libname.dll.a'
19880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19881 postinstall_cmds='base_file=`basename \${file}`~
19882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19883 dldir=$destdir/`dirname \$dlpath`~
19884 test -d \$dldir || mkdir -p \$dldir~
19885 $install_prog $dir/$dlname \$dldir/$dlname~
19886 chmod a+x \$dldir/$dlname~
19887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19889 fi'
19890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19891 dlpath=$dir/\$dldll~
19892 $RM \$dlpath'
19893 shlibpath_overrides_runpath=yes
19894
19895 case $host_os in
19896 cygwin*)
19897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019899
cristy73bd4a52010-10-05 11:24:23 +000019900 ;;
19901 mingw* | cegcc*)
19902 # MinGW DLLs use traditional 'lib' prefix
19903 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019904 ;;
19905 pw32*)
19906 # pw32 DLLs use 'pw' prefix rather than 'lib'
19907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19908 ;;
19909 esac
cristyda16f162011-02-19 23:52:17 +000019910 dynamic_linker='Win32 ld.exe'
19911 ;;
19912
19913 *,cl*)
19914 # Native MSVC
19915 libname_spec='$name'
19916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917 library_names_spec='${libname}.dll.lib'
19918
19919 case $build_os in
19920 mingw*)
19921 sys_lib_search_path_spec=
19922 lt_save_ifs=$IFS
19923 IFS=';'
19924 for lt_path in $LIB
19925 do
19926 IFS=$lt_save_ifs
19927 # Let DOS variable expansion print the short 8.3 style file name.
19928 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19929 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19930 done
19931 IFS=$lt_save_ifs
19932 # Convert to MSYS style.
19933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19934 ;;
19935 cygwin*)
19936 # Convert to unix form, then to dos form, then back to unix form
19937 # but this time dos style (no spaces!) so that the unix form looks
19938 # like /cygdrive/c/PROGRA~1:/cygdr...
19939 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19940 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19941 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19942 ;;
19943 *)
19944 sys_lib_search_path_spec="$LIB"
19945 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19946 # It is most probably a Windows format PATH.
19947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19948 else
19949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19950 fi
19951 # FIXME: find the short name or the path components, as spaces are
19952 # common. (e.g. "Program Files" -> "PROGRA~1")
19953 ;;
19954 esac
19955
19956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19957 postinstall_cmds='base_file=`basename \${file}`~
19958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19959 dldir=$destdir/`dirname \$dlpath`~
19960 test -d \$dldir || mkdir -p \$dldir~
19961 $install_prog $dir/$dlname \$dldir/$dlname'
19962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19963 dlpath=$dir/\$dldll~
19964 $RM \$dlpath'
19965 shlibpath_overrides_runpath=yes
19966 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019967 ;;
19968
19969 *)
cristyda16f162011-02-19 23:52:17 +000019970 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019972 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019973 ;;
19974 esac
cristy73bd4a52010-10-05 11:24:23 +000019975 # FIXME: first we should search . and the directory the executable is in
19976 shlibpath_var=PATH
19977 ;;
19978
19979darwin* | rhapsody*)
19980 dynamic_linker="$host_os dyld"
19981 version_type=darwin
19982 need_lib_prefix=no
19983 need_version=no
19984 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19985 soname_spec='${libname}${release}${major}$shared_ext'
19986 shlibpath_overrides_runpath=yes
19987 shlibpath_var=DYLD_LIBRARY_PATH
19988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19989
19990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19991 ;;
19992
19993dgux*)
cristy99bd5232011-12-07 14:38:20 +000019994 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019995 need_lib_prefix=no
19996 need_version=no
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 shlibpath_var=LD_LIBRARY_PATH
20000 ;;
20001
cristy73bd4a52010-10-05 11:24:23 +000020002freebsd* | dragonfly*)
20003 # DragonFly does not have aout. When/if they implement a new
20004 # versioning mechanism, adjust this.
20005 if test -x /usr/bin/objformat; then
20006 objformat=`/usr/bin/objformat`
20007 else
20008 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020009 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020010 *) objformat=elf ;;
20011 esac
20012 fi
20013 version_type=freebsd-$objformat
20014 case $version_type in
20015 freebsd-elf*)
20016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20017 need_version=no
20018 need_lib_prefix=no
20019 ;;
20020 freebsd-*)
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20022 need_version=yes
20023 ;;
20024 esac
20025 shlibpath_var=LD_LIBRARY_PATH
20026 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020027 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020028 shlibpath_overrides_runpath=yes
20029 ;;
20030 freebsd3.[01]* | freebsdelf3.[01]*)
20031 shlibpath_overrides_runpath=yes
20032 hardcode_into_libs=yes
20033 ;;
20034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20036 shlibpath_overrides_runpath=no
20037 hardcode_into_libs=yes
20038 ;;
20039 *) # from 4.6 on, and DragonFly
20040 shlibpath_overrides_runpath=yes
20041 hardcode_into_libs=yes
20042 ;;
20043 esac
20044 ;;
20045
20046gnu*)
cristy99bd5232011-12-07 14:38:20 +000020047 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020048 need_lib_prefix=no
20049 need_version=no
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020053 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020054 hardcode_into_libs=yes
20055 ;;
20056
cristy0c60a692010-11-04 01:09:47 +000020057haiku*)
cristy99bd5232011-12-07 14:38:20 +000020058 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020059 need_lib_prefix=no
20060 need_version=no
20061 dynamic_linker="$host_os runtime_loader"
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 shlibpath_var=LIBRARY_PATH
20065 shlibpath_overrides_runpath=yes
20066 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20067 hardcode_into_libs=yes
20068 ;;
20069
cristy73bd4a52010-10-05 11:24:23 +000020070hpux9* | hpux10* | hpux11*)
20071 # Give a soname corresponding to the major version so that dld.sl refuses to
20072 # link against other versions.
20073 version_type=sunos
20074 need_lib_prefix=no
20075 need_version=no
20076 case $host_cpu in
20077 ia64*)
20078 shrext_cmds='.so'
20079 hardcode_into_libs=yes
20080 dynamic_linker="$host_os dld.so"
20081 shlibpath_var=LD_LIBRARY_PATH
20082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 if test "X$HPUX_IA64_MODE" = X32; then
20086 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20087 else
20088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20089 fi
20090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20091 ;;
20092 hppa*64*)
20093 shrext_cmds='.sl'
20094 hardcode_into_libs=yes
20095 dynamic_linker="$host_os dld.sl"
20096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20099 soname_spec='${libname}${release}${shared_ext}$major'
20100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20102 ;;
20103 *)
20104 shrext_cmds='.sl'
20105 dynamic_linker="$host_os dld.sl"
20106 shlibpath_var=SHLIB_PATH
20107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109 soname_spec='${libname}${release}${shared_ext}$major'
20110 ;;
20111 esac
cristy0c60a692010-11-04 01:09:47 +000020112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020113 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020114 # or fails outright, so override atomically:
20115 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020116 ;;
20117
20118interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020119 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 shlibpath_overrides_runpath=no
20127 hardcode_into_libs=yes
20128 ;;
20129
20130irix5* | irix6* | nonstopux*)
20131 case $host_os in
20132 nonstopux*) version_type=nonstopux ;;
20133 *)
20134 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020135 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020136 else
20137 version_type=irix
20138 fi ;;
20139 esac
20140 need_lib_prefix=no
20141 need_version=no
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20144 case $host_os in
20145 irix5* | nonstopux*)
20146 libsuff= shlibsuff=
20147 ;;
20148 *)
20149 case $LD in # libtool.m4 will add one of these switches to LD
20150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20151 libsuff= shlibsuff= libmagic=32-bit;;
20152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20153 libsuff=32 shlibsuff=N32 libmagic=N32;;
20154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20156 *) libsuff= shlibsuff= libmagic=never-match;;
20157 esac
20158 ;;
20159 esac
20160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20161 shlibpath_overrides_runpath=no
20162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20164 hardcode_into_libs=yes
20165 ;;
20166
20167# No shared lib support for Linux oldld, aout, or coff.
20168linux*oldld* | linux*aout* | linux*coff*)
20169 dynamic_linker=no
20170 ;;
20171
cristy99bd5232011-12-07 14:38:20 +000020172# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020173linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020174 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020175 need_lib_prefix=no
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020182
cristy73bd4a52010-10-05 11:24:23 +000020183 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020184 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020185 $as_echo_n "(cached) " >&6
20186else
20187 lt_cv_shlibpath_overrides_runpath=no
20188 save_LDFLAGS=$LDFLAGS
20189 save_libdir=$libdir
20190 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20191 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020193/* end confdefs.h. */
20194
20195int
20196main ()
20197{
20198
20199 ;
20200 return 0;
20201}
20202_ACEOF
20203if ac_fn_cxx_try_link "$LINENO"; then :
20204 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020205 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020206fi
20207fi
20208rm -f core conftest.err conftest.$ac_objext \
20209 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020210 LDFLAGS=$save_LDFLAGS
20211 libdir=$save_libdir
20212
20213fi
20214
20215 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020216
20217 # This implies no fast_install, which is unacceptable.
20218 # Some rework will be needed to allow for fast_install
20219 # before this can be enabled.
20220 hardcode_into_libs=yes
20221
20222 # Add ABI-specific directories to the system library path.
20223 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20224
20225 # Append ld.so.conf contents to the search path
20226 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020227 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 +000020228 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020229
cristy73bd4a52010-10-05 11:24:23 +000020230 fi
20231
20232 # We used to test for /lib/ld.so.1 and disable shared libraries on
20233 # powerpc, because MkLinux only supported shared libraries with the
20234 # GNU dynamic linker. Since this was broken with cross compilers,
20235 # most powerpc-linux boxes support dynamic linking these days and
20236 # people can always --disable-shared, the test was removed, and we
20237 # assume the GNU/Linux dynamic linker is in use.
20238 dynamic_linker='GNU/Linux ld.so'
20239 ;;
20240
20241netbsd*)
20242 version_type=sunos
20243 need_lib_prefix=no
20244 need_version=no
20245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20248 dynamic_linker='NetBSD (a.out) ld.so'
20249 else
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 dynamic_linker='NetBSD ld.elf_so'
20253 fi
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=yes
20256 hardcode_into_libs=yes
20257 ;;
20258
20259newsos6)
cristy99bd5232011-12-07 14:38:20 +000020260 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 shlibpath_overrides_runpath=yes
20264 ;;
20265
20266*nto* | *qnx*)
20267 version_type=qnx
20268 need_lib_prefix=no
20269 need_version=no
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=no
20274 hardcode_into_libs=yes
20275 dynamic_linker='ldqnx.so'
20276 ;;
20277
20278openbsd*)
20279 version_type=sunos
20280 sys_lib_dlsearch_path_spec="/usr/lib"
20281 need_lib_prefix=no
20282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20283 case $host_os in
20284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20285 *) need_version=no ;;
20286 esac
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20291 case $host_os in
20292 openbsd2.[89] | openbsd2.[89].*)
20293 shlibpath_overrides_runpath=no
20294 ;;
20295 *)
20296 shlibpath_overrides_runpath=yes
20297 ;;
20298 esac
20299 else
20300 shlibpath_overrides_runpath=yes
20301 fi
20302 ;;
20303
20304os2*)
20305 libname_spec='$name'
20306 shrext_cmds=".dll"
20307 need_lib_prefix=no
20308 library_names_spec='$libname${shared_ext} $libname.a'
20309 dynamic_linker='OS/2 ld.exe'
20310 shlibpath_var=LIBPATH
20311 ;;
20312
20313osf3* | osf4* | osf5*)
20314 version_type=osf
20315 need_lib_prefix=no
20316 need_version=no
20317 soname_spec='${libname}${release}${shared_ext}$major'
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20322 ;;
20323
20324rdos*)
20325 dynamic_linker=no
20326 ;;
20327
20328solaris*)
cristy99bd5232011-12-07 14:38:20 +000020329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 shlibpath_overrides_runpath=yes
20336 hardcode_into_libs=yes
20337 # ldd complains unless libraries are executable
20338 postinstall_cmds='chmod +x $lib'
20339 ;;
20340
20341sunos4*)
20342 version_type=sunos
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=yes
20347 if test "$with_gnu_ld" = yes; then
20348 need_lib_prefix=no
20349 fi
20350 need_version=yes
20351 ;;
20352
20353sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020354 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 case $host_vendor in
20359 sni)
20360 shlibpath_overrides_runpath=no
20361 need_lib_prefix=no
20362 runpath_var=LD_RUN_PATH
20363 ;;
20364 siemens)
20365 need_lib_prefix=no
20366 ;;
20367 motorola)
20368 need_lib_prefix=no
20369 need_version=no
20370 shlibpath_overrides_runpath=no
20371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20372 ;;
20373 esac
20374 ;;
20375
20376sysv4*MP*)
20377 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020378 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20380 soname_spec='$libname${shared_ext}.$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 fi
20383 ;;
20384
20385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20386 version_type=freebsd-elf
20387 need_lib_prefix=no
20388 need_version=no
20389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=yes
20393 hardcode_into_libs=yes
20394 if test "$with_gnu_ld" = yes; then
20395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20396 else
20397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20398 case $host_os in
20399 sco3.2v5*)
20400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20401 ;;
20402 esac
20403 fi
20404 sys_lib_dlsearch_path_spec='/usr/lib'
20405 ;;
20406
20407tpf*)
20408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020409 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020410 need_lib_prefix=no
20411 need_version=no
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 shlibpath_overrides_runpath=no
20415 hardcode_into_libs=yes
20416 ;;
20417
20418uts4*)
cristy99bd5232011-12-07 14:38:20 +000020419 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421 soname_spec='${libname}${release}${shared_ext}$major'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 ;;
20424
20425*)
20426 dynamic_linker=no
20427 ;;
20428esac
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20430$as_echo "$dynamic_linker" >&6; }
20431test "$dynamic_linker" = no && can_build_shared=no
20432
20433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20434if test "$GCC" = yes; then
20435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20436fi
20437
20438if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20439 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20440fi
20441if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20442 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20443fi
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
cristy0c60a692010-11-04 01:09:47 +000020480
20481
cristy73bd4a52010-10-05 11:24:23 +000020482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20483$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20484hardcode_action_CXX=
20485if test -n "$hardcode_libdir_flag_spec_CXX" ||
20486 test -n "$runpath_var_CXX" ||
20487 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20488
20489 # We can hardcode non-existent directories.
20490 if test "$hardcode_direct_CXX" != no &&
20491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20492 # have to relink, otherwise we might link with an installed library
20493 # when we should be linking with a yet-to-be-installed one
20494 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20495 test "$hardcode_minus_L_CXX" != no; then
20496 # Linking always hardcodes the temporary library directory.
20497 hardcode_action_CXX=relink
20498 else
20499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20500 hardcode_action_CXX=immediate
20501 fi
20502else
20503 # We cannot hardcode anything, or else we can only hardcode existing
20504 # directories.
20505 hardcode_action_CXX=unsupported
20506fi
20507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20508$as_echo "$hardcode_action_CXX" >&6; }
20509
20510if test "$hardcode_action_CXX" = relink ||
20511 test "$inherit_rpath_CXX" = yes; then
20512 # Fast installation is not supported
20513 enable_fast_install=no
20514elif test "$shlibpath_overrides_runpath" = yes ||
20515 test "$enable_shared" = no; then
20516 # Fast installation is not necessary
20517 enable_fast_install=needless
20518fi
20519
20520
20521
20522
20523
20524
20525
20526 fi # test -n "$compiler"
20527
20528 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020529 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020530 LDCXX=$LD
20531 LD=$lt_save_LD
20532 GCC=$lt_save_GCC
20533 with_gnu_ld=$lt_save_with_gnu_ld
20534 lt_cv_path_LDCXX=$lt_cv_path_LD
20535 lt_cv_path_LD=$lt_save_path_LD
20536 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20537 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20538fi # test "$_lt_caught_CXX_error" != yes
20539
20540ac_ext=c
20541ac_cpp='$CPP $CPPFLAGS'
20542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544ac_compiler_gnu=$ac_cv_c_compiler_gnu
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
cristy99bd5232011-12-07 14:38:20 +000020558
20559
cristy73bd4a52010-10-05 11:24:23 +000020560 ac_config_commands="$ac_config_commands libtool"
20561
20562
20563
20564
20565# Only expand once:
20566
20567
20568
cristy3ed852e2009-09-05 21:47:34 +000020569
20570
20571# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020572
20573
20574
20575
20576
20577
20578
cristy73bd4a52010-10-05 11:24:23 +000020579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20580$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020581if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020582 $as_echo_n "(cached) " >&6
20583else
20584
20585module=yes
20586eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020587module=no
20588eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020589
20590fi
20591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20592$as_echo "$libltdl_cv_shlibext" >&6; }
20593if test -n "$libltdl_cv_shlibext"; then
20594
20595cat >>confdefs.h <<_ACEOF
20596#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20597_ACEOF
20598
20599fi
cristy99bd5232011-12-07 14:38:20 +000020600if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20601
20602cat >>confdefs.h <<_ACEOF
20603#define LT_SHARED_EXT "$libltdl_cv_shrext"
20604_ACEOF
20605
20606fi
cristy73bd4a52010-10-05 11:24:23 +000020607
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20609$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020610if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020611 $as_echo_n "(cached) " >&6
20612else
20613 lt_cv_module_path_var="$shlibpath_var"
20614fi
20615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20616$as_echo "$lt_cv_module_path_var" >&6; }
20617if test -n "$lt_cv_module_path_var"; then
20618
20619cat >>confdefs.h <<_ACEOF
20620#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20621_ACEOF
20622
20623fi
20624
20625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20626$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020627if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020628 $as_echo_n "(cached) " >&6
20629else
20630 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20633$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20634if test -n "$lt_cv_sys_dlsearch_path"; then
20635 sys_dlsearch_path=
20636 for dir in $lt_cv_sys_dlsearch_path; do
20637 if test -z "$sys_dlsearch_path"; then
20638 sys_dlsearch_path="$dir"
20639 else
20640 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20641 fi
20642 done
20643
20644cat >>confdefs.h <<_ACEOF
20645#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20646_ACEOF
20647
20648fi
20649
20650
20651LT_DLLOADERS=
20652
20653
20654ac_ext=c
20655ac_cpp='$CPP $CPPFLAGS'
20656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20658ac_compiler_gnu=$ac_cv_c_compiler_gnu
20659
20660
20661LIBADD_DLOPEN=
20662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20663$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020664if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020665 $as_echo_n "(cached) " >&6
20666else
20667 ac_func_search_save_LIBS=$LIBS
20668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20669/* end confdefs.h. */
20670
20671/* Override any GCC internal prototype to avoid an error.
20672 Use char because int might match the return type of a GCC
20673 builtin and then its argument prototype would still apply. */
20674#ifdef __cplusplus
20675extern "C"
20676#endif
20677char dlopen ();
20678int
20679main ()
20680{
20681return dlopen ();
20682 ;
20683 return 0;
20684}
20685_ACEOF
20686for ac_lib in '' dl; do
20687 if test -z "$ac_lib"; then
20688 ac_res="none required"
20689 else
20690 ac_res=-l$ac_lib
20691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20692 fi
20693 if ac_fn_c_try_link "$LINENO"; then :
20694 ac_cv_search_dlopen=$ac_res
20695fi
20696rm -f core conftest.err conftest.$ac_objext \
20697 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020698 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020699 break
20700fi
20701done
cristyda16f162011-02-19 23:52:17 +000020702if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020703
20704else
20705 ac_cv_search_dlopen=no
20706fi
20707rm conftest.$ac_ext
20708LIBS=$ac_func_search_save_LIBS
20709fi
20710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20711$as_echo "$ac_cv_search_dlopen" >&6; }
20712ac_res=$ac_cv_search_dlopen
20713if test "$ac_res" != no; then :
20714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20715
20716$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20717
20718 if test "$ac_cv_search_dlopen" != "none required" ; then
20719 LIBADD_DLOPEN="-ldl"
20720 fi
20721 libltdl_cv_lib_dl_dlopen="yes"
20722 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20723else
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725/* end confdefs.h. */
20726#if HAVE_DLFCN_H
20727# include <dlfcn.h>
20728#endif
20729
20730int
20731main ()
20732{
20733dlopen(0, 0);
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738if ac_fn_c_try_link "$LINENO"; then :
20739
20740$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20741
20742 libltdl_cv_func_dlopen="yes"
20743 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20744else
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20746$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020747if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020748 $as_echo_n "(cached) " >&6
20749else
20750 ac_check_lib_save_LIBS=$LIBS
20751LIBS="-lsvld $LIBS"
20752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753/* end confdefs.h. */
20754
20755/* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758#ifdef __cplusplus
20759extern "C"
20760#endif
20761char dlopen ();
20762int
20763main ()
20764{
20765return dlopen ();
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770if ac_fn_c_try_link "$LINENO"; then :
20771 ac_cv_lib_svld_dlopen=yes
20772else
20773 ac_cv_lib_svld_dlopen=no
20774fi
20775rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777LIBS=$ac_check_lib_save_LIBS
20778fi
20779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20780$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020781if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020782
20783$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20784
20785 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20786 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20787fi
20788
20789fi
20790rm -f core conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792fi
20793
20794if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20795then
20796 lt_save_LIBS="$LIBS"
20797 LIBS="$LIBS $LIBADD_DLOPEN"
20798 for ac_func in dlerror
20799do :
20800 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020801if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020802 cat >>confdefs.h <<_ACEOF
20803#define HAVE_DLERROR 1
20804_ACEOF
20805
20806fi
20807done
20808
20809 LIBS="$lt_save_LIBS"
20810fi
20811
20812
20813LIBADD_SHL_LOAD=
20814ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020815if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020816
20817$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20818
20819 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20820else
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20822$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020823if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020824 $as_echo_n "(cached) " >&6
20825else
20826 ac_check_lib_save_LIBS=$LIBS
20827LIBS="-ldld $LIBS"
20828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829/* end confdefs.h. */
20830
20831/* Override any GCC internal prototype to avoid an error.
20832 Use char because int might match the return type of a GCC
20833 builtin and then its argument prototype would still apply. */
20834#ifdef __cplusplus
20835extern "C"
20836#endif
20837char shl_load ();
20838int
20839main ()
20840{
20841return shl_load ();
20842 ;
20843 return 0;
20844}
20845_ACEOF
20846if ac_fn_c_try_link "$LINENO"; then :
20847 ac_cv_lib_dld_shl_load=yes
20848else
20849 ac_cv_lib_dld_shl_load=no
20850fi
20851rm -f core conftest.err conftest.$ac_objext \
20852 conftest$ac_exeext conftest.$ac_ext
20853LIBS=$ac_check_lib_save_LIBS
20854fi
20855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20856$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020857if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020858
20859$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20860
20861 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20862 LIBADD_SHL_LOAD="-ldld"
20863fi
20864
20865fi
20866
20867
20868
20869case $host_os in
20870darwin[1567].*)
20871# We only want this for pre-Mac OS X 10.4.
20872 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020873if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020874
20875$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20876
20877 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20878fi
20879
20880 ;;
20881beos*)
20882 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20883 ;;
20884cygwin* | mingw* | os2* | pw32*)
20885 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20886"
cristyda16f162011-02-19 23:52:17 +000020887if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020888 ac_have_decl=1
20889else
20890 ac_have_decl=0
20891fi
20892
20893cat >>confdefs.h <<_ACEOF
20894#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20895_ACEOF
20896
20897 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20898 ;;
20899esac
20900
20901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20902$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020903if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020904 $as_echo_n "(cached) " >&6
20905else
20906 ac_check_lib_save_LIBS=$LIBS
20907LIBS="-ldld $LIBS"
20908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909/* end confdefs.h. */
20910
20911/* Override any GCC internal prototype to avoid an error.
20912 Use char because int might match the return type of a GCC
20913 builtin and then its argument prototype would still apply. */
20914#ifdef __cplusplus
20915extern "C"
20916#endif
20917char dld_link ();
20918int
20919main ()
20920{
20921return dld_link ();
20922 ;
20923 return 0;
20924}
20925_ACEOF
20926if ac_fn_c_try_link "$LINENO"; then :
20927 ac_cv_lib_dld_dld_link=yes
20928else
20929 ac_cv_lib_dld_dld_link=no
20930fi
20931rm -f core conftest.err conftest.$ac_objext \
20932 conftest$ac_exeext conftest.$ac_ext
20933LIBS=$ac_check_lib_save_LIBS
20934fi
20935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20936$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020937if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020938
20939$as_echo "#define HAVE_DLD 1" >>confdefs.h
20940
20941 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20942fi
20943
20944
20945
20946
20947LT_DLPREOPEN=
20948if test -n "$LT_DLLOADERS"
20949then
20950 for lt_loader in $LT_DLLOADERS; do
20951 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20952 done
20953
20954$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20955
20956fi
20957
20958
20959LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20960
20961
20962ac_ext=c
20963ac_cpp='$CPP $CPPFLAGS'
20964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967
20968
20969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20970$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020971if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020972 $as_echo_n "(cached) " >&6
20973else
20974 lt_cv_sys_symbol_underscore=no
20975 cat > conftest.$ac_ext <<_LT_EOF
20976void nm_test_func(){}
20977int main(){nm_test_func;return 0;}
20978_LT_EOF
20979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20980 (eval $ac_compile) 2>&5
20981 ac_status=$?
20982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20983 test $ac_status = 0; }; then
20984 # Now try to grab the symbols.
20985 ac_nlist=conftest.nm
20986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20987 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20988 ac_status=$?
20989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20990 test $ac_status = 0; } && test -s "$ac_nlist"; then
20991 # See whether the symbols have a leading underscore.
20992 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20993 lt_cv_sys_symbol_underscore=yes
20994 else
20995 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20996 :
20997 else
20998 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20999 fi
21000 fi
21001 else
21002 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21003 fi
21004 else
21005 echo "configure: failed program was:" >&5
21006 cat conftest.c >&5
21007 fi
21008 rm -rf conftest*
21009
21010fi
21011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21012$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21013 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21014
21015
21016if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21017 if test x"$libltdl_cv_func_dlopen" = xyes ||
21018 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21020$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021021if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021022 $as_echo_n "(cached) " >&6
21023else
21024 libltdl_cv_need_uscore=unknown
21025 save_LIBS="$LIBS"
21026 LIBS="$LIBS $LIBADD_DLOPEN"
21027 if test "$cross_compiling" = yes; then :
21028 libltdl_cv_need_uscore=cross
21029else
21030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21031 lt_status=$lt_dlunknown
21032 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021033#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021034#include "confdefs.h"
21035
21036#if HAVE_DLFCN_H
21037#include <dlfcn.h>
21038#endif
21039
21040#include <stdio.h>
21041
21042#ifdef RTLD_GLOBAL
21043# define LT_DLGLOBAL RTLD_GLOBAL
21044#else
21045# ifdef DL_GLOBAL
21046# define LT_DLGLOBAL DL_GLOBAL
21047# else
21048# define LT_DLGLOBAL 0
21049# endif
21050#endif
21051
21052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21053 find out it does not work in some platform. */
21054#ifndef LT_DLLAZY_OR_NOW
21055# ifdef RTLD_LAZY
21056# define LT_DLLAZY_OR_NOW RTLD_LAZY
21057# else
21058# ifdef DL_LAZY
21059# define LT_DLLAZY_OR_NOW DL_LAZY
21060# else
21061# ifdef RTLD_NOW
21062# define LT_DLLAZY_OR_NOW RTLD_NOW
21063# else
21064# ifdef DL_NOW
21065# define LT_DLLAZY_OR_NOW DL_NOW
21066# else
21067# define LT_DLLAZY_OR_NOW 0
21068# endif
21069# endif
21070# endif
21071# endif
21072#endif
21073
cristy0c60a692010-11-04 01:09:47 +000021074/* When -fvisbility=hidden is used, assume the code has been annotated
21075 correspondingly for the symbols needed. */
21076#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021077int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021078#endif
21079
cristyda16f162011-02-19 23:52:17 +000021080int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021081int main ()
21082{
21083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21084 int status = $lt_dlunknown;
21085
21086 if (self)
21087 {
21088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021089 else
21090 {
21091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21092 else puts (dlerror ());
21093 }
cristy73bd4a52010-10-05 11:24:23 +000021094 /* dlclose (self); */
21095 }
21096 else
21097 puts (dlerror ());
21098
21099 return status;
21100}
21101_LT_EOF
21102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21103 (eval $ac_link) 2>&5
21104 ac_status=$?
21105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21106 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21107 (./conftest; exit; ) >&5 2>/dev/null
21108 lt_status=$?
21109 case x$lt_status in
21110 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21111 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21112 x$lt_dlunknown|x*) ;;
21113 esac
21114 else :
21115 # compilation failed
21116
21117 fi
21118fi
21119rm -fr conftest*
21120
21121 LIBS="$save_LIBS"
21122
21123fi
21124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21125$as_echo "$libltdl_cv_need_uscore" >&6; }
21126 fi
21127fi
21128
21129if test x"$libltdl_cv_need_uscore" = xyes; then
21130
21131$as_echo "#define NEED_USCORE 1" >>confdefs.h
21132
21133fi
21134
21135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21136$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021137if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021138 $as_echo_n "(cached) " >&6
21139else
21140 # PORTME does your system automatically load deplibs for dlopen?
21141 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21142 # For now, we just catch OSes we know something about -- in the
21143 # future, we'll try test this programmatically.
21144 lt_cv_sys_dlopen_deplibs=unknown
21145 case $host_os in
21146 aix3*|aix4.1.*|aix4.2.*)
21147 # Unknown whether this is true for these versions of AIX, but
21148 # we want this `case' here to explicitly catch those versions.
21149 lt_cv_sys_dlopen_deplibs=unknown
21150 ;;
21151 aix[4-9]*)
21152 lt_cv_sys_dlopen_deplibs=yes
21153 ;;
21154 amigaos*)
21155 case $host_cpu in
21156 powerpc)
21157 lt_cv_sys_dlopen_deplibs=no
21158 ;;
21159 esac
21160 ;;
21161 darwin*)
21162 # Assuming the user has installed a libdl from somewhere, this is true
21163 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21164 lt_cv_sys_dlopen_deplibs=yes
21165 ;;
21166 freebsd* | dragonfly*)
21167 lt_cv_sys_dlopen_deplibs=yes
21168 ;;
cristy0c60a692010-11-04 01:09:47 +000021169 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021170 # GNU and its variants, using gnu ld.so (Glibc)
21171 lt_cv_sys_dlopen_deplibs=yes
21172 ;;
21173 hpux10*|hpux11*)
21174 lt_cv_sys_dlopen_deplibs=yes
21175 ;;
21176 interix*)
21177 lt_cv_sys_dlopen_deplibs=yes
21178 ;;
21179 irix[12345]*|irix6.[01]*)
21180 # Catch all versions of IRIX before 6.2, and indicate that we don't
21181 # know how it worked for any of those versions.
21182 lt_cv_sys_dlopen_deplibs=unknown
21183 ;;
21184 irix*)
21185 # The case above catches anything before 6.2, and it's known that
21186 # at 6.2 and later dlopen does load deplibs.
21187 lt_cv_sys_dlopen_deplibs=yes
21188 ;;
21189 netbsd*)
21190 lt_cv_sys_dlopen_deplibs=yes
21191 ;;
21192 openbsd*)
21193 lt_cv_sys_dlopen_deplibs=yes
21194 ;;
21195 osf[1234]*)
21196 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21197 # it did *not* use an RPATH in a shared library to find objects the
21198 # library depends on, so we explicitly say `no'.
21199 lt_cv_sys_dlopen_deplibs=no
21200 ;;
21201 osf5.0|osf5.0a|osf5.1)
21202 # dlopen *does* load deplibs and with the right loader patch applied
21203 # it even uses RPATH in a shared library to search for shared objects
21204 # that the library depends on, but there's no easy way to know if that
21205 # patch is installed. Since this is the case, all we can really
21206 # say is unknown -- it depends on the patch being installed. If
21207 # it is, this changes to `yes'. Without it, it would be `no'.
21208 lt_cv_sys_dlopen_deplibs=unknown
21209 ;;
21210 osf*)
21211 # the two cases above should catch all versions of osf <= 5.1. Read
21212 # the comments above for what we know about them.
21213 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21214 # is used to find them so we can finally say `yes'.
21215 lt_cv_sys_dlopen_deplibs=yes
21216 ;;
21217 qnx*)
21218 lt_cv_sys_dlopen_deplibs=yes
21219 ;;
21220 solaris*)
21221 lt_cv_sys_dlopen_deplibs=yes
21222 ;;
21223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21224 libltdl_cv_sys_dlopen_deplibs=yes
21225 ;;
21226 esac
21227
21228fi
21229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21230$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21231if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21232
21233$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21234
21235fi
21236
21237:
21238
21239for ac_header in argz.h
21240do :
21241 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21242"
cristyda16f162011-02-19 23:52:17 +000021243if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021244 cat >>confdefs.h <<_ACEOF
21245#define HAVE_ARGZ_H 1
21246_ACEOF
21247
21248fi
21249
21250done
21251
21252
21253ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21254# include <argz.h>
21255#endif
21256"
cristyda16f162011-02-19 23:52:17 +000021257if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021258
21259cat >>confdefs.h <<_ACEOF
21260#define HAVE_ERROR_T 1
21261_ACEOF
21262
21263
21264else
21265
21266$as_echo "#define error_t int" >>confdefs.h
21267
21268
21269$as_echo "#define __error_t_defined 1" >>confdefs.h
21270
21271fi
21272
21273
21274ARGZ_H=
21275for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21276 argz_next argz_stringify
21277do :
21278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021281 cat >>confdefs.h <<_ACEOF
21282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21283_ACEOF
21284
21285else
21286 ARGZ_H=argz.h;
21287
21288 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21289
21290fi
21291done
21292
21293
21294if test -z "$ARGZ_H"; then :
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21296$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021297if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021298 $as_echo_n "(cached) " >&6
21299else
21300 case $host_os in #(
21301 *cygwin*)
21302 lt_cv_sys_argz_works=no
21303 if test "$cross_compiling" != no; then
21304 lt_cv_sys_argz_works="guessing no"
21305 else
21306 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21307 save_IFS=$IFS
21308 IFS=-.
21309 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21310 IFS=$save_IFS
21311 lt_os_major=${2-0}
21312 lt_os_minor=${3-0}
21313 lt_os_micro=${4-0}
21314 if test "$lt_os_major" -gt 1 \
21315 || { test "$lt_os_major" -eq 1 \
21316 && { test "$lt_os_minor" -gt 5 \
21317 || { test "$lt_os_minor" -eq 5 \
21318 && test "$lt_os_micro" -gt 24; }; }; }; then
21319 lt_cv_sys_argz_works=yes
21320 fi
21321 fi
21322 ;; #(
21323 *) lt_cv_sys_argz_works=yes ;;
21324 esac
21325fi
21326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21327$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021328 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021329
21330$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21331
21332else
21333 ARGZ_H=argz.h
21334
21335
21336 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21337
21338fi
21339fi
21340
21341
21342
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21344$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021345if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021346 $as_echo_n "(cached) " >&6
21347else
21348 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21349 libltdl_cv_preloaded_symbols=yes
21350 else
21351 libltdl_cv_preloaded_symbols=no
21352 fi
21353
21354fi
21355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21356$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21357if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21358
21359$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21360
21361fi
21362
21363# Set options
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375# Check whether --with-included_ltdl was given.
21376if test "${with_included_ltdl+set}" = set; then :
21377 withval=$with_included_ltdl;
21378fi
21379
21380
21381if test "x$with_included_ltdl" != xyes; then
21382 # We are not being forced to use the included libltdl sources, so
21383 # decide whether there is a useful installed version we can use.
21384 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21385
21386"
cristyda16f162011-02-19 23:52:17 +000021387if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021388 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21389 #include <ltdl.h>
21390"
cristyda16f162011-02-19 23:52:17 +000021391if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21393$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021394if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021395 $as_echo_n "(cached) " >&6
21396else
21397 ac_check_lib_save_LIBS=$LIBS
21398LIBS="-lltdl $LIBS"
21399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21400/* end confdefs.h. */
21401
21402/* Override any GCC internal prototype to avoid an error.
21403 Use char because int might match the return type of a GCC
21404 builtin and then its argument prototype would still apply. */
21405#ifdef __cplusplus
21406extern "C"
21407#endif
21408char lt_dladvise_preload ();
21409int
21410main ()
21411{
21412return lt_dladvise_preload ();
21413 ;
21414 return 0;
21415}
21416_ACEOF
21417if ac_fn_c_try_link "$LINENO"; then :
21418 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21419else
21420 ac_cv_lib_ltdl_lt_dladvise_preload=no
21421fi
21422rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21424LIBS=$ac_check_lib_save_LIBS
21425fi
21426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21427$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021428if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021429 with_included_ltdl=no
21430else
21431 with_included_ltdl=yes
21432fi
21433
21434else
21435 with_included_ltdl=yes
21436fi
21437
21438else
21439 with_included_ltdl=yes
21440fi
21441
21442
21443fi
21444
21445
21446
21447
21448# Check whether --with-ltdl_include was given.
21449if test "${with_ltdl_include+set}" = set; then :
21450 withval=$with_ltdl_include;
21451fi
21452
21453
21454if test -n "$with_ltdl_include"; then
21455 if test -f "$with_ltdl_include/ltdl.h"; then :
21456 else
cristy98dddb52010-11-04 00:30:15 +000021457 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021458 fi
21459else
21460 with_ltdl_include=no
21461fi
21462
21463
21464# Check whether --with-ltdl_lib was given.
21465if test "${with_ltdl_lib+set}" = set; then :
21466 withval=$with_ltdl_lib;
21467fi
21468
21469
21470if test -n "$with_ltdl_lib"; then
21471 if test -f "$with_ltdl_lib/libltdl.la"; then :
21472 else
cristy98dddb52010-11-04 00:30:15 +000021473 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021474 fi
21475else
21476 with_ltdl_lib=no
21477fi
21478
21479case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21480 ,yes,no,no,)
21481 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021482 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021483 "") enable_ltdl_convenience=yes
21484 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21485esac
21486LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21487LTDLDEPS=$LIBLTDL
21488LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21489
21490
21491
21492
21493
21494# For backwards non-gettext consistent compatibility...
21495INCLTDL="$LTDLINCL"
21496
21497
21498 ;;
21499 ,no,no,no,)
21500 # If the included ltdl is not to be used, then use the
21501 # preinstalled libltdl we found.
21502
21503$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21504
21505 LIBLTDL=-lltdl
21506 LTDLDEPS=
21507 LTDLINCL=
21508 ;;
21509 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021510 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021511 ;;
21512 *) with_included_ltdl=no
21513 LIBLTDL="-L$with_ltdl_lib -lltdl"
21514 LTDLDEPS=
21515 LTDLINCL="-I$with_ltdl_include"
21516 ;;
21517esac
21518INCLTDL="$LTDLINCL"
21519
21520# Report our decision...
21521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21522$as_echo_n "checking where to find libltdl headers... " >&6; }
21523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21524$as_echo "$LTDLINCL" >&6; }
21525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21526$as_echo_n "checking where to find libltdl library... " >&6; }
21527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21528$as_echo "$LIBLTDL" >&6; }
21529
21530
21531
21532# Check whether --enable-ltdl-install was given.
21533if test "${enable_ltdl_install+set}" = set; then :
21534 enableval=$enable_ltdl_install;
21535fi
21536
21537
21538case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21539 *yes*) ;;
21540 *) enable_ltdl_convenience=yes ;;
21541esac
21542
21543 if test x"${enable_ltdl_install-no}" != xno; then
21544 INSTALL_LTDL_TRUE=
21545 INSTALL_LTDL_FALSE='#'
21546else
21547 INSTALL_LTDL_TRUE='#'
21548 INSTALL_LTDL_FALSE=
21549fi
21550
21551 if test x"${enable_ltdl_convenience-no}" != xno; then
21552 CONVENIENCE_LTDL_TRUE=
21553 CONVENIENCE_LTDL_FALSE='#'
21554else
21555 CONVENIENCE_LTDL_TRUE='#'
21556 CONVENIENCE_LTDL_FALSE=
21557fi
21558
21559
21560
21561
21562
21563
cristy73bd4a52010-10-05 11:24:23 +000021564# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21565# the user used. This is so that ltdl.h can pick up the parent projects
21566# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21567# definitions required by ltdl.c.
21568# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21569
21570
21571
21572for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21573do :
21574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21575ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21576"
cristy98dddb52010-11-04 00:30:15 +000021577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021578 cat >>confdefs.h <<_ACEOF
21579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21580_ACEOF
21581
21582fi
21583
21584done
21585
21586
21587for ac_func in closedir opendir readdir
21588do :
21589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021591if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021592 cat >>confdefs.h <<_ACEOF
21593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594_ACEOF
21595
21596else
21597
21598
21599 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21600
21601fi
21602done
21603
21604for ac_func in strlcat strlcpy
21605do :
21606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021609 cat >>confdefs.h <<_ACEOF
21610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21611_ACEOF
21612
21613else
21614
21615
21616 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21617
21618fi
21619done
21620
21621
21622
21623cat >>confdefs.h <<_ACEOF
21624#define LT_LIBEXT "$libext"
21625_ACEOF
21626
21627
cristyda16f162011-02-19 23:52:17 +000021628name=
21629eval "lt_libprefix=\"$libname_spec\""
21630
21631cat >>confdefs.h <<_ACEOF
21632#define LT_LIBPREFIX "$lt_libprefix"
21633_ACEOF
21634
21635
cristy73bd4a52010-10-05 11:24:23 +000021636name=ltdl
cristyda16f162011-02-19 23:52:17 +000021637eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021638
21639
21640
21641
21642
21643
21644
21645
21646# Only expand once:
21647
21648
cristy3ed852e2009-09-05 21:47:34 +000021649
21650# Check to see if building shared libraries
21651libtool_build_shared_libs='no'
21652if test "$enable_shared" = 'yes'; then
21653 libtool_build_shared_libs='yes'
21654fi
21655
21656# Check to see if building static libraries
21657libtool_build_static_libs='no'
21658if test "$enable_static" = 'yes'; then
21659 libtool_build_static_libs='yes'
21660fi
21661
cristy73bd4a52010-10-05 11:24:23 +000021662 if test "${libtool_build_shared_libs}" = 'yes'; then
21663 WITH_SHARED_LIBS_TRUE=
21664 WITH_SHARED_LIBS_FALSE='#'
21665else
21666 WITH_SHARED_LIBS_TRUE='#'
21667 WITH_SHARED_LIBS_FALSE=
21668fi
21669
cristy3ed852e2009-09-05 21:47:34 +000021670#
21671# Enable support for building loadable modules
21672#
21673
21674# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021675if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021676 withval=$with_modules; with_modules=$withval
21677else
cristy5a1cefd2010-01-06 20:42:35 +000021678 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021679fi
21680
21681
21682# Only allow building loadable modules if we are building shared libraries
21683if test "$with_modules" != 'no' ; then
21684 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021685 { $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 +000021686$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21687 with_modules='no'
21688 fi
21689fi
21690if test "$with_modules" != 'no'; then
21691
cristy8b350f62009-11-15 23:12:43 +000021692$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021693
21694fi
cristy73bd4a52010-10-05 11:24:23 +000021695 if test "$with_modules" != 'no'; then
21696 WITH_MODULES_TRUE=
21697 WITH_MODULES_FALSE='#'
21698else
21699 WITH_MODULES_TRUE='#'
21700 WITH_MODULES_FALSE=
21701fi
21702
cristy3ed852e2009-09-05 21:47:34 +000021703
21704# Enable building/use of libltdl if we are building shared libraries regardless
21705# of whether modules are built or not.
21706with_ltdl='no'
21707if test "$libtool_build_shared_libs" != 'no'; then
21708 with_ltdl='yes'
21709fi
21710
cristy73bd4a52010-10-05 11:24:23 +000021711 if test "$with_ltdl" != 'no'; then
21712 WITH_LTDL_TRUE=
21713 WITH_LTDL_FALSE='#'
21714else
21715 WITH_LTDL_TRUE='#'
21716 WITH_LTDL_FALSE=
21717fi
21718
cristy3ed852e2009-09-05 21:47:34 +000021719if test "$with_ltdl" != 'no'; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723
21724 # Set DLLDFLAGS
21725 if test X"$enable_shared" = Xyes; then
21726 DLLDFLAGS=-export-dynamic
21727
21728 fi
21729fi
21730
21731# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021732# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021733# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021734if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021735 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21736else
21737 enable_delegate_build='no'
21738fi
21739
21740
21741# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021742if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021743 enableval=$enable_deprecated; enable_deprecated=$enableval
21744else
21745 enable_deprecated='no'
21746fi
21747
21748
21749if test "$enable_deprecated" = 'yes'; then
21750
cristy8b350f62009-11-15 23:12:43 +000021751$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021752
21753else
21754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21755fi
21756
21757# Build a version of ImageMagick which operates uninstalled.
21758# Used to build distributions located via MAGICK_HOME / executable path
21759# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021760if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021761 enableval=$enable_installed; enable_installed=$enableval
21762else
21763 enable_installed='yes'
21764fi
21765
21766
21767if test "$enable_installed" = 'yes'; then
21768
cristy8b350f62009-11-15 23:12:43 +000021769$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021770
21771else
21772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21773fi
21774
21775# Permit enciphering and deciphering image pixels.
21776# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021777if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 enableval=$enable_cipher; enable_cipher=$enableval
21779else
21780 enable_cipher='yes'
21781fi
21782
21783
21784if test "$enable_cipher" = 'yes'; then
21785
cristy8b350f62009-11-15 23:12:43 +000021786$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021787
21788fi
21789
cristy6e3607c2011-09-13 13:59:17 +000021790# Build a zero-configuration version of ImageMagick.
21791# Check whether --enable-zero-configuration was given.
21792if test "${enable_zero_configuration+set}" = set; then :
21793 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021794else
cristy6e3607c2011-09-13 13:59:17 +000021795 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021796fi
21797
21798
cristy6e3607c2011-09-13 13:59:17 +000021799if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021800
cristy6e3607c2011-09-13 13:59:17 +000021801$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021802
cristy81af5702011-09-13 14:20:58 +000021803 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021804fi
21805
21806# Build a high dynamic range version of ImageMagick.
21807# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021808if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 enableval=$enable_hdri; enable_hdri=$enableval
21810else
21811 enable_hdri='no'
21812fi
21813
21814
21815MAGICK_HDRI=""
21816if test "$enable_hdri" = 'yes'; then
21817 MAGICK_HDRI="HDRI"
21818
cristy8b350f62009-11-15 23:12:43 +000021819$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021820
cristyfd9dcd42010-08-08 18:07:02 +000021821 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021822fi
21823
cristy3ed852e2009-09-05 21:47:34 +000021824# Build a version of ImageMagick with assert statements.
21825# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021826if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 enableval=$enable_assert; enable_assert=$enableval
21828else
21829 enable_assert='yes'
21830fi
21831
21832
21833if test "$enable_assert" = 'no'; then
21834
cristy8b350f62009-11-15 23:12:43 +000021835$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021836
21837fi
21838
cristya448bd22011-10-14 12:38:13 +000021839# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021840
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21842$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21843 # Check whether --enable-maintainer-mode was given.
21844if test "${enable_maintainer_mode+set}" = set; then :
21845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21846else
21847 USE_MAINTAINER_MODE=no
21848fi
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21851$as_echo "$USE_MAINTAINER_MODE" >&6; }
21852 if test $USE_MAINTAINER_MODE = yes; then
21853 MAINTAINER_MODE_TRUE=
21854 MAINTAINER_MODE_FALSE='#'
21855else
21856 MAINTAINER_MODE_TRUE='#'
21857 MAINTAINER_MODE_FALSE=
21858fi
21859
21860 MAINT=$MAINTAINER_MODE_TRUE
21861
21862
cristy3ed852e2009-09-05 21:47:34 +000021863
cristy3ed852e2009-09-05 21:47:34 +000021864# Enable ccmalloc memory debugging support
21865# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021866if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021867 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21868else
21869 enable_ccmalloc='no'
21870fi
21871
21872
21873# Enable Electric Fence memory debugging support
21874# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021875if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021876 enableval=$enable_efence; enable_efence=$enableval
21877else
21878 enable_efence='no'
21879fi
21880
21881
21882# Enable prof-based profiling support
21883# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021884if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021885 enableval=$enable_prof; enable_prof=$enableval
21886else
21887 enable_prof='no'
21888fi
21889
21890
21891# Enable gprof-based profiling support
21892# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021893if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 enableval=$enable_gprof; enable_gprof=$enableval
21895else
21896 enable_gprof='no'
21897fi
21898
21899
21900# Enable gcov-based profiling support
21901# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021902if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 enableval=$enable_gcov; enable_gcov=$enableval
21904else
21905 enable_gcov='no'
21906fi
21907
21908
21909enable_profiling='no'
21910if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21911 enable_profiling='yes'
21912 if test "$libtool_build_shared_libs" = 'yes'; then
21913 echo "Warning: Can not profile code using shared libraries"
21914 fi
21915fi
21916
21917# Magick API method prefix
21918
21919# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021920if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021921 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021922else
cristyfc3d0222012-02-07 15:05:57 +000021923 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021924fi
21925
21926
cristyfc3d0222012-02-07 15:05:57 +000021927if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021928
21929cat >>confdefs.h <<_ACEOF
21930#define NAMESPACE_PREFIX $with_method_prefix
21931_ACEOF
21932
cristyfc3d0222012-02-07 15:05:57 +000021933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021934fi
21935
cristy71d8c202012-03-20 17:05:01 +000021936# Enable legacy support (default no)
21937# Check whether --enable-legacy-support was given.
21938if test "${enable_legacy_support+set}" = set; then :
21939 enableval=$enable_legacy_support; with_legacy_support=$enableval
21940else
21941 with_legacy_support='no'
21942fi
21943
21944 if test "$with_legacy_support" != 'no'; then
21945 LEGACY_SUPPORT_TRUE=
21946 LEGACY_SUPPORT_FALSE='#'
21947else
21948 LEGACY_SUPPORT_TRUE='#'
21949 LEGACY_SUPPORT_FALSE=
21950fi
21951
21952
cristy3ed852e2009-09-05 21:47:34 +000021953# Number of bits in a Quantum
21954
21955# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021956if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 withval=$with_quantum_depth; with_quantum_depth=$withval
21958else
21959 with_quantum_depth=16
21960fi
21961
21962
21963if test "$with_quantum_depth" != '8'; then
21964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21965fi
21966
21967case "${with_quantum_depth}" in
21968 8 ) ;;
21969 16 ) ;;
21970 32 ) ;;
21971 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021972 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021973esac
21974QUANTUM_DEPTH="$with_quantum_depth"
21975
21976cat >>confdefs.h <<_ACEOF
21977#define QUANTUM_DEPTH $QUANTUM_DEPTH
21978_ACEOF
21979
21980
21981# Set pixel cache threshold
21982
21983# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021984if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 withval=$with_cache; with_cache=$withval
21986else
21987 with_cache=''
21988fi
21989
21990
21991if test "$with_cache" != ''; then
21992
21993cat >>confdefs.h <<_ACEOF
21994#define PixelCacheThreshold $with_cache
21995_ACEOF
21996
21997 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21998fi
21999
22000# Disable/Enable support for full delegate paths
22001
22002# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022003if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022004 withval=$with_frozenpaths; with_frozenpaths=$withval
22005else
22006 with_frozenpaths='no'
22007fi
22008
22009
22010# Enable build/install of Magick++
22011
22012# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022013if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22015else
22016 with_magick_plus_plus='yes'
22017fi
22018
22019
22020# Disable build/install of PerlMagick.
22021
22022# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022023if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022024 withval=$with_perl; with_perl=$withval
22025else
cristyb5f4e2f2010-04-25 00:49:11 +000022026 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022027fi
22028
22029
22030# Options to pass when configuring PerlMagick
22031
22032# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022033if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022034 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022035fi
22036
22037
cristy3ed852e2009-09-05 21:47:34 +000022038
22039# Enable umem, object-caching memory allocation library.
22040
22041# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022042if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022043 withval=$with_umem; with_umem=$withval
22044else
22045 with_umem='no'
22046fi
22047
22048if test "$with_umem" != 'yes' ; then
22049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22050fi
22051
22052#
22053# Specify path to shared libstdc++ if not in normal location
22054#
22055
22056# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022057if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022058 withval=$with_libstdc; with_libstdc=$withval
22059else
22060 with_libstdc=''
22061fi
22062
22063
22064if test "$with_libstdc" != ''; then
22065 if test -d "$with_libstdc"; then
22066 LIBSTDCLDFLAGS="-L$with_libstdc"
22067 fi
22068fi
22069
22070
22071# Does gcc required -traditional?
22072if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
22078 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081#include <sgtty.h>
22082Autoconf TIOCGETP
22083_ACEOF
22084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022085 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022086 ac_cv_prog_gcc_traditional=yes
22087else
22088 ac_cv_prog_gcc_traditional=no
22089fi
22090rm -f conftest*
22091
22092
22093 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022095/* end confdefs.h. */
22096#include <termio.h>
22097Autoconf TCGETA
22098_ACEOF
22099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022100 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 ac_cv_prog_gcc_traditional=yes
22102fi
22103rm -f conftest*
22104
22105 fi
22106fi
cristy8b350f62009-11-15 23:12:43 +000022107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022108$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22109 if test $ac_cv_prog_gcc_traditional = yes; then
22110 CC="$CC -traditional"
22111 fi
22112fi
22113
22114
22115########
22116#
22117# Set defines required to build DLLs and modules using MinGW
22118#
22119########
22120# These options are set for multi-thread DLL module build
22121# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22122# module: _DLL
22123# executable/Magick++: _DLL _MAGICKMOD_
22124MODULE_EXTRA_CPPFLAGS=''
22125LIBRARY_EXTRA_CPPFLAGS=''
22126if test "${native_win32_build}" = 'yes'; then
22127 if test "${libtool_build_shared_libs}" = 'yes'; then
22128 CPPFLAGS="$CPPFLAGS -D_DLL"
22129 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22130 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22131 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22132 if test "$with_modules" = 'yes'; then
22133 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22134 else
22135 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22136 fi
22137 else
22138 CPPFLAGS="$CPPFLAGS -D_LIB"
22139 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22140 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22141 fi
22142 if test "$with_threads" = 'yes'; then
22143 CPPFLAGS="$CPPFLAGS -D_MT"
22144 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22145 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22146 fi
22147fi
22148
22149
22150
22151# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022153$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022154if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 $as_echo_n "(cached) " >&6
22156else
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <stdlib.h>
22160#include <stdarg.h>
22161#include <string.h>
22162#include <float.h>
22163
22164int
22165main ()
22166{
22167
22168 ;
22169 return 0;
22170}
22171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022172if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022173 ac_cv_header_stdc=yes
22174else
cristy8b350f62009-11-15 23:12:43 +000022175 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022176fi
cristy3ed852e2009-09-05 21:47:34 +000022177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178
22179if test $ac_cv_header_stdc = yes; then
22180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022182/* end confdefs.h. */
22183#include <string.h>
22184
22185_ACEOF
22186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022187 $EGREP "memchr" >/dev/null 2>&1; then :
22188
cristy3ed852e2009-09-05 21:47:34 +000022189else
22190 ac_cv_header_stdc=no
22191fi
22192rm -f conftest*
22193
22194fi
22195
22196if test $ac_cv_header_stdc = yes; then
22197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200#include <stdlib.h>
22201
22202_ACEOF
22203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022204 $EGREP "free" >/dev/null 2>&1; then :
22205
cristy3ed852e2009-09-05 21:47:34 +000022206else
22207 ac_cv_header_stdc=no
22208fi
22209rm -f conftest*
22210
22211fi
22212
22213if test $ac_cv_header_stdc = yes; then
22214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022215 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 :
22217else
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <ctype.h>
22221#include <stdlib.h>
22222#if ((' ' & 0x0FF) == 0x020)
22223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22225#else
22226# define ISLOWER(c) \
22227 (('a' <= (c) && (c) <= 'i') \
22228 || ('j' <= (c) && (c) <= 'r') \
22229 || ('s' <= (c) && (c) <= 'z'))
22230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22231#endif
22232
22233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22234int
22235main ()
22236{
22237 int i;
22238 for (i = 0; i < 256; i++)
22239 if (XOR (islower (i), ISLOWER (i))
22240 || toupper (i) != TOUPPER (i))
22241 return 2;
22242 return 0;
22243}
22244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022245if ac_fn_c_try_run "$LINENO"; then :
22246
cristy3ed852e2009-09-05 21:47:34 +000022247else
cristy8b350f62009-11-15 23:12:43 +000022248 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022249fi
cristy8b350f62009-11-15 23:12:43 +000022250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22251 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022252fi
22253
cristy3ed852e2009-09-05 21:47:34 +000022254fi
22255fi
cristy8b350f62009-11-15 23:12:43 +000022256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo "$ac_cv_header_stdc" >&6; }
22258if test $ac_cv_header_stdc = yes; then
22259
cristy8b350f62009-11-15 23:12:43 +000022260$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022261
22262fi
22263
22264if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022265 { $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 +000022266 header files. Compilation cannot proceed. Please install the ANSI C
22267 headers and rerun this script." >&5
22268$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22269 header files. Compilation cannot proceed. Please install the ANSI C
22270 headers and rerun this script." >&2;};
22271fi
cristya0b81c32010-01-22 02:54:33 +000022272
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22274$as_echo_n "checking whether to enable assertions... " >&6; }
22275 # Check whether --enable-assert was given.
22276if test "${enable_assert+set}" = set; then :
22277 enableval=$enable_assert; ac_enable_assert=$enableval
22278 if test "x$enableval" = xno; then :
22279
22280$as_echo "#define NDEBUG 1" >>confdefs.h
22281
22282elif test "x$enableval" != xyes; then :
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22284$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22285 ac_enable_assert=yes
22286fi
22287else
22288 ac_enable_assert=yes
22289fi
22290
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22292$as_echo "$ac_enable_assert" >&6; }
22293
cristy3ed852e2009-09-05 21:47:34 +000022294ac_header_dirent=no
22295for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22296 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022299if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022300 $as_echo_n "(cached) " >&6
22301else
cristy8b350f62009-11-15 23:12:43 +000022302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304#include <sys/types.h>
22305#include <$ac_hdr>
22306
22307int
22308main ()
22309{
22310if ((DIR *) 0)
22311return 0;
22312 ;
22313 return 0;
22314}
22315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022316if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 eval "$as_ac_Header=yes"
22318else
cristy8b350f62009-11-15 23:12:43 +000022319 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022320fi
cristy3ed852e2009-09-05 21:47:34 +000022321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322fi
cristy8b350f62009-11-15 23:12:43 +000022323eval ac_res=\$$as_ac_Header
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022325$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022327 cat >>confdefs.h <<_ACEOF
22328#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22329_ACEOF
22330
22331ac_header_dirent=$ac_hdr; break
22332fi
22333
22334done
22335# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22336if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022339if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 $as_echo_n "(cached) " >&6
22341else
22342 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022344/* end confdefs.h. */
22345
22346/* Override any GCC internal prototype to avoid an error.
22347 Use char because int might match the return type of a GCC
22348 builtin and then its argument prototype would still apply. */
22349#ifdef __cplusplus
22350extern "C"
22351#endif
22352char opendir ();
22353int
22354main ()
22355{
22356return opendir ();
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361for ac_lib in '' dir; do
22362 if test -z "$ac_lib"; then
22363 ac_res="none required"
22364 else
22365 ac_res=-l$ac_lib
22366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22367 fi
cristy8b350f62009-11-15 23:12:43 +000022368 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022370fi
cristy8b350f62009-11-15 23:12:43 +000022371rm -f core conftest.err conftest.$ac_objext \
22372 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022373 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 break
22375fi
22376done
cristyda16f162011-02-19 23:52:17 +000022377if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022378
cristy3ed852e2009-09-05 21:47:34 +000022379else
22380 ac_cv_search_opendir=no
22381fi
22382rm conftest.$ac_ext
22383LIBS=$ac_func_search_save_LIBS
22384fi
cristy8b350f62009-11-15 23:12:43 +000022385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022386$as_echo "$ac_cv_search_opendir" >&6; }
22387ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022388if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22390
22391fi
22392
22393else
cristy8b350f62009-11-15 23:12:43 +000022394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022395$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022396if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022397 $as_echo_n "(cached) " >&6
22398else
22399 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022401/* end confdefs.h. */
22402
22403/* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22406#ifdef __cplusplus
22407extern "C"
22408#endif
22409char opendir ();
22410int
22411main ()
22412{
22413return opendir ();
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418for ac_lib in '' x; do
22419 if test -z "$ac_lib"; then
22420 ac_res="none required"
22421 else
22422 ac_res=-l$ac_lib
22423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22424 fi
cristy8b350f62009-11-15 23:12:43 +000022425 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022426 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022427fi
cristy8b350f62009-11-15 23:12:43 +000022428rm -f core conftest.err conftest.$ac_objext \
22429 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022430 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022431 break
22432fi
22433done
cristyda16f162011-02-19 23:52:17 +000022434if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022435
cristy3ed852e2009-09-05 21:47:34 +000022436else
22437 ac_cv_search_opendir=no
22438fi
22439rm conftest.$ac_ext
22440LIBS=$ac_func_search_save_LIBS
22441fi
cristy8b350f62009-11-15 23:12:43 +000022442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo "$ac_cv_search_opendir" >&6; }
22444ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022445if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22447
22448fi
22449
22450fi
22451
22452
22453# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022454for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.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 +000022455do :
22456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22457ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022459 cat >>confdefs.h <<_ACEOF
22460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22461_ACEOF
22462
22463fi
22464
22465done
22466
22467
22468########
22469#
22470# Checks for typedefs, structures, and compiler characteristics.
22471#
22472########
22473
cristy8b350f62009-11-15 23:12:43 +000022474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022475$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022476if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022477 $as_echo_n "(cached) " >&6
22478else
cristy8b350f62009-11-15 23:12:43 +000022479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022480/* end confdefs.h. */
22481
cristy14fefe52012-05-21 00:59:18 +000022482 #include <stdbool.h>
22483 #ifndef bool
22484 "error: bool is not defined"
22485 #endif
22486 #ifndef false
22487 "error: false is not defined"
22488 #endif
22489 #if false
22490 "error: false is not 0"
22491 #endif
22492 #ifndef true
22493 "error: true is not defined"
22494 #endif
22495 #if true != 1
22496 "error: true is not 1"
22497 #endif
22498 #ifndef __bool_true_false_are_defined
22499 "error: __bool_true_false_are_defined is not defined"
22500 #endif
cristy3ed852e2009-09-05 21:47:34 +000022501
cristy14fefe52012-05-21 00:59:18 +000022502 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022503
cristy14fefe52012-05-21 00:59:18 +000022504 char a[true == 1 ? 1 : -1];
22505 char b[false == 0 ? 1 : -1];
22506 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22507 char d[(bool) 0.5 == true ? 1 : -1];
22508 /* See body of main program for 'e'. */
22509 char f[(_Bool) 0.0 == false ? 1 : -1];
22510 char g[true];
22511 char h[sizeof (_Bool)];
22512 char i[sizeof s.t];
22513 enum { j = false, k = true, l = false * true, m = true * 256 };
22514 /* The following fails for
22515 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22516 _Bool n[m];
22517 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22518 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22519 /* Catch a bug in an HP-UX C compiler. See
22520 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22521 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22522 */
22523 _Bool q = true;
22524 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022525
22526int
22527main ()
22528{
22529
cristy14fefe52012-05-21 00:59:18 +000022530 bool e = &s;
22531 *pq |= q;
22532 *pq |= ! q;
22533 /* Refer to every declared value, to avoid compiler optimizations. */
22534 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22535 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022536
22537 ;
22538 return 0;
22539}
22540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022542 ac_cv_header_stdbool_h=yes
22543else
cristy8b350f62009-11-15 23:12:43 +000022544 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022545fi
cristy3ed852e2009-09-05 21:47:34 +000022546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547fi
cristy8b350f62009-11-15 23:12:43 +000022548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022549$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022550 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022551if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022552
22553cat >>confdefs.h <<_ACEOF
22554#define HAVE__BOOL 1
22555_ACEOF
22556
22557
22558fi
22559
cristy14fefe52012-05-21 00:59:18 +000022560
cristy3ed852e2009-09-05 21:47:34 +000022561if test $ac_cv_header_stdbool_h = yes; then
22562
cristy8b350f62009-11-15 23:12:43 +000022563$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022564
22565fi
22566
cristy8b350f62009-11-15 23:12:43 +000022567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022568$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022569if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022570 $as_echo_n "(cached) " >&6
22571else
cristy8b350f62009-11-15 23:12:43 +000022572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573/* end confdefs.h. */
22574
22575int
22576main ()
22577{
22578
22579volatile int x;
22580int * volatile y = (int *) 0;
22581return !x && !y;
22582 ;
22583 return 0;
22584}
22585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022586if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 ac_cv_c_volatile=yes
22588else
cristy8b350f62009-11-15 23:12:43 +000022589 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022590fi
cristy3ed852e2009-09-05 21:47:34 +000022591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592fi
cristy8b350f62009-11-15 23:12:43 +000022593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022594$as_echo "$ac_cv_c_volatile" >&6; }
22595if test $ac_cv_c_volatile = no; then
22596
cristy8b350f62009-11-15 23:12:43 +000022597$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022598
22599fi
22600
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022603if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022604 $as_echo_n "(cached) " >&6
22605else
cristy8b350f62009-11-15 23:12:43 +000022606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022607/* end confdefs.h. */
22608#define x(y) #y
22609
22610char *s = x(teststring);
22611_ACEOF
22612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022613 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022614 ac_cv_c_stringize=no
22615else
22616 ac_cv_c_stringize=yes
22617fi
22618rm -f conftest*
22619
22620fi
cristy8b350f62009-11-15 23:12:43 +000022621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo "$ac_cv_c_stringize" >&6; }
22623if test $ac_cv_c_stringize = yes; then
22624
cristy8b350f62009-11-15 23:12:43 +000022625$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022626
22627fi
22628
cristy8b350f62009-11-15 23:12:43 +000022629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022630$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022631if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022632 $as_echo_n "(cached) " >&6
22633else
cristy8b350f62009-11-15 23:12:43 +000022634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022635/* end confdefs.h. */
22636#include <sys/types.h>
22637#include <sys/stat.h>
22638
22639#if defined S_ISBLK && defined S_IFDIR
22640extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22641#endif
22642
22643#if defined S_ISBLK && defined S_IFCHR
22644extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22645#endif
22646
22647#if defined S_ISLNK && defined S_IFREG
22648extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22649#endif
22650
22651#if defined S_ISSOCK && defined S_IFREG
22652extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22653#endif
22654
22655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022656if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 ac_cv_header_stat_broken=no
22658else
cristy8b350f62009-11-15 23:12:43 +000022659 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022660fi
cristy3ed852e2009-09-05 21:47:34 +000022661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662fi
cristy8b350f62009-11-15 23:12:43 +000022663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022664$as_echo "$ac_cv_header_stat_broken" >&6; }
22665if test $ac_cv_header_stat_broken = yes; then
22666
cristy8b350f62009-11-15 23:12:43 +000022667$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022668
22669fi
22670
cristy8b350f62009-11-15 23:12:43 +000022671{ $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 +000022672$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022673if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022674 $as_echo_n "(cached) " >&6
22675else
cristy8b350f62009-11-15 23:12:43 +000022676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022677/* end confdefs.h. */
22678#include <sys/types.h>
22679#include <sys/time.h>
22680#include <time.h>
22681
22682int
22683main ()
22684{
22685if ((struct tm *) 0)
22686return 0;
22687 ;
22688 return 0;
22689}
22690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022692 ac_cv_header_time=yes
22693else
cristy8b350f62009-11-15 23:12:43 +000022694 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022695fi
cristy3ed852e2009-09-05 21:47:34 +000022696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697fi
cristy8b350f62009-11-15 23:12:43 +000022698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022699$as_echo "$ac_cv_header_time" >&6; }
22700if test $ac_cv_header_time = yes; then
22701
cristy8b350f62009-11-15 23:12:43 +000022702$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022703
22704fi
22705
cristy8b350f62009-11-15 23:12:43 +000022706{ $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 +000022707$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022708if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022709 $as_echo_n "(cached) " >&6
22710else
cristy8b350f62009-11-15 23:12:43 +000022711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022712/* end confdefs.h. */
22713#include <sys/types.h>
22714#include <time.h>
22715
22716int
22717main ()
22718{
22719struct tm tm;
22720 int *p = &tm.tm_sec;
22721 return !p;
22722 ;
22723 return 0;
22724}
22725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022727 ac_cv_struct_tm=time.h
22728else
cristy8b350f62009-11-15 23:12:43 +000022729 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022730fi
cristy3ed852e2009-09-05 21:47:34 +000022731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732fi
cristy8b350f62009-11-15 23:12:43 +000022733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022734$as_echo "$ac_cv_struct_tm" >&6; }
22735if test $ac_cv_struct_tm = sys/time.h; then
22736
cristy8b350f62009-11-15 23:12:43 +000022737$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022738
22739fi
22740
cristy92703d82010-04-26 00:18:18 +000022741ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22742#include <$ac_cv_struct_tm>
22743
22744"
cristyda16f162011-02-19 23:52:17 +000022745if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022746
22747cat >>confdefs.h <<_ACEOF
22748#define HAVE_STRUCT_TM_TM_ZONE 1
22749_ACEOF
22750
22751
22752fi
22753
22754if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22755
22756$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22757
22758else
22759 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22760"
cristyda16f162011-02-19 23:52:17 +000022761if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022762 ac_have_decl=1
22763else
22764 ac_have_decl=0
22765fi
22766
22767cat >>confdefs.h <<_ACEOF
22768#define HAVE_DECL_TZNAME $ac_have_decl
22769_ACEOF
22770
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22772$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022773if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022774 $as_echo_n "(cached) " >&6
22775else
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777/* end confdefs.h. */
22778#include <time.h>
22779#if !HAVE_DECL_TZNAME
22780extern char *tzname[];
22781#endif
22782
22783int
22784main ()
22785{
22786return tzname[0][0];
22787 ;
22788 return 0;
22789}
22790_ACEOF
22791if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_var_tzname=yes
22793else
22794 ac_cv_var_tzname=no
22795fi
22796rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798fi
22799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22800$as_echo "$ac_cv_var_tzname" >&6; }
22801 if test $ac_cv_var_tzname = yes; then
22802
22803$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22804
22805 fi
22806fi
22807
cristy8b350f62009-11-15 23:12:43 +000022808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022809$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022810if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022811 $as_echo_n "(cached) " >&6
22812else
22813 echo '#! /bin/cat
22814exit 69
22815' >conftest
22816chmod u+x conftest
22817(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22818if test $? -ne 69; then
22819 ac_cv_sys_interpreter=yes
22820else
22821 ac_cv_sys_interpreter=no
22822fi
22823rm -f conftest
22824fi
cristy8b350f62009-11-15 23:12:43 +000022825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022826$as_echo "$ac_cv_sys_interpreter" >&6; }
22827interpval=$ac_cv_sys_interpreter
22828
22829
cristy3ed852e2009-09-05 21:47:34 +000022830# If the C compiler supports the keyword inline, do nothing. Otherwise
22831# define inline to __inline__ or __inline if it accepts one of those,
22832# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022835if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022836 $as_echo_n "(cached) " >&6
22837else
22838 ac_cv_c_inline=no
22839for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022841/* end confdefs.h. */
22842#ifndef __cplusplus
22843typedef int foo_t;
22844static $ac_kw foo_t static_foo () {return 0; }
22845$ac_kw foo_t foo () {return 0; }
22846#endif
22847
22848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022849if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022850 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022851fi
cristy3ed852e2009-09-05 21:47:34 +000022852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 test "$ac_cv_c_inline" != no && break
22854done
22855
22856fi
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo "$ac_cv_c_inline" >&6; }
22859
cristy3ed852e2009-09-05 21:47:34 +000022860case $ac_cv_c_inline in
22861 inline | yes) ;;
22862 *)
22863 case $ac_cv_c_inline in
22864 no) ac_val=;;
22865 *) ac_val=$ac_cv_c_inline;;
22866 esac
22867 cat >>confdefs.h <<_ACEOF
22868#ifndef __cplusplus
22869#define inline $ac_val
22870#endif
22871_ACEOF
22872 ;;
22873esac
22874
22875
22876# If the C compiler supports the keyword restrict, do nothing. Otherwise
22877# define restrict to __restrict__ or __restrict if it accepts one of those,
22878# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022880$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022881if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 $as_echo_n "(cached) " >&6
22883else
22884 ac_cv_c_restrict=no
22885 # The order here caters to the fact that C++ does not require restrict.
22886 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888/* end confdefs.h. */
22889typedef int * int_ptr;
22890 int foo (int_ptr $ac_kw ip) {
22891 return ip[0];
22892 }
22893int
22894main ()
22895{
22896int s[1];
22897 int * $ac_kw t = s;
22898 t[0] = 0;
22899 return foo(t)
22900 ;
22901 return 0;
22902}
22903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022904if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022905 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022906fi
cristy3ed852e2009-09-05 21:47:34 +000022907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908 test "$ac_cv_c_restrict" != no && break
22909 done
22910
22911fi
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo "$ac_cv_c_restrict" >&6; }
22914
cristy3ed852e2009-09-05 21:47:34 +000022915 case $ac_cv_c_restrict in
22916 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022917 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022918 ;;
22919 *) cat >>confdefs.h <<_ACEOF
22920#define restrict $ac_cv_c_restrict
22921_ACEOF
22922 ;;
22923 esac
22924
22925
22926# If words are stored with the most significant byte first (like
22927# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022929$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022930if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022931 $as_echo_n "(cached) " >&6
22932else
22933 ac_cv_c_bigendian=unknown
22934 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022936/* end confdefs.h. */
22937#ifndef __APPLE_CC__
22938 not a universal capable compiler
22939 #endif
22940 typedef int dummy;
22941
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022944
22945 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022946 # there are at least two -arch flags with different values.
22947 ac_arch=
22948 ac_prev=
22949 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22950 if test -n "$ac_prev"; then
22951 case $ac_word in
22952 i?86 | x86_64 | ppc | ppc64)
22953 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22954 ac_arch=$ac_word
22955 else
22956 ac_cv_c_bigendian=universal
22957 break
22958 fi
22959 ;;
22960 esac
22961 ac_prev=
22962 elif test "x$ac_word" = "x-arch"; then
22963 ac_prev=arch
22964 fi
22965 done
cristy3ed852e2009-09-05 21:47:34 +000022966fi
cristy3ed852e2009-09-05 21:47:34 +000022967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 if test $ac_cv_c_bigendian = unknown; then
22969 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022971/* end confdefs.h. */
22972#include <sys/types.h>
22973 #include <sys/param.h>
22974
22975int
22976main ()
22977{
22978#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22979 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22980 && LITTLE_ENDIAN)
22981 bogus endian macros
22982 #endif
22983
22984 ;
22985 return 0;
22986}
22987_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022988if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022989 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022991/* end confdefs.h. */
22992#include <sys/types.h>
22993 #include <sys/param.h>
22994
22995int
22996main ()
22997{
22998#if BYTE_ORDER != BIG_ENDIAN
22999 not big endian
23000 #endif
23001
23002 ;
23003 return 0;
23004}
23005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023007 ac_cv_c_bigendian=yes
23008else
cristy8b350f62009-11-15 23:12:43 +000023009 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023010fi
cristy3ed852e2009-09-05 21:47:34 +000023011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023012fi
cristy3ed852e2009-09-05 21:47:34 +000023013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 fi
23015 if test $ac_cv_c_bigendian = unknown; then
23016 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023018/* end confdefs.h. */
23019#include <limits.h>
23020
23021int
23022main ()
23023{
23024#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23025 bogus endian macros
23026 #endif
23027
23028 ;
23029 return 0;
23030}
23031_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023032if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023033 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035/* end confdefs.h. */
23036#include <limits.h>
23037
23038int
23039main ()
23040{
23041#ifndef _BIG_ENDIAN
23042 not big endian
23043 #endif
23044
23045 ;
23046 return 0;
23047}
23048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050 ac_cv_c_bigendian=yes
23051else
cristy8b350f62009-11-15 23:12:43 +000023052 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy3ed852e2009-09-05 21:47:34 +000023054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023055fi
cristy3ed852e2009-09-05 21:47:34 +000023056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 fi
23058 if test $ac_cv_c_bigendian = unknown; then
23059 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023060 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023061 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023063/* end confdefs.h. */
23064short int ascii_mm[] =
23065 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23066 short int ascii_ii[] =
23067 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23068 int use_ascii (int i) {
23069 return ascii_mm[i] + ascii_ii[i];
23070 }
23071 short int ebcdic_ii[] =
23072 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23073 short int ebcdic_mm[] =
23074 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23075 int use_ebcdic (int i) {
23076 return ebcdic_mm[i] + ebcdic_ii[i];
23077 }
23078 extern int foo;
23079
23080int
23081main ()
23082{
23083return use_ascii (foo) == use_ebcdic (foo);
23084 ;
23085 return 0;
23086}
23087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023089 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23090 ac_cv_c_bigendian=yes
23091 fi
23092 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23093 if test "$ac_cv_c_bigendian" = unknown; then
23094 ac_cv_c_bigendian=no
23095 else
23096 # finding both strings is unlikely to happen, but who knows?
23097 ac_cv_c_bigendian=unknown
23098 fi
23099 fi
cristy3ed852e2009-09-05 21:47:34 +000023100fi
cristy3ed852e2009-09-05 21:47:34 +000023101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102else
cristy8b350f62009-11-15 23:12:43 +000023103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023104/* end confdefs.h. */
23105$ac_includes_default
23106int
23107main ()
23108{
23109
23110 /* Are we little or big endian? From Harbison&Steele. */
23111 union
23112 {
23113 long int l;
23114 char c[sizeof (long int)];
23115 } u;
23116 u.l = 1;
23117 return u.c[sizeof (long int) - 1] == 1;
23118
23119 ;
23120 return 0;
23121}
23122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023123if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023124 ac_cv_c_bigendian=no
23125else
cristy8b350f62009-11-15 23:12:43 +000023126 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023127fi
cristy8b350f62009-11-15 23:12:43 +000023128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23129 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023130fi
23131
cristy3ed852e2009-09-05 21:47:34 +000023132 fi
23133fi
cristy8b350f62009-11-15 23:12:43 +000023134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023135$as_echo "$ac_cv_c_bigendian" >&6; }
23136 case $ac_cv_c_bigendian in #(
23137 yes)
cristy8b350f62009-11-15 23:12:43 +000023138 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023139;; #(
23140 no)
23141 ;; #(
23142 universal)
23143
cristy8b350f62009-11-15 23:12:43 +000023144$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023145
23146 ;; #(
23147 *)
cristy98dddb52010-11-04 00:30:15 +000023148 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023149 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023150 esac
23151
23152
cristy501c8042011-05-26 17:46:28 +000023153# Define to a suitable type, if standard headers do not define it.
23154ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23155case $ac_cv_c_int8_t in #(
23156 no|yes) ;; #(
23157 *)
cristy3ed852e2009-09-05 21:47:34 +000023158
23159cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023160#define int8_t $ac_cv_c_int8_t
23161_ACEOF
23162;;
23163esac
23164
23165ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23166case $ac_cv_c_int16_t in #(
23167 no|yes) ;; #(
23168 *)
23169
23170cat >>confdefs.h <<_ACEOF
23171#define int16_t $ac_cv_c_int16_t
23172_ACEOF
23173;;
23174esac
23175
23176ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23177case $ac_cv_c_int32_t in #(
23178 no|yes) ;; #(
23179 *)
23180
23181cat >>confdefs.h <<_ACEOF
23182#define int32_t $ac_cv_c_int32_t
23183_ACEOF
23184;;
23185esac
23186
23187ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23188case $ac_cv_c_int64_t in #(
23189 no|yes) ;; #(
23190 *)
23191
23192cat >>confdefs.h <<_ACEOF
23193#define int64_t $ac_cv_c_int64_t
23194_ACEOF
23195;;
23196esac
23197
23198
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23200$as_echo_n "checking for long long int... " >&6; }
23201if ${ac_cv_type_long_long_int+:} false; then :
23202 $as_echo_n "(cached) " >&6
23203else
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205/* end confdefs.h. */
23206
23207 /* For now, do not test the preprocessor; as of 2007 there are too many
23208 implementations with broken preprocessors. Perhaps this can
23209 be revisited in 2012. In the meantime, code should not expect
23210 #if to work with literals wider than 32 bits. */
23211 /* Test literals. */
23212 long long int ll = 9223372036854775807ll;
23213 long long int nll = -9223372036854775807LL;
23214 unsigned long long int ull = 18446744073709551615ULL;
23215 /* Test constant expressions. */
23216 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23217 ? 1 : -1)];
23218 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23219 ? 1 : -1)];
23220 int i = 63;
23221int
23222main ()
23223{
23224/* Test availability of runtime routines for shift and division. */
23225 long long int llmax = 9223372036854775807ll;
23226 unsigned long long int ullmax = 18446744073709551615ull;
23227 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23228 | (llmax / ll) | (llmax % ll)
23229 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23230 | (ullmax / ull) | (ullmax % ull));
23231 ;
23232 return 0;
23233}
23234
23235_ACEOF
23236if ac_fn_c_try_link "$LINENO"; then :
23237 if test "$cross_compiling" = yes; then :
23238 ac_cv_type_long_long_int=yes
23239else
23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23241/* end confdefs.h. */
23242#include <limits.h>
23243 #ifndef LLONG_MAX
23244 # define HALF \
23245 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23246 # define LLONG_MAX (HALF - 1 + HALF)
23247 #endif
23248int
23249main ()
23250{
23251long long int n = 1;
23252 int i;
23253 for (i = 0; ; i++)
23254 {
23255 long long int m = n << i;
23256 if (m >> i != n)
23257 return 1;
23258 if (LLONG_MAX / 2 < m)
23259 break;
23260 }
23261 return 0;
23262 ;
23263 return 0;
23264}
23265_ACEOF
23266if ac_fn_c_try_run "$LINENO"; then :
23267 ac_cv_type_long_long_int=yes
23268else
23269 ac_cv_type_long_long_int=no
23270fi
23271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23272 conftest.$ac_objext conftest.beam conftest.$ac_ext
23273fi
23274
23275else
23276 ac_cv_type_long_long_int=no
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23280fi
23281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23282$as_echo "$ac_cv_type_long_long_int" >&6; }
23283 if test $ac_cv_type_long_long_int = yes; then
23284
23285$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23286
23287 fi
23288
23289
23290
23291 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23292if test "x$ac_cv_type_intmax_t" = xyes; then :
23293
23294$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23295
23296else
23297 test $ac_cv_type_long_long_int = yes \
23298 && ac_type='long long int' \
23299 || ac_type='long int'
23300
23301cat >>confdefs.h <<_ACEOF
23302#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023303_ACEOF
23304
23305fi
23306
23307
cristy501c8042011-05-26 17:46:28 +000023308
23309 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23310if test "x$ac_cv_type_intptr_t" = xyes; then :
23311
23312$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023313
cristy3ed852e2009-09-05 21:47:34 +000023314else
cristy501c8042011-05-26 17:46:28 +000023315 for ac_type in 'int' 'long int' 'long long int'; do
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317/* end confdefs.h. */
23318$ac_includes_default
23319int
23320main ()
23321{
23322static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023323test_array [0] = 0;
23324return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023325
23326 ;
23327 return 0;
23328}
23329_ACEOF
23330if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023331
23332cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023333#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023334_ACEOF
23335
cristy501c8042011-05-26 17:46:28 +000023336 ac_type=
23337fi
23338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 test -z "$ac_type" && break
23340 done
cristy3ed852e2009-09-05 21:47:34 +000023341fi
23342
23343
cristy3ed852e2009-09-05 21:47:34 +000023344
cristy501c8042011-05-26 17:46:28 +000023345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23346$as_echo_n "checking for long double... " >&6; }
23347if ${ac_cv_type_long_double+:} false; then :
23348 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023349else
cristy501c8042011-05-26 17:46:28 +000023350 if test "$GCC" = yes; then
23351 ac_cv_type_long_double=yes
23352 else
23353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23354/* end confdefs.h. */
23355/* The Stardent Vistra knows sizeof (long double), but does
23356 not support it. */
23357 long double foo = 0.0L;
23358int
23359main ()
23360{
23361static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23362 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023363test_array [0] = 0;
23364return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023365
cristy501c8042011-05-26 17:46:28 +000023366 ;
23367 return 0;
23368}
cristy3ed852e2009-09-05 21:47:34 +000023369_ACEOF
cristy501c8042011-05-26 17:46:28 +000023370if ac_fn_c_try_compile "$LINENO"; then :
23371 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023372else
cristy501c8042011-05-26 17:46:28 +000023373 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023374fi
cristy501c8042011-05-26 17:46:28 +000023375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 fi
cristy3ed852e2009-09-05 21:47:34 +000023377fi
cristy501c8042011-05-26 17:46:28 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23379$as_echo "$ac_cv_type_long_double" >&6; }
23380 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023381
cristy501c8042011-05-26 17:46:28 +000023382$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023383
cristy501c8042011-05-26 17:46:28 +000023384 fi
23385
cristy3ed852e2009-09-05 21:47:34 +000023386
cristy8b350f62009-11-15 23:12:43 +000023387 { $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 +000023388$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023389if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023390 $as_echo_n "(cached) " >&6
23391else
cristy8b350f62009-11-15 23:12:43 +000023392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023393/* end confdefs.h. */
23394#include <float.h>
23395 long double const a[] =
23396 {
23397 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23398 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23399 };
23400 long double
23401 f (long double x)
23402 {
23403 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23404 + (x ? f (x) : 'c'));
23405 }
23406
23407int
23408main ()
23409{
23410static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23411 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23412 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23413 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23414 && (int) LDBL_EPSILON == 0
23415 )];
cristy14fefe52012-05-21 00:59:18 +000023416test_array [0] = 0;
23417return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023418
23419 ;
23420 return 0;
23421}
23422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023424 ac_cv_type_long_double_wider=yes
23425else
cristy8b350f62009-11-15 23:12:43 +000023426 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023427fi
cristy3ed852e2009-09-05 21:47:34 +000023428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo "$ac_cv_type_long_double_wider" >&6; }
23432 if test $ac_cv_type_long_double_wider = yes; then
23433
cristy8b350f62009-11-15 23:12:43 +000023434$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023435
23436 fi
23437
23438
cristy501c8042011-05-26 17:46:28 +000023439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23440$as_echo_n "checking for long long int... " >&6; }
23441if ${ac_cv_type_long_long_int+:} false; then :
23442 $as_echo_n "(cached) " >&6
23443else
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445/* end confdefs.h. */
23446
23447 /* For now, do not test the preprocessor; as of 2007 there are too many
23448 implementations with broken preprocessors. Perhaps this can
23449 be revisited in 2012. In the meantime, code should not expect
23450 #if to work with literals wider than 32 bits. */
23451 /* Test literals. */
23452 long long int ll = 9223372036854775807ll;
23453 long long int nll = -9223372036854775807LL;
23454 unsigned long long int ull = 18446744073709551615ULL;
23455 /* Test constant expressions. */
23456 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23457 ? 1 : -1)];
23458 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23459 ? 1 : -1)];
23460 int i = 63;
23461int
23462main ()
23463{
23464/* Test availability of runtime routines for shift and division. */
23465 long long int llmax = 9223372036854775807ll;
23466 unsigned long long int ullmax = 18446744073709551615ull;
23467 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23468 | (llmax / ll) | (llmax % ll)
23469 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23470 | (ullmax / ull) | (ullmax % ull));
23471 ;
23472 return 0;
23473}
23474
23475_ACEOF
23476if ac_fn_c_try_link "$LINENO"; then :
23477 if test "$cross_compiling" = yes; then :
23478 ac_cv_type_long_long_int=yes
23479else
23480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481/* end confdefs.h. */
23482#include <limits.h>
23483 #ifndef LLONG_MAX
23484 # define HALF \
23485 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23486 # define LLONG_MAX (HALF - 1 + HALF)
23487 #endif
23488int
23489main ()
23490{
23491long long int n = 1;
23492 int i;
23493 for (i = 0; ; i++)
23494 {
23495 long long int m = n << i;
23496 if (m >> i != n)
23497 return 1;
23498 if (LLONG_MAX / 2 < m)
23499 break;
23500 }
23501 return 0;
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506if ac_fn_c_try_run "$LINENO"; then :
23507 ac_cv_type_long_long_int=yes
23508else
23509 ac_cv_type_long_long_int=no
23510fi
23511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23512 conftest.$ac_objext conftest.beam conftest.$ac_ext
23513fi
23514
23515else
23516 ac_cv_type_long_long_int=no
23517fi
23518rm -f core conftest.err conftest.$ac_objext \
23519 conftest$ac_exeext conftest.$ac_ext
23520fi
23521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23522$as_echo "$ac_cv_type_long_long_int" >&6; }
23523 if test $ac_cv_type_long_long_int = yes; then
23524
23525$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23526
23527 fi
23528
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23530$as_echo_n "checking for mbstate_t... " >&6; }
23531if ${ac_cv_type_mbstate_t+:} false; then :
23532 $as_echo_n "(cached) " >&6
23533else
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535/* end confdefs.h. */
23536$ac_includes_default
23537# include <wchar.h>
23538int
23539main ()
23540{
23541mbstate_t x; return sizeof x;
23542 ;
23543 return 0;
23544}
23545_ACEOF
23546if ac_fn_c_try_compile "$LINENO"; then :
23547 ac_cv_type_mbstate_t=yes
23548else
23549 ac_cv_type_mbstate_t=no
23550fi
23551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552fi
23553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23554$as_echo "$ac_cv_type_mbstate_t" >&6; }
23555 if test $ac_cv_type_mbstate_t = yes; then
23556
23557$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23558
23559 else
23560
23561$as_echo "#define mbstate_t int" >>confdefs.h
23562
23563 fi
23564ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23565if test "x$ac_cv_type_mode_t" = xyes; then :
23566
23567else
23568
23569cat >>confdefs.h <<_ACEOF
23570#define mode_t int
23571_ACEOF
23572
23573fi
23574
23575ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23576if test "x$ac_cv_type_off_t" = xyes; then :
23577
23578else
23579
23580cat >>confdefs.h <<_ACEOF
23581#define off_t long int
23582_ACEOF
23583
23584fi
23585
23586ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23587if test "x$ac_cv_type_pid_t" = xyes; then :
23588
23589else
23590
23591cat >>confdefs.h <<_ACEOF
23592#define pid_t int
23593_ACEOF
23594
23595fi
23596
23597ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23598if test "x$ac_cv_type_size_t" = xyes; then :
23599
23600else
23601
23602cat >>confdefs.h <<_ACEOF
23603#define size_t unsigned int
23604_ACEOF
23605
23606fi
23607
23608ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23609if test "x$ac_cv_type_ssize_t" = xyes; then :
23610
23611else
23612
23613cat >>confdefs.h <<_ACEOF
23614#define ssize_t int
23615_ACEOF
23616
23617fi
23618
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23620$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23621if ${ac_cv_type_uid_t+:} false; then :
23622 $as_echo_n "(cached) " >&6
23623else
23624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625/* end confdefs.h. */
23626#include <sys/types.h>
23627
23628_ACEOF
23629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23630 $EGREP "uid_t" >/dev/null 2>&1; then :
23631 ac_cv_type_uid_t=yes
23632else
23633 ac_cv_type_uid_t=no
23634fi
23635rm -f conftest*
23636
23637fi
23638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23639$as_echo "$ac_cv_type_uid_t" >&6; }
23640if test $ac_cv_type_uid_t = no; then
23641
23642$as_echo "#define uid_t int" >>confdefs.h
23643
23644
23645$as_echo "#define gid_t int" >>confdefs.h
23646
23647fi
23648
23649ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23650case $ac_cv_c_uint8_t in #(
23651 no|yes) ;; #(
23652 *)
23653
23654$as_echo "#define _UINT8_T 1" >>confdefs.h
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define uint8_t $ac_cv_c_uint8_t
23659_ACEOF
23660;;
23661 esac
23662
23663ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23664case $ac_cv_c_uint16_t in #(
23665 no|yes) ;; #(
23666 *)
23667
23668
23669cat >>confdefs.h <<_ACEOF
23670#define uint16_t $ac_cv_c_uint16_t
23671_ACEOF
23672;;
23673 esac
23674
23675ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23676case $ac_cv_c_uint32_t in #(
23677 no|yes) ;; #(
23678 *)
23679
23680$as_echo "#define _UINT32_T 1" >>confdefs.h
23681
23682
23683cat >>confdefs.h <<_ACEOF
23684#define uint32_t $ac_cv_c_uint32_t
23685_ACEOF
23686;;
23687 esac
23688
23689ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23690case $ac_cv_c_uint64_t in #(
23691 no|yes) ;; #(
23692 *)
23693
23694$as_echo "#define _UINT64_T 1" >>confdefs.h
23695
23696
23697cat >>confdefs.h <<_ACEOF
23698#define uint64_t $ac_cv_c_uint64_t
23699_ACEOF
23700;;
23701 esac
23702
23703
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23705$as_echo_n "checking for unsigned long long int... " >&6; }
23706if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23707 $as_echo_n "(cached) " >&6
23708else
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710/* end confdefs.h. */
23711
23712 /* For now, do not test the preprocessor; as of 2007 there are too many
23713 implementations with broken preprocessors. Perhaps this can
23714 be revisited in 2012. In the meantime, code should not expect
23715 #if to work with literals wider than 32 bits. */
23716 /* Test literals. */
23717 long long int ll = 9223372036854775807ll;
23718 long long int nll = -9223372036854775807LL;
23719 unsigned long long int ull = 18446744073709551615ULL;
23720 /* Test constant expressions. */
23721 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23722 ? 1 : -1)];
23723 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23724 ? 1 : -1)];
23725 int i = 63;
23726int
23727main ()
23728{
23729/* Test availability of runtime routines for shift and division. */
23730 long long int llmax = 9223372036854775807ll;
23731 unsigned long long int ullmax = 18446744073709551615ull;
23732 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23733 | (llmax / ll) | (llmax % ll)
23734 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23735 | (ullmax / ull) | (ullmax % ull));
23736 ;
23737 return 0;
23738}
23739
23740_ACEOF
23741if ac_fn_c_try_link "$LINENO"; then :
23742 ac_cv_type_unsigned_long_long_int=yes
23743else
23744 ac_cv_type_unsigned_long_long_int=no
23745fi
23746rm -f core conftest.err conftest.$ac_objext \
23747 conftest$ac_exeext conftest.$ac_ext
23748fi
23749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23750$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23751 if test $ac_cv_type_unsigned_long_long_int = yes; then
23752
23753$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23754
23755 fi
23756
23757
23758
23759 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23760if test "x$ac_cv_type_uintmax_t" = xyes; then :
23761
23762$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23763
23764else
23765 test $ac_cv_type_unsigned_long_long_int = yes \
23766 && ac_type='unsigned long long int' \
23767 || ac_type='unsigned long int'
23768
23769cat >>confdefs.h <<_ACEOF
23770#define uintmax_t $ac_type
23771_ACEOF
23772
23773fi
23774
23775
23776
23777 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23778if test "x$ac_cv_type_uintptr_t" = xyes; then :
23779
23780$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23781
23782else
23783 for ac_type in 'unsigned int' 'unsigned long int' \
23784 'unsigned long long int'; do
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786/* end confdefs.h. */
23787$ac_includes_default
23788int
23789main ()
23790{
23791static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023792test_array [0] = 0;
23793return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023794
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799if ac_fn_c_try_compile "$LINENO"; then :
23800
23801cat >>confdefs.h <<_ACEOF
23802#define uintptr_t $ac_type
23803_ACEOF
23804
23805 ac_type=
23806fi
23807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808 test -z "$ac_type" && break
23809 done
23810fi
23811
23812
23813
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23815$as_echo_n "checking for unsigned long long int... " >&6; }
23816if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23817 $as_echo_n "(cached) " >&6
23818else
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820/* end confdefs.h. */
23821
23822 /* For now, do not test the preprocessor; as of 2007 there are too many
23823 implementations with broken preprocessors. Perhaps this can
23824 be revisited in 2012. In the meantime, code should not expect
23825 #if to work with literals wider than 32 bits. */
23826 /* Test literals. */
23827 long long int ll = 9223372036854775807ll;
23828 long long int nll = -9223372036854775807LL;
23829 unsigned long long int ull = 18446744073709551615ULL;
23830 /* Test constant expressions. */
23831 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23832 ? 1 : -1)];
23833 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23834 ? 1 : -1)];
23835 int i = 63;
23836int
23837main ()
23838{
23839/* Test availability of runtime routines for shift and division. */
23840 long long int llmax = 9223372036854775807ll;
23841 unsigned long long int ullmax = 18446744073709551615ull;
23842 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23843 | (llmax / ll) | (llmax % ll)
23844 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23845 | (ullmax / ull) | (ullmax % ull));
23846 ;
23847 return 0;
23848}
23849
23850_ACEOF
23851if ac_fn_c_try_link "$LINENO"; then :
23852 ac_cv_type_unsigned_long_long_int=yes
23853else
23854 ac_cv_type_unsigned_long_long_int=no
23855fi
23856rm -f core conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23858fi
23859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23860$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23861 if test $ac_cv_type_unsigned_long_long_int = yes; then
23862
23863$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23864
23865 fi
23866
23867
cristy3ed852e2009-09-05 21:47:34 +000023868# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23869# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023872if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023873 $as_echo_n "(cached) " >&6
23874else
cristy8b350f62009-11-15 23:12:43 +000023875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023876/* end confdefs.h. */
23877$ac_includes_default
23878int
23879main ()
23880{
23881static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023882test_array [0] = 0;
23883return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023884
23885 ;
23886 return 0;
23887}
23888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023890 ac_cv_c_char_unsigned=no
23891else
cristy8b350f62009-11-15 23:12:43 +000023892 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023893fi
cristy3ed852e2009-09-05 21:47:34 +000023894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895fi
cristy8b350f62009-11-15 23:12:43 +000023896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo "$ac_cv_c_char_unsigned" >&6; }
23898if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023899 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023900
23901fi
23902
23903
23904# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23905# The cast to long int works around a bug in the HP C Compiler
23906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23908# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023911if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023912 $as_echo_n "(cached) " >&6
23913else
cristy8b350f62009-11-15 23:12:43 +000023914 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 +000023915
cristy3ed852e2009-09-05 21:47:34 +000023916else
cristy8b350f62009-11-15 23:12:43 +000023917 if test "$ac_cv_type_signed_short" = yes; then
23918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023920as_fn_error 77 "cannot compute sizeof (signed short)
23921See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023922 else
23923 ac_cv_sizeof_signed_short=0
23924 fi
23925fi
cristy8b350f62009-11-15 23:12:43 +000023926
cristy3ed852e2009-09-05 21:47:34 +000023927fi
cristy8b350f62009-11-15 23:12:43 +000023928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023929$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23930
23931
23932
23933cat >>confdefs.h <<_ACEOF
23934#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23935_ACEOF
23936
23937
23938
23939# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23940# The cast to long int works around a bug in the HP C Compiler
23941# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23942# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23943# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023945$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023946if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023947 $as_echo_n "(cached) " >&6
23948else
cristy8b350f62009-11-15 23:12:43 +000023949 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 +000023950
cristy3ed852e2009-09-05 21:47:34 +000023951else
cristy8b350f62009-11-15 23:12:43 +000023952 if test "$ac_cv_type_unsigned_short" = yes; then
23953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023955as_fn_error 77 "cannot compute sizeof (unsigned short)
23956See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023957 else
23958 ac_cv_sizeof_unsigned_short=0
23959 fi
23960fi
cristy8b350f62009-11-15 23:12:43 +000023961
cristy3ed852e2009-09-05 21:47:34 +000023962fi
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23965
23966
23967
23968cat >>confdefs.h <<_ACEOF
23969#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23970_ACEOF
23971
23972
23973
23974# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23975# The cast to long int works around a bug in the HP C Compiler
23976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23978# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023981if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 $as_echo_n "(cached) " >&6
23983else
cristy8b350f62009-11-15 23:12:43 +000023984 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 +000023985
cristy3ed852e2009-09-05 21:47:34 +000023986else
cristy8b350f62009-11-15 23:12:43 +000023987 if test "$ac_cv_type_signed_int" = yes; then
23988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023990as_fn_error 77 "cannot compute sizeof (signed int)
23991See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023992 else
23993 ac_cv_sizeof_signed_int=0
23994 fi
23995fi
cristy8b350f62009-11-15 23:12:43 +000023996
cristy3ed852e2009-09-05 21:47:34 +000023997fi
cristy8b350f62009-11-15 23:12:43 +000023998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24000
24001
24002
24003cat >>confdefs.h <<_ACEOF
24004#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24005_ACEOF
24006
24007
24008
24009# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24010# The cast to long int works around a bug in the HP C Compiler
24011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24013# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024015$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024016if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024017 $as_echo_n "(cached) " >&6
24018else
cristy8b350f62009-11-15 23:12:43 +000024019 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 +000024020
cristy3ed852e2009-09-05 21:47:34 +000024021else
cristy8b350f62009-11-15 23:12:43 +000024022 if test "$ac_cv_type_unsigned_int" = yes; then
24023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024025as_fn_error 77 "cannot compute sizeof (unsigned int)
24026See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024027 else
24028 ac_cv_sizeof_unsigned_int=0
24029 fi
24030fi
cristy8b350f62009-11-15 23:12:43 +000024031
cristy3ed852e2009-09-05 21:47:34 +000024032fi
cristy8b350f62009-11-15 23:12:43 +000024033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024034$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24035
24036
24037
24038cat >>confdefs.h <<_ACEOF
24039#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24040_ACEOF
24041
24042
24043
24044# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24045# The cast to long int works around a bug in the HP C Compiler
24046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24048# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024050$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024051if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024052 $as_echo_n "(cached) " >&6
24053else
cristy8b350f62009-11-15 23:12:43 +000024054 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 +000024055
cristy3ed852e2009-09-05 21:47:34 +000024056else
cristy8b350f62009-11-15 23:12:43 +000024057 if test "$ac_cv_type_signed_long" = yes; then
24058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024060as_fn_error 77 "cannot compute sizeof (signed long)
24061See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024062 else
24063 ac_cv_sizeof_signed_long=0
24064 fi
24065fi
cristy8b350f62009-11-15 23:12:43 +000024066
cristy3ed852e2009-09-05 21:47:34 +000024067fi
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24070
24071
24072
24073cat >>confdefs.h <<_ACEOF
24074#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24075_ACEOF
24076
24077
24078
24079# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24080# The cast to long int works around a bug in the HP C Compiler
24081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24083# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024085$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024086if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024087 $as_echo_n "(cached) " >&6
24088else
cristy8b350f62009-11-15 23:12:43 +000024089 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 +000024090
cristy3ed852e2009-09-05 21:47:34 +000024091else
cristy8b350f62009-11-15 23:12:43 +000024092 if test "$ac_cv_type_unsigned_long" = yes; then
24093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024095as_fn_error 77 "cannot compute sizeof (unsigned long)
24096See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024097 else
24098 ac_cv_sizeof_unsigned_long=0
24099 fi
24100fi
cristy8b350f62009-11-15 23:12:43 +000024101
cristy3ed852e2009-09-05 21:47:34 +000024102fi
cristy8b350f62009-11-15 23:12:43 +000024103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024104$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24105
24106
24107
24108cat >>confdefs.h <<_ACEOF
24109#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24110_ACEOF
24111
24112
24113
24114# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24115# 'signed long long' is not supported then the value defined is zero.
24116# The cast to long int works around a bug in the HP C Compiler
24117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24119# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024122if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 $as_echo_n "(cached) " >&6
24124else
cristy8b350f62009-11-15 23:12:43 +000024125 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 +000024126
cristy3ed852e2009-09-05 21:47:34 +000024127else
cristy8b350f62009-11-15 23:12:43 +000024128 if test "$ac_cv_type_signed_long_long" = yes; then
24129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024131as_fn_error 77 "cannot compute sizeof (signed long long)
24132See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024133 else
24134 ac_cv_sizeof_signed_long_long=0
24135 fi
24136fi
cristy8b350f62009-11-15 23:12:43 +000024137
cristy3ed852e2009-09-05 21:47:34 +000024138fi
cristy8b350f62009-11-15 23:12:43 +000024139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24141
24142
24143
24144cat >>confdefs.h <<_ACEOF
24145#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24146_ACEOF
24147
24148
24149
24150# Obtain size of a 'unsigned long long' and define as
24151# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24152# supported then the value defined is zero.
24153# The cast to long int works around a bug in the HP C Compiler
24154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24156# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024159if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
cristy8b350f62009-11-15 23:12:43 +000024162 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 +000024163
cristy3ed852e2009-09-05 21:47:34 +000024164else
cristy8b350f62009-11-15 23:12:43 +000024165 if test "$ac_cv_type_unsigned_long_long" = yes; then
24166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024168as_fn_error 77 "cannot compute sizeof (unsigned long long)
24169See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024170 else
24171 ac_cv_sizeof_unsigned_long_long=0
24172 fi
24173fi
cristy8b350f62009-11-15 23:12:43 +000024174
cristy3ed852e2009-09-05 21:47:34 +000024175fi
cristy8b350f62009-11-15 23:12:43 +000024176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024177$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24178
24179
24180
24181cat >>confdefs.h <<_ACEOF
24182#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24183_ACEOF
24184
24185
24186
24187# Obtain size of off_t and define as SIZEOF_OFF_T
24188# The cast to long int works around a bug in the HP C Compiler
24189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24191# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024193$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024194if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024195 $as_echo_n "(cached) " >&6
24196else
cristy8b350f62009-11-15 23:12:43 +000024197 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024198
cristy3ed852e2009-09-05 21:47:34 +000024199else
cristy8b350f62009-11-15 23:12:43 +000024200 if test "$ac_cv_type_off_t" = yes; then
24201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024203as_fn_error 77 "cannot compute sizeof (off_t)
24204See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024205 else
24206 ac_cv_sizeof_off_t=0
24207 fi
24208fi
cristy8b350f62009-11-15 23:12:43 +000024209
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$ac_cv_sizeof_off_t" >&6; }
24213
24214
24215
24216cat >>confdefs.h <<_ACEOF
24217#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24218_ACEOF
24219
24220
24221
24222# Obtain size of size_t and define as SIZEOF_SIZE_T
24223# The cast to long int works around a bug in the HP C Compiler
24224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24226# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024228$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024229if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 $as_echo_n "(cached) " >&6
24231else
cristy8b350f62009-11-15 23:12:43 +000024232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024233
cristy3ed852e2009-09-05 21:47:34 +000024234else
cristy8b350f62009-11-15 23:12:43 +000024235 if test "$ac_cv_type_size_t" = yes; then
24236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024238as_fn_error 77 "cannot compute sizeof (size_t)
24239See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024240 else
24241 ac_cv_sizeof_size_t=0
24242 fi
24243fi
cristy8b350f62009-11-15 23:12:43 +000024244
cristy3ed852e2009-09-05 21:47:34 +000024245fi
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo "$ac_cv_sizeof_size_t" >&6; }
24248
24249
24250
24251cat >>confdefs.h <<_ACEOF
24252#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24253_ACEOF
24254
24255
24256
cristy330e9352010-06-01 18:42:49 +000024257# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24258# The cast to long int works around a bug in the HP C Compiler
24259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24261# This bug is HP SR number 8606223364.
24262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24263$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024264if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024265 $as_echo_n "(cached) " >&6
24266else
24267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24268
24269else
24270 if test "$ac_cv_type_ssize_t" = yes; then
24271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024273as_fn_error 77 "cannot compute sizeof (ssize_t)
24274See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024275 else
24276 ac_cv_sizeof_ssize_t=0
24277 fi
24278fi
24279
24280fi
24281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24282$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24283
24284
24285
24286cat >>confdefs.h <<_ACEOF
24287#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24288_ACEOF
24289
24290
24291
cristy3ed852e2009-09-05 21:47:34 +000024292# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24293# The cast to long int works around a bug in the HP C Compiler
24294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24296# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024298$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024299if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024300 $as_echo_n "(cached) " >&6
24301else
cristy8b350f62009-11-15 23:12:43 +000024302 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 +000024303
cristy3ed852e2009-09-05 21:47:34 +000024304else
cristy8b350f62009-11-15 23:12:43 +000024305 if test "$ac_cv_type_unsigned_intp" = yes; then
24306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024308as_fn_error 77 "cannot compute sizeof (unsigned int*)
24309See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024310 else
24311 ac_cv_sizeof_unsigned_intp=0
24312 fi
24313fi
cristy8b350f62009-11-15 23:12:43 +000024314
cristy3ed852e2009-09-05 21:47:34 +000024315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24318
24319
24320
24321cat >>confdefs.h <<_ACEOF
24322#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24323_ACEOF
24324
24325
24326
24327#
24328# Compute sized types for current CPU and compiler options.
24329#
24330
cristy8b350f62009-11-15 23:12:43 +000024331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024332$as_echo_n "checking for signed 8-bit type... " >&6; }
24333INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024334{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24335$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024336
24337
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24340UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024341{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24342$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024343
24344
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo_n "checking for signed 16-bit type... " >&6; }
24347INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24349$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024350
24351
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24354UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24356$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024357
24358
cristy8b350f62009-11-15 23:12:43 +000024359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024360$as_echo_n "checking for signed 32-bit type... " >&6; }
24361INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024362INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024363if test $ac_cv_sizeof_signed_int -eq 4; then
24364 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024365 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024366elif test $ac_cv_sizeof_signed_long -eq 4; then
24367 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024368 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024369fi
cristy09b53e12011-10-14 12:47:22 +000024370{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24371$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024372
24373
cristy6d5e20f2011-04-25 13:48:54 +000024374
cristy8b350f62009-11-15 23:12:43 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24377UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024378UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024379if test $ac_cv_sizeof_unsigned_int -eq 4; then
24380 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024381 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024382elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24383 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024384 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristy09b53e12011-10-14 12:47:22 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24387$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024388
24389
cristy6d5e20f2011-04-25 13:48:54 +000024390
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo_n "checking for signed 64-bit type... " >&6; }
24393INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024394INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024395if test $ac_cv_sizeof_signed_long -eq 8; then
24396 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024397 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024398elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24399 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024400 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024401fi
cristy3a99dcf2011-12-17 01:29:40 +000024402case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024403 mingw* )
24404 INT64_F='"I64"'
24405 ;;
24406esac
cristy09b53e12011-10-14 12:47:22 +000024407{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24408$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024409
24410
cristy6d5e20f2011-04-25 13:48:54 +000024411
cristy8b350f62009-11-15 23:12:43 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24414UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024415UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024416if test $ac_cv_sizeof_unsigned_long -eq 8; then
24417 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024418 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024419elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24420 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024421 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy3a99dcf2011-12-17 01:29:40 +000024423case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024424 mingw* )
24425 UINT64_F='"I64"'
24426 ;;
24427esac
cristy09b53e12011-10-14 12:47:22 +000024428{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24429$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024430
24431
cristy6d5e20f2011-04-25 13:48:54 +000024432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for unsigned maximum type... " >&6; }
24435UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024436UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024437if test "$UINT64_T" != 'none'; then
24438 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024439 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024440elif test "$UINT32_T" != 'none'; then
24441 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024442 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024443fi
cristy09b53e12011-10-14 12:47:22 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24445$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024446
24447
cristy6d5e20f2011-04-25 13:48:54 +000024448
cristy8b350f62009-11-15 23:12:43 +000024449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024450$as_echo_n "checking for pointer difference type... " >&6; }
24451UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024452UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024453if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24454 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024455 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024456elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24457 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024458 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024459fi
cristy09b53e12011-10-14 12:47:22 +000024460{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24461$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024462
24463
cristy6d5e20f2011-04-25 13:48:54 +000024464
cristy8b350f62009-11-15 23:12:43 +000024465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024466$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024468/* end confdefs.h. */
24469
24470int
24471main ()
24472{
24473{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24474 ;
24475 return 0;
24476}
24477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024478if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024479 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24480$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024481else
cristy09b53e12011-10-14 12:47:22 +000024482 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24483$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024485$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024487/* end confdefs.h. */
24488
24489int
24490main ()
24491{
24492{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24493 ;
24494 return 0;
24495}
24496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024497if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024498 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24499$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024500
cristy8b350f62009-11-15 23:12:43 +000024501$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024502
24503else
cristy09b53e12011-10-14 12:47:22 +000024504 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24505$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024506
cristy8b350f62009-11-15 23:12:43 +000024507$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024508
24509fi
cristy3ed852e2009-09-05 21:47:34 +000024510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511fi
cristy3ed852e2009-09-05 21:47:34 +000024512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24513
24514########
24515#
24516# Check for functions
24517#
24518########
cristy73bd4a52010-10-05 11:24:23 +000024519for ac_header in stdlib.h unistd.h
24520do :
24521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24522ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024524 cat >>confdefs.h <<_ACEOF
24525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24526_ACEOF
24527
24528fi
24529
24530done
24531
24532for ac_func in getpagesize
24533do :
24534 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024535if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024536 cat >>confdefs.h <<_ACEOF
24537#define HAVE_GETPAGESIZE 1
24538_ACEOF
24539
24540fi
24541done
24542
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24544$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024545if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024546 $as_echo_n "(cached) " >&6
24547else
24548 if test "$cross_compiling" = yes; then :
24549 magick_cv_func_mmap_fileio=no
24550else
24551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24552/* end confdefs.h. */
24553$ac_includes_default
24554/* malloc might have been renamed as rpl_malloc. */
24555#undef malloc
24556
24557/*
24558 This test is derived from GNU Autoconf's similar macro.
24559 The purpose of this test is to verify that files may be memory
24560 mapped, and that memory mapping and file I/O are coherent.
24561
24562 The test creates a test file, memory maps the file, updates
24563 the file using the memory map, and then reads the file using
24564 file I/O to verify that the file contains the updates.
24565*/
24566
24567#include <fcntl.h>
24568#include <sys/mman.h>
24569
24570#if !STDC_HEADERS && !HAVE_STDLIB_H
24571char *malloc ();
24572#endif
24573
24574/* This mess was copied from the GNU getpagesize.h. */
24575#if !HAVE_GETPAGESIZE
24576/* Assume that all systems that can run configure have sys/param.h. */
24577# if !HAVE_SYS_PARAM_H
24578# define HAVE_SYS_PARAM_H 1
24579# endif
24580
24581# ifdef _SC_PAGESIZE
24582# define getpagesize() sysconf(_SC_PAGESIZE)
24583# else /* no _SC_PAGESIZE */
24584# if HAVE_SYS_PARAM_H
24585# include <sys/param.h>
24586# ifdef EXEC_PAGESIZE
24587# define getpagesize() EXEC_PAGESIZE
24588# else /* no EXEC_PAGESIZE */
24589# ifdef NBPG
24590# define getpagesize() NBPG * CLSIZE
24591# ifndef CLSIZE
24592# define CLSIZE 1
24593# endif /* no CLSIZE */
24594# else /* no NBPG */
24595# ifdef NBPC
24596# define getpagesize() NBPC
24597# else /* no NBPC */
24598# ifdef PAGESIZE
24599# define getpagesize() PAGESIZE
24600# endif /* PAGESIZE */
24601# endif /* no NBPC */
24602# endif /* no NBPG */
24603# endif /* no EXEC_PAGESIZE */
24604# else /* no HAVE_SYS_PARAM_H */
24605# define getpagesize() 8192 /* punt totally */
24606# endif /* no HAVE_SYS_PARAM_H */
24607# endif /* no _SC_PAGESIZE */
24608
24609#endif /* no HAVE_GETPAGESIZE */
24610
24611int
24612main ()
24613{
24614 char *data, *data2, *data3;
24615 int i, pagesize;
24616 int fd;
24617
24618 pagesize = getpagesize ();
24619
24620 /* First, make a file with some known garbage in it. */
24621 data = (char *) malloc (pagesize);
24622 if (!data)
24623 exit (1);
24624 for (i = 0; i < pagesize; ++i)
24625 *(data + i) = rand ();
24626 umask (0);
24627 fd = creat ("conftest.mmap", 0600);
24628 if (fd < 0)
24629 exit (1);
24630 if (write (fd, data, pagesize) != pagesize)
24631 exit (1);
24632 close (fd);
24633
24634 /* Mmap the file as read/write/shared and verify that we see the
24635 same garbage. */
24636 fd = open ("conftest.mmap", O_RDWR);
24637 if (fd < 0)
24638 exit (1);
24639 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24640 if (data2 == 0)
24641 exit (1);
24642 for (i = 0; i < pagesize; ++i)
24643 if (*(data + i) != *(data2 + i))
24644 exit (1);
24645
24646 /* Finally, make sure that changes to the mapped area
24647 percolate back to the file as seen by read(). */
24648 for (i = 0; i < pagesize; ++i)
24649 *(data2 + i) = *(data2 + i) + 1;
24650 data3 = (char *) malloc (pagesize);
24651 if (!data3)
24652 exit (1);
24653 if (read (fd, data3, pagesize) != pagesize)
24654 exit (1);
24655 for (i = 0; i < pagesize; ++i)
24656 if (*(data2 + i) != *(data3 + i))
24657 exit (1);
24658 close (fd);
24659 exit (0);
24660}
24661_ACEOF
24662if ac_fn_c_try_run "$LINENO"; then :
24663 magick_cv_func_mmap_fileio=yes
24664else
24665 magick_cv_func_mmap_fileio=no
24666fi
24667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24668 conftest.$ac_objext conftest.beam conftest.$ac_ext
24669fi
24670
24671fi
24672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24673$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24674if test $magick_cv_func_mmap_fileio = yes; then
24675
24676$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24677
24678fi
24679rm -f conftest.mmap
24680
cristy8b350f62009-11-15 23:12:43 +000024681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024683if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024684 $as_echo_n "(cached) " >&6
24685else
cristy8b350f62009-11-15 23:12:43 +000024686 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024687 ac_cv_func_closedir_void=yes
24688else
cristy8b350f62009-11-15 23:12:43 +000024689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691$ac_includes_default
24692#include <$ac_header_dirent>
24693#ifndef __cplusplus
24694int closedir ();
24695#endif
24696
24697int
24698main ()
24699{
24700return closedir (opendir (".")) != 0;
24701 ;
24702 return 0;
24703}
24704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024705if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024706 ac_cv_func_closedir_void=no
24707else
cristy8b350f62009-11-15 23:12:43 +000024708 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024709fi
cristy8b350f62009-11-15 23:12:43 +000024710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24711 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024712fi
24713
cristy3ed852e2009-09-05 21:47:34 +000024714fi
cristy8b350f62009-11-15 23:12:43 +000024715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo "$ac_cv_func_closedir_void" >&6; }
24717if test $ac_cv_func_closedir_void = yes; then
24718
cristy8b350f62009-11-15 23:12:43 +000024719$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024720
24721fi
24722
cristycd4c5312009-11-22 01:19:08 +000024723
24724
24725
24726 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024727do :
24728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024729ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24730"
cristy98dddb52010-11-04 00:30:15 +000024731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 cat >>confdefs.h <<_ACEOF
24733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24734_ACEOF
24735
24736fi
24737
24738done
24739
cristycd4c5312009-11-22 01:19:08 +000024740
24741
24742
24743
24744
24745
24746
cristy3ed852e2009-09-05 21:47:34 +000024747for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024748do :
24749 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024750if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024751 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024752#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024753_ACEOF
24754
24755fi
24756done
24757
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024760if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 $as_echo_n "(cached) " >&6
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_func_mmap_fixed_mapped=no
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024767/* end confdefs.h. */
24768$ac_includes_default
24769/* malloc might have been renamed as rpl_malloc. */
24770#undef malloc
24771
24772/* Thanks to Mike Haertel and Jim Avera for this test.
24773 Here is a matrix of mmap possibilities:
24774 mmap private not fixed
24775 mmap private fixed at somewhere currently unmapped
24776 mmap private fixed at somewhere already mapped
24777 mmap shared not fixed
24778 mmap shared fixed at somewhere currently unmapped
24779 mmap shared fixed at somewhere already mapped
24780 For private mappings, we should verify that changes cannot be read()
24781 back from the file, nor mmap's back from the file at a different
24782 address. (There have been systems where private was not correctly
24783 implemented like the infamous i386 svr4.0, and systems where the
24784 VM page cache was not coherent with the file system buffer cache
24785 like early versions of FreeBSD and possibly contemporary NetBSD.)
24786 For shared mappings, we should conversely verify that changes get
24787 propagated back to all the places they're supposed to be.
24788
24789 Grep wants private fixed already mapped.
24790 The main things grep needs to know about mmap are:
24791 * does it exist and is it safe to write into the mmap'd area
24792 * how to use it (BSD variants) */
24793
24794#include <fcntl.h>
24795#include <sys/mman.h>
24796
24797#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24798char *malloc ();
24799#endif
24800
24801/* This mess was copied from the GNU getpagesize.h. */
24802#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024803# ifdef _SC_PAGESIZE
24804# define getpagesize() sysconf(_SC_PAGESIZE)
24805# else /* no _SC_PAGESIZE */
24806# ifdef HAVE_SYS_PARAM_H
24807# include <sys/param.h>
24808# ifdef EXEC_PAGESIZE
24809# define getpagesize() EXEC_PAGESIZE
24810# else /* no EXEC_PAGESIZE */
24811# ifdef NBPG
24812# define getpagesize() NBPG * CLSIZE
24813# ifndef CLSIZE
24814# define CLSIZE 1
24815# endif /* no CLSIZE */
24816# else /* no NBPG */
24817# ifdef NBPC
24818# define getpagesize() NBPC
24819# else /* no NBPC */
24820# ifdef PAGESIZE
24821# define getpagesize() PAGESIZE
24822# endif /* PAGESIZE */
24823# endif /* no NBPC */
24824# endif /* no NBPG */
24825# endif /* no EXEC_PAGESIZE */
24826# else /* no HAVE_SYS_PARAM_H */
24827# define getpagesize() 8192 /* punt totally */
24828# endif /* no HAVE_SYS_PARAM_H */
24829# endif /* no _SC_PAGESIZE */
24830
24831#endif /* no HAVE_GETPAGESIZE */
24832
24833int
24834main ()
24835{
24836 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024837 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024838 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024839 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024840
24841 pagesize = getpagesize ();
24842
24843 /* First, make a file with some known garbage in it. */
24844 data = (char *) malloc (pagesize);
24845 if (!data)
24846 return 1;
24847 for (i = 0; i < pagesize; ++i)
24848 *(data + i) = rand ();
24849 umask (0);
24850 fd = creat ("conftest.mmap", 0600);
24851 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024852 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024853 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024854 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024855 close (fd);
24856
cristycd4c5312009-11-22 01:19:08 +000024857 /* Next, check that the tail of a page is zero-filled. File must have
24858 non-zero length, otherwise we risk SIGBUS for entire page. */
24859 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24860 if (fd2 < 0)
24861 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024862 cdata2 = "";
24863 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024864 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024865 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024866 if (data2 == MAP_FAILED)
24867 return 6;
24868 for (i = 0; i < pagesize; ++i)
24869 if (*(data2 + i))
24870 return 7;
24871 close (fd2);
24872 if (munmap (data2, pagesize))
24873 return 8;
24874
cristy3ed852e2009-09-05 21:47:34 +000024875 /* Next, try to mmap the file at a fixed address which already has
24876 something else allocated at it. If we can, also make sure that
24877 we see the same garbage. */
24878 fd = open ("conftest.mmap", O_RDWR);
24879 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024880 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024881 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24882 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024883 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024884 for (i = 0; i < pagesize; ++i)
24885 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024886 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024887
24888 /* Finally, make sure that changes to the mapped area do not
24889 percolate back to the file as seen by read(). (This is a bug on
24890 some variants of i386 svr4.0.) */
24891 for (i = 0; i < pagesize; ++i)
24892 *(data2 + i) = *(data2 + i) + 1;
24893 data3 = (char *) malloc (pagesize);
24894 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024895 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024896 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024897 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024898 for (i = 0; i < pagesize; ++i)
24899 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024900 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024901 close (fd);
24902 return 0;
24903}
24904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 ac_cv_func_mmap_fixed_mapped=yes
24907else
cristy8b350f62009-11-15 23:12:43 +000024908 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024909fi
cristy8b350f62009-11-15 23:12:43 +000024910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24911 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024912fi
24913
cristy3ed852e2009-09-05 21:47:34 +000024914fi
cristy8b350f62009-11-15 23:12:43 +000024915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024916$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24917if test $ac_cv_func_mmap_fixed_mapped = yes; then
24918
cristy8b350f62009-11-15 23:12:43 +000024919$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024920
24921fi
cristycd4c5312009-11-22 01:19:08 +000024922rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024923
cristy3ed852e2009-09-05 21:47:34 +000024924for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024925do :
24926 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024927if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024928 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024929#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024930_ACEOF
24931
24932fi
24933
24934done
24935
cristy3ed852e2009-09-05 21:47:34 +000024936for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024937do :
24938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024940if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 cat >>confdefs.h <<_ACEOF
24942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24943_ACEOF
24944
24945fi
24946done
24947
24948if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024950$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024951if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024952 $as_echo_n "(cached) " >&6
24953else
cristy8b350f62009-11-15 23:12:43 +000024954 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024955 ac_cv_func_fork_works=cross
24956else
cristy8b350f62009-11-15 23:12:43 +000024957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024958/* end confdefs.h. */
24959$ac_includes_default
24960int
24961main ()
24962{
24963
24964 /* By Ruediger Kuhlmann. */
24965 return fork () < 0;
24966
24967 ;
24968 return 0;
24969}
24970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024971if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024972 ac_cv_func_fork_works=yes
24973else
cristy8b350f62009-11-15 23:12:43 +000024974 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024975fi
cristy8b350f62009-11-15 23:12:43 +000024976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24977 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024978fi
24979
cristy3ed852e2009-09-05 21:47:34 +000024980fi
cristy8b350f62009-11-15 23:12:43 +000024981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024982$as_echo "$ac_cv_func_fork_works" >&6; }
24983
24984else
24985 ac_cv_func_fork_works=$ac_cv_func_fork
24986fi
24987if test "x$ac_cv_func_fork_works" = xcross; then
24988 case $host in
24989 *-*-amigaos* | *-*-msdosdjgpp*)
24990 # Override, as these systems have only a dummy fork() stub
24991 ac_cv_func_fork_works=no
24992 ;;
24993 *)
24994 ac_cv_func_fork_works=yes
24995 ;;
24996 esac
cristy8b350f62009-11-15 23:12:43 +000024997 { $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 +000024998$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24999fi
25000ac_cv_func_vfork_works=$ac_cv_func_vfork
25001if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025004if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 $as_echo_n "(cached) " >&6
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 ac_cv_func_vfork_works=cross
25009else
cristy8b350f62009-11-15 23:12:43 +000025010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025011/* end confdefs.h. */
25012/* Thanks to Paul Eggert for this test. */
25013$ac_includes_default
25014#include <sys/wait.h>
25015#ifdef HAVE_VFORK_H
25016# include <vfork.h>
25017#endif
25018/* On some sparc systems, changes by the child to local and incoming
25019 argument registers are propagated back to the parent. The compiler
25020 is told about this with #include <vfork.h>, but some compilers
25021 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25022 static variable whose address is put into a register that is
25023 clobbered by the vfork. */
25024static void
25025#ifdef __cplusplus
25026sparc_address_test (int arg)
25027# else
25028sparc_address_test (arg) int arg;
25029#endif
25030{
25031 static pid_t child;
25032 if (!child) {
25033 child = vfork ();
25034 if (child < 0) {
25035 perror ("vfork");
25036 _exit(2);
25037 }
25038 if (!child) {
25039 arg = getpid();
25040 write(-1, "", 0);
25041 _exit (arg);
25042 }
25043 }
25044}
25045
25046int
25047main ()
25048{
25049 pid_t parent = getpid ();
25050 pid_t child;
25051
25052 sparc_address_test (0);
25053
25054 child = vfork ();
25055
25056 if (child == 0) {
25057 /* Here is another test for sparc vfork register problems. This
25058 test uses lots of local variables, at least as many local
25059 variables as main has allocated so far including compiler
25060 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25061 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25062 reuse the register of parent for one of the local variables,
25063 since it will think that parent can't possibly be used any more
25064 in this routine. Assigning to the local variable will thus
25065 munge parent in the parent process. */
25066 pid_t
25067 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25068 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25069 /* Convince the compiler that p..p7 are live; otherwise, it might
25070 use the same hardware register for all 8 local variables. */
25071 if (p != p1 || p != p2 || p != p3 || p != p4
25072 || p != p5 || p != p6 || p != p7)
25073 _exit(1);
25074
25075 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25076 from child file descriptors. If the child closes a descriptor
25077 before it execs or exits, this munges the parent's descriptor
25078 as well. Test for this by closing stdout in the child. */
25079 _exit(close(fileno(stdout)) != 0);
25080 } else {
25081 int status;
25082 struct stat st;
25083
25084 while (wait(&status) != child)
25085 ;
25086 return (
25087 /* Was there some problem with vforking? */
25088 child < 0
25089
25090 /* Did the child fail? (This shouldn't happen.) */
25091 || status
25092
25093 /* Did the vfork/compiler bug occur? */
25094 || parent != getpid()
25095
25096 /* Did the file descriptor bug occur? */
25097 || fstat(fileno(stdout), &st) != 0
25098 );
25099 }
25100}
25101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025103 ac_cv_func_vfork_works=yes
25104else
cristy8b350f62009-11-15 23:12:43 +000025105 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025106fi
cristy8b350f62009-11-15 23:12:43 +000025107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25108 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109fi
25110
cristy3ed852e2009-09-05 21:47:34 +000025111fi
cristy8b350f62009-11-15 23:12:43 +000025112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "$ac_cv_func_vfork_works" >&6; }
25114
25115fi;
25116if test "x$ac_cv_func_fork_works" = xcross; then
25117 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025118 { $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 +000025119$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25120fi
25121
25122if test "x$ac_cv_func_vfork_works" = xyes; then
25123
cristy8b350f62009-11-15 23:12:43 +000025124$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025125
25126else
25127
cristy8b350f62009-11-15 23:12:43 +000025128$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025129
25130fi
25131if test "x$ac_cv_func_fork_works" = xyes; then
25132
cristy8b350f62009-11-15 23:12:43 +000025133$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025134
25135fi
25136
cristy8b350f62009-11-15 23:12:43 +000025137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025138$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025139if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025140 $as_echo_n "(cached) " >&6
25141else
cristy8b350f62009-11-15 23:12:43 +000025142 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025143 ac_cv_func_memcmp_working=no
25144else
cristy8b350f62009-11-15 23:12:43 +000025145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025146/* end confdefs.h. */
25147$ac_includes_default
25148int
25149main ()
25150{
25151
25152 /* Some versions of memcmp are not 8-bit clean. */
25153 char c0 = '\100', c1 = '\200', c2 = '\201';
25154 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25155 return 1;
25156
25157 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25158 or more and with at least one buffer not starting on a 4-byte boundary.
25159 William Lewis provided this test program. */
25160 {
25161 char foo[21];
25162 char bar[21];
25163 int i;
25164 for (i = 0; i < 4; i++)
25165 {
25166 char *a = foo + i;
25167 char *b = bar + i;
25168 strcpy (a, "--------01111111");
25169 strcpy (b, "--------10000000");
25170 if (memcmp (a, b, 16) >= 0)
25171 return 1;
25172 }
25173 return 0;
25174 }
25175
25176 ;
25177 return 0;
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 ac_cv_func_memcmp_working=yes
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025184fi
cristy8b350f62009-11-15 23:12:43 +000025185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25186 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187fi
25188
cristy3ed852e2009-09-05 21:47:34 +000025189fi
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo "$ac_cv_func_memcmp_working" >&6; }
25192test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25193 *" memcmp.$ac_objext "* ) ;;
25194 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25195 ;;
25196esac
25197
25198
cristy3ed852e2009-09-05 21:47:34 +000025199for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025200do :
25201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25202ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 cat >>confdefs.h <<_ACEOF
25205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25206_ACEOF
25207
25208fi
25209
25210done
25211
cristy8b350f62009-11-15 23:12:43 +000025212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025213$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025214if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025215 $as_echo_n "(cached) " >&6
25216else
25217 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25218 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25219 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025221/* end confdefs.h. */
25222$ac_includes_default
25223#ifdef HAVE_SYS_SELECT_H
25224# include <sys/select.h>
25225#endif
25226#ifdef HAVE_SYS_SOCKET_H
25227# include <sys/socket.h>
25228#endif
25229
25230int
25231main ()
25232{
25233extern int select ($ac_arg1,
25234 $ac_arg234, $ac_arg234, $ac_arg234,
25235 $ac_arg5);
25236 ;
25237 return 0;
25238}
25239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025240if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025242fi
cristy3ed852e2009-09-05 21:47:34 +000025243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244 done
25245 done
25246done
25247# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025248: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025249
25250fi
cristy8b350f62009-11-15 23:12:43 +000025251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo "$ac_cv_func_select_args" >&6; }
25253ac_save_IFS=$IFS; IFS=','
25254set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25255IFS=$ac_save_IFS
25256shift
25257
25258cat >>confdefs.h <<_ACEOF
25259#define SELECT_TYPE_ARG1 $1
25260_ACEOF
25261
25262
25263cat >>confdefs.h <<_ACEOF
25264#define SELECT_TYPE_ARG234 ($2)
25265_ACEOF
25266
25267
25268cat >>confdefs.h <<_ACEOF
25269#define SELECT_TYPE_ARG5 ($3)
25270_ACEOF
25271
25272rm -f conftest*
25273
cristyda16f162011-02-19 23:52:17 +000025274if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 $as_echo_n "(cached) " >&6
25276else
25277 ac_cv_func_setvbuf_reversed=no
25278fi
25279
25280
cristy8b350f62009-11-15 23:12:43 +000025281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025283if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 $as_echo_n "(cached) " >&6
25285else
cristy8b350f62009-11-15 23:12:43 +000025286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025287/* end confdefs.h. */
25288#include <sys/types.h>
25289#include <signal.h>
25290
25291int
25292main ()
25293{
25294return *(signal (0, 0)) (0) == 1;
25295 ;
25296 return 0;
25297}
25298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 ac_cv_type_signal=int
25301else
cristy8b350f62009-11-15 23:12:43 +000025302 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025303fi
cristy3ed852e2009-09-05 21:47:34 +000025304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305fi
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo "$ac_cv_type_signal" >&6; }
25308
25309cat >>confdefs.h <<_ACEOF
25310#define RETSIGTYPE $ac_cv_type_signal
25311_ACEOF
25312
25313
cristy8b350f62009-11-15 23:12:43 +000025314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025316if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025317 $as_echo_n "(cached) " >&6
25318else
cristy8b350f62009-11-15 23:12:43 +000025319 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025320 ac_cv_func_strtod=no
25321else
cristy8b350f62009-11-15 23:12:43 +000025322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025323/* end confdefs.h. */
25324
25325$ac_includes_default
25326#ifndef strtod
25327double strtod ();
25328#endif
25329int
25330main()
25331{
25332 {
25333 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25334 char *string = " +69";
25335 char *term;
25336 double value;
25337 value = strtod (string, &term);
25338 if (value != 69 || term != (string + 4))
25339 return 1;
25340 }
25341
25342 {
25343 /* Under Solaris 2.4, strtod returns the wrong value for the
25344 terminating character under some conditions. */
25345 char *string = "NaN";
25346 char *term;
25347 strtod (string, &term);
25348 if (term != string && *(term - 1) == 0)
25349 return 1;
25350 }
25351 return 0;
25352}
25353
25354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025355if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 ac_cv_func_strtod=yes
25357else
cristy8b350f62009-11-15 23:12:43 +000025358 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025359fi
cristy8b350f62009-11-15 23:12:43 +000025360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25361 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362fi
25363
cristy3ed852e2009-09-05 21:47:34 +000025364fi
cristy8b350f62009-11-15 23:12:43 +000025365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo "$ac_cv_func_strtod" >&6; }
25367if test $ac_cv_func_strtod = no; then
25368 case " $LIBOBJS " in
25369 *" strtod.$ac_objext "* ) ;;
25370 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25371 ;;
25372esac
25373
cristy8b350f62009-11-15 23:12:43 +000025374ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025375if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025376
cristy3ed852e2009-09-05 21:47:34 +000025377fi
25378
cristy3ed852e2009-09-05 21:47:34 +000025379if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025382if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025383 $as_echo_n "(cached) " >&6
25384else
25385 ac_check_lib_save_LIBS=$LIBS
25386LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025388/* end confdefs.h. */
25389
25390/* Override any GCC internal prototype to avoid an error.
25391 Use char because int might match the return type of a GCC
25392 builtin and then its argument prototype would still apply. */
25393#ifdef __cplusplus
25394extern "C"
25395#endif
25396char pow ();
25397int
25398main ()
25399{
25400return pow ();
25401 ;
25402 return 0;
25403}
25404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025406 ac_cv_lib_m_pow=yes
25407else
cristy8b350f62009-11-15 23:12:43 +000025408 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025409fi
cristy8b350f62009-11-15 23:12:43 +000025410rm -f core conftest.err conftest.$ac_objext \
25411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025412LIBS=$ac_check_lib_save_LIBS
25413fi
cristy8b350f62009-11-15 23:12:43 +000025414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025415$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025416if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 POW_LIB=-lm
25418else
cristy8b350f62009-11-15 23:12:43 +000025419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25421fi
25422
25423fi
25424
25425fi
25426
cristy7d4a1d62011-10-13 15:54:12 +000025427ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25428if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25429 ac_have_decl=1
25430else
25431 ac_have_decl=0
25432fi
25433
25434cat >>confdefs.h <<_ACEOF
25435#define HAVE_DECL_STRERROR_R $ac_have_decl
25436_ACEOF
25437
25438for ac_func in strerror_r
25439do :
25440 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25441if test "x$ac_cv_func_strerror_r" = xyes; then :
25442 cat >>confdefs.h <<_ACEOF
25443#define HAVE_STRERROR_R 1
25444_ACEOF
25445
25446fi
25447done
25448
25449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25450$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25451if ${ac_cv_func_strerror_r_char_p+:} false; then :
25452 $as_echo_n "(cached) " >&6
25453else
25454
25455 ac_cv_func_strerror_r_char_p=no
25456 if test $ac_cv_have_decl_strerror_r = yes; then
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h. */
25459$ac_includes_default
25460int
25461main ()
25462{
25463
25464 char buf[100];
25465 char x = *strerror_r (0, buf, sizeof buf);
25466 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025467 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025468
25469 ;
25470 return 0;
25471}
25472_ACEOF
25473if ac_fn_c_try_compile "$LINENO"; then :
25474 ac_cv_func_strerror_r_char_p=yes
25475fi
25476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25477 else
25478 # strerror_r is not declared. Choose between
25479 # systems that have relatively inaccessible declarations for the
25480 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25481 # former has a strerror_r that returns char*, while the latter
25482 # has a strerror_r that returns `int'.
25483 # This test should segfault on the DEC system.
25484 if test "$cross_compiling" = yes; then :
25485 :
25486else
25487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488/* end confdefs.h. */
25489$ac_includes_default
25490 extern char *strerror_r ();
25491int
25492main ()
25493{
25494char buf[100];
25495 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025496 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025497 ;
25498 return 0;
25499}
25500_ACEOF
25501if ac_fn_c_try_run "$LINENO"; then :
25502 ac_cv_func_strerror_r_char_p=yes
25503fi
25504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25505 conftest.$ac_objext conftest.beam conftest.$ac_ext
25506fi
25507
25508 fi
25509
25510fi
25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25512$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25513if test $ac_cv_func_strerror_r_char_p = yes; then
25514
25515$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25516
25517fi
25518
cristy3ed852e2009-09-05 21:47:34 +000025519for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025520do :
25521 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025522if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025524#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025525_ACEOF
25526
cristy8b350f62009-11-15 23:12:43 +000025527ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025528if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025529
cristy8b350f62009-11-15 23:12:43 +000025530$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025531
25532fi
25533
25534fi
25535done
25536
25537
25538
cristy161b9262010-03-20 19:34:32 +000025539#
25540# Find math library
25541#
25542MATH_LIBS=''
25543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25544$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025545if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025546 $as_echo_n "(cached) " >&6
25547else
25548 ac_check_lib_save_LIBS=$LIBS
25549LIBS="-lm $LIBS"
25550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551/* end confdefs.h. */
25552
25553/* Override any GCC internal prototype to avoid an error.
25554 Use char because int might match the return type of a GCC
25555 builtin and then its argument prototype would still apply. */
25556#ifdef __cplusplus
25557extern "C"
25558#endif
25559char sqrt ();
25560int
25561main ()
25562{
25563return sqrt ();
25564 ;
25565 return 0;
25566}
25567_ACEOF
25568if ac_fn_c_try_link "$LINENO"; then :
25569 ac_cv_lib_m_sqrt=yes
25570else
25571 ac_cv_lib_m_sqrt=no
25572fi
25573rm -f core conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext conftest.$ac_ext
25575LIBS=$ac_check_lib_save_LIBS
25576fi
25577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25578$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025579if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025580 MATH_LIBS="-lm"
25581fi
25582
25583LIBS="$MATH_LIBS $LIBS"
25584
25585
cristy568c2d42012-07-27 01:41:20 +000025586for 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 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 +000025587do :
25588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025590if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025591 cat >>confdefs.h <<_ACEOF
25592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25593_ACEOF
25594
25595fi
25596done
25597
25598
cristye43a45e2009-09-28 14:49:00 +000025599#
25600# Check for clock_gettime().
25601#
cristy8b350f62009-11-15 23:12:43 +000025602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025603$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025604if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025605 $as_echo_n "(cached) " >&6
25606else
25607 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025609/* end confdefs.h. */
25610
25611/* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25614#ifdef __cplusplus
25615extern "C"
25616#endif
25617char clock_gettime ();
25618int
25619main ()
25620{
25621return clock_gettime ();
25622 ;
25623 return 0;
25624}
25625_ACEOF
25626for ac_lib in '' rt; do
25627 if test -z "$ac_lib"; then
25628 ac_res="none required"
25629 else
25630 ac_res=-l$ac_lib
25631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25632 fi
cristy8b350f62009-11-15 23:12:43 +000025633 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025634 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025635fi
cristy8b350f62009-11-15 23:12:43 +000025636rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025638 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025639 break
25640fi
25641done
cristyda16f162011-02-19 23:52:17 +000025642if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025643
cristye43a45e2009-09-28 14:49:00 +000025644else
25645 ac_cv_search_clock_gettime=no
25646fi
25647rm conftest.$ac_ext
25648LIBS=$ac_func_search_save_LIBS
25649fi
cristy8b350f62009-11-15 23:12:43 +000025650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025651$as_echo "$ac_cv_search_clock_gettime" >&6; }
25652ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025653if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25655
25656
cristy8b350f62009-11-15 23:12:43 +000025657$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025658
cristy8b350f62009-11-15 23:12:43 +000025659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025660$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025662/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025663
25664 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025665int
25666main ()
25667{
25668clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025669 ;
25670 return 0;
25671}
25672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025673if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025674
cristy09b53e12011-10-14 12:47:22 +000025675 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25676$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025677
cristy8b350f62009-11-15 23:12:43 +000025678$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025679
25680
25681else
cristy09b53e12011-10-14 12:47:22 +000025682 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25683$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025684
25685fi
cristye43a45e2009-09-28 14:49:00 +000025686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25687
25688else
25689
cristy8b350f62009-11-15 23:12:43 +000025690 for ac_func in gettimeofday ftime
25691do :
25692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025695 cat >>confdefs.h <<_ACEOF
25696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25697_ACEOF
25698 break
25699fi
25700done
25701
25702
25703
25704fi
25705
25706
cristy3ed852e2009-09-05 21:47:34 +000025707########
25708#
25709# Check for function prototypes
25710#
25711########
25712
cristy8b350f62009-11-15 23:12:43 +000025713ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025714#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025715"
cristyda16f162011-02-19 23:52:17 +000025716if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025717 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025718else
cristy8b350f62009-11-15 23:12:43 +000025719 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025720fi
25721
cristy3ed852e2009-09-05 21:47:34 +000025722cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025723#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025725ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025726#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025727"
cristyda16f162011-02-19 23:52:17 +000025728if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025729 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025730else
cristy8b350f62009-11-15 23:12:43 +000025731 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025732fi
25733
cristy3ed852e2009-09-05 21:47:34 +000025734cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025735#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025736_ACEOF
25737
25738
cristy8b350f62009-11-15 23:12:43 +000025739ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025740#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025741"
cristyda16f162011-02-19 23:52:17 +000025742if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025743 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025744else
cristy8b350f62009-11-15 23:12:43 +000025745 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025746fi
25747
cristy3ed852e2009-09-05 21:47:34 +000025748cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025749#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025750_ACEOF
25751
25752
cristy8b350f62009-11-15 23:12:43 +000025753ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025754#include <stdio.h>
25755#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025756"
cristyda16f162011-02-19 23:52:17 +000025757if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025758 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025759else
cristy8b350f62009-11-15 23:12:43 +000025760 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025761fi
25762
cristy3ed852e2009-09-05 21:47:34 +000025763cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025764#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025765_ACEOF
25766
25767
cristy3ed852e2009-09-05 21:47:34 +000025768########
25769#
25770# C++ Support Tests (For Magick++)
25771#
25772########
25773have_magick_plus_plus='no'
25774if test "$with_magick_plus_plus" = 'yes'; then
25775 OLIBS="$LIBS"
25776 LIBS=''
25777 ac_ext=cpp
25778ac_cpp='$CXXCPP $CPPFLAGS'
25779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25782
25783
25784 # Full set of headers used...
25785 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25786 # functional iomanip iosfwd iostream iterator list string strstream utility
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 ac_ext=cpp
25794ac_cpp='$CXXCPP $CPPFLAGS'
25795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25798if test -z "$CXX"; then
25799 if test -n "$CCC"; then
25800 CXX=$CCC
25801 else
25802 if test -n "$ac_tool_prefix"; then
25803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25804 do
25805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025809if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025810 $as_echo_n "(cached) " >&6
25811else
25812 if test -n "$CXX"; then
25813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25814else
25815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25816for as_dir in $PATH
25817do
25818 IFS=$as_save_IFS
25819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025824 break 2
25825 fi
25826done
cristy8b350f62009-11-15 23:12:43 +000025827 done
cristy3ed852e2009-09-05 21:47:34 +000025828IFS=$as_save_IFS
25829
25830fi
25831fi
25832CXX=$ac_cv_prog_CXX
25833if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025835$as_echo "$CXX" >&6; }
25836else
cristy8b350f62009-11-15 23:12:43 +000025837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838$as_echo "no" >&6; }
25839fi
25840
25841
25842 test -n "$CXX" && break
25843 done
25844fi
25845if test -z "$CXX"; then
25846 ac_ct_CXX=$CXX
25847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25848do
25849 # Extract the first word of "$ac_prog", so it can be a program name with args.
25850set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025853if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 $as_echo_n "(cached) " >&6
25855else
25856 if test -n "$ac_ct_CXX"; then
25857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25858else
25859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25860for as_dir in $PATH
25861do
25862 IFS=$as_save_IFS
25863 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025866 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025868 break 2
25869 fi
25870done
cristy8b350f62009-11-15 23:12:43 +000025871 done
cristy3ed852e2009-09-05 21:47:34 +000025872IFS=$as_save_IFS
25873
25874fi
25875fi
25876ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25877if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025879$as_echo "$ac_ct_CXX" >&6; }
25880else
cristy8b350f62009-11-15 23:12:43 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo "no" >&6; }
25883fi
25884
25885
25886 test -n "$ac_ct_CXX" && break
25887done
25888
25889 if test "x$ac_ct_CXX" = x; then
25890 CXX="g++"
25891 else
25892 case $cross_compiling:$ac_tool_warned in
25893yes:)
cristy8b350f62009-11-15 23:12:43 +000025894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25896ac_tool_warned=yes ;;
25897esac
25898 CXX=$ac_ct_CXX
25899 fi
25900fi
25901
25902 fi
25903fi
25904# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025905$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025906set X $ac_compile
25907ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025908for ac_option in --version -v -V -qversion; do
25909 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025910case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913esac
cristy8b350f62009-11-15 23:12:43 +000025914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25915$as_echo "$ac_try_echo"; } >&5
25916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025917 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025918 if test -s conftest.err; then
25919 sed '10a\
25920... rest of stderr output deleted ...
25921 10q' conftest.err >conftest.er1
25922 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025923 fi
cristycd4c5312009-11-22 01:19:08 +000025924 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }
25927done
cristy3ed852e2009-09-05 21:47:34 +000025928
cristy8b350f62009-11-15 23:12:43 +000025929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025930$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025931if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025932 $as_echo_n "(cached) " >&6
25933else
cristy8b350f62009-11-15 23:12:43 +000025934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025935/* end confdefs.h. */
25936
25937int
25938main ()
25939{
25940#ifndef __GNUC__
25941 choke me
25942#endif
25943
25944 ;
25945 return 0;
25946}
25947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025948if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 ac_compiler_gnu=yes
25950else
cristy8b350f62009-11-15 23:12:43 +000025951 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025952fi
cristy3ed852e2009-09-05 21:47:34 +000025953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25954ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25955
25956fi
cristy8b350f62009-11-15 23:12:43 +000025957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025958$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25959if test $ac_compiler_gnu = yes; then
25960 GXX=yes
25961else
25962 GXX=
25963fi
25964ac_test_CXXFLAGS=${CXXFLAGS+set}
25965ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025968if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025969 $as_echo_n "(cached) " >&6
25970else
25971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25972 ac_cxx_werror_flag=yes
25973 ac_cv_prog_cxx_g=no
25974 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978int
25979main ()
25980{
25981
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_prog_cxx_g=yes
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 CXXFLAGS=""
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025991/* end confdefs.h. */
25992
25993int
25994main ()
25995{
25996
25997 ;
25998 return 0;
25999}
26000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026001if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026002
cristy8b350f62009-11-15 23:12:43 +000026003else
26004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026005 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026007/* end confdefs.h. */
26008
26009int
26010main ()
26011{
26012
26013 ;
26014 return 0;
26015}
26016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026017if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026019fi
cristy3ed852e2009-09-05 21:47:34 +000026020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021fi
cristy3ed852e2009-09-05 21:47:34 +000026022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26023fi
cristy3ed852e2009-09-05 21:47:34 +000026024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26026fi
cristy8b350f62009-11-15 23:12:43 +000026027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo "$ac_cv_prog_cxx_g" >&6; }
26029if test "$ac_test_CXXFLAGS" = set; then
26030 CXXFLAGS=$ac_save_CXXFLAGS
26031elif test $ac_cv_prog_cxx_g = yes; then
26032 if test "$GXX" = yes; then
26033 CXXFLAGS="-g -O2"
26034 else
26035 CXXFLAGS="-g"
26036 fi
26037else
26038 if test "$GXX" = yes; then
26039 CXXFLAGS="-O2"
26040 else
26041 CXXFLAGS=
26042 fi
26043fi
26044ac_ext=cpp
26045ac_cpp='$CXXCPP $CPPFLAGS'
26046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26049
cristy73bd4a52010-10-05 11:24:23 +000026050depcc="$CXX" am_compiler_list=
26051
26052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26053$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026054if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026055 $as_echo_n "(cached) " >&6
26056else
26057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26058 # We make a subdir and do the tests there. Otherwise we can end up
26059 # making bogus files that we don't know about and never remove. For
26060 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026061 # making a dummy file named 'D' -- because '-MD' means "put the output
26062 # in D".
cristy7247bba2012-02-05 16:37:27 +000026063 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026064 mkdir conftest.dir
26065 # Copy depcomp to subdir because otherwise we won't find it if we're
26066 # using a relative directory.
26067 cp "$am_depcomp" conftest.dir
26068 cd conftest.dir
26069 # We will build objects and dependencies in a subdirectory because
26070 # it helps to detect inapplicable dependency modes. For instance
26071 # both Tru64's cc and ICC support -MD to output dependencies as a
26072 # side effect of compilation, but ICC will put the dependencies in
26073 # the current directory while Tru64 will put them in the object
26074 # directory.
26075 mkdir sub
26076
26077 am_cv_CXX_dependencies_compiler_type=none
26078 if test "$am_compiler_list" = ""; then
26079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26080 fi
26081 am__universal=false
26082 case " $depcc " in #(
26083 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26084 esac
26085
26086 for depmode in $am_compiler_list; do
26087 # Setup a source with many dependencies, because some compilers
26088 # like to wrap large dependency lists on column 80 (with \), and
26089 # we should not choose a depcomp mode which is confused by this.
26090 #
26091 # We need to recreate these files for each test, as the compiler may
26092 # overwrite some of them when testing with obscure command lines.
26093 # This happens at least with the AIX C compiler.
26094 : > sub/conftest.c
26095 for i in 1 2 3 4 5 6; do
26096 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026097 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26098 # Solaris 10 /bin/sh.
26099 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026100 done
26101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26102
cristyc0890a62012-07-19 00:18:20 +000026103 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026104 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026105 # handle '-M -o', and we need to detect this. Also, some Intel
26106 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026107 am__obj=sub/conftest.${OBJEXT-o}
26108 am__minus_obj="-o $am__obj"
26109 case $depmode in
26110 gcc)
26111 # This depmode causes a compiler race in universal mode.
26112 test "$am__universal" = false || continue
26113 ;;
26114 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026115 # After this tag, mechanisms are not by side-effect, so they'll
26116 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026117 if test "x$enable_dependency_tracking" = xyes; then
26118 continue
26119 else
26120 break
26121 fi
26122 ;;
cristy7247bba2012-02-05 16:37:27 +000026123 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026124 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026125 # not run yet. These depmodes are late enough in the game, and
26126 # so weak that their functioning should not be impacted.
26127 am__obj=conftest.${OBJEXT-o}
26128 am__minus_obj=
26129 ;;
26130 none) break ;;
26131 esac
26132 if depmode=$depmode \
26133 source=sub/conftest.c object=$am__obj \
26134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26135 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26136 >/dev/null 2>conftest.err &&
26137 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26139 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26141 # icc doesn't choke on unknown options, it will just issue warnings
26142 # or remarks (even with -Werror). So we grep stderr for any message
26143 # that says an option was ignored or not supported.
26144 # When given -MP, icc 7.0 and 7.1 complain thusly:
26145 # icc: Command line warning: ignoring option '-M'; no argument required
26146 # The diagnosis changed in icc 8.0:
26147 # icc: Command line remark: option '-MP' not supported
26148 if (grep 'ignoring option' conftest.err ||
26149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26150 am_cv_CXX_dependencies_compiler_type=$depmode
26151 break
26152 fi
26153 fi
26154 done
26155
26156 cd ..
26157 rm -rf conftest.dir
26158else
26159 am_cv_CXX_dependencies_compiler_type=none
26160fi
26161
26162fi
26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26164$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26165CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26166
26167 if
26168 test "x$enable_dependency_tracking" != xno \
26169 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26170 am__fastdepCXX_TRUE=
26171 am__fastdepCXX_FALSE='#'
26172else
26173 am__fastdepCXX_TRUE='#'
26174 am__fastdepCXX_FALSE=
26175fi
26176
26177
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26179$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026180if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026181 $as_echo_n "(cached) " >&6
26182else
26183
26184 ac_ext=cpp
26185ac_cpp='$CXXCPP $CPPFLAGS'
26186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26189
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191/* end confdefs.h. */
26192
26193int f(int x){return 1;}
26194int f(char x){return 1;}
26195int f(bool x){return 1;}
26196
26197int
26198main ()
26199{
26200bool b = true; return f(b);
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205if ac_fn_cxx_try_compile "$LINENO"; then :
26206 ax_cv_cxx_bool=yes
26207else
26208 ax_cv_cxx_bool=no
26209fi
26210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 ac_ext=cpp
26212ac_cpp='$CXXCPP $CPPFLAGS'
26213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26216
26217
26218fi
26219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26220$as_echo "$ax_cv_cxx_bool" >&6; }
26221if test "$ax_cv_cxx_bool" = yes; then
26222
26223$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26224
26225fi
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26228$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026229if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026230 $as_echo_n "(cached) " >&6
26231else
26232
26233 ac_ext=cpp
26234ac_cpp='$CXXCPP $CPPFLAGS'
26235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26238
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h. */
26241namespace Outer { namespace Inner { int i = 0; }}
26242int
26243main ()
26244{
26245using namespace Outer::Inner; return i;
26246 ;
26247 return 0;
26248}
26249_ACEOF
26250if ac_fn_cxx_try_compile "$LINENO"; then :
26251 ax_cv_cxx_namespaces=yes
26252else
26253 ax_cv_cxx_namespaces=no
26254fi
26255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 ac_ext=cpp
26257ac_cpp='$CXXCPP $CPPFLAGS'
26258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26261
26262
26263fi
26264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26265$as_echo "$ax_cv_cxx_namespaces" >&6; }
26266if test "$ax_cv_cxx_namespaces" = yes; then
26267
26268$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26269
26270fi
26271
26272
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26274$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026275if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026276 $as_echo_n "(cached) " >&6
26277else
26278
26279 ac_ext=cpp
26280ac_cpp='$CXXCPP $CPPFLAGS'
26281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26284
26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286/* end confdefs.h. */
26287#include <iostream>
26288 std::istream& is = std::cin;
26289int
26290main ()
26291{
26292
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297if ac_fn_cxx_try_compile "$LINENO"; then :
26298 ax_cv_cxx_have_std_namespace=yes
26299else
26300 ax_cv_cxx_have_std_namespace=no
26301fi
26302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26303 ac_ext=cpp
26304ac_cpp='$CXXCPP $CPPFLAGS'
26305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26308
26309
26310fi
26311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26312$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26313 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26314
26315$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26316
26317 fi
26318
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26320$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026321if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026322 $as_echo_n "(cached) " >&6
26323else
26324
26325
26326 ac_ext=cpp
26327ac_cpp='$CXXCPP $CPPFLAGS'
26328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26331
26332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26333/* end confdefs.h. */
26334#include <iostream>
26335#include <map>
26336#include <iomanip>
26337#include <cmath>
26338#ifdef HAVE_NAMESPACES
26339using namespace std;
26340#endif
26341int
26342main ()
26343{
26344return 0;
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349if ac_fn_cxx_try_compile "$LINENO"; then :
26350 ac_cv_cxx_have_std_libs=yes
26351else
26352 ac_cv_cxx_have_std_libs=no
26353fi
26354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26355 ac_ext=cpp
26356ac_cpp='$CXXCPP $CPPFLAGS'
26357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26360
26361
26362fi
26363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26364$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26365if test "$ac_cv_cxx_have_std_libs" = yes; then
26366
26367$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26368
26369fi
26370
cristy3ed852e2009-09-05 21:47:34 +000026371
26372 OPENMP_CXXFLAGS=
26373 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026374if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 enableval=$enable_openmp;
26376fi
26377
26378 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26380$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026381if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026382 $as_echo_n "(cached) " >&6
26383else
cristy8b350f62009-11-15 23:12:43 +000026384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026386
26387#ifndef _OPENMP
26388 choke me
26389#endif
26390#include <omp.h>
26391int main () { return omp_get_num_threads (); }
26392
26393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026394if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 ac_cv_prog_cxx_openmp='none needed'
26396else
cristy8b350f62009-11-15 23:12:43 +000026397 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026398 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26399 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026400 ac_save_CXXFLAGS=$CXXFLAGS
26401 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026404
26405#ifndef _OPENMP
26406 choke me
26407#endif
26408#include <omp.h>
26409int main () { return omp_get_num_threads (); }
26410
26411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026412if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026413 ac_cv_prog_cxx_openmp=$ac_option
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 +000026417 CXXFLAGS=$ac_save_CXXFLAGS
26418 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26419 break
26420 fi
26421 done
26422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26428 case $ac_cv_prog_cxx_openmp in #(
26429 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026430 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026431 *)
cristy8b350f62009-11-15 23:12:43 +000026432 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026433 esac
26434 fi
26435
26436
26437 ac_ext=c
26438ac_cpp='$CPP $CPPFLAGS'
26439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441ac_compiler_gnu=$ac_cv_c_compiler_gnu
26442
26443
cristy8b350f62009-11-15 23:12:43 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26446 if \
cristy964cb7f2010-04-25 23:18:00 +000026447 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026448 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026449 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026450 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026451 have_magick_plus_plus='yes'
26452 else
26453 have_magick_plus_plus='no (failed tests)'
26454 fi
cristy09b53e12011-10-14 12:47:22 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26456$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026457 LIBS="$OLIBS"
26458fi
cristy73bd4a52010-10-05 11:24:23 +000026459 if test "$have_magick_plus_plus" = 'yes'; then
26460 WITH_MAGICK_PLUS_PLUS_TRUE=
26461 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26462else
26463 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26464 WITH_MAGICK_PLUS_PLUS_FALSE=
26465fi
26466
cristy3ed852e2009-09-05 21:47:34 +000026467
26468# Only check for delegate libraries in subdirectories if requested.
26469if test "$enable_delegate_build" != 'no'; then
26470 # Check for delegate sub-directories and add -I & -L options as required.
26471 # This presumes that delegates are installed as detailed in the ImageMagick
26472 # README. If delegates are installed in a standard location where the
26473 # compiler will automatically find them then these options should not be
26474 # required.
26475
26476 #
26477 # Most delegates have includes in the same directory as the library, but not all...
26478 #
26479 # Includes
cristy2542fc62011-12-06 17:50:25 +000026480 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026481 if test -d "$builddir/$dir"; then
26482 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26483 else
26484 if test -d "$srcdirfull/$dir"; then
26485 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26486 fi
26487 fi
26488 done
26489
26490 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026491 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026492 if test -d "$builddir/$dir/.libs"; then
26493 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26494 else
26495 if test -d "$srcdirfull/$dir/.libs"; then
26496 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26497 fi
26498 fi
26499 if test -d "$builddir/$dir"; then
26500 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26501 else
26502 if test -d "$srcdirfull/$dir"; then
26503 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26504 fi
26505 fi
26506 done
26507fi
26508
26509# Assume that delegate headers reside under same directory as ImageMagick
26510# installation prefix.
26511MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26512
26513#
26514# Find the X11 RGB database
26515#
cristy8b350f62009-11-15 23:12:43 +000026516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026518if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 $as_echo_n "(cached) " >&6
26520else
26521 # Look for the header file in a standard set of common directories.
26522# Check X11 before X11Rn because it is often a symlink to the current release.
26523 for ac_dir in \
26524 /lib/usr/lib/X11 \
26525 /usr/X11/lib \
26526 /usr/X11R4/lib \
26527 /usr/X11R5/lib \
26528 /usr/X11R6/lib \
26529 /usr/X11R7/lib \
26530 /usr/X386/lib \
26531 /usr/XFree86/lib/X11 \
26532 /usr/athena/lib \
26533 /usr/lib \
26534 /usr/lib/X11 \
26535 /usr/lib/X11R4 \
26536 /usr/lib/X11R5 \
26537 /usr/lib/X11R6 \
26538 /usr/lib/X11R7 \
26539 /usr/local/X11/lib \
26540 /usr/local/X11R4/lib \
26541 /usr/local/X11R5/lib \
26542 /usr/local/X11R6/lib \
26543 /usr/local/lib \
26544 /usr/local/lib/X11 \
26545 /usr/local/lib/X11R4 \
26546 /usr/local/lib/X11R5 \
26547 /usr/local/lib/X11R6 \
26548 /usr/local/lib/X11R7 \
26549 /usr/local/x11r5/lib \
26550 /usr/lpp/Xamples/lib \
26551 /usr/openwin/lib \
26552 /usr/openwin/share/lib \
26553 /usr/unsupported/lib \
26554 /usr/x386/lib \
26555 ; do
26556 if test -f "$ac_dir/X11/rgb.txt"; then
26557 im_cv_x_configure="$ac_dir/X11/"
26558 break
26559 elif test -f "$ac_dir/rgb.txt"; then
26560 im_cv_x_configure="$ac_dir/"
26561 break
26562 fi
26563
26564 done
26565fi
cristy8b350f62009-11-15 23:12:43 +000026566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo "$im_cv_x_configure" >&6; }
26568X11_CONFIGURE_PATH="$im_cv_x_configure"
26569case "${build_os}" in
26570 mingw* )
26571 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26572 ;;
26573esac
26574
26575cat >>confdefs.h <<_ACEOF
26576#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26577_ACEOF
26578
26579
26580#
26581# Find OpenMP library
26582#
26583GOMP_LIBS=''
26584if test "$enable_openmp" != 'no'; then
26585 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026586 # Open64 (passes for GCC but uses different OpenMP implementation)
26587 if test "x$GOMP_LIBS" = x ; then
26588 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26590$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26591if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26592 $as_echo_n "(cached) " >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-lopenmp $LIBS"
26596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597/* end confdefs.h. */
26598
26599/* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26602#ifdef __cplusplus
26603extern "C"
26604#endif
26605char omp_get_num_procs ();
26606int
26607main ()
26608{
26609return omp_get_num_procs ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
26614if ac_fn_c_try_link "$LINENO"; then :
26615 ac_cv_lib_openmp_omp_get_num_procs=yes
26616else
26617 ac_cv_lib_openmp_omp_get_num_procs=no
26618fi
26619rm -f core conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
26621LIBS=$ac_check_lib_save_LIBS
26622fi
26623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26624$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26625if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26626 GOMP_LIBS="-lopenmp"
26627fi
26628
26629 fi
26630 fi
26631 # GCC
26632 if test "x$GOMP_LIBS" = x ; then
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026635if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 $as_echo_n "(cached) " >&6
26637else
26638 ac_check_lib_save_LIBS=$LIBS
26639LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026641/* end confdefs.h. */
26642
26643/* Override any GCC internal prototype to avoid an error.
26644 Use char because int might match the return type of a GCC
26645 builtin and then its argument prototype would still apply. */
26646#ifdef __cplusplus
26647extern "C"
26648#endif
26649char GOMP_parallel_start ();
26650int
26651main ()
26652{
26653return GOMP_parallel_start ();
26654 ;
26655 return 0;
26656}
26657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026658if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 ac_cv_lib_gomp_GOMP_parallel_start=yes
26660else
cristy8b350f62009-11-15 23:12:43 +000026661 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026662fi
cristy8b350f62009-11-15 23:12:43 +000026663rm -f core conftest.err conftest.$ac_objext \
26664 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026665LIBS=$ac_check_lib_save_LIBS
26666fi
cristy8b350f62009-11-15 23:12:43 +000026667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026669if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 GOMP_LIBS="-lgomp"
26671fi
cristy18307f12011-12-30 01:20:16 +000026672
26673 fi
cristy3ed852e2009-09-05 21:47:34 +000026674 else
cristy18307f12011-12-30 01:20:16 +000026675 # Sun CC
26676 if test "x$GOMP_LIBS" = x ; then
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026679if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 $as_echo_n "(cached) " >&6
26681else
26682 ac_check_lib_save_LIBS=$LIBS
26683LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026685/* end confdefs.h. */
26686
26687/* Override any GCC internal prototype to avoid an error.
26688 Use char because int might match the return type of a GCC
26689 builtin and then its argument prototype would still apply. */
26690#ifdef __cplusplus
26691extern "C"
26692#endif
26693char sunw_mp_register_warn ();
26694int
26695main ()
26696{
26697return sunw_mp_register_warn ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26704else
cristy8b350f62009-11-15 23:12:43 +000026705 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026706fi
cristy8b350f62009-11-15 23:12:43 +000026707rm -f core conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026709LIBS=$ac_check_lib_save_LIBS
26710fi
cristy8b350f62009-11-15 23:12:43 +000026711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026713if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 GOMP_LIBS="-lmtsk"
26715fi
cristy18307f12011-12-30 01:20:16 +000026716
26717 fi
26718 # AIX xlc
26719 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026722if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026723 $as_echo_n "(cached) " >&6
26724else
26725 ac_check_lib_save_LIBS=$LIBS
26726LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026728/* end confdefs.h. */
26729
26730/* Override any GCC internal prototype to avoid an error.
26731 Use char because int might match the return type of a GCC
26732 builtin and then its argument prototype would still apply. */
26733#ifdef __cplusplus
26734extern "C"
26735#endif
26736char _xlsmpFlush ();
26737int
26738main ()
26739{
26740return _xlsmpFlush ();
26741 ;
26742 return 0;
26743}
26744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026746 ac_cv_lib_xlsmp__xlsmpFlush=yes
26747else
cristy8b350f62009-11-15 23:12:43 +000026748 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026749fi
cristy8b350f62009-11-15 23:12:43 +000026750rm -f core conftest.err conftest.$ac_objext \
26751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026752LIBS=$ac_check_lib_save_LIBS
26753fi
cristy8b350f62009-11-15 23:12:43 +000026754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026756if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 GOMP_LIBS="-lxlsmp"
26758fi
cristy18307f12011-12-30 01:20:16 +000026759
26760 fi
26761 # SGI IRIX 6.5 MIPSpro C/C++
26762 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026764$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026765if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026766 $as_echo_n "(cached) " >&6
26767else
26768 ac_check_lib_save_LIBS=$LIBS
26769LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026771/* end confdefs.h. */
26772
26773/* Override any GCC internal prototype to avoid an error.
26774 Use char because int might match the return type of a GCC
26775 builtin and then its argument prototype would still apply. */
26776#ifdef __cplusplus
26777extern "C"
26778#endif
26779char mp_destroy ();
26780int
26781main ()
26782{
26783return mp_destroy ();
26784 ;
26785 return 0;
26786}
26787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026789 ac_cv_lib_mp_mp_destroy=yes
26790else
cristy8b350f62009-11-15 23:12:43 +000026791 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026792fi
cristy8b350f62009-11-15 23:12:43 +000026793rm -f core conftest.err conftest.$ac_objext \
26794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026795LIBS=$ac_check_lib_save_LIBS
26796fi
cristy8b350f62009-11-15 23:12:43 +000026797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 GOMP_LIBS="-lmp"
26801fi
cristy18307f12011-12-30 01:20:16 +000026802
26803 fi
cristy3ed852e2009-09-05 21:47:34 +000026804 fi
26805 LIBS="$GOMP_LIBS $LIBS"
26806fi
26807
26808
26809#
26810# Find Posix threads library
26811#
26812THREAD_LIBS=''
26813if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26814
26815 if test "x$PTHREAD_LIBS" = "x"; then
26816 case "${host_cpu}-${host_os}" in
26817 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026818
26819
26820
26821ac_ext=c
26822ac_cpp='$CPP $CPPFLAGS'
26823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825ac_compiler_gnu=$ac_cv_c_compiler_gnu
26826
26827magick_pthread_lib_ok=no
26828
26829LIB=-lc_r
26830save_LIBS="$LIBS"
26831LIBS="$LIBS $LIB"
26832
26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26834$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836/* end confdefs.h. */
26837#include <pthread.h>
26838int
26839main ()
26840{
26841 pthread_t th;
26842 pthread_join(th, 0);
26843 pthread_attr_init(0);
26844 pthread_cleanup_push(0, 0);
26845 pthread_create(0,0,0,0);
26846 pthread_cleanup_pop(0);
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851if ac_fn_c_try_link "$LINENO"; then :
26852 magick_pthread_lib_ok=yes
26853fi
26854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
26856
26857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26858$as_echo "${magick_pthread_lib_ok}" >&6; }
26859if test "$magick_pthread_lib_ok" = yes
26860then
26861 PTHREAD_LIBS=-lc_r
26862 :
26863else
26864
26865 :
26866fi
26867
26868LIBS="$save_LIBS"
26869
26870ac_ext=c
26871ac_cpp='$CPP $CPPFLAGS'
26872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26874ac_compiler_gnu=$ac_cv_c_compiler_gnu
26875
26876 ;;
cristy3ed852e2009-09-05 21:47:34 +000026877 esac
26878 fi
26879
26880 for lib in pthread pthreads; do
26881 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026882
26883
26884
26885ac_ext=c
26886ac_cpp='$CPP $CPPFLAGS'
26887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26889ac_compiler_gnu=$ac_cv_c_compiler_gnu
26890
26891magick_pthread_lib_ok=no
26892
26893LIB=-l$lib
26894save_LIBS="$LIBS"
26895LIBS="$LIBS $LIB"
26896
26897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26898$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26900/* end confdefs.h. */
26901#include <pthread.h>
26902int
26903main ()
26904{
26905 pthread_t th;
26906 pthread_join(th, 0);
26907 pthread_attr_init(0);
26908 pthread_cleanup_push(0, 0);
26909 pthread_create(0,0,0,0);
26910 pthread_cleanup_pop(0);
26911 ;
26912 return 0;
26913}
26914_ACEOF
26915if ac_fn_c_try_link "$LINENO"; then :
26916 magick_pthread_lib_ok=yes
26917fi
26918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
26920
26921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26922$as_echo "${magick_pthread_lib_ok}" >&6; }
26923if test "$magick_pthread_lib_ok" = yes
26924then
26925 PTHREAD_LIBS=-l$lib
26926 :
26927else
26928
26929 :
26930fi
26931
26932LIBS="$save_LIBS"
26933
26934ac_ext=c
26935ac_cpp='$CPP $CPPFLAGS'
26936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938ac_compiler_gnu=$ac_cv_c_compiler_gnu
26939
26940
cristy3ed852e2009-09-05 21:47:34 +000026941 fi
26942 done
26943
26944 THREAD_LIBS="$PTHREAD_LIBS"
26945 LIBS="$LIBS $THREAD_LIBS"
26946fi
26947
26948
26949#
26950# Check for umem.
26951#
26952have_umem='no'
26953UMEM_LIBS=''
26954if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26958$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026959 failed=0
26960 passed=0
cristy8b350f62009-11-15 23:12:43 +000026961 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026962if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026963 passed=`expr $passed + 1`
26964else
26965 failed=`expr $failed + 1`
26966fi
26967
26968
cristy8b350f62009-11-15 23:12:43 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026970$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026971if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 $as_echo_n "(cached) " >&6
26973else
26974 ac_check_lib_save_LIBS=$LIBS
26975LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026977/* end confdefs.h. */
26978
26979/* Override any GCC internal prototype to avoid an error.
26980 Use char because int might match the return type of a GCC
26981 builtin and then its argument prototype would still apply. */
26982#ifdef __cplusplus
26983extern "C"
26984#endif
26985char umem_alloc ();
26986int
26987main ()
26988{
26989return umem_alloc ();
26990 ;
26991 return 0;
26992}
26993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026995 ac_cv_lib_umem_umem_alloc=yes
26996else
cristy8b350f62009-11-15 23:12:43 +000026997 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026998fi
cristy8b350f62009-11-15 23:12:43 +000026999rm -f core conftest.err conftest.$ac_objext \
27000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027001LIBS=$ac_check_lib_save_LIBS
27002fi
cristy8b350f62009-11-15 23:12:43 +000027003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027005if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027006 passed=`expr $passed + 1`
27007else
27008 failed=`expr $failed + 1`
27009fi
27010
cristy8b350f62009-11-15 23:12:43 +000027011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027012$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027013if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027014 $as_echo_n "(cached) " >&6
27015else
27016 ac_check_lib_save_LIBS=$LIBS
27017LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027019/* end confdefs.h. */
27020
27021/* Override any GCC internal prototype to avoid an error.
27022 Use char because int might match the return type of a GCC
27023 builtin and then its argument prototype would still apply. */
27024#ifdef __cplusplus
27025extern "C"
27026#endif
27027char umem_free ();
27028int
27029main ()
27030{
27031return umem_free ();
27032 ;
27033 return 0;
27034}
27035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027037 ac_cv_lib_umem_umem_free=yes
27038else
cristy8b350f62009-11-15 23:12:43 +000027039 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027040fi
cristy8b350f62009-11-15 23:12:43 +000027041rm -f core conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027043LIBS=$ac_check_lib_save_LIBS
27044fi
cristy8b350f62009-11-15 23:12:43 +000027045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027047if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027048 passed=`expr $passed + 1`
27049else
27050 failed=`expr $failed + 1`
27051fi
27052
cristy8b350f62009-11-15 23:12:43 +000027053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027054$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27055 if test $passed -gt 0; then
27056 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027057 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27058$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027059 have_umem='no (failed tests)'
27060 else
27061 UMEM_LIBS='-lumem'
27062 LIBS="$UMEM_LIBS $LIBS"
27063
cristy8b350f62009-11-15 23:12:43 +000027064$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027065
cristy09b53e12011-10-14 12:47:22 +000027066 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27067$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027068 have_umem='yes'
27069 fi
27070 else
cristy09b53e12011-10-14 12:47:22 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27072$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027073 fi
27074fi
cristy73bd4a52010-10-05 11:24:23 +000027075 if test "$have_umem" = 'yes'; then
27076 HasUMEM_TRUE=
27077 HasUMEM_FALSE='#'
27078else
27079 HasUMEM_TRUE='#'
27080 HasUMEM_FALSE=
27081fi
27082
cristy3ed852e2009-09-05 21:47:34 +000027083
27084
27085#
27086# Add support for ccmalloc memory debugging library if requested
27087#
27088have_ccmalloc='no'
27089CCMALLOC_LIBS=''
27090if test "$enable_ccmalloc" = 'yes'; then
27091 # Extract the first word of "ccmalloc", so it can be a program name with args.
27092set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027095if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 $as_echo_n "(cached) " >&6
27097else
27098 case $CCMALLOCDelegate in
27099 [\\/]* | ?:[\\/]*)
27100 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27101 ;;
27102 *)
27103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27104for as_dir in $PATH
27105do
27106 IFS=$as_save_IFS
27107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027110 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027112 break 2
27113 fi
27114done
cristy8b350f62009-11-15 23:12:43 +000027115 done
cristy3ed852e2009-09-05 21:47:34 +000027116IFS=$as_save_IFS
27117
27118 ;;
27119esac
27120fi
27121CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27122if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "$CCMALLOCDelegate" >&6; }
27125else
cristy8b350f62009-11-15 23:12:43 +000027126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027127$as_echo "no" >&6; }
27128fi
27129
27130
27131 if test -n "$CCMALLOCDelegate"; then
27132 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27133 OLIBS="$LIBS"
27134 # Assume that gcc is used with ccmalloc.
27135 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027138if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 $as_echo_n "(cached) " >&6
27140else
27141 ac_check_lib_save_LIBS=$LIBS
27142LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027144/* end confdefs.h. */
27145
27146/* Override any GCC internal prototype to avoid an error.
27147 Use char because int might match the return type of a GCC
27148 builtin and then its argument prototype would still apply. */
27149#ifdef __cplusplus
27150extern "C"
27151#endif
27152char ccmalloc_malloc ();
27153int
27154main ()
27155{
27156return ccmalloc_malloc ();
27157 ;
27158 return 0;
27159}
27160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027162 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27163else
cristy8b350f62009-11-15 23:12:43 +000027164 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027165fi
cristy8b350f62009-11-15 23:12:43 +000027166rm -f core conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027168LIBS=$ac_check_lib_save_LIBS
27169fi
cristy8b350f62009-11-15 23:12:43 +000027170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027172if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27174fi
27175
27176 if test -n "$CCMALLOC_LIBS"; then
27177 LIBS="$OLIBS"
27178 LIBS="$LIBS $CCMALLOC_LIBS"
27179 have_ccmalloc='yes'
27180 else
27181 LIBS="$OLIBS"
27182 fi
27183 fi
27184fi
27185
27186#
27187# Add support for efence memory debugging library if requested
27188#
27189if test "$enable_efence" = 'yes'; then
27190 EFENCE_LIBS='-lefence'
27191 LIBS="$EFENCE_LIBS $LIBS"
27192fi
27193
cristy3ed852e2009-09-05 21:47:34 +000027194
27195#
27196# Check for BZLIB
27197#
27198
27199
27200# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027201if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 withval=$with_bzlib; with_bzlib=$withval
27203else
27204 with_bzlib='yes'
27205fi
27206
27207
27208if test "$with_bzlib" != 'yes'; then
27209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27210fi
27211
27212have_bzlib='no'
27213if test "$with_bzlib" != 'no'; then
27214 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027215 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27216$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27220$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027221 failed=0
27222 passed=0
27223 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027224 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027225if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027226 passed=`expr $passed + 1`
27227else
27228 failed=`expr $failed + 1`
27229fi
27230
27231
cristy8b350f62009-11-15 23:12:43 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027234if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 $as_echo_n "(cached) " >&6
27236else
27237 ac_check_lib_save_LIBS=$LIBS
27238LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240/* end confdefs.h. */
27241
27242/* Override any GCC internal prototype to avoid an error.
27243 Use char because int might match the return type of a GCC
27244 builtin and then its argument prototype would still apply. */
27245#ifdef __cplusplus
27246extern "C"
27247#endif
27248char BZ2_bzDecompress ();
27249int
27250main ()
27251{
27252return BZ2_bzDecompress ();
27253 ;
27254 return 0;
27255}
27256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27259else
cristy8b350f62009-11-15 23:12:43 +000027260 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027261fi
cristy8b350f62009-11-15 23:12:43 +000027262rm -f core conftest.err conftest.$ac_objext \
27263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264LIBS=$ac_check_lib_save_LIBS
27265fi
cristy8b350f62009-11-15 23:12:43 +000027266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 found_libbz=`expr $found_libbz + 1`
27270fi
27271
27272 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027275if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 $as_echo_n "(cached) " >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027281/* end confdefs.h. */
27282
27283/* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27286#ifdef __cplusplus
27287extern "C"
27288#endif
27289char _imp__BZ2_decompress ();
27290int
27291main ()
27292{
27293return _imp__BZ2_decompress ();
27294 ;
27295 return 0;
27296}
27297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27300else
cristy8b350f62009-11-15 23:12:43 +000027301 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027302fi
cristy8b350f62009-11-15 23:12:43 +000027303rm -f core conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027305LIBS=$ac_check_lib_save_LIBS
27306fi
cristy8b350f62009-11-15 23:12:43 +000027307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027309if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 found_libbz=`expr $found_libbz + 1`
27311fi
27312
27313 fi
27314 if test $found_libbz -gt 0; then
27315 passed=`expr $passed + 1`
27316 else
27317 failed=`expr $failed + 1`
27318 fi
cristy8b350f62009-11-15 23:12:43 +000027319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027320$as_echo_n "checking if BZLIB package is complete... " >&6; }
27321 if test $passed -gt 0; then
27322 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027323 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27324$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027325 have_bzlib='no (failed tests)'
27326 else
27327 BZLIB_LIBS='-lbz2'
27328 LIBS="$BZLIB_LIBS $LIBS"
27329
cristy8b350f62009-11-15 23:12:43 +000027330$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027331
cristy09b53e12011-10-14 12:47:22 +000027332 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27333$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027334 have_bzlib='yes'
27335 fi
27336 else
cristy09b53e12011-10-14 12:47:22 +000027337 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27338$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027339 fi
27340fi
cristy73bd4a52010-10-05 11:24:23 +000027341 if test "$have_bzlib" = 'yes'; then
27342 BZLIB_DELEGATE_TRUE=
27343 BZLIB_DELEGATE_FALSE='#'
27344else
27345 BZLIB_DELEGATE_TRUE='#'
27346 BZLIB_DELEGATE_FALSE=
27347fi
27348
cristy3ed852e2009-09-05 21:47:34 +000027349
27350
27351#
27352# Find the X11 include and library directories.
27353#
27354IPC_LIBS=''
27355X11_LIBS=''
27356XEXT_LIBS=''
27357XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027359$as_echo_n "checking for X... " >&6; }
27360
27361
27362# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027363if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027364 withval=$with_x;
27365fi
27366
27367# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27368if test "x$with_x" = xno; then
27369 # The user explicitly disabled X.
27370 have_x=disabled
27371else
27372 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027373 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027374 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027375 $as_echo_n "(cached) " >&6
27376else
27377 # One or both of the vars are not set, and there is no cached value.
27378ac_x_includes=no ac_x_libraries=no
27379rm -f -r conftest.dir
27380if mkdir conftest.dir; then
27381 cd conftest.dir
27382 cat >Imakefile <<'_ACEOF'
27383incroot:
27384 @echo incroot='${INCROOT}'
27385usrlibdir:
27386 @echo usrlibdir='${USRLIBDIR}'
27387libdir:
27388 @echo libdir='${LIBDIR}'
27389_ACEOF
27390 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027392 for ac_var in incroot usrlibdir libdir; do
27393 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27394 done
27395 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27396 for ac_extension in a so sl dylib la dll; do
27397 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27398 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27399 ac_im_usrlibdir=$ac_im_libdir; break
27400 fi
27401 done
27402 # Screen out bogus values from the imake configuration. They are
27403 # bogus both because they are the default anyway, and because
27404 # using them would break gcc on systems where it needs fixed includes.
27405 case $ac_im_incroot in
27406 /usr/include) ac_x_includes= ;;
27407 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27408 esac
27409 case $ac_im_usrlibdir in
27410 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27411 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27412 esac
27413 fi
27414 cd ..
27415 rm -f -r conftest.dir
27416fi
27417
27418# Standard set of common directories for X headers.
27419# Check X11 before X11Rn because it is often a symlink to the current release.
27420ac_x_header_dirs='
27421/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027422/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027423/usr/X11R6/include
27424/usr/X11R5/include
27425/usr/X11R4/include
27426
27427/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027428/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027429/usr/include/X11R6
27430/usr/include/X11R5
27431/usr/include/X11R4
27432
27433/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027434/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027435/usr/local/X11R6/include
27436/usr/local/X11R5/include
27437/usr/local/X11R4/include
27438
27439/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027440/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027441/usr/local/include/X11R6
27442/usr/local/include/X11R5
27443/usr/local/include/X11R4
27444
27445/usr/X386/include
27446/usr/x386/include
27447/usr/XFree86/include/X11
27448
27449/usr/include
27450/usr/local/include
27451/usr/unsupported/include
27452/usr/athena/include
27453/usr/local/x11r5/include
27454/usr/lpp/Xamples/include
27455
27456/usr/openwin/include
27457/usr/openwin/share/include'
27458
27459if test "$ac_x_includes" = no; then
27460 # Guess where to find include files, by looking for Xlib.h.
27461 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027463/* end confdefs.h. */
27464#include <X11/Xlib.h>
27465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027466if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027467 # We can compile using X headers with no special include directory.
27468ac_x_includes=
27469else
cristyc7083c12009-10-14 03:16:55 +000027470 for ac_dir in $ac_x_header_dirs; do
27471 if test -r "$ac_dir/X11/Xlib.h"; then
27472 ac_x_includes=$ac_dir
27473 break
27474 fi
27475done
27476fi
cristyda16f162011-02-19 23:52:17 +000027477rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027478fi # $ac_x_includes = no
27479
27480if test "$ac_x_libraries" = no; then
27481 # Check for the libraries.
27482 # See if we find them without any special options.
27483 # Don't add to $LIBS permanently.
27484 ac_save_LIBS=$LIBS
27485 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027487/* end confdefs.h. */
27488#include <X11/Xlib.h>
27489int
27490main ()
27491{
27492XrmInitialize ()
27493 ;
27494 return 0;
27495}
27496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027497if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027498 LIBS=$ac_save_LIBS
27499# We can link X programs with no special library path.
27500ac_x_libraries=
27501else
cristy8b350f62009-11-15 23:12:43 +000027502 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027503for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27504do
27505 # Don't even attempt the hair of trying to link an X program!
27506 for ac_extension in a so sl dylib la dll; do
27507 if test -r "$ac_dir/libX11.$ac_extension"; then
27508 ac_x_libraries=$ac_dir
27509 break 2
27510 fi
27511 done
27512done
27513fi
cristy8b350f62009-11-15 23:12:43 +000027514rm -f core conftest.err conftest.$ac_objext \
27515 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027516fi # $ac_x_libraries = no
27517
27518case $ac_x_includes,$ac_x_libraries in #(
27519 no,* | *,no | *\'*)
27520 # Didn't find X, or a directory has "'" in its name.
27521 ac_cv_have_x="have_x=no";; #(
27522 *)
27523 # Record where we found X for the cache.
27524 ac_cv_have_x="have_x=yes\
27525 ac_x_includes='$ac_x_includes'\
27526 ac_x_libraries='$ac_x_libraries'"
27527esac
27528fi
27529;; #(
27530 *) have_x=yes;;
27531 esac
27532 eval "$ac_cv_have_x"
27533fi # $with_x != no
27534
27535if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027537$as_echo "$have_x" >&6; }
27538 no_x=yes
27539else
27540 # If each of the values was on the command line, it overrides each guess.
27541 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27542 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27543 # Update the cache value to reflect the command line values.
27544 ac_cv_have_x="have_x=yes\
27545 ac_x_includes='$x_includes'\
27546 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027548$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27549fi
27550
cristy3ed852e2009-09-05 21:47:34 +000027551if test "$no_x" = yes; then
27552 # Not all programs may use this symbol, but it does not hurt to define it.
27553
cristy8b350f62009-11-15 23:12:43 +000027554$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027555
27556 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27557else
27558 if test -n "$x_includes"; then
27559 X_CFLAGS="$X_CFLAGS -I$x_includes"
27560 fi
27561
27562 # It would also be nice to do this for all -L options, not just this one.
27563 if test -n "$x_libraries"; then
27564 X_LIBS="$X_LIBS -L$x_libraries"
27565 # For Solaris; some versions of Sun CC require a space after -R and
27566 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027568$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27569 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27570 ac_xsave_c_werror_flag=$ac_c_werror_flag
27571 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027573/* end confdefs.h. */
27574
27575int
27576main ()
27577{
27578
27579 ;
27580 return 0;
27581}
27582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027583if ac_fn_c_try_link "$LINENO"; then :
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "no" >&6; }
27586 X_LIBS="$X_LIBS -R$x_libraries"
27587else
cristy8b350f62009-11-15 23:12:43 +000027588 LIBS="$ac_xsave_LIBS -R $x_libraries"
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027590/* end confdefs.h. */
27591
27592int
27593main ()
27594{
27595
27596 ;
27597 return 0;
27598}
27599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027600if ac_fn_c_try_link "$LINENO"; then :
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027602$as_echo "yes" >&6; }
27603 X_LIBS="$X_LIBS -R $x_libraries"
27604else
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "neither works" >&6; }
27607fi
cristy8b350f62009-11-15 23:12:43 +000027608rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610fi
cristy8b350f62009-11-15 23:12:43 +000027611rm -f core conftest.err conftest.$ac_objext \
27612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613 ac_c_werror_flag=$ac_xsave_c_werror_flag
27614 LIBS=$ac_xsave_LIBS
27615 fi
27616
27617 # Check for system-dependent libraries X programs must link with.
27618 # Do this before checking for the system-independent R6 libraries
27619 # (-lICE), since we may need -lsocket or whatever for X linking.
27620
27621 if test "$ISC" = yes; then
27622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27623 else
27624 # Martyn Johnson says this is needed for Ultrix, if the X
27625 # libraries were built with DECnet support. And Karl Berry says
27626 # the Alpha needs dnet_stub (dnet does not exist).
27627 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027629/* end confdefs.h. */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char XOpenDisplay ();
27638int
27639main ()
27640{
27641return XOpenDisplay ();
27642 ;
27643 return 0;
27644}
27645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027646if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027647
cristy8b350f62009-11-15 23:12:43 +000027648else
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027651if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
27654 ac_check_lib_save_LIBS=$LIBS
27655LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657/* end confdefs.h. */
27658
27659/* Override any GCC internal prototype to avoid an error.
27660 Use char because int might match the return type of a GCC
27661 builtin and then its argument prototype would still apply. */
27662#ifdef __cplusplus
27663extern "C"
27664#endif
27665char dnet_ntoa ();
27666int
27667main ()
27668{
27669return dnet_ntoa ();
27670 ;
27671 return 0;
27672}
27673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 ac_cv_lib_dnet_dnet_ntoa=yes
27676else
cristy8b350f62009-11-15 23:12:43 +000027677 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027678fi
cristy8b350f62009-11-15 23:12:43 +000027679rm -f core conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027681LIBS=$ac_check_lib_save_LIBS
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027685if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27687fi
27688
27689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char dnet_ntoa ();
27707int
27708main ()
27709{
27710return dnet_ntoa ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27728fi
27729
27730 fi
27731fi
cristy8b350f62009-11-15 23:12:43 +000027732rm -f core conftest.err conftest.$ac_objext \
27733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734 LIBS="$ac_xsave_LIBS"
27735
27736 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27737 # to get the SysV transport functions.
27738 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27739 # needs -lnsl.
27740 # The nsl library prevents programs from opening the X display
27741 # on Irix 5.2, according to T.E. Dickey.
27742 # The functions gethostbyname, getservbyname, and inet_addr are
27743 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027744 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027745if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027746
cristy3ed852e2009-09-05 21:47:34 +000027747fi
27748
cristy3ed852e2009-09-05 21:47:34 +000027749 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027752if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 $as_echo_n "(cached) " >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758/* end confdefs.h. */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char gethostbyname ();
27767int
27768main ()
27769{
27770return gethostbyname ();
27771 ;
27772 return 0;
27773}
27774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 ac_cv_lib_nsl_gethostbyname=yes
27777else
cristy8b350f62009-11-15 23:12:43 +000027778 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027779fi
cristy8b350f62009-11-15 23:12:43 +000027780rm -f core conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782LIBS=$ac_check_lib_save_LIBS
27783fi
cristy8b350f62009-11-15 23:12:43 +000027784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027786if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27788fi
27789
27790 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027792$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027793if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 $as_echo_n "(cached) " >&6
27795else
27796 ac_check_lib_save_LIBS=$LIBS
27797LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027799/* end confdefs.h. */
27800
27801/* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27804#ifdef __cplusplus
27805extern "C"
27806#endif
27807char gethostbyname ();
27808int
27809main ()
27810{
27811return gethostbyname ();
27812 ;
27813 return 0;
27814}
27815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 ac_cv_lib_bsd_gethostbyname=yes
27818else
cristy8b350f62009-11-15 23:12:43 +000027819 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027820fi
cristy8b350f62009-11-15 23:12:43 +000027821rm -f core conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823LIBS=$ac_check_lib_save_LIBS
27824fi
cristy8b350f62009-11-15 23:12:43 +000027825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027826$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027827if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27829fi
27830
27831 fi
27832 fi
27833
27834 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27835 # socket/setsockopt and other routines are undefined under SCO ODT
27836 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27837 # on later versions), says Simon Leinen: it contains gethostby*
27838 # variants that don't use the name server (or something). -lsocket
27839 # must be given before -lnsl if both are needed. We assume that
27840 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027841 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027842if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027843
cristy3ed852e2009-09-05 21:47:34 +000027844fi
27845
cristy3ed852e2009-09-05 21:47:34 +000027846 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027848$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027849if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 $as_echo_n "(cached) " >&6
27851else
27852 ac_check_lib_save_LIBS=$LIBS
27853LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027855/* end confdefs.h. */
27856
27857/* Override any GCC internal prototype to avoid an error.
27858 Use char because int might match the return type of a GCC
27859 builtin and then its argument prototype would still apply. */
27860#ifdef __cplusplus
27861extern "C"
27862#endif
27863char connect ();
27864int
27865main ()
27866{
27867return connect ();
27868 ;
27869 return 0;
27870}
27871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 ac_cv_lib_socket_connect=yes
27874else
cristy8b350f62009-11-15 23:12:43 +000027875 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027876fi
cristy8b350f62009-11-15 23:12:43 +000027877rm -f core conftest.err conftest.$ac_objext \
27878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027879LIBS=$ac_check_lib_save_LIBS
27880fi
cristy8b350f62009-11-15 23:12:43 +000027881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027883if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27885fi
27886
27887 fi
27888
27889 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027890 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027891if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027892
cristy3ed852e2009-09-05 21:47:34 +000027893fi
27894
cristy3ed852e2009-09-05 21:47:34 +000027895 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027897$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027898if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027899 $as_echo_n "(cached) " >&6
27900else
27901 ac_check_lib_save_LIBS=$LIBS
27902LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027904/* end confdefs.h. */
27905
27906/* Override any GCC internal prototype to avoid an error.
27907 Use char because int might match the return type of a GCC
27908 builtin and then its argument prototype would still apply. */
27909#ifdef __cplusplus
27910extern "C"
27911#endif
27912char remove ();
27913int
27914main ()
27915{
27916return remove ();
27917 ;
27918 return 0;
27919}
27920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027922 ac_cv_lib_posix_remove=yes
27923else
cristy8b350f62009-11-15 23:12:43 +000027924 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027925fi
cristy8b350f62009-11-15 23:12:43 +000027926rm -f core conftest.err conftest.$ac_objext \
27927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928LIBS=$ac_check_lib_save_LIBS
27929fi
cristy8b350f62009-11-15 23:12:43 +000027930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027931$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27934fi
27935
27936 fi
27937
27938 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027939 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027940if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027941
cristy3ed852e2009-09-05 21:47:34 +000027942fi
27943
cristy3ed852e2009-09-05 21:47:34 +000027944 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 $as_echo_n "(cached) " >&6
27949else
27950 ac_check_lib_save_LIBS=$LIBS
27951LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027953/* end confdefs.h. */
27954
27955/* Override any GCC internal prototype to avoid an error.
27956 Use char because int might match the return type of a GCC
27957 builtin and then its argument prototype would still apply. */
27958#ifdef __cplusplus
27959extern "C"
27960#endif
27961char shmat ();
27962int
27963main ()
27964{
27965return shmat ();
27966 ;
27967 return 0;
27968}
27969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027970if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 ac_cv_lib_ipc_shmat=yes
27972else
cristy8b350f62009-11-15 23:12:43 +000027973 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027974fi
cristy8b350f62009-11-15 23:12:43 +000027975rm -f core conftest.err conftest.$ac_objext \
27976 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027977LIBS=$ac_check_lib_save_LIBS
27978fi
cristy8b350f62009-11-15 23:12:43 +000027979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27983fi
27984
27985 fi
27986 fi
27987
27988 # Check for libraries that X11R6 Xt/Xaw programs need.
27989 ac_save_LDFLAGS=$LDFLAGS
27990 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27991 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27992 # check for ICE first), but we must link in the order -lSM -lICE or
27993 # we get undefined symbols. So assume we have SM if we have ICE.
27994 # These have to be linked with before -lX11, unlike the other
27995 # libraries we check for below, so use a different variable.
27996 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027998$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027999if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 $as_echo_n "(cached) " >&6
28001else
28002 ac_check_lib_save_LIBS=$LIBS
28003LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005/* end confdefs.h. */
28006
28007/* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010#ifdef __cplusplus
28011extern "C"
28012#endif
28013char IceConnectionNumber ();
28014int
28015main ()
28016{
28017return IceConnectionNumber ();
28018 ;
28019 return 0;
28020}
28021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 ac_cv_lib_ICE_IceConnectionNumber=yes
28024else
cristy8b350f62009-11-15 23:12:43 +000028025 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028026fi
cristy8b350f62009-11-15 23:12:43 +000028027rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029LIBS=$ac_check_lib_save_LIBS
28030fi
cristy8b350f62009-11-15 23:12:43 +000028031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028032$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028034 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28035fi
28036
28037 LDFLAGS=$ac_save_LDFLAGS
28038
28039fi
28040
28041if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028042 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28043$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028046 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28047$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028048 LDFLAGS="$LDFLAGS $X_LIBS"
28049 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28050 LIBS="$X11_LIBS $LIBS"
28051 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28052
28053
cristy8b350f62009-11-15 23:12:43 +000028054$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028055
28056 #
28057 # Check for X11 shared memory extension
28058 #
28059 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028060 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028061if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 have_shmctl='yes'
28063fi
28064
28065 if test "$have_shmctl" != 'yes'; then
28066 PERSIST_LIBS=$LIBS
28067 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028069/* end confdefs.h. */
28070
28071/* Override any GCC internal prototype to avoid an error.
28072 Use char because int might match the return type of a GCC
28073 builtin and then its argument prototype would still apply. */
28074#ifdef __cplusplus
28075extern "C"
28076#endif
28077char shmctl ();
28078int
28079main ()
28080{
28081return shmctl ();
28082 ;
28083 return 0;
28084}
28085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028086if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028087 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028088fi
cristy8b350f62009-11-15 23:12:43 +000028089rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091 LIBS=$PERSIST_LIBS
28092 fi
28093
28094 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028097if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028098 $as_echo_n "(cached) " >&6
28099else
28100 ac_check_lib_save_LIBS=$LIBS
28101LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028103/* end confdefs.h. */
28104
28105/* Override any GCC internal prototype to avoid an error.
28106 Use char because int might match the return type of a GCC
28107 builtin and then its argument prototype would still apply. */
28108#ifdef __cplusplus
28109extern "C"
28110#endif
28111char XShmAttach ();
28112int
28113main ()
28114{
28115return XShmAttach ();
28116 ;
28117 return 0;
28118}
28119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 ac_cv_lib_Xext_XShmAttach=yes
28122else
cristy8b350f62009-11-15 23:12:43 +000028123 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028124fi
cristy8b350f62009-11-15 23:12:43 +000028125rm -f core conftest.err conftest.$ac_objext \
28126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028127LIBS=$ac_check_lib_save_LIBS
28128fi
cristy8b350f62009-11-15 23:12:43 +000028129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028130$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028131if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028132 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028133$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028134
28135fi
28136
28137 fi
28138
28139 #
28140 # Check for X11 shape extension
28141 #
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 $as_echo_n "(cached) " >&6
28146else
28147 ac_check_lib_save_LIBS=$LIBS
28148LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028150/* end confdefs.h. */
28151
28152/* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28155#ifdef __cplusplus
28156extern "C"
28157#endif
28158char XShapeCombineMask ();
28159int
28160main ()
28161{
28162return XShapeCombineMask ();
28163 ;
28164 return 0;
28165}
28166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 ac_cv_lib_Xext_XShapeCombineMask=yes
28169else
cristy8b350f62009-11-15 23:12:43 +000028170 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028171fi
cristy8b350f62009-11-15 23:12:43 +000028172rm -f core conftest.err conftest.$ac_objext \
28173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028174LIBS=$ac_check_lib_save_LIBS
28175fi
cristy8b350f62009-11-15 23:12:43 +000028176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028177$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028178if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028180$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028181
28182fi
28183
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028186if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 $as_echo_n "(cached) " >&6
28188else
28189 ac_check_lib_save_LIBS=$LIBS
28190LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028192/* end confdefs.h. */
28193
28194/* Override any GCC internal prototype to avoid an error.
28195 Use char because int might match the return type of a GCC
28196 builtin and then its argument prototype would still apply. */
28197#ifdef __cplusplus
28198extern "C"
28199#endif
28200char XtSetEventDispatcher ();
28201int
28202main ()
28203{
28204return XtSetEventDispatcher ();
28205 ;
28206 return 0;
28207}
28208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28211else
cristy8b350f62009-11-15 23:12:43 +000028212 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028213fi
cristy8b350f62009-11-15 23:12:43 +000028214rm -f core conftest.err conftest.$ac_objext \
28215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216LIBS=$ac_check_lib_save_LIBS
28217fi
cristy8b350f62009-11-15 23:12:43 +000028218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028219$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028220if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 XT_LIBS='-lXt'
28222fi
28223
28224 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28225fi
28226if test "$no_x" != 'yes'; then
28227 have_x='yes'
28228else
28229 have_x='no'
28230fi
cristy73bd4a52010-10-05 11:24:23 +000028231 if test "$have_x" = 'yes'; then
28232 X11_DELEGATE_TRUE=
28233 X11_DELEGATE_FALSE='#'
28234else
28235 X11_DELEGATE_TRUE='#'
28236 X11_DELEGATE_FALSE=
28237fi
28238
cristy3ed852e2009-09-05 21:47:34 +000028239
28240
28241
28242
28243#
28244# Check for ZLIB
28245#
28246
28247# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028248if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028249 withval=$with_zlib; with_zlib=$withval
28250else
28251 with_zlib='yes'
28252fi
28253
28254
28255if test "$with_zlib" != 'yes'; then
28256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28257fi
28258
28259have_zlib='no'
28260ZLIB_LIBS=''
28261if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28263$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028265$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028266 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28267$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028268 ZLIB_LIBS=''
28269 failed=0
28270 passed=0
cristy8b350f62009-11-15 23:12:43 +000028271 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028272if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 passed=`expr $passed + 1`
28274else
28275 failed=`expr $failed + 1`
28276fi
28277
28278
cristy8b350f62009-11-15 23:12:43 +000028279 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028280if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028281 passed=`expr $passed + 1`
28282else
28283 failed=`expr $failed + 1`
28284fi
28285
28286
cristy8b350f62009-11-15 23:12:43 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028289if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 $as_echo_n "(cached) " >&6
28291else
28292 ac_check_lib_save_LIBS=$LIBS
28293LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028295/* end confdefs.h. */
28296
28297/* Override any GCC internal prototype to avoid an error.
28298 Use char because int might match the return type of a GCC
28299 builtin and then its argument prototype would still apply. */
28300#ifdef __cplusplus
28301extern "C"
28302#endif
28303char compress ();
28304int
28305main ()
28306{
28307return compress ();
28308 ;
28309 return 0;
28310}
28311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 ac_cv_lib_z_compress=yes
28314else
cristy8b350f62009-11-15 23:12:43 +000028315 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028316fi
cristy8b350f62009-11-15 23:12:43 +000028317rm -f core conftest.err conftest.$ac_objext \
28318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028319LIBS=$ac_check_lib_save_LIBS
28320fi
cristy8b350f62009-11-15 23:12:43 +000028321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028323if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 passed=`expr $passed + 1`
28325else
28326 failed=`expr $failed + 1`
28327fi
28328
cristy8b350f62009-11-15 23:12:43 +000028329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028330$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028331if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 $as_echo_n "(cached) " >&6
28333else
28334 ac_check_lib_save_LIBS=$LIBS
28335LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028337/* end confdefs.h. */
28338
28339/* Override any GCC internal prototype to avoid an error.
28340 Use char because int might match the return type of a GCC
28341 builtin and then its argument prototype would still apply. */
28342#ifdef __cplusplus
28343extern "C"
28344#endif
28345char uncompress ();
28346int
28347main ()
28348{
28349return uncompress ();
28350 ;
28351 return 0;
28352}
28353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028355 ac_cv_lib_z_uncompress=yes
28356else
cristy8b350f62009-11-15 23:12:43 +000028357 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028358fi
cristy8b350f62009-11-15 23:12:43 +000028359rm -f core conftest.err conftest.$ac_objext \
28360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028361LIBS=$ac_check_lib_save_LIBS
28362fi
cristy8b350f62009-11-15 23:12:43 +000028363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028365if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 passed=`expr $passed + 1`
28367else
28368 failed=`expr $failed + 1`
28369fi
28370
cristy8b350f62009-11-15 23:12:43 +000028371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028373if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 $as_echo_n "(cached) " >&6
28375else
28376 ac_check_lib_save_LIBS=$LIBS
28377LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028379/* end confdefs.h. */
28380
28381/* Override any GCC internal prototype to avoid an error.
28382 Use char because int might match the return type of a GCC
28383 builtin and then its argument prototype would still apply. */
28384#ifdef __cplusplus
28385extern "C"
28386#endif
28387char deflate ();
28388int
28389main ()
28390{
28391return deflate ();
28392 ;
28393 return 0;
28394}
28395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028397 ac_cv_lib_z_deflate=yes
28398else
cristy8b350f62009-11-15 23:12:43 +000028399 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028400fi
cristy8b350f62009-11-15 23:12:43 +000028401rm -f core conftest.err conftest.$ac_objext \
28402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028403LIBS=$ac_check_lib_save_LIBS
28404fi
cristy8b350f62009-11-15 23:12:43 +000028405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
cristy8b350f62009-11-15 23:12:43 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028414$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028415if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 $as_echo_n "(cached) " >&6
28417else
28418 ac_check_lib_save_LIBS=$LIBS
28419LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028421/* end confdefs.h. */
28422
28423/* Override any GCC internal prototype to avoid an error.
28424 Use char because int might match the return type of a GCC
28425 builtin and then its argument prototype would still apply. */
28426#ifdef __cplusplus
28427extern "C"
28428#endif
28429char inflate ();
28430int
28431main ()
28432{
28433return inflate ();
28434 ;
28435 return 0;
28436}
28437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028439 ac_cv_lib_z_inflate=yes
28440else
cristy8b350f62009-11-15 23:12:43 +000028441 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028442fi
cristy8b350f62009-11-15 23:12:43 +000028443rm -f core conftest.err conftest.$ac_objext \
28444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028445LIBS=$ac_check_lib_save_LIBS
28446fi
cristy8b350f62009-11-15 23:12:43 +000028447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028449if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 passed=`expr $passed + 1`
28451else
28452 failed=`expr $failed + 1`
28453fi
28454
cristy8b350f62009-11-15 23:12:43 +000028455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028456$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028457if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 $as_echo_n "(cached) " >&6
28459else
28460 ac_check_lib_save_LIBS=$LIBS
28461LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028463/* end confdefs.h. */
28464
28465/* Override any GCC internal prototype to avoid an error.
28466 Use char because int might match the return type of a GCC
28467 builtin and then its argument prototype would still apply. */
28468#ifdef __cplusplus
28469extern "C"
28470#endif
28471char gzseek ();
28472int
28473main ()
28474{
28475return gzseek ();
28476 ;
28477 return 0;
28478}
28479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028481 ac_cv_lib_z_gzseek=yes
28482else
cristy8b350f62009-11-15 23:12:43 +000028483 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028484fi
cristy8b350f62009-11-15 23:12:43 +000028485rm -f core conftest.err conftest.$ac_objext \
28486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028487LIBS=$ac_check_lib_save_LIBS
28488fi
cristy8b350f62009-11-15 23:12:43 +000028489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028491if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 passed=`expr $passed + 1`
28493else
28494 failed=`expr $failed + 1`
28495fi
28496
cristy8b350f62009-11-15 23:12:43 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 $as_echo_n "(cached) " >&6
28501else
28502 ac_check_lib_save_LIBS=$LIBS
28503LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028505/* end confdefs.h. */
28506
28507/* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28510#ifdef __cplusplus
28511extern "C"
28512#endif
28513char gztell ();
28514int
28515main ()
28516{
28517return gztell ();
28518 ;
28519 return 0;
28520}
28521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 ac_cv_lib_z_gztell=yes
28524else
cristy8b350f62009-11-15 23:12:43 +000028525 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028526fi
cristy8b350f62009-11-15 23:12:43 +000028527rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028529LIBS=$ac_check_lib_save_LIBS
28530fi
cristy8b350f62009-11-15 23:12:43 +000028531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028532$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028533if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 passed=`expr $passed + 1`
28535else
28536 failed=`expr $failed + 1`
28537fi
28538
cristy8b350f62009-11-15 23:12:43 +000028539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028540$as_echo_n "checking if ZLIB package is complete... " >&6; }
28541 if test $passed -gt 0; then
28542 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028543 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28544$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028545 have_zlib='no (failed tests)'
28546 else
28547 ZLIB_LIBS='-lz'
28548 LIBS="$ZLIB_LIBS $LIBS"
28549
cristy8b350f62009-11-15 23:12:43 +000028550$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028551
cristy09b53e12011-10-14 12:47:22 +000028552 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28553$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028554 have_zlib='yes'
28555 fi
28556 else
cristy09b53e12011-10-14 12:47:22 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28558$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028559 fi
28560fi
cristy73bd4a52010-10-05 11:24:23 +000028561 if test "$have_zlib" = 'yes'; then
28562 ZLIB_DELEGATE_TRUE=
28563 ZLIB_DELEGATE_FALSE='#'
28564else
28565 ZLIB_DELEGATE_TRUE='#'
28566 ZLIB_DELEGATE_FALSE=
28567fi
28568
cristy3ed852e2009-09-05 21:47:34 +000028569
28570
28571#
28572# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28573#
28574LIB_DL=''
28575if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028578if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 $as_echo_n "(cached) " >&6
28580else
28581 ac_check_lib_save_LIBS=$LIBS
28582LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028584/* end confdefs.h. */
28585
28586/* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592char dlopen ();
28593int
28594main ()
28595{
28596return dlopen ();
28597 ;
28598 return 0;
28599}
28600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028602 ac_cv_lib_dl_dlopen=yes
28603else
cristy8b350f62009-11-15 23:12:43 +000028604 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028605fi
cristy8b350f62009-11-15 23:12:43 +000028606rm -f core conftest.err conftest.$ac_objext \
28607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028608LIBS=$ac_check_lib_save_LIBS
28609fi
cristy8b350f62009-11-15 23:12:43 +000028610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028611$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028612if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028613 LIB_DL='-ldl'
28614fi
28615
28616 LIBS="$LIB_DL $LIBS"
28617fi
28618
28619
28620
28621#
28622# Check for Autotrace delegate library.
28623#
28624
28625# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028626if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028627 withval=$with_autotrace; with_autotrace=$withval
28628else
28629 with_autotrace='no'
28630fi
28631
28632
28633if test "$with_autotrace" != 'yes'; then
28634 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28635fi
28636
28637have_autotrace='no'
28638AUTOTRACE_CFLAGS=""
28639AUTOTRACE_LIBS=""
28640AUTOTRACE_PKG=""
28641if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28643$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028644
28645pkg_failed=no
28646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28647$as_echo_n "checking for AUTOTRACE... " >&6; }
28648
28649if test -n "$AUTOTRACE_CFLAGS"; then
28650 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28651 elif test -n "$PKG_CONFIG"; then
28652 if test -n "$PKG_CONFIG" && \
28653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28654 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28655 ac_status=$?
28656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28657 test $ac_status = 0; }; then
28658 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28659else
28660 pkg_failed=yes
28661fi
28662 else
28663 pkg_failed=untried
28664fi
28665if test -n "$AUTOTRACE_LIBS"; then
28666 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28667 elif test -n "$PKG_CONFIG"; then
28668 if test -n "$PKG_CONFIG" && \
28669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28670 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28671 ac_status=$?
28672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28673 test $ac_status = 0; }; then
28674 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28675else
28676 pkg_failed=yes
28677fi
28678 else
28679 pkg_failed=untried
28680fi
28681
28682
28683
28684if test $pkg_failed = yes; then
28685
28686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28687 _pkg_short_errors_supported=yes
28688else
28689 _pkg_short_errors_supported=no
28690fi
28691 if test $_pkg_short_errors_supported = yes; then
28692 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28693 else
28694 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28695 fi
28696 # Put the nasty error message in config.log where it belongs
28697 echo "$AUTOTRACE_PKG_ERRORS" >&5
28698
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28700$as_echo "no" >&6; }
28701 have_autotrace=no
28702elif test $pkg_failed = untried; then
28703 have_autotrace=no
28704else
28705 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28706 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28708$as_echo "yes" >&6; }
28709 have_autotrace=yes
28710fi
cristy09b53e12011-10-14 12:47:22 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28712$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028713fi
28714
28715if test "$have_autotrace" = 'yes'; then
28716 failed=0
28717
cristy8b350f62009-11-15 23:12:43 +000028718$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028719
28720 if test "$with_modules" = 'no'; then
28721 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28722 fi
28723fi
28724
cristy73bd4a52010-10-05 11:24:23 +000028725 if test "$have_autotrace" = 'yes'; then
28726 AUTOTRACE_DELEGATE_TRUE=
28727 AUTOTRACE_DELEGATE_FALSE='#'
28728else
28729 AUTOTRACE_DELEGATE_TRUE='#'
28730 AUTOTRACE_DELEGATE_FALSE=
28731fi
28732
cristy3ed852e2009-09-05 21:47:34 +000028733
28734
28735
28736
28737#
28738# Check for Display Postscript delegate library.
28739#
28740
28741# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028742if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 withval=$with_dps; with_dps=$withval
28744else
28745 with_dps='yes'
28746fi
28747
28748
28749if test "$with_dps" != 'yes'; then
28750 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28751fi
28752
28753have_dps='no'
28754DPS_LIBS=''
28755if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028756 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28757$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028759$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028760 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28761$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028762 failed=0
28763 passed=0
28764 PERSIST_CPPFLAGS="$CPPFLAGS"
28765 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028766 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 +000028767if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028768 passed=`expr $passed + 1`
28769else
28770 failed=`expr $failed + 1`
28771fi
28772
28773
28774 # DPS issues:
28775 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28776 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28777 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28778 # ImageMagick itself doesn't use -lXt.
28779 have_libdps='no'
28780 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028782$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028783if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028784 $as_echo_n "(cached) " >&6
28785else
28786 ac_check_lib_save_LIBS=$LIBS
28787LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028789/* end confdefs.h. */
28790
28791/* Override any GCC internal prototype to avoid an error.
28792 Use char because int might match the return type of a GCC
28793 builtin and then its argument prototype would still apply. */
28794#ifdef __cplusplus
28795extern "C"
28796#endif
28797char DPSInitialize ();
28798int
28799main ()
28800{
28801return DPSInitialize ();
28802 ;
28803 return 0;
28804}
28805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028807 ac_cv_lib_dps_DPSInitialize=yes
28808else
cristy8b350f62009-11-15 23:12:43 +000028809 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028810fi
cristy8b350f62009-11-15 23:12:43 +000028811rm -f core conftest.err conftest.$ac_objext \
28812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028813LIBS=$ac_check_lib_save_LIBS
28814fi
cristy8b350f62009-11-15 23:12:43 +000028815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028816$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028817if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028818 have_libdps='yes'
28819else
28820 have_libdps='no'
28821fi
28822
28823 if test "$have_libdps" != 'yes'; then
28824 # Unset cache variable so we can try again.
28825 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028827$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028828if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028829 $as_echo_n "(cached) " >&6
28830else
28831 ac_check_lib_save_LIBS=$LIBS
28832LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028834/* end confdefs.h. */
28835
28836/* Override any GCC internal prototype to avoid an error.
28837 Use char because int might match the return type of a GCC
28838 builtin and then its argument prototype would still apply. */
28839#ifdef __cplusplus
28840extern "C"
28841#endif
28842char DPSInitialize ();
28843int
28844main ()
28845{
28846return DPSInitialize ();
28847 ;
28848 return 0;
28849}
28850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 ac_cv_lib_dps_DPSInitialize=yes
28853else
cristy8b350f62009-11-15 23:12:43 +000028854 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028855fi
cristy8b350f62009-11-15 23:12:43 +000028856rm -f core conftest.err conftest.$ac_objext \
28857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028858LIBS=$ac_check_lib_save_LIBS
28859fi
cristy8b350f62009-11-15 23:12:43 +000028860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028861$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028862if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028863 have_libdps='yes'
28864else
28865 have_libdps='no'
28866fi
28867
28868 if test "$have_libdps" = 'yes'; then
28869 LIBDPS_XT='-lXt'
28870 fi
28871 fi
28872 if test "$have_libdps" = 'yes'; then
28873 passed=`expr $passed + 1`
28874 else
28875 failed=`expr $failed + 1`
28876 fi
cristy8b350f62009-11-15 23:12:43 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028878$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028879if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028880 $as_echo_n "(cached) " >&6
28881else
28882 ac_check_lib_save_LIBS=$LIBS
28883LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028885/* end confdefs.h. */
28886
28887/* Override any GCC internal prototype to avoid an error.
28888 Use char because int might match the return type of a GCC
28889 builtin and then its argument prototype would still apply. */
28890#ifdef __cplusplus
28891extern "C"
28892#endif
28893char XDPSPixelsPerPoint ();
28894int
28895main ()
28896{
28897return XDPSPixelsPerPoint ();
28898 ;
28899 return 0;
28900}
28901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028903 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28904else
cristy8b350f62009-11-15 23:12:43 +000028905 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028906fi
cristy8b350f62009-11-15 23:12:43 +000028907rm -f core conftest.err conftest.$ac_objext \
28908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028909LIBS=$ac_check_lib_save_LIBS
28910fi
cristy8b350f62009-11-15 23:12:43 +000028911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028913if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 passed=`expr $passed + 1`
28915else
28916 failed=`expr $failed + 1`
28917fi
28918
cristy8b350f62009-11-15 23:12:43 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028920$as_echo_n "checking if DPS package is complete... " >&6; }
28921 if test $passed -gt 0; then
28922 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028923 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28924$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028925 have_dps='no (failed tests)'
28926 CPPFLAGS="$PERSIST_CPPFLAGS"
28927 else
28928 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28929 LIBS="$DPS_LIBS $LIBS"
28930
cristy8b350f62009-11-15 23:12:43 +000028931$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028932
cristy09b53e12011-10-14 12:47:22 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28934$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028935 have_dps='yes'
28936 fi
28937 else
cristy09b53e12011-10-14 12:47:22 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28939$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028940 CPPFLAGS=$PERSIST_CPPFLAGS
28941 fi
28942fi
cristy73bd4a52010-10-05 11:24:23 +000028943 if test "$have_dps" = 'yes'; then
28944 DPS_DELEGATE_TRUE=
28945 DPS_DELEGATE_FALSE='#'
28946else
28947 DPS_DELEGATE_TRUE='#'
28948 DPS_DELEGATE_FALSE=
28949fi
28950
cristy3ed852e2009-09-05 21:47:34 +000028951
28952
28953
28954#
28955# Check for DJVU delegate library.
28956#
28957
28958# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028959if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028960 withval=$with_djvu; with_djvu=$withval
28961else
28962 with_djvu='yes'
28963fi
28964
28965
28966if test "$with_djvu" != 'yes'; then
28967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28968fi
28969
28970have_djvu='no'
28971DJVU_LIBS=''
28972if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28974$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028976$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028977 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28978$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028979 failed=0
28980 passed=0
cristy8b350f62009-11-15 23:12:43 +000028981 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 +000028982if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028983 passed=`expr $passed + 1`
28984else
28985 failed=`expr $failed + 1`
28986fi
28987
28988
cristy8b350f62009-11-15 23:12:43 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028991if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028992 $as_echo_n "(cached) " >&6
28993else
28994 ac_check_lib_save_LIBS=$LIBS
28995LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028997/* end confdefs.h. */
28998
28999/* Override any GCC internal prototype to avoid an error.
29000 Use char because int might match the return type of a GCC
29001 builtin and then its argument prototype would still apply. */
29002#ifdef __cplusplus
29003extern "C"
29004#endif
29005char ddjvu_context_create ();
29006int
29007main ()
29008{
29009return ddjvu_context_create ();
29010 ;
29011 return 0;
29012}
29013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029015 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29016else
cristy8b350f62009-11-15 23:12:43 +000029017 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029018fi
cristy8b350f62009-11-15 23:12:43 +000029019rm -f core conftest.err conftest.$ac_objext \
29020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029021LIBS=$ac_check_lib_save_LIBS
29022fi
cristy8b350f62009-11-15 23:12:43 +000029023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029024$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029025if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029026 passed=`expr $passed + 1`
29027else
29028 failed=`expr $failed + 1`
29029fi
29030
cristy8b350f62009-11-15 23:12:43 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029032$as_echo_n "checking if DJVU package is complete... " >&6; }
29033 if test $passed -gt 0; then
29034 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29036$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029037 have_djvu='no (failed tests)'
29038 else
29039 DJVU_LIBS='-ldjvulibre'
29040 LIBS="$DJVU_LIBS $LIBS"
29041
cristy8b350f62009-11-15 23:12:43 +000029042$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029043
cristy09b53e12011-10-14 12:47:22 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29045$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029046 have_djvu='yes'
29047 fi
29048 else
cristy09b53e12011-10-14 12:47:22 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29050$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029051 fi
29052fi
cristy73bd4a52010-10-05 11:24:23 +000029053 if test "$have_djvu" = 'yes'; then
29054 DJVU_DELEGATE_TRUE=
29055 DJVU_DELEGATE_FALSE='#'
29056else
29057 DJVU_DELEGATE_TRUE='#'
29058 DJVU_DELEGATE_FALSE=
29059fi
29060
cristy3ed852e2009-09-05 21:47:34 +000029061
29062
29063
29064#
cristy430a7312010-01-21 20:44:04 +000029065# Set DejaVu font directory.
29066#
29067
29068# Check whether --with-dejavu-font-dir was given.
29069if test "${with_dejavu_font_dir+set}" = set; then :
29070 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29071else
29072 with_dejavu_font_dir='default'
29073fi
29074
29075
29076if test "$with_dejavu_font_dir" != 'default'; then
29077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29078fi
29079
29080
29081#
cristy3ed852e2009-09-05 21:47:34 +000029082# Check for FFTW delegate library.
29083#
29084
29085# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029086if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029087 withval=$with_fftw; with_fftw=$withval
29088else
29089 with_fftw='yes'
29090fi
29091
29092
29093if test "$with_fftw" != 'yes'; then
29094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29095fi
29096
cristy81beccd2011-10-03 18:17:24 +000029097have_fftw='no'
29098FFTW_LIBS=''
29099if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29101$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29103$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029104 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29105$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029106 failed=0
29107 passed=0
29108 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29109if test "x$ac_cv_header_fftw3_h" = xyes; then :
29110 passed=`expr $passed + 1`
29111else
29112 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029113fi
29114
cristy81beccd2011-10-03 18:17:24 +000029115
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29117$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29118if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29119 $as_echo_n "(cached) " >&6
29120else
29121 ac_check_lib_save_LIBS=$LIBS
29122LIBS="-lfftw3 $LIBS"
29123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29124/* end confdefs.h. */
29125
29126/* Override any GCC internal prototype to avoid an error.
29127 Use char because int might match the return type of a GCC
29128 builtin and then its argument prototype would still apply. */
29129#ifdef __cplusplus
29130extern "C"
29131#endif
29132char fftw_execute ();
29133int
29134main ()
29135{
29136return fftw_execute ();
29137 ;
29138 return 0;
29139}
29140_ACEOF
29141if ac_fn_c_try_link "$LINENO"; then :
29142 ac_cv_lib_fftw3_fftw_execute=yes
29143else
29144 ac_cv_lib_fftw3_fftw_execute=no
29145fi
29146rm -f core conftest.err conftest.$ac_objext \
29147 conftest$ac_exeext conftest.$ac_ext
29148LIBS=$ac_check_lib_save_LIBS
29149fi
29150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29151$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29152if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29153 passed=`expr $passed + 1`
29154else
29155 failed=`expr $failed + 1`
29156fi
29157
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29159$as_echo_n "checking if FFTW package is complete... " >&6; }
29160 if test $passed -gt 0; then
29161 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29163$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029164 have_fftw='no (failed tests)'
29165 else
29166 FFTW_LIBS='-lfftw3'
29167 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029168
cristy8b350f62009-11-15 23:12:43 +000029169$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029170
cristy09b53e12011-10-14 12:47:22 +000029171 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29172$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029173 have_fftw='yes'
29174 fi
29175 else
cristy09b53e12011-10-14 12:47:22 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29177$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029178 fi
29179fi
cristy73bd4a52010-10-05 11:24:23 +000029180 if test "$have_fftw" = 'yes'; then
29181 FFTW_DELEGATE_TRUE=
29182 FFTW_DELEGATE_FALSE='#'
29183else
29184 FFTW_DELEGATE_TRUE='#'
29185 FFTW_DELEGATE_FALSE=
29186fi
29187
cristy3ed852e2009-09-05 21:47:34 +000029188
29189
29190
29191#
29192# Check for FlashPIX delegate library.
29193#
29194
29195# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029196if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029197 withval=$with_fpx; with_fpx=$withval
29198else
29199 with_fpx='yes'
29200fi
29201
29202
29203if test "$with_fpx" != 'yes'; then
29204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29205fi
29206
29207have_fpx='no'
29208FPX_LIBS=''
29209if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029210 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29211$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029214 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29215$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029216 failed=0
29217 passed=0
29218 ac_ext=cpp
29219ac_cpp='$CXXCPP $CPPFLAGS'
29220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29223
29224
cristy8b350f62009-11-15 23:12:43 +000029225ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029226if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
cristy8b350f62009-11-15 23:12:43 +000029233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029235if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 $as_echo_n "(cached) " >&6
29237else
29238 ac_check_lib_save_LIBS=$LIBS
29239LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029241/* end confdefs.h. */
29242
29243/* Override any GCC internal prototype to avoid an error.
29244 Use char because int might match the return type of a GCC
29245 builtin and then its argument prototype would still apply. */
29246#ifdef __cplusplus
29247extern "C"
29248#endif
29249char FPX_OpenImageByFilename ();
29250int
29251main ()
29252{
29253return FPX_OpenImageByFilename ();
29254 ;
29255 return 0;
29256}
29257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029258if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29260else
cristy8b350f62009-11-15 23:12:43 +000029261 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029262fi
cristy8b350f62009-11-15 23:12:43 +000029263rm -f core conftest.err conftest.$ac_objext \
29264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029265LIBS=$ac_check_lib_save_LIBS
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029269if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
29275 ac_ext=c
29276ac_cpp='$CPP $CPPFLAGS'
29277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29279ac_compiler_gnu=$ac_cv_c_compiler_gnu
29280
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29283 if test $passed -gt 0; then
29284 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29286$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029287 have_fpx='no (failed tests)'
29288 else
29289 FPX_LIBS='-lfpx'
29290
cristy8b350f62009-11-15 23:12:43 +000029291$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029292
cristy09b53e12011-10-14 12:47:22 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29294$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029295 have_fpx='yes'
29296 PERLMAINCC="$CXX"
29297 fi
29298 else
cristy09b53e12011-10-14 12:47:22 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29300$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029301 fi
29302fi
cristy73bd4a52010-10-05 11:24:23 +000029303 if test "$have_fpx" = 'yes'; then
29304 FPX_DELEGATE_TRUE=
29305 FPX_DELEGATE_FALSE='#'
29306else
29307 FPX_DELEGATE_TRUE='#'
29308 FPX_DELEGATE_FALSE=
29309fi
29310
cristy3ed852e2009-09-05 21:47:34 +000029311
29312
29313
29314#
29315# Check for fontconfig delegate library.
29316#
29317
29318# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029319if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029320 withval=$with_fontconfig; with_fontconfig=$withval
29321else
cristyfc3d0222012-02-07 15:05:57 +000029322 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029323fi
29324
29325
29326if test "$with_fontconfig" != 'yes'; then
29327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29328fi
29329
29330have_fontconfig='no'
29331FONTCONFIG_CFLAGS=""
29332FONTCONFIG_LIBS=""
29333FONTCONFIG_PKG=""
29334if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29336$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029337
29338pkg_failed=no
29339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29340$as_echo_n "checking for FONTCONFIG... " >&6; }
29341
29342if test -n "$FONTCONFIG_CFLAGS"; then
29343 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29344 elif test -n "$PKG_CONFIG"; then
29345 if test -n "$PKG_CONFIG" && \
29346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29347 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29348 ac_status=$?
29349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29350 test $ac_status = 0; }; then
29351 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29352else
29353 pkg_failed=yes
29354fi
29355 else
29356 pkg_failed=untried
29357fi
29358if test -n "$FONTCONFIG_LIBS"; then
29359 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29360 elif test -n "$PKG_CONFIG"; then
29361 if test -n "$PKG_CONFIG" && \
29362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29363 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29364 ac_status=$?
29365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29366 test $ac_status = 0; }; then
29367 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29368else
29369 pkg_failed=yes
29370fi
29371 else
29372 pkg_failed=untried
29373fi
29374
29375
29376
29377if test $pkg_failed = yes; then
29378
29379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29380 _pkg_short_errors_supported=yes
29381else
29382 _pkg_short_errors_supported=no
29383fi
29384 if test $_pkg_short_errors_supported = yes; then
29385 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29386 else
29387 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29388 fi
29389 # Put the nasty error message in config.log where it belongs
29390 echo "$FONTCONFIG_PKG_ERRORS" >&5
29391
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29393$as_echo "no" >&6; }
29394 have_fontconfig=no
29395elif test $pkg_failed = untried; then
29396 have_fontconfig=no
29397else
29398 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29399 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29401$as_echo "yes" >&6; }
29402 have_fontconfig=yes
29403fi
cristy09b53e12011-10-14 12:47:22 +000029404 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29405$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029406fi
29407
29408if test "$have_fontconfig" = 'yes'; then
29409
cristy8b350f62009-11-15 23:12:43 +000029410$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029411
cristyd09bcf92010-03-25 03:04:45 +000029412 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029413 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029414 fi
cristy3ed852e2009-09-05 21:47:34 +000029415fi
29416
cristy73bd4a52010-10-05 11:24:23 +000029417 if test "$have_fontconfig" = 'yes'; then
29418 FONTCONFIG_DELEGATE_TRUE=
29419 FONTCONFIG_DELEGATE_FALSE='#'
29420else
29421 FONTCONFIG_DELEGATE_TRUE='#'
29422 FONTCONFIG_DELEGATE_FALSE=
29423fi
29424
cristy3ed852e2009-09-05 21:47:34 +000029425
29426
29427
29428
29429#
cristy81beccd2011-10-03 18:17:24 +000029430# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029431#
29432
29433# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029434if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029435 withval=$with_freetype; with_freetype=$withval
29436else
29437 with_freetype='yes'
29438fi
29439
29440
cristy81beccd2011-10-03 18:17:24 +000029441
cristy3ed852e2009-09-05 21:47:34 +000029442if test "$with_freetype" != 'yes'; then
29443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29444fi
29445
cristy81beccd2011-10-03 18:17:24 +000029446have_freetype='no'
29447FREETYPE_LIBS=''
29448if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29450$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29452$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029453 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29454$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029455 failed=0
29456 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029457 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029458 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029459 freetype_config=''
29460 # Allow the user to specify the location of freetype.
29461 if test "$with_freetype" != 'yes'; then
29462 if test -x "${with_freetype}/bin/freetype-config"; then
29463 freetype_config="${with_freetype}/bin/freetype-config"
29464 elif test -x "${with_freetype}"; then
29465 freetype_config=${with_freetype}
29466 fi
29467 fi
29468 if test -z "$freetype_config"; then
29469 # Extract the first word of "freetype-config", so it can be a program name with args.
29470set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29472$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029473if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029474 $as_echo_n "(cached) " >&6
29475else
cristy98ca0f52011-10-08 23:19:10 +000029476 case $freetype_config in
29477 [\\/]* | ?:[\\/]*)
29478 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29479 ;;
29480 *)
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029482for as_dir in $PATH
29483do
29484 IFS=$as_save_IFS
29485 test -z "$as_dir" && as_dir=.
29486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029488 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29490 break 2
29491 fi
29492done
29493 done
29494IFS=$as_save_IFS
29495
cristy98ca0f52011-10-08 23:19:10 +000029496 ;;
29497esac
cristy81beccd2011-10-03 18:17:24 +000029498fi
cristy98ca0f52011-10-08 23:19:10 +000029499freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029500if test -n "$freetype_config"; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29502$as_echo "$freetype_config" >&6; }
29503else
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29505$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029506fi
29507
cristy98ca0f52011-10-08 23:19:10 +000029508 fi
29509 if test -n "$freetype_config"; then
29510 freetype_prefix=`${freetype_config} --prefix`
29511 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29512 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29513 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029514 fi
29515
29516 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029518$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29519if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29520 $as_echo_n "(cached) " >&6
29521else
29522 ac_check_lib_save_LIBS=$LIBS
29523LIBS="-lfreetype $LIBS"
29524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525/* end confdefs.h. */
29526
29527/* Override any GCC internal prototype to avoid an error.
29528 Use char because int might match the return type of a GCC
29529 builtin and then its argument prototype would still apply. */
29530#ifdef __cplusplus
29531extern "C"
29532#endif
29533char FT_Init_FreeType ();
29534int
29535main ()
29536{
29537return FT_Init_FreeType ();
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542if ac_fn_c_try_link "$LINENO"; then :
29543 ac_cv_lib_freetype_FT_Init_FreeType=yes
29544else
29545 ac_cv_lib_freetype_FT_Init_FreeType=no
29546fi
29547rm -f core conftest.err conftest.$ac_objext \
29548 conftest$ac_exeext conftest.$ac_ext
29549LIBS=$ac_check_lib_save_LIBS
29550fi
29551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29552$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29553if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29554 FREETYPE_LIBS='-lfreetype'
29555fi
29556
cristy98ca0f52011-10-08 23:19:10 +000029557 if test "$FREETYPE_LIBS" != ''; then
29558 passed=`expr $passed + 1`
29559 else
29560 failed=`expr $failed + 1`
29561 LDFLAGS="$PERSIST_LDFLAGS"
29562 fi
cristy81beccd2011-10-03 18:17:24 +000029563 fi
29564
29565 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29566if test "x$ac_cv_header_ft2build_h" = xyes; then :
29567 FT2BUILD_H='#include <ft2build.h>'
29568else
29569 ft2build=''
29570fi
29571
29572
29573 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29574"
29575if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29576 have_freetype_h='yes'
29577else
29578 have_freetype_h='no'
29579fi
29580
29581
cristy98ca0f52011-10-08 23:19:10 +000029582 if test "$have_freetype_h" = 'yes'; then
29583 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029584 else
cristy98ca0f52011-10-08 23:19:10 +000029585 failed=`expr $failed + 1`
29586 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029587 fi
29588
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29590$as_echo_n "checking if FreeType package is complete... " >&6; }
29591 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029592 if test $failed -gt 0; then
29593 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29595$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029596 have_freetype='no (failed tests)'
29597 else
29598 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029599
cristy8b350f62009-11-15 23:12:43 +000029600$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029601
cristy98ca0f52011-10-08 23:19:10 +000029602 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029603
29604$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29605
cristy81beccd2011-10-03 18:17:24 +000029606 fi
cristy09b53e12011-10-14 12:47:22 +000029607 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29608$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029609 have_freetype='yes'
29610 fi
cristy81beccd2011-10-03 18:17:24 +000029611 else
cristy09b53e12011-10-14 12:47:22 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29613$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029614 fi
29615fi
cristy73bd4a52010-10-05 11:24:23 +000029616 if test "$have_freetype" = 'yes'; then
29617 FREETYPE_DELEGATE_TRUE=
29618 FREETYPE_DELEGATE_FALSE='#'
29619else
29620 FREETYPE_DELEGATE_TRUE='#'
29621 FREETYPE_DELEGATE_FALSE=
29622fi
29623
cristy3ed852e2009-09-05 21:47:34 +000029624
29625
29626
cristy3ed852e2009-09-05 21:47:34 +000029627#
29628# Check for Ghostscript library or framework.
29629#
29630# Test for iapi.h & test for gsapi_new_instance in -lgs
29631# or -framework Ghostscript
29632
29633
29634# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029635if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029636 withval=$with_gslib; with_gslib=$withval
29637else
29638 with_gslib='no'
29639fi
29640
29641
cristyb7931f12009-09-25 10:22:21 +000029642gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029643if test "$with_gslib" != 'yes'; then
29644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29645fi
29646
29647have_gslib='no'
29648GS_LIBS=''
29649if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029653$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29655$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029656 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029657 failed=0
29658 passed=0
cristy8b350f62009-11-15 23:12:43 +000029659 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 +000029660if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 passed=`expr $passed + 1`
29662else
29663 failed=`expr $failed + 1`
29664fi
29665
29666
cristy8b350f62009-11-15 23:12:43 +000029667 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 +000029668if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029669 passed=`expr $passed + 1`
29670else
29671 failed=`expr $failed + 1`
29672fi
29673
29674
cristy73bd4a52010-10-05 11:24:23 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29676$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029677if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029678 $as_echo_n "(cached) " >&6
29679else
29680 ac_check_framework_save_LIBS=$LIBS
29681LIBS="-framework Ghostscript $LIBS"
29682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29683/* end confdefs.h. */
29684
29685/* Override any GCC internal prototype to avoid an error.
29686 Use char because int might match the return type of a GCC
29687 builtin and then its argument prototype would still apply. */
29688#ifdef __cplusplus
29689extern "C"
29690#endif
29691char gsapi_new_instance ();
29692int
29693main ()
29694{
29695return gsapi_new_instance ();
29696 ;
29697 return 0;
29698}
29699_ACEOF
29700if ac_fn_c_try_link "$LINENO"; then :
29701 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29702else
29703 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29704fi
29705rm -f core conftest.err conftest.$ac_objext \
29706 conftest$ac_exeext conftest.$ac_ext
29707LIBS=$ac_check_framework_save_LIBS
29708fi
29709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29710$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29711if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29712 framework=`expr $framework + 1`
29713else
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029716if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029717 $as_echo_n "(cached) " >&6
29718else
29719 ac_check_lib_save_LIBS=$LIBS
29720LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029722/* end confdefs.h. */
29723
29724/* Override any GCC internal prototype to avoid an error.
29725 Use char because int might match the return type of a GCC
29726 builtin and then its argument prototype would still apply. */
29727#ifdef __cplusplus
29728extern "C"
29729#endif
29730char gsapi_new_instance ();
29731int
29732main ()
29733{
29734return gsapi_new_instance ();
29735 ;
29736 return 0;
29737}
29738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 ac_cv_lib_gs_gsapi_new_instance=yes
29741else
cristy8b350f62009-11-15 23:12:43 +000029742 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029743fi
cristy8b350f62009-11-15 23:12:43 +000029744rm -f core conftest.err conftest.$ac_objext \
29745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029746LIBS=$ac_check_lib_save_LIBS
29747fi
cristy8b350f62009-11-15 23:12:43 +000029748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029749$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029750if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029751 passed=`expr $passed + 1`
29752else
29753 failed=`expr $failed + 1`
29754fi
cristy73bd4a52010-10-05 11:24:23 +000029755
29756fi
cristy8b350f62009-11-15 23:12:43 +000029757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29759 if test $passed -gt 0; then
29760 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029761 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29762$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029763 have_gslib='no (failed tests)'
29764 else
29765 if test $framework -gt 0; then
29766 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029767 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29769$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029770 else
cristy09b53e12011-10-14 12:47:22 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29772$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029773 GS_LIBS='-lgs'
29774 fi
29775 LIBS="$GS_LIBS $LIBS"
29776
cristy8b350f62009-11-15 23:12:43 +000029777$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029778
29779 have_gslib='yes'
29780 fi
29781 else
cristy09b53e12011-10-14 12:47:22 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29783$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029784 fi
29785fi
cristy73bd4a52010-10-05 11:24:23 +000029786 if test "$have_gslib" = 'yes'; then
29787 GS_DELEGATE_TRUE=
29788 GS_DELEGATE_FALSE='#'
29789else
29790 GS_DELEGATE_TRUE='#'
29791 GS_DELEGATE_FALSE=
29792fi
29793
cristy3ed852e2009-09-05 21:47:34 +000029794
29795
29796# Set default font search path
29797
29798# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029799if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029800 withval=$with_fontpath; with_fontpath=$withval
29801else
29802 with_fontpath=''
29803fi
29804
29805
29806if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29807 with_fontpath=''
29808else
29809
29810cat >>confdefs.h <<_ACEOF
29811#define MAGICK_FONT_PATH "$with_fontpath"
29812_ACEOF
29813
29814fi
29815if test "$with_fontpath=" != ''; then
29816 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29817fi
29818
29819# Set Ghostscript font directory
29820
29821# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029822if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029823 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29824else
29825 with_gs_font_dir='default'
29826fi
29827
29828
29829if test "$with_gs_font_dir" != 'default'; then
29830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29831fi
29832
29833
29834#
29835# Check for GVC delegate library.
29836#
29837
29838# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029839if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029840 withval=$with_gvc; with_gvc=$withval
29841else
cristy1b70dc82012-07-01 23:15:05 +000029842 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029843fi
29844
29845
29846if test "$with_gvc" != 'yes'; then
29847 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29848fi
29849
29850GVC_PKG=""
29851if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29853$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029854
29855pkg_failed=no
29856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29857$as_echo_n "checking for GVC... " >&6; }
29858
29859if test -n "$GVC_CFLAGS"; then
29860 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29861 elif test -n "$PKG_CONFIG"; then
29862 if test -n "$PKG_CONFIG" && \
29863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29864 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29865 ac_status=$?
29866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29867 test $ac_status = 0; }; then
29868 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29869else
29870 pkg_failed=yes
29871fi
29872 else
29873 pkg_failed=untried
29874fi
29875if test -n "$GVC_LIBS"; then
29876 pkg_cv_GVC_LIBS="$GVC_LIBS"
29877 elif test -n "$PKG_CONFIG"; then
29878 if test -n "$PKG_CONFIG" && \
29879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29880 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29881 ac_status=$?
29882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29883 test $ac_status = 0; }; then
29884 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29885else
29886 pkg_failed=yes
29887fi
29888 else
29889 pkg_failed=untried
29890fi
29891
29892
29893
29894if test $pkg_failed = yes; then
29895
29896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29897 _pkg_short_errors_supported=yes
29898else
29899 _pkg_short_errors_supported=no
29900fi
29901 if test $_pkg_short_errors_supported = yes; then
29902 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29903 else
29904 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29905 fi
29906 # Put the nasty error message in config.log where it belongs
29907 echo "$GVC_PKG_ERRORS" >&5
29908
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29910$as_echo "no" >&6; }
29911 have_gvc=no
29912elif test $pkg_failed = untried; then
29913 have_gvc=no
29914else
29915 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29916 GVC_LIBS=$pkg_cv_GVC_LIBS
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29918$as_echo "yes" >&6; }
29919 have_gvc=yes
29920fi
cristy09b53e12011-10-14 12:47:22 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29922$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029923fi
29924
29925if test "$have_gvc" = 'yes'; then
29926
cristy8b350f62009-11-15 23:12:43 +000029927$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029928
29929 if test "$with_modules" = 'no'; then
29930 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29931 fi
29932fi
29933
cristy73bd4a52010-10-05 11:24:23 +000029934 if test "$have_gvc" = 'yes'; then
29935 GVC_DELEGATE_TRUE=
29936 GVC_DELEGATE_FALSE='#'
29937else
29938 GVC_DELEGATE_TRUE='#'
29939 GVC_DELEGATE_FALSE=
29940fi
29941
cristy3ed852e2009-09-05 21:47:34 +000029942
29943
29944
29945
29946#
29947# Check for JBIG delegate library.
29948#
29949
29950
29951# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029952if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029953 withval=$with_jbig; with_jbig=$withval
29954else
29955 with_jbig='yes'
29956fi
29957
29958
29959have_jbig='no'
29960JBIG_LIBS=''
29961if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29963$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029965$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29967$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029968 failed=0
29969 passed=0
cristy8b350f62009-11-15 23:12:43 +000029970 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029971if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029972 passed=`expr $passed + 1`
29973else
29974 failed=`expr $failed + 1`
29975fi
29976
29977
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029980if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 $as_echo_n "(cached) " >&6
29982else
29983 ac_check_lib_save_LIBS=$LIBS
29984LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029986/* end confdefs.h. */
29987
29988/* Override any GCC internal prototype to avoid an error.
29989 Use char because int might match the return type of a GCC
29990 builtin and then its argument prototype would still apply. */
29991#ifdef __cplusplus
29992extern "C"
29993#endif
29994char jbg_dec_init ();
29995int
29996main ()
29997{
29998return jbg_dec_init ();
29999 ;
30000 return 0;
30001}
30002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030003if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030004 ac_cv_lib_jbig_jbg_dec_init=yes
30005else
cristy8b350f62009-11-15 23:12:43 +000030006 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030007fi
cristy8b350f62009-11-15 23:12:43 +000030008rm -f core conftest.err conftest.$ac_objext \
30009 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030010LIBS=$ac_check_lib_save_LIBS
30011fi
cristy8b350f62009-11-15 23:12:43 +000030012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030013$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030014if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030015 passed=`expr $passed + 1`
30016else
30017 failed=`expr $failed + 1`
30018fi
30019
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo_n "checking if JBIG package is complete... " >&6; }
30022 if test $passed -gt 0; then
30023 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030024 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30025$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030026 have_jbig='no (failed tests)'
30027 else
30028 JBIG_LIBS='-ljbig'
30029 LIBS="$JBIG_LIBS $LIBS"
30030
cristy8b350f62009-11-15 23:12:43 +000030031$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030032
cristy09b53e12011-10-14 12:47:22 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30034$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030035 have_jbig='yes'
30036 fi
30037 else
cristy09b53e12011-10-14 12:47:22 +000030038 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30039$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030040 fi
30041fi
cristy73bd4a52010-10-05 11:24:23 +000030042 if test "$have_jbig" = 'yes'; then
30043 JBIG_DELEGATE_TRUE=
30044 JBIG_DELEGATE_FALSE='#'
30045else
30046 JBIG_DELEGATE_TRUE='#'
30047 JBIG_DELEGATE_FALSE=
30048fi
30049
cristy3ed852e2009-09-05 21:47:34 +000030050
30051
30052
30053#
30054# Check for JPEG delegate library.
30055#
30056
30057# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030058if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 withval=$with_jpeg; with_jpeg=$withval
30060else
30061 with_jpeg='yes'
30062fi
30063
30064
30065if test "$with_jpeg" != 'yes'; then
30066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30067fi
30068
30069have_jpeg='no'
30070JPEG_LIBS=''
30071if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30073$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030075$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30077$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030078 failed=0
30079 passed=0
cristy8b350f62009-11-15 23:12:43 +000030080 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030081if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 passed=`expr $passed + 1`
30083else
30084 failed=`expr $failed + 1`
30085fi
30086
30087
cristy8b350f62009-11-15 23:12:43 +000030088 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030089if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030090 passed=`expr $passed + 1`
30091else
30092 failed=`expr $failed + 1`
30093fi
30094
30095
cristy8b350f62009-11-15 23:12:43 +000030096 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030097if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 passed=`expr $passed + 1`
30099else
30100 failed=`expr $failed + 1`
30101fi
30102
30103
cristy8b350f62009-11-15 23:12:43 +000030104 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030105if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030106 passed=`expr $passed + 1`
30107else
30108 failed=`expr $failed + 1`
30109fi
30110
30111
cristy8b350f62009-11-15 23:12:43 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030114if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 $as_echo_n "(cached) " >&6
30116else
30117 ac_check_lib_save_LIBS=$LIBS
30118LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030120/* end confdefs.h. */
30121
30122/* Override any GCC internal prototype to avoid an error.
30123 Use char because int might match the return type of a GCC
30124 builtin and then its argument prototype would still apply. */
30125#ifdef __cplusplus
30126extern "C"
30127#endif
30128char jpeg_read_header ();
30129int
30130main ()
30131{
30132return jpeg_read_header ();
30133 ;
30134 return 0;
30135}
30136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030138 ac_cv_lib_jpeg_jpeg_read_header=yes
30139else
cristy8b350f62009-11-15 23:12:43 +000030140 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030141fi
cristy8b350f62009-11-15 23:12:43 +000030142rm -f core conftest.err conftest.$ac_objext \
30143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030144LIBS=$ac_check_lib_save_LIBS
30145fi
cristy8b350f62009-11-15 23:12:43 +000030146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030147$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030148if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030149 passed=`expr $passed + 1`
30150else
30151 failed=`expr $failed + 1`
30152fi
30153
30154
30155# Test for compatible JPEG library
30156if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030159if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 $as_echo_n "(cached) " >&6
30161else
cristy8b350f62009-11-15 23:12:43 +000030162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030163/* end confdefs.h. */
30164#include <stdio.h>
30165#include <stdlib.h>
30166#include <jpeglib.h>
30167
30168int
30169main ()
30170{
30171
30172#if JPEG_LIB_VERSION < 62
30173#error IJG JPEG library must be version 6b or newer!
30174#endif
30175return 0;
30176
30177 ;
30178 return 0;
30179}
30180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030182 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30183else
cristy8b350f62009-11-15 23:12:43 +000030184 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030185fi
cristy3ed852e2009-09-05 21:47:34 +000030186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30187fi
cristy8b350f62009-11-15 23:12:43 +000030188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30190fi
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking if JPEG package is complete... " >&6; }
30193 if test $passed -gt 0; then
30194 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30196$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030197 have_jpeg='no (failed tests)'
30198 else
30199 JPEG_LIBS='-ljpeg'
30200 LIBS="$JPEG_LIBS $LIBS"
30201
cristy8b350f62009-11-15 23:12:43 +000030202$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030203
cristy09b53e12011-10-14 12:47:22 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30205$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030206 have_jpeg='yes'
30207 fi
30208 else
cristy09b53e12011-10-14 12:47:22 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30210$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030211 fi
30212fi
cristy73bd4a52010-10-05 11:24:23 +000030213 if test "$have_jpeg" = 'yes'; then
30214 JPEG_DELEGATE_TRUE=
30215 JPEG_DELEGATE_FALSE='#'
30216else
30217 JPEG_DELEGATE_TRUE='#'
30218 JPEG_DELEGATE_FALSE=
30219fi
30220
cristy3ed852e2009-09-05 21:47:34 +000030221
30222
30223
30224#
30225# Check for JPEG Version 2 delegate library.
30226#
30227
30228# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030229if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030230 withval=$with_jp2; with_jp2=$withval
30231else
30232 with_jp2='yes'
30233fi
30234
30235
30236if test "$with_jp2" != 'yes'; then
30237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30238fi
30239
30240have_jp2='no'
30241JP2_LIBS=''
30242if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030243 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30244$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030246$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30248$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030249 failed=0
30250 passed=0
cristy8b350f62009-11-15 23:12:43 +000030251 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 +000030252if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 passed=`expr $passed + 1`
30254else
30255 failed=`expr $failed + 1`
30256fi
30257
30258
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030261if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030262 $as_echo_n "(cached) " >&6
30263else
30264 ac_check_lib_save_LIBS=$LIBS
30265LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030267/* end confdefs.h. */
30268
30269/* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30272#ifdef __cplusplus
30273extern "C"
30274#endif
30275char jas_stream_fopen ();
30276int
30277main ()
30278{
30279return jas_stream_fopen ();
30280 ;
30281 return 0;
30282}
30283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 ac_cv_lib_jasper_jas_stream_fopen=yes
30286else
cristy8b350f62009-11-15 23:12:43 +000030287 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030288fi
cristy8b350f62009-11-15 23:12:43 +000030289rm -f core conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030291LIBS=$ac_check_lib_save_LIBS
30292fi
cristy8b350f62009-11-15 23:12:43 +000030293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030295if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030296 passed=`expr $passed + 1`
30297else
30298 failed=`expr $failed + 1`
30299fi
30300
cristy8b350f62009-11-15 23:12:43 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030302$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30303 if test $passed -gt 0; then
30304 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30306$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030307 have_jp2='no (failed tests)'
30308 else
30309 JP2_LIBS='-ljasper'
30310 LIBS="$JP2_LIBS $LIBS"
30311
cristy8b350f62009-11-15 23:12:43 +000030312$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030313
cristy09b53e12011-10-14 12:47:22 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30315$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030316 have_jp2='yes'
30317 fi
30318 else
cristy09b53e12011-10-14 12:47:22 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30320$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030321 fi
30322fi
cristy73bd4a52010-10-05 11:24:23 +000030323 if test "$have_jp2" = 'yes'; then
30324 JP2_DELEGATE_TRUE=
30325 JP2_DELEGATE_FALSE='#'
30326else
30327 JP2_DELEGATE_TRUE='#'
30328 JP2_DELEGATE_FALSE=
30329fi
30330
cristy3ed852e2009-09-05 21:47:34 +000030331
30332
30333
30334#
30335# Check for LCMS delegate library.
30336#
cristy71203402010-06-18 13:12:03 +000030337# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030338
30339# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030340if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030341 withval=$with_lcms; with_lcms=$withval
30342else
30343 with_lcms='yes'
30344fi
30345
cristy71203402010-06-18 13:12:03 +000030346if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30348fi
30349
cristy71203402010-06-18 13:12:03 +000030350# Disable LCMS2.
30351
30352# Check whether --with-lcms2 was given.
30353if test "${with_lcms2+set}" = set; then :
30354 withval=$with_lcms2; with_lcms2=$withval
30355else
30356 with_lcms2='yes'
30357fi
30358
30359if test "$with_lcms2" != 'yes' ; then
30360 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30361fi
30362
30363have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030364LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030365if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030366 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30367$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30369$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030370 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30371$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030372 failed=0
30373 passed=0
30374 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030375
30376 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030377 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030378if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030379 have_lcms_header='yes'
30380fi
30381
30382
30383 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030384
30385$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30386
cristy71203402010-06-18 13:12:03 +000030387 passed=`expr $passed + 1`
30388 fi
30389
30390 # Check for <lcms2/lcms2.h)
30391 if test "$have_lcms_header" != 'yes'; then
30392 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 +000030393if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030394 have_lcms_header='yes'
30395fi
30396
30397
cristy71203402010-06-18 13:12:03 +000030398 if test "$have_lcms_header" = 'yes'; then
30399 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030400
cristy71203402010-06-18 13:12:03 +000030401$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030402
cristy71203402010-06-18 13:12:03 +000030403 fi
cristyd09bcf92010-03-25 03:04:45 +000030404 fi
cristy71203402010-06-18 13:12:03 +000030405
30406 # Failed to find lcms header?
30407 if test "$have_lcms_header" != 'yes'; then
30408 failed=`expr $failed + 1`
30409 fi
30410
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30412$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030413if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030414 $as_echo_n "(cached) " >&6
30415else
30416 ac_check_lib_save_LIBS=$LIBS
30417LIBS="-llcms2 $LIBS"
30418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30419/* end confdefs.h. */
30420
30421/* Override any GCC internal prototype to avoid an error.
30422 Use char because int might match the return type of a GCC
30423 builtin and then its argument prototype would still apply. */
30424#ifdef __cplusplus
30425extern "C"
30426#endif
cristy71203402010-06-18 13:12:03 +000030427char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030428int
30429main ()
30430{
cristy71203402010-06-18 13:12:03 +000030431return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030432 ;
30433 return 0;
30434}
30435_ACEOF
30436if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030437 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030438else
cristy71203402010-06-18 13:12:03 +000030439 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030440fi
30441rm -f core conftest.err conftest.$ac_objext \
30442 conftest$ac_exeext conftest.$ac_ext
30443LIBS=$ac_check_lib_save_LIBS
30444fi
cristy71203402010-06-18 13:12:03 +000030445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30446$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030447if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030448 passed=`expr $passed + 1`
30449else
30450 failed=`expr $failed + 1`
30451fi
30452
cristy71203402010-06-18 13:12:03 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30454$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030455 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030456 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30458$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030459 have_lcms2='no (failed tests)'
30460 else
30461 LCMS_LIBS='-llcms2'
30462 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30464$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030465 have_lcms2='yes'
30466 fi
cristyd09bcf92010-03-25 03:04:45 +000030467 else
cristy09b53e12011-10-14 12:47:22 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30469$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030470 fi
30471fi
30472
cristy71203402010-06-18 13:12:03 +000030473#
30474# Check for LCMS v1 (1.11 or later)
30475#
30476if test $have_lcms2 = 'yes'; then
30477 with_lcms='no'
30478fi
30479
30480have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030481if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30483$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30485$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30487$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030488 failed=0
30489 passed=0
30490 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030491
30492 # Check for <lcms.h>
30493 if test "$have_lcms_header" != 'yes'; then
30494 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030495if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030496 have_lcms_header='yes'
30497fi
30498
30499
cristy71203402010-06-18 13:12:03 +000030500 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030501 passed=`expr $passed + 1`
30502
cristy8b350f62009-11-15 23:12:43 +000030503$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030504
cristy71203402010-06-18 13:12:03 +000030505 fi
30506 fi
30507
30508 # Check for <lcms/lcms.h>
30509 if test "$have_lcms_header" != 'yes'; then
30510 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 +000030511if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030512 have_lcms_header='yes'
30513fi
30514
30515
cristy71203402010-06-18 13:12:03 +000030516 if test "$have_lcms_header" = 'yes'; then
30517 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030518
cristy8b350f62009-11-15 23:12:43 +000030519$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030520
cristy71203402010-06-18 13:12:03 +000030521 fi
cristy3ed852e2009-09-05 21:47:34 +000030522 fi
cristy71203402010-06-18 13:12:03 +000030523
30524 # Failed to find lcms header?
30525 if test "$have_lcms_header" != 'yes'; then
30526 failed=`expr $failed + 1`
30527 fi
30528
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30530$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030531if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030532 $as_echo_n "(cached) " >&6
30533else
30534 ac_check_lib_save_LIBS=$LIBS
30535LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030537/* end confdefs.h. */
30538
30539/* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30542#ifdef __cplusplus
30543extern "C"
30544#endif
cristy71203402010-06-18 13:12:03 +000030545char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030546int
30547main ()
30548{
cristy71203402010-06-18 13:12:03 +000030549return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030550 ;
30551 return 0;
30552}
30553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030554if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030555 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030556else
cristy71203402010-06-18 13:12:03 +000030557 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030558fi
cristy8b350f62009-11-15 23:12:43 +000030559rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030561LIBS=$ac_check_lib_save_LIBS
30562fi
cristy71203402010-06-18 13:12:03 +000030563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30564$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030565if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030566 passed=`expr $passed + 1`
30567else
30568 failed=`expr $failed + 1`
30569fi
30570
cristy8b350f62009-11-15 23:12:43 +000030571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030572$as_echo_n "checking if LCMS package is complete... " >&6; }
30573 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030574 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030575 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30576$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030577 have_lcms='no (failed tests)'
30578 else
30579 LCMS_LIBS='-llcms'
30580 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30582$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030583 have_lcms='yes'
30584 fi
cristy3ed852e2009-09-05 21:47:34 +000030585 else
cristy09b53e12011-10-14 12:47:22 +000030586 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30587$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030588 fi
30589fi
cristy71203402010-06-18 13:12:03 +000030590
cristy73bd4a52010-10-05 11:24:23 +000030591 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30592 LCMS_DELEGATE_TRUE=
30593 LCMS_DELEGATE_FALSE='#'
30594else
30595 LCMS_DELEGATE_TRUE='#'
30596 LCMS_DELEGATE_FALSE=
30597fi
30598
cristy71203402010-06-18 13:12:03 +000030599if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30600
30601$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30602
30603fi
30604
cristy3ed852e2009-09-05 21:47:34 +000030605
30606
30607
30608#
30609# Check for the LQR (Liquid Rescale) delegate library.
30610#
30611
30612# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030613if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030614 withval=$with_lqr; with_lqr=$withval
30615else
30616 with_lqr='yes'
30617fi
30618
30619
30620if test "$with_lqr" != 'yes'; then
30621 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30622fi
30623
30624have_lqr='no'
30625LQR_CFLAGS=""
30626LQR_LIBS=""
30627LQR_PKG=""
30628if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30630$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030631
30632pkg_failed=no
30633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30634$as_echo_n "checking for LQR... " >&6; }
30635
30636if test -n "$LQR_CFLAGS"; then
30637 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30638 elif test -n "$PKG_CONFIG"; then
30639 if test -n "$PKG_CONFIG" && \
30640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30641 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30642 ac_status=$?
30643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30644 test $ac_status = 0; }; then
30645 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30646else
30647 pkg_failed=yes
30648fi
30649 else
30650 pkg_failed=untried
30651fi
30652if test -n "$LQR_LIBS"; then
30653 pkg_cv_LQR_LIBS="$LQR_LIBS"
30654 elif test -n "$PKG_CONFIG"; then
30655 if test -n "$PKG_CONFIG" && \
30656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30657 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30658 ac_status=$?
30659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30660 test $ac_status = 0; }; then
30661 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30662else
30663 pkg_failed=yes
30664fi
30665 else
30666 pkg_failed=untried
30667fi
30668
30669
30670
30671if test $pkg_failed = yes; then
30672
30673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30674 _pkg_short_errors_supported=yes
30675else
30676 _pkg_short_errors_supported=no
30677fi
30678 if test $_pkg_short_errors_supported = yes; then
30679 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30680 else
30681 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30682 fi
30683 # Put the nasty error message in config.log where it belongs
30684 echo "$LQR_PKG_ERRORS" >&5
30685
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30687$as_echo "no" >&6; }
30688 have_lqr=no
30689elif test $pkg_failed = untried; then
30690 have_lqr=no
30691else
30692 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30693 LQR_LIBS=$pkg_cv_LQR_LIBS
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30695$as_echo "yes" >&6; }
30696 have_lqr=yes
30697fi
cristy09b53e12011-10-14 12:47:22 +000030698 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30699$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030700fi
30701
30702if test "$have_lqr" = 'yes'; then
30703
cristy8b350f62009-11-15 23:12:43 +000030704$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030705
30706 CFLAGS="$LQR_CFLAGS $CFLAGS"
30707fi
30708
cristy73bd4a52010-10-05 11:24:23 +000030709 if test "$have_lqr" = 'yes'; then
30710 LQR_DELEGATE_TRUE=
30711 LQR_DELEGATE_FALSE='#'
30712else
30713 LQR_DELEGATE_TRUE='#'
30714 LQR_DELEGATE_FALSE=
30715fi
30716
cristy3ed852e2009-09-05 21:47:34 +000030717
30718
30719
30720
cristy81beccd2011-10-03 18:17:24 +000030721# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030722
30723# Check whether --with-lzma was given.
30724if test "${with_lzma+set}" = set; then :
30725 withval=$with_lzma; with_lzma=$withval
30726else
30727 with_lzma='yes'
30728fi
30729
cristy81beccd2011-10-03 18:17:24 +000030730if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030731 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30732fi
30733
cristyb94e5002011-11-14 13:20:10 +000030734LZMA_PKG=""
30735if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30737$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030738
30739pkg_failed=no
30740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030741$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030742
30743if test -n "$LZMA_CFLAGS"; then
30744 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30745 elif test -n "$PKG_CONFIG"; then
30746 if test -n "$PKG_CONFIG" && \
30747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30748 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30749 ac_status=$?
30750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30751 test $ac_status = 0; }; then
30752 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30753else
30754 pkg_failed=yes
30755fi
30756 else
30757 pkg_failed=untried
30758fi
30759if test -n "$LZMA_LIBS"; then
30760 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30761 elif test -n "$PKG_CONFIG"; then
30762 if test -n "$PKG_CONFIG" && \
30763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30764 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30765 ac_status=$?
30766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30767 test $ac_status = 0; }; then
30768 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30769else
30770 pkg_failed=yes
30771fi
30772 else
30773 pkg_failed=untried
30774fi
30775
30776
30777
30778if test $pkg_failed = yes; then
30779
30780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30781 _pkg_short_errors_supported=yes
30782else
30783 _pkg_short_errors_supported=no
30784fi
30785 if test $_pkg_short_errors_supported = yes; then
30786 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30787 else
30788 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30789 fi
30790 # Put the nasty error message in config.log where it belongs
30791 echo "$LZMA_PKG_ERRORS" >&5
30792
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30794$as_echo "no" >&6; }
30795 have_lzma=no
30796elif test $pkg_failed = untried; then
30797 have_lzma=no
30798else
30799 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30800 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30802$as_echo "yes" >&6; }
30803 have_lzma=yes
30804fi
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030806$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030807fi
30808
cristyb94e5002011-11-14 13:20:10 +000030809if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030810
30811$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30812
cristyb94e5002011-11-14 13:20:10 +000030813 if test "$with_modules" = 'no'; then
30814 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030815 fi
cristyfbb0ef02010-12-19 02:32:11 +000030816fi
cristyb94e5002011-11-14 13:20:10 +000030817
cristyfbb0ef02010-12-19 02:32:11 +000030818 if test "$have_lzma" = 'yes'; then
30819 LZMA_DELEGATE_TRUE=
30820 LZMA_DELEGATE_FALSE='#'
30821else
30822 LZMA_DELEGATE_TRUE='#'
30823 LZMA_DELEGATE_FALSE=
30824fi
30825
30826
30827
30828
cristyb94e5002011-11-14 13:20:10 +000030829
cristy3ed852e2009-09-05 21:47:34 +000030830#
30831# Check for the OpenEXR delegate library.
30832#
30833
30834# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030835if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030836 withval=$with_openexr; with_openexr=$withval
30837else
30838 with_openexr='yes'
30839fi
30840
30841
30842if test "$with_openexr" != 'yes'; then
30843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30844fi
30845
30846have_openexr='no'
30847OPENEXR_CFLAGS=""
30848OPENEXR_LIBS=""
30849OPENEXR_PKG=""
30850if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30852$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030853
30854pkg_failed=no
30855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30856$as_echo_n "checking for OPENEXR... " >&6; }
30857
30858if test -n "$OPENEXR_CFLAGS"; then
30859 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30860 elif test -n "$PKG_CONFIG"; then
30861 if test -n "$PKG_CONFIG" && \
30862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30863 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30864 ac_status=$?
30865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30866 test $ac_status = 0; }; then
30867 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30868else
30869 pkg_failed=yes
30870fi
30871 else
30872 pkg_failed=untried
30873fi
30874if test -n "$OPENEXR_LIBS"; then
30875 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30876 elif test -n "$PKG_CONFIG"; then
30877 if test -n "$PKG_CONFIG" && \
30878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30879 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30880 ac_status=$?
30881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30882 test $ac_status = 0; }; then
30883 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30884else
30885 pkg_failed=yes
30886fi
30887 else
30888 pkg_failed=untried
30889fi
30890
30891
30892
30893if test $pkg_failed = yes; then
30894
30895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30896 _pkg_short_errors_supported=yes
30897else
30898 _pkg_short_errors_supported=no
30899fi
30900 if test $_pkg_short_errors_supported = yes; then
30901 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30902 else
30903 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30904 fi
30905 # Put the nasty error message in config.log where it belongs
30906 echo "$OPENEXR_PKG_ERRORS" >&5
30907
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909$as_echo "no" >&6; }
30910 have_openexr=no
30911elif test $pkg_failed = untried; then
30912 have_openexr=no
30913else
30914 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30915 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30917$as_echo "yes" >&6; }
30918 have_openexr=yes
30919fi
cristy09b53e12011-10-14 12:47:22 +000030920 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30921$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030922fi
30923
30924if test "$have_openexr" = 'yes'; then
30925
cristy8b350f62009-11-15 23:12:43 +000030926$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030927
30928 if test "$with_modules" = 'no'; then
30929 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30930 fi
30931fi
30932
cristy73bd4a52010-10-05 11:24:23 +000030933 if test "$have_openexr" = 'yes'; then
30934 OPENEXR_DELEGATE_TRUE=
30935 OPENEXR_DELEGATE_FALSE='#'
30936else
30937 OPENEXR_DELEGATE_TRUE='#'
30938 OPENEXR_DELEGATE_FALSE=
30939fi
30940
cristy3ed852e2009-09-05 21:47:34 +000030941
30942
30943
30944
30945#
cristy41cbe8a2011-10-27 01:35:18 +000030946# Check for PANGO delegate library.
30947#
30948
30949# Check whether --with-pango was given.
30950if test "${with_pango+set}" = set; then :
30951 withval=$with_pango; with_pango=$withval
30952else
cristyfc3d0222012-02-07 15:05:57 +000030953 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030954fi
30955
30956
30957if test "$with_pango" != 'yes'; then
30958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30959fi
30960
30961have_pango='no'
cristya054b762012-03-26 23:16:00 +000030962have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030963PANGO_CFLAGS=""
30964PANGO_LIBS=""
30965PANGO_PKG=""
30966if test "x$with_pango" = "xyes"; then
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30968$as_echo "-------------------------------------------------------------" >&6; }
30969
30970pkg_failed=no
30971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30972$as_echo_n "checking for PANGO... " >&6; }
30973
30974if test -n "$PANGO_CFLAGS"; then
30975 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30976 elif test -n "$PKG_CONFIG"; then
30977 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30979 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030980 ac_status=$?
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030983 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030984else
30985 pkg_failed=yes
30986fi
30987 else
30988 pkg_failed=untried
30989fi
30990if test -n "$PANGO_LIBS"; then
30991 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30992 elif test -n "$PKG_CONFIG"; then
30993 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30995 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030996 ac_status=$?
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030999 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031000else
31001 pkg_failed=yes
31002fi
31003 else
31004 pkg_failed=untried
31005fi
31006
31007
31008
31009if test $pkg_failed = yes; then
31010
31011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31012 _pkg_short_errors_supported=yes
31013else
31014 _pkg_short_errors_supported=no
31015fi
31016 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031017 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031018 else
cristya054b762012-03-26 23:16:00 +000031019 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031020 fi
31021 # Put the nasty error message in config.log where it belongs
31022 echo "$PANGO_PKG_ERRORS" >&5
31023
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31025$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031026 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031027elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031028 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031029else
31030 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31031 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31033$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031034 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031035fi
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31037$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031038
31039pkg_failed=no
31040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31041$as_echo_n "checking for PANGO... " >&6; }
31042
31043if test -n "$PANGO_CFLAGS"; then
31044 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31045 elif test -n "$PKG_CONFIG"; then
31046 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31048 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031049 ac_status=$?
31050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31051 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031052 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031053else
31054 pkg_failed=yes
31055fi
31056 else
31057 pkg_failed=untried
31058fi
31059if test -n "$PANGO_LIBS"; then
31060 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31061 elif test -n "$PKG_CONFIG"; then
31062 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31064 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031065 ac_status=$?
31066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31067 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031068 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031069else
31070 pkg_failed=yes
31071fi
31072 else
31073 pkg_failed=untried
31074fi
31075
31076
31077
31078if test $pkg_failed = yes; then
31079
31080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31081 _pkg_short_errors_supported=yes
31082else
31083 _pkg_short_errors_supported=no
31084fi
31085 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031086 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031087 else
cristy2542fc62011-12-06 17:50:25 +000031088 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031089 fi
31090 # Put the nasty error message in config.log where it belongs
31091 echo "$PANGO_PKG_ERRORS" >&5
31092
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31094$as_echo "no" >&6; }
31095 have_pango=no
31096elif test $pkg_failed = untried; then
31097 have_pango=no
31098else
31099 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31100 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31102$as_echo "yes" >&6; }
31103 have_pango=yes
31104fi
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31106$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031107fi
31108
31109if test "$have_pango" = 'yes'; then
31110
31111$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31112
31113 if test "$with_modules" = 'no'; then
31114 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31115 fi
31116fi
31117
cristya054b762012-03-26 23:16:00 +000031118if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031119
cristya054b762012-03-26 23:16:00 +000031120$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031121
31122 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031123 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031124 fi
31125fi
31126
31127 if test "$have_pango" = 'yes'; then
31128 PANGO_DELEGATE_TRUE=
31129 PANGO_DELEGATE_FALSE='#'
31130else
31131 PANGO_DELEGATE_TRUE='#'
31132 PANGO_DELEGATE_FALSE=
31133fi
31134
cristya054b762012-03-26 23:16:00 +000031135 if test "$have_pangocairo" = 'yes'; then
31136 PANGOCAIRO_DELEGATE_TRUE=
31137 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031138else
cristya054b762012-03-26 23:16:00 +000031139 PANGOCAIRO_DELEGATE_TRUE='#'
31140 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031141fi
31142
31143
31144
31145
31146
31147#
cristy3ed852e2009-09-05 21:47:34 +000031148# Check for PNG delegate library.
31149#
31150
31151# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031152if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031153 withval=$with_png; with_png=$withval
31154else
31155 with_png='yes'
31156fi
31157
31158
31159if test "$with_png" != 'yes'; then
31160 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31161fi
31162
cristy81beccd2011-10-03 18:17:24 +000031163have_png='no'
31164PNG_LIBS=''
31165
31166if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31168$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31170$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031171 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31172$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031173 failed=0
31174 passed=0
31175 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31176if test "x$ac_cv_header_png_h" = xyes; then :
31177 passed=`expr $passed + 1`
31178else
31179 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031180fi
31181
cristy81beccd2011-10-03 18:17:24 +000031182
31183
31184 if test $passed -gt 0; then
31185 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031186 if test "$have_png" = 'no' ; then
31187 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031188 pnglib='png'
31189 else
31190 pnglib="png1${var}"
31191 fi
31192
31193# Test for compatible LIBPNG library
31194 failed=0
31195 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031196 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031197 if test "${pnglib}" != 'png' ; then
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31199$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31201/* end confdefs.h. */
31202#include <stdio.h>
31203#include <stdlib.h>
31204#include <png.h>
31205
31206int
31207main ()
31208{
31209
31210#if PNG_LIBPNG_VER_MINOR != ${var}
31211#error LIBPNG library must be version 1${var}!
31212Kaboom, Kaboom
31213#endif
31214return 0;
31215
31216 ;
31217 return 0;
31218}
31219_ACEOF
31220if ac_fn_c_try_compile "$LINENO"; then :
31221 ac_cv_libpng_ok='yes'
31222else
31223 ac_cv_libpng_ok='no'
31224fi
31225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31226 if test "$ac_cv_libpng_ok" = 'yes' ; then
31227 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031228 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31229$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031230 else
31231 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031232 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31233$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031234 fi
31235 else
31236 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031237 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31238$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031239 fi
31240 fi
31241
31242 if test $passed -gt 0 -a $failed -le 0; then
31243 if test "1${var}" = '15' ; then
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31245$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31246if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31247 $as_echo_n "(cached) " >&6
31248else
31249 ac_check_lib_save_LIBS=$LIBS
31250LIBS="-lpng15 $LIBS"
31251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31252/* end confdefs.h. */
31253
31254/* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
31257#ifdef __cplusplus
31258extern "C"
31259#endif
31260char png_get_io_ptr ();
31261int
31262main ()
31263{
31264return png_get_io_ptr ();
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269if ac_fn_c_try_link "$LINENO"; then :
31270 ac_cv_lib_png15_png_get_io_ptr=yes
31271else
31272 ac_cv_lib_png15_png_get_io_ptr=no
31273fi
31274rm -f core conftest.err conftest.$ac_objext \
31275 conftest$ac_exeext conftest.$ac_ext
31276LIBS=$ac_check_lib_save_LIBS
31277fi
31278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31279$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31280if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31281 passed=`expr $passed + 1`
31282else
31283 failed=`expr $failed + 1`
31284fi
31285
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31287$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31288if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31289 $as_echo_n "(cached) " >&6
31290else
31291 ac_check_lib_save_LIBS=$LIBS
31292LIBS="-lpng15 $LIBS"
31293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31294/* end confdefs.h. */
31295
31296/* Override any GCC internal prototype to avoid an error.
31297 Use char because int might match the return type of a GCC
31298 builtin and then its argument prototype would still apply. */
31299#ifdef __cplusplus
31300extern "C"
31301#endif
31302char png_longjmp ();
31303int
31304main ()
31305{
31306return png_longjmp ();
31307 ;
31308 return 0;
31309}
31310_ACEOF
31311if ac_fn_c_try_link "$LINENO"; then :
31312 ac_cv_lib_png15_png_longjmp=yes
31313else
31314 ac_cv_lib_png15_png_longjmp=no
31315fi
31316rm -f core conftest.err conftest.$ac_objext \
31317 conftest$ac_exeext conftest.$ac_ext
31318LIBS=$ac_check_lib_save_LIBS
31319fi
31320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31321$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31322if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31323 passed=`expr $passed + 1`
31324else
31325 failed=`expr $failed + 1`
31326fi
31327
31328 fi
31329 if test "1${var}" = '14' ; then
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31331$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31332if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31333 $as_echo_n "(cached) " >&6
31334else
31335 ac_check_lib_save_LIBS=$LIBS
31336LIBS="-lpng14 $LIBS"
31337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338/* end confdefs.h. */
31339
31340/* Override any GCC internal prototype to avoid an error.
31341 Use char because int might match the return type of a GCC
31342 builtin and then its argument prototype would still apply. */
31343#ifdef __cplusplus
31344extern "C"
31345#endif
31346char png_get_io_ptr ();
31347int
31348main ()
31349{
31350return png_get_io_ptr ();
31351 ;
31352 return 0;
31353}
31354_ACEOF
31355if ac_fn_c_try_link "$LINENO"; then :
31356 ac_cv_lib_png14_png_get_io_ptr=yes
31357else
31358 ac_cv_lib_png14_png_get_io_ptr=no
31359fi
31360rm -f core conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31362LIBS=$ac_check_lib_save_LIBS
31363fi
31364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31365$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31366if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31367 passed=`expr $passed + 1`
31368else
31369 failed=`expr $failed + 1`
31370fi
31371
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31373$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31374if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31375 $as_echo_n "(cached) " >&6
31376else
31377 ac_check_lib_save_LIBS=$LIBS
31378LIBS="-lpng14 $LIBS"
31379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31380/* end confdefs.h. */
31381
31382/* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31385#ifdef __cplusplus
31386extern "C"
31387#endif
31388char png_get_io_state ();
31389int
31390main ()
31391{
31392return png_get_io_state ();
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397if ac_fn_c_try_link "$LINENO"; then :
31398 ac_cv_lib_png14_png_get_io_state=yes
31399else
31400 ac_cv_lib_png14_png_get_io_state=no
31401fi
31402rm -f core conftest.err conftest.$ac_objext \
31403 conftest$ac_exeext conftest.$ac_ext
31404LIBS=$ac_check_lib_save_LIBS
31405fi
31406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31407$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31408if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31409 passed=`expr $passed + 1`
31410else
31411 failed=`expr $failed + 1`
31412fi
31413
31414 fi
31415 if test "1${var}" = '12' ; then
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31417$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31418if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31419 $as_echo_n "(cached) " >&6
31420else
31421 ac_check_lib_save_LIBS=$LIBS
31422LIBS="-lpng12 $LIBS"
31423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31424/* end confdefs.h. */
31425
31426/* Override any GCC internal prototype to avoid an error.
31427 Use char because int might match the return type of a GCC
31428 builtin and then its argument prototype would still apply. */
31429#ifdef __cplusplus
31430extern "C"
31431#endif
31432char png_get_io_ptr ();
31433int
31434main ()
31435{
31436return png_get_io_ptr ();
31437 ;
31438 return 0;
31439}
31440_ACEOF
31441if ac_fn_c_try_link "$LINENO"; then :
31442 ac_cv_lib_png12_png_get_io_ptr=yes
31443else
31444 ac_cv_lib_png12_png_get_io_ptr=no
31445fi
31446rm -f core conftest.err conftest.$ac_objext \
31447 conftest$ac_exeext conftest.$ac_ext
31448LIBS=$ac_check_lib_save_LIBS
31449fi
31450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31451$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31452if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31453 passed=`expr $passed + 1`
31454else
31455 failed=`expr $failed + 1`
31456fi
31457
31458 fi
31459 if test "1${var}" = '1' ; then
31460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31461$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31462if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31463 $as_echo_n "(cached) " >&6
31464else
31465 ac_check_lib_save_LIBS=$LIBS
31466LIBS="-lpng $LIBS"
31467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31468/* end confdefs.h. */
31469
31470/* Override any GCC internal prototype to avoid an error.
31471 Use char because int might match the return type of a GCC
31472 builtin and then its argument prototype would still apply. */
31473#ifdef __cplusplus
31474extern "C"
31475#endif
31476char png_get_io_ptr ();
31477int
31478main ()
31479{
31480return png_get_io_ptr ();
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485if ac_fn_c_try_link "$LINENO"; then :
31486 ac_cv_lib_png_png_get_io_ptr=yes
31487else
31488 ac_cv_lib_png_png_get_io_ptr=no
31489fi
31490rm -f core conftest.err conftest.$ac_objext \
31491 conftest$ac_exeext conftest.$ac_ext
31492LIBS=$ac_check_lib_save_LIBS
31493fi
31494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31495$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31496if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31497 passed=`expr $passed + 1`
31498else
31499 failed=`expr $failed + 1`
31500fi
31501
31502 fi
31503 if test $passed -gt 0 -a $failed -le 0 ; then
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31505$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31506 if test $passed -gt 0 ; then
31507 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031508 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31509$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031510 have_png='no (failed tests)'
31511 else
31512 PNG_LIBS="-l${pnglib}"
31513 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031514
cristy8b350f62009-11-15 23:12:43 +000031515$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031516
cristy09b53e12011-10-14 12:47:22 +000031517 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31518$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031519 have_png='yes'
31520 fi
31521 fi
31522 fi
31523 fi
31524 fi
31525 done
31526 fi
cristy3ed852e2009-09-05 21:47:34 +000031527fi
cristy64877302011-08-23 19:10:31 +000031528
cristy73bd4a52010-10-05 11:24:23 +000031529 if test "$have_png" = 'yes'; then
31530 PNG_DELEGATE_TRUE=
31531 PNG_DELEGATE_FALSE='#'
31532else
31533 PNG_DELEGATE_TRUE='#'
31534 PNG_DELEGATE_FALSE=
31535fi
31536
cristy3ed852e2009-09-05 21:47:34 +000031537
cristy50d3f5c2011-09-10 20:09:06 +000031538
cristy3ed852e2009-09-05 21:47:34 +000031539
31540
31541#
31542# Check for RSVG delegate library.
31543#
31544
31545# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031546if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031547 withval=$with_rsvg; with_rsvg=$withval
31548else
cristyfc3d0222012-02-07 15:05:57 +000031549 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031550fi
31551
31552
31553if test "$with_rsvg" != 'yes'; then
31554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31555fi
31556
31557have_rsvg='no'
31558have_cairo='no'
31559RSVG_CFLAGS=""
31560RSVG_LIBS=""
31561RSVG_PKG=""
31562if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31564$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031565
31566pkg_failed=no
31567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31568$as_echo_n "checking for RSVG... " >&6; }
31569
31570if test -n "$RSVG_CFLAGS"; then
31571 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31572 elif test -n "$PKG_CONFIG"; then
31573 if test -n "$PKG_CONFIG" && \
31574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31575 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31576 ac_status=$?
31577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31578 test $ac_status = 0; }; then
31579 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31580else
31581 pkg_failed=yes
31582fi
31583 else
31584 pkg_failed=untried
31585fi
31586if test -n "$RSVG_LIBS"; then
31587 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31588 elif test -n "$PKG_CONFIG"; then
31589 if test -n "$PKG_CONFIG" && \
31590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31591 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31592 ac_status=$?
31593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31594 test $ac_status = 0; }; then
31595 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31596else
31597 pkg_failed=yes
31598fi
31599 else
31600 pkg_failed=untried
31601fi
31602
31603
31604
31605if test $pkg_failed = yes; then
31606
31607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31608 _pkg_short_errors_supported=yes
31609else
31610 _pkg_short_errors_supported=no
31611fi
31612 if test $_pkg_short_errors_supported = yes; then
31613 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31614 else
31615 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31616 fi
31617 # Put the nasty error message in config.log where it belongs
31618 echo "$RSVG_PKG_ERRORS" >&5
31619
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31621$as_echo "no" >&6; }
31622 have_rsvg=no
31623elif test $pkg_failed = untried; then
31624 have_rsvg=no
31625else
31626 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31627 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629$as_echo "yes" >&6; }
31630 have_rsvg=yes
31631fi
cristy09b53e12011-10-14 12:47:22 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31633$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031634
31635pkg_failed=no
31636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31637$as_echo_n "checking for CAIRO_SVG... " >&6; }
31638
31639if test -n "$CAIRO_SVG_CFLAGS"; then
31640 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31641 elif test -n "$PKG_CONFIG"; then
31642 if test -n "$PKG_CONFIG" && \
31643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31644 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31645 ac_status=$?
31646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31647 test $ac_status = 0; }; then
31648 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31649else
31650 pkg_failed=yes
31651fi
31652 else
31653 pkg_failed=untried
31654fi
31655if test -n "$CAIRO_SVG_LIBS"; then
31656 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31657 elif test -n "$PKG_CONFIG"; then
31658 if test -n "$PKG_CONFIG" && \
31659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31660 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31661 ac_status=$?
31662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31663 test $ac_status = 0; }; then
31664 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31665else
31666 pkg_failed=yes
31667fi
31668 else
31669 pkg_failed=untried
31670fi
31671
31672
31673
31674if test $pkg_failed = yes; then
31675
31676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31677 _pkg_short_errors_supported=yes
31678else
31679 _pkg_short_errors_supported=no
31680fi
31681 if test $_pkg_short_errors_supported = yes; then
31682 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31683 else
31684 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31685 fi
31686 # Put the nasty error message in config.log where it belongs
31687 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31688
31689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31690$as_echo "no" >&6; }
31691 have_cairo=no
31692elif test $pkg_failed = untried; then
31693 have_cairo=no
31694else
31695 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31696 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31698$as_echo "yes" >&6; }
31699 have_cairo=yes
31700fi
cristy09b53e12011-10-14 12:47:22 +000031701 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31702$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031703fi
31704
31705if test "$have_rsvg" = 'yes'; then
31706
cristy8b350f62009-11-15 23:12:43 +000031707$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031708
31709 if test "$with_modules" = 'no'; then
31710 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31711 fi
31712fi
31713
31714if test "$have_cairo" = 'yes'; then
31715
cristy8b350f62009-11-15 23:12:43 +000031716$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031717
31718 if test "$with_modules" = 'no'; then
31719 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31720 fi
31721fi
31722
cristy73bd4a52010-10-05 11:24:23 +000031723 if test "$have_rsvg" = 'yes'; then
31724 RSVG_DELEGATE_TRUE=
31725 RSVG_DELEGATE_FALSE='#'
31726else
31727 RSVG_DELEGATE_TRUE='#'
31728 RSVG_DELEGATE_FALSE=
31729fi
31730
31731 if test "$have_cairo" = 'yes'; then
31732 CAIRO_DELEGATE_TRUE=
31733 CAIRO_DELEGATE_FALSE='#'
31734else
31735 CAIRO_DELEGATE_TRUE='#'
31736 CAIRO_DELEGATE_FALSE=
31737fi
31738
cristy3ed852e2009-09-05 21:47:34 +000031739
31740
31741
31742
31743#
31744# Check for TIFF delegate library.
31745#
31746
31747# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031748if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031749 withval=$with_tiff; with_tiff=$withval
31750else
31751 with_tiff='yes'
31752fi
31753
31754
31755if test "$with_tiff" != 'yes'; then
31756 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31757fi
31758
31759have_tiff='no'
31760TIFF_LIBS=''
31761if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31763$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031765$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031766 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31767$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031768 failed=0
31769 passed=0
cristy8b350f62009-11-15 23:12:43 +000031770 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031771if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031772 passed=`expr $passed + 1`
31773else
31774 failed=`expr $failed + 1`
31775fi
31776
31777
cristy8b350f62009-11-15 23:12:43 +000031778 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031779if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031780 passed=`expr $passed + 1`
31781else
31782 failed=`expr $failed + 1`
31783fi
31784
31785
cristy8b350f62009-11-15 23:12:43 +000031786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031787$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031788if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031789 $as_echo_n "(cached) " >&6
31790else
31791 ac_check_lib_save_LIBS=$LIBS
31792LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031794/* end confdefs.h. */
31795
31796/* Override any GCC internal prototype to avoid an error.
31797 Use char because int might match the return type of a GCC
31798 builtin and then its argument prototype would still apply. */
31799#ifdef __cplusplus
31800extern "C"
31801#endif
31802char TIFFOpen ();
31803int
31804main ()
31805{
31806return TIFFOpen ();
31807 ;
31808 return 0;
31809}
31810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031812 ac_cv_lib_tiff_TIFFOpen=yes
31813else
cristy8b350f62009-11-15 23:12:43 +000031814 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031815fi
cristy8b350f62009-11-15 23:12:43 +000031816rm -f core conftest.err conftest.$ac_objext \
31817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031818LIBS=$ac_check_lib_save_LIBS
31819fi
cristy8b350f62009-11-15 23:12:43 +000031820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031821$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031822if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031823 passed=`expr $passed + 1`
31824else
31825 failed=`expr $failed + 1`
31826fi
31827
cristy8b350f62009-11-15 23:12:43 +000031828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031829$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031830if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031831 $as_echo_n "(cached) " >&6
31832else
31833 ac_check_lib_save_LIBS=$LIBS
31834LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031836/* end confdefs.h. */
31837
31838/* Override any GCC internal prototype to avoid an error.
31839 Use char because int might match the return type of a GCC
31840 builtin and then its argument prototype would still apply. */
31841#ifdef __cplusplus
31842extern "C"
31843#endif
31844char TIFFClientOpen ();
31845int
31846main ()
31847{
31848return TIFFClientOpen ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031854 ac_cv_lib_tiff_TIFFClientOpen=yes
31855else
cristy8b350f62009-11-15 23:12:43 +000031856 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031857fi
cristy8b350f62009-11-15 23:12:43 +000031858rm -f core conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031860LIBS=$ac_check_lib_save_LIBS
31861fi
cristy8b350f62009-11-15 23:12:43 +000031862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031864if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 passed=`expr $passed + 1`
31866else
31867 failed=`expr $failed + 1`
31868fi
31869
cristy8b350f62009-11-15 23:12:43 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031871$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031872if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031873 $as_echo_n "(cached) " >&6
31874else
31875 ac_check_lib_save_LIBS=$LIBS
31876LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031878/* end confdefs.h. */
31879
31880/* Override any GCC internal prototype to avoid an error.
31881 Use char because int might match the return type of a GCC
31882 builtin and then its argument prototype would still apply. */
31883#ifdef __cplusplus
31884extern "C"
31885#endif
31886char TIFFIsByteSwapped ();
31887int
31888main ()
31889{
31890return TIFFIsByteSwapped ();
31891 ;
31892 return 0;
31893}
31894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31897else
cristy8b350f62009-11-15 23:12:43 +000031898 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031899fi
cristy8b350f62009-11-15 23:12:43 +000031900rm -f core conftest.err conftest.$ac_objext \
31901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031902LIBS=$ac_check_lib_save_LIBS
31903fi
cristy8b350f62009-11-15 23:12:43 +000031904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031905$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031906if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031907 passed=`expr $passed + 1`
31908else
31909 failed=`expr $failed + 1`
31910fi
31911
cristy8b350f62009-11-15 23:12:43 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031913$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031914if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031915 $as_echo_n "(cached) " >&6
31916else
31917 ac_check_lib_save_LIBS=$LIBS
31918LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031920/* end confdefs.h. */
31921
31922/* Override any GCC internal prototype to avoid an error.
31923 Use char because int might match the return type of a GCC
31924 builtin and then its argument prototype would still apply. */
31925#ifdef __cplusplus
31926extern "C"
31927#endif
31928char TIFFReadRGBATile ();
31929int
31930main ()
31931{
31932return TIFFReadRGBATile ();
31933 ;
31934 return 0;
31935}
31936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031938 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31939else
cristy8b350f62009-11-15 23:12:43 +000031940 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031941fi
cristy8b350f62009-11-15 23:12:43 +000031942rm -f core conftest.err conftest.$ac_objext \
31943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031944LIBS=$ac_check_lib_save_LIBS
31945fi
cristy8b350f62009-11-15 23:12:43 +000031946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031948if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 passed=`expr $passed + 1`
31950else
31951 failed=`expr $failed + 1`
31952fi
31953
cristy8b350f62009-11-15 23:12:43 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031955$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031956if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031957 $as_echo_n "(cached) " >&6
31958else
31959 ac_check_lib_save_LIBS=$LIBS
31960LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031962/* end confdefs.h. */
31963
31964/* Override any GCC internal prototype to avoid an error.
31965 Use char because int might match the return type of a GCC
31966 builtin and then its argument prototype would still apply. */
31967#ifdef __cplusplus
31968extern "C"
31969#endif
31970char TIFFReadRGBAStrip ();
31971int
31972main ()
31973{
31974return TIFFReadRGBAStrip ();
31975 ;
31976 return 0;
31977}
31978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031980 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31981else
cristy8b350f62009-11-15 23:12:43 +000031982 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031983fi
cristy8b350f62009-11-15 23:12:43 +000031984rm -f core conftest.err conftest.$ac_objext \
31985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031986LIBS=$ac_check_lib_save_LIBS
31987fi
cristy8b350f62009-11-15 23:12:43 +000031988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031989$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031990if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031991 passed=`expr $passed + 1`
31992else
31993 failed=`expr $failed + 1`
31994fi
31995
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo_n "checking if TIFF package is complete... " >&6; }
31998 if test $passed -gt 0; then
31999 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032000 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32001$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032002 have_tiff='no (failed tests)'
32003 else
32004 TIFF_LIBS='-ltiff'
32005 LIBS="$TIFF_LIBS $LIBS"
32006
cristy8b350f62009-11-15 23:12:43 +000032007$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032008
cristy09b53e12011-10-14 12:47:22 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32010$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032011 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032012 for ac_header in tiffconf.h
32013do :
32014 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032015if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032016 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032017#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032018_ACEOF
32019
32020fi
32021
32022done
32023
cristy8b350f62009-11-15 23:12:43 +000032024 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032025 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32026 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32027 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032028do :
32029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032032 cat >>confdefs.h <<_ACEOF
32033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32034_ACEOF
32035
32036fi
32037done
32038
32039 fi
32040 else
cristy09b53e12011-10-14 12:47:22 +000032041 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32042$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032043 fi
32044fi
cristy73bd4a52010-10-05 11:24:23 +000032045 if test "$have_tiff" = 'yes'; then
32046 TIFF_DELEGATE_TRUE=
32047 TIFF_DELEGATE_FALSE='#'
32048else
32049 TIFF_DELEGATE_TRUE='#'
32050 TIFF_DELEGATE_FALSE=
32051fi
32052
cristy3ed852e2009-09-05 21:47:34 +000032053
32054
32055
32056#
cristyb1860752011-03-14 00:27:46 +000032057# Check for WEBP delegate library.
32058#
32059
32060# Check whether --with-webp was given.
32061if test "${with_webp+set}" = set; then :
32062 withval=$with_webp; with_webp=$withval
32063else
32064 with_webp='yes'
32065fi
32066
32067
32068if test "$with_webp" != 'yes'; then
32069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32070fi
32071
32072have_webp='no'
32073WEBP_LIBS=''
32074if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32076$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32078$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32080$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032081 failed=0
32082 passed=0
32083 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32084if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32085 passed=`expr $passed + 1`
32086else
32087 failed=`expr $failed + 1`
32088fi
32089
32090
32091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32092$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32093if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32094 $as_echo_n "(cached) " >&6
32095else
32096 ac_check_lib_save_LIBS=$LIBS
32097LIBS="-lwebp $LIBS"
32098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32099/* end confdefs.h. */
32100
32101/* Override any GCC internal prototype to avoid an error.
32102 Use char because int might match the return type of a GCC
32103 builtin and then its argument prototype would still apply. */
32104#ifdef __cplusplus
32105extern "C"
32106#endif
32107char WebPDecodeRGB ();
32108int
32109main ()
32110{
32111return WebPDecodeRGB ();
32112 ;
32113 return 0;
32114}
32115_ACEOF
32116if ac_fn_c_try_link "$LINENO"; then :
32117 ac_cv_lib_webp_WebPDecodeRGB=yes
32118else
32119 ac_cv_lib_webp_WebPDecodeRGB=no
32120fi
32121rm -f core conftest.err conftest.$ac_objext \
32122 conftest$ac_exeext conftest.$ac_ext
32123LIBS=$ac_check_lib_save_LIBS
32124fi
32125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32126$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32127if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32128 passed=`expr $passed + 1`
32129else
32130 failed=`expr $failed + 1`
32131fi
32132
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32134$as_echo_n "checking if WEBP package is complete... " >&6; }
32135 if test $passed -gt 0; then
32136 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32138$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032139 have_webp='no (failed tests)'
32140 else
32141 WEBP_LIBS='-lwebp'
32142 LIBS="$WEBP_LIBS $LIBS"
32143
32144$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32145
cristy09b53e12011-10-14 12:47:22 +000032146 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32147$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032148 have_webp='yes'
32149 fi
32150 else
cristy09b53e12011-10-14 12:47:22 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32152$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032153 fi
32154fi
32155 if test "$have_webp" = 'yes'; then
32156 WEBP_DELEGATE_TRUE=
32157 WEBP_DELEGATE_FALSE='#'
32158else
32159 WEBP_DELEGATE_TRUE='#'
32160 WEBP_DELEGATE_FALSE=
32161fi
32162
32163
32164
32165
32166#
cristy3ed852e2009-09-05 21:47:34 +000032167# Set Windows font directory.
32168#
32169
32170# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032171if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032172 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32173else
32174 with_windows_font_dir=''
32175fi
32176
32177if test "$with_windows_font_dir" != '' ; then
32178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32179fi
32180
32181
32182#
32183# Check for WMF delegate library.
32184#
32185
32186# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032187if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032188 withval=$with_wmf; with_wmf=$withval
32189else
cristyfc3d0222012-02-07 15:05:57 +000032190 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032191fi
32192
32193
32194if test "$with_wmf" != 'yes'; then
32195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32196fi
32197
32198have_wmf='no'
32199WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032200WMF_LIBS_DEPS=''
32201OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032202if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32204$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32208$as_echo "" >&6; }
32209 have_libwmf='no'
32210 have_libwmflite='no'
32211 have_libwmf_ipa_h='no'
32212
32213 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32214"
32215if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32216 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032217fi
32218
32219
cristy03f7cf92011-12-15 01:40:41 +000032220 if test "$have_libwmf_ipa_h" = 'yes'; then
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32222$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32223if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032224 $as_echo_n "(cached) " >&6
32225else
32226 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032227LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032229/* end confdefs.h. */
32230
32231/* Override any GCC internal prototype to avoid an error.
32232 Use char because int might match the return type of a GCC
32233 builtin and then its argument prototype would still apply. */
32234#ifdef __cplusplus
32235extern "C"
32236#endif
cristy03f7cf92011-12-15 01:40:41 +000032237char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032238int
32239main ()
32240{
cristy03f7cf92011-12-15 01:40:41 +000032241return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032242 ;
32243 return 0;
32244}
32245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032246if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032247 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032248else
cristy03f7cf92011-12-15 01:40:41 +000032249 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032250fi
cristy8b350f62009-11-15 23:12:43 +000032251rm -f core conftest.err conftest.$ac_objext \
32252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032253LIBS=$ac_check_lib_save_LIBS
32254fi
cristy03f7cf92011-12-15 01:40:41 +000032255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32256$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32257if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32258 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032259fi
32260
cristy03f7cf92011-12-15 01:40:41 +000032261 if test "$have_libwmflite" = 'yes'; then
32262
32263$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32264
32265 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032266 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032267 have_wmf='yes'
32268 else
32269 WMF_LIBS_DEPS=''
32270 WMF_CONFIG_LIBS=`libwmf-config --libs`
32271 for lib in xml2 expat freetype jpeg png z; do
32272 testlib="-l${lib}"
32273 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32274 done
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32276$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32277if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32278 $as_echo_n "(cached) " >&6
32279else
32280 ac_check_lib_save_LIBS=$LIBS
32281LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32283/* end confdefs.h. */
32284
32285/* Override any GCC internal prototype to avoid an error.
32286 Use char because int might match the return type of a GCC
32287 builtin and then its argument prototype would still apply. */
32288#ifdef __cplusplus
32289extern "C"
32290#endif
32291char wmf_api_create ();
32292int
32293main ()
32294{
32295return wmf_api_create ();
32296 ;
32297 return 0;
32298}
32299_ACEOF
32300if ac_fn_c_try_link "$LINENO"; then :
32301 ac_cv_lib_wmf_wmf_api_create=yes
32302else
32303 ac_cv_lib_wmf_wmf_api_create=no
32304fi
32305rm -f core conftest.err conftest.$ac_objext \
32306 conftest$ac_exeext conftest.$ac_ext
32307LIBS=$ac_check_lib_save_LIBS
32308fi
32309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32310$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32311if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32312 have_libwmf='yes'
32313fi
32314
32315 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032316
cristy8b350f62009-11-15 23:12:43 +000032317$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032318
cristy03f7cf92011-12-15 01:40:41 +000032319 WMF_LIBS='-lwmf'
32320 LIBS="$WMF_LIBS $LIBS"
32321 have_wmf='yes'
32322 else
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32324$as_echo "no -- some components failed test" >&6; }
32325 have_wmf='no (failed tests)'
32326 have_wmflite='no (failed tests)'
32327 LIBS="$OLIBS"
32328 WMF_LIBS=''
32329 fi
glennrp33e524b2011-08-24 17:41:57 +000032330 fi
cristy03f7cf92011-12-15 01:40:41 +000032331 fi
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32333$as_echo_n "checking if WMF package is complete... " >&6; }
32334 if test "$have_wmf" = 'yes'; then
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32336$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032337 else
cristy03f7cf92011-12-15 01:40:41 +000032338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032340 fi
cristy3ed852e2009-09-05 21:47:34 +000032341fi
cristy73bd4a52010-10-05 11:24:23 +000032342 if test "$have_wmf" = 'yes'; then
32343 WMF_DELEGATE_TRUE=
32344 WMF_DELEGATE_FALSE='#'
32345else
32346 WMF_DELEGATE_TRUE='#'
32347 WMF_DELEGATE_FALSE=
32348fi
32349
cristy3ed852e2009-09-05 21:47:34 +000032350
32351
32352
cristy81beccd2011-10-03 18:17:24 +000032353
32354
cristy3ed852e2009-09-05 21:47:34 +000032355#
32356# Check for XML delegate library.
32357#
32358
32359# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032360if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032361 withval=$with_xml; with_xml=$withval
32362else
cristyfc3d0222012-02-07 15:05:57 +000032363 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032364fi
32365
32366
cristy81beccd2011-10-03 18:17:24 +000032367if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32369fi
32370
cristy81beccd2011-10-03 18:17:24 +000032371have_xml='no'
32372XML_LIBS=''
32373if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032374 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32375$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32377$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32379$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032380 PERSIST_LDFLAGS=$LDFLAGS
32381 PERSIST_CPPFLAGS=$CPPFLAGS
32382 xml2_config=''
32383 # Extract the first word of "xml2-config", so it can be a program name with args.
32384set dummy xml2-config; ac_word=$2
32385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32386$as_echo_n "checking for $ac_word... " >&6; }
32387if ${ac_cv_path_xml2_config+:} false; then :
32388 $as_echo_n "(cached) " >&6
32389else
32390 case $xml2_config in
32391 [\\/]* | ?:[\\/]*)
32392 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32393 ;;
32394 *)
32395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32396for as_dir in $PATH
32397do
32398 IFS=$as_save_IFS
32399 test -z "$as_dir" && as_dir=.
32400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032402 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32404 break 2
32405 fi
32406done
32407 done
32408IFS=$as_save_IFS
32409
32410 ;;
32411esac
32412fi
32413xml2_config=$ac_cv_path_xml2_config
32414if test -n "$xml2_config"; then
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32416$as_echo "$xml2_config" >&6; }
32417else
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32419$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032420fi
32421
cristy81beccd2011-10-03 18:17:24 +000032422 if test -n "$xml2_config"; then
32423 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32424 # the shared library installed under /usr/lib, whereas the package
32425 # installs itself under $prefix/libxml and $prefix/lib.
32426 xml2_prefix=`xml2-config --prefix`
32427 if test -d "${xml2_prefix}/include/libxml2"; then
32428 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32429 fi
32430 if test "${xml2_prefix}" != '/usr'; then
32431 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32432 fi
32433 fi
32434 failed=0
32435 passed=0
32436 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32437if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32438 passed=`expr $passed + 1`
32439else
32440 failed=`expr $failed + 1`
32441fi
32442
32443
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32445$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32446if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32447 $as_echo_n "(cached) " >&6
32448else
32449 ac_check_lib_save_LIBS=$LIBS
32450LIBS="-lxml2 $LIBS"
32451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452/* end confdefs.h. */
32453
32454/* Override any GCC internal prototype to avoid an error.
32455 Use char because int might match the return type of a GCC
32456 builtin and then its argument prototype would still apply. */
32457#ifdef __cplusplus
32458extern "C"
32459#endif
32460char xmlSAXVersion ();
32461int
32462main ()
32463{
32464return xmlSAXVersion ();
32465 ;
32466 return 0;
32467}
32468_ACEOF
32469if ac_fn_c_try_link "$LINENO"; then :
32470 ac_cv_lib_xml2_xmlSAXVersion=yes
32471else
32472 ac_cv_lib_xml2_xmlSAXVersion=no
32473fi
32474rm -f core conftest.err conftest.$ac_objext \
32475 conftest$ac_exeext conftest.$ac_ext
32476LIBS=$ac_check_lib_save_LIBS
32477fi
32478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32479$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32480if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32481 passed=`expr $passed + 1`
32482else
32483 failed=`expr $failed + 1`
32484fi
32485
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32487$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32488if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32489 $as_echo_n "(cached) " >&6
32490else
32491 ac_check_lib_save_LIBS=$LIBS
32492LIBS="-lxml2 $LIBS"
32493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32494/* end confdefs.h. */
32495
32496/* Override any GCC internal prototype to avoid an error.
32497 Use char because int might match the return type of a GCC
32498 builtin and then its argument prototype would still apply. */
32499#ifdef __cplusplus
32500extern "C"
32501#endif
32502char xmlParseChunk ();
32503int
32504main ()
32505{
32506return xmlParseChunk ();
32507 ;
32508 return 0;
32509}
32510_ACEOF
32511if ac_fn_c_try_link "$LINENO"; then :
32512 ac_cv_lib_xml2_xmlParseChunk=yes
32513else
32514 ac_cv_lib_xml2_xmlParseChunk=no
32515fi
32516rm -f core conftest.err conftest.$ac_objext \
32517 conftest$ac_exeext conftest.$ac_ext
32518LIBS=$ac_check_lib_save_LIBS
32519fi
32520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32521$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32522if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32523 passed=`expr $passed + 1`
32524else
32525 failed=`expr $failed + 1`
32526fi
32527
32528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32529$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32530if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32531 $as_echo_n "(cached) " >&6
32532else
32533 ac_check_lib_save_LIBS=$LIBS
32534LIBS="-lxml2 $LIBS"
32535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536/* end confdefs.h. */
32537
32538/* Override any GCC internal prototype to avoid an error.
32539 Use char because int might match the return type of a GCC
32540 builtin and then its argument prototype would still apply. */
32541#ifdef __cplusplus
32542extern "C"
32543#endif
32544char xmlCreatePushParserCtxt ();
32545int
32546main ()
32547{
32548return xmlCreatePushParserCtxt ();
32549 ;
32550 return 0;
32551}
32552_ACEOF
32553if ac_fn_c_try_link "$LINENO"; then :
32554 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32555else
32556 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32557fi
32558rm -f core conftest.err conftest.$ac_objext \
32559 conftest$ac_exeext conftest.$ac_ext
32560LIBS=$ac_check_lib_save_LIBS
32561fi
32562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32563$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32564if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32565 passed=`expr $passed + 1`
32566else
32567 failed=`expr $failed + 1`
32568fi
32569
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32571$as_echo_n "checking if XML package is complete... " >&6; }
32572 if test $passed -gt 0; then
32573 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32575$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032576 have_xml='no (failed tests)'
32577 LDFLAGS="$PERSIST_LDFLAGS"
32578 CPPFLAGS="$PERSIST_CPPFLAGS"
32579 else
32580 XML_LIBS='-lxml2'
32581 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032582
cristy8b350f62009-11-15 23:12:43 +000032583$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032584
cristy09b53e12011-10-14 12:47:22 +000032585 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32586$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032587 have_xml='yes'
32588 fi
32589 else
cristy09b53e12011-10-14 12:47:22 +000032590 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32591$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032592 fi
32593fi
cristy73bd4a52010-10-05 11:24:23 +000032594 if test "$have_xml" = 'yes'; then
32595 XML_DELEGATE_TRUE=
32596 XML_DELEGATE_FALSE='#'
32597else
32598 XML_DELEGATE_TRUE='#'
32599 XML_DELEGATE_FALSE=
32600fi
32601
cristy3ed852e2009-09-05 21:47:34 +000032602
32603
32604
32605# Substitute compiler name to build/link PerlMagick
32606#
32607
32608
32609#
32610# Configure install Paths
32611#
cristy7def36a2011-10-28 19:04:41 +000032612
cristy2a11bef2011-10-28 18:33:11 +000032613# Path to ImageMagick header files
32614INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032615INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32616DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032617case "${build_os}" in
32618 mingw* )
32619 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32620 ;;
32621esac
32622
32623cat >>confdefs.h <<_ACEOF
32624#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32625_ACEOF
32626
32627
cristy3ed852e2009-09-05 21:47:34 +000032628
32629# Subdirectory under lib to place ImageMagick lib files
32630LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32631
32632cat >>confdefs.h <<_ACEOF
32633#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32634_ACEOF
32635
32636
32637# Path to ImageMagick bin directory
32638EXECUTABLE_PATH="${BIN_DIR}"
32639DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32640case "${build_os}" in
32641 mingw* )
32642 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32643 ;;
32644esac
32645
32646cat >>confdefs.h <<_ACEOF
32647#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32648_ACEOF
32649
32650
32651
32652# Path to ImageMagick lib
32653LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32654DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32655case "${build_os}" in
32656 mingw* )
32657 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32658 ;;
32659esac
32660
32661cat >>confdefs.h <<_ACEOF
32662#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32663_ACEOF
32664
32665
32666
cristy3ed852e2009-09-05 21:47:34 +000032667#
32668# Subdirectory under lib to place ImageMagick coder module files
32669CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32670
32671cat >>confdefs.h <<_ACEOF
32672#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32673_ACEOF
32674
32675CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32676DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32677case "${build_os}" in
32678 mingw* )
32679 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32680 ;;
32681esac
32682
32683cat >>confdefs.h <<_ACEOF
32684#define CODER_PATH "$DEFINE_CODER_PATH"
32685_ACEOF
32686
32687
32688
32689#
32690# Subdirectory under lib to place ImageMagick filter module files
32691FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32692
32693cat >>confdefs.h <<_ACEOF
32694#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32695_ACEOF
32696
32697FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32698DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32699case "${build_os}" in
32700 mingw* )
32701 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32702 ;;
32703esac
32704
32705cat >>confdefs.h <<_ACEOF
32706#define FILTER_PATH "$DEFINE_FILTER_PATH"
32707_ACEOF
32708
32709
32710
32711#
32712# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032713DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032714DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32715DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032716case "${build_os}" in
32717 mingw* )
32718 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32719 ;;
32720esac
32721
32722cat >>confdefs.h <<_ACEOF
32723#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32724_ACEOF
32725
32726
32727
cristy2a11bef2011-10-28 18:33:11 +000032728# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032729CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032730
32731cat >>confdefs.h <<_ACEOF
32732#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32733_ACEOF
32734
cristy7def36a2011-10-28 19:04:41 +000032735CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032736DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32737case "${build_os}" in
32738 mingw* )
32739 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32740 ;;
32741esac
32742
32743cat >>confdefs.h <<_ACEOF
32744#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32745_ACEOF
32746
32747
32748
cristy2a11bef2011-10-28 18:33:11 +000032749# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032750SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032751
32752cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032753#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032754_ACEOF
32755
cristy670aa3c2011-11-03 00:54:00 +000032756SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032757DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032758case "${build_os}" in
32759 mingw* )
cristy4f820712011-04-01 12:35:43 +000032760 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032761 ;;
32762esac
32763
32764cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032765#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032766_ACEOF
32767
32768
32769
cristy408ebcd2011-11-14 01:36:57 +000032770# Subdirectory to place architecture-dependent configuration files
32771SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032772
32773cat >>confdefs.h <<_ACEOF
32774#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32775_ACEOF
32776
cristy408ebcd2011-11-14 01:36:57 +000032777SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32778DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032779case "${build_os}" in
32780 mingw* )
32781 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32782 ;;
32783esac
32784
32785cat >>confdefs.h <<_ACEOF
32786#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32787_ACEOF
32788
32789
32790
cristy3ed852e2009-09-05 21:47:34 +000032791#
32792# program_transform_name is formed for use in a Makefile, so create a
32793# modified version for use in a shell script.
32794configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32795
32796# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032801{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32802$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032803AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032804BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032805BZIPDelegateDefault='bzip2'
32806BrowseDelegateDefault='xdg-open'
32807CGMDecodeDelegateDefault='ralcgm'
32808CatDelegateDefault='cat'
32809DNGDecodeDelegateDefault='ufraw-batch'
32810GVCDecodeDelegateDefault='dot'
32811DVIDecodeDelegateDefault='dvips'
32812EchoDelegateDefault='echo'
32813EditorDelegateDefault='xterm'
32814FIGDecodeDelegateDefault='fig2dev'
32815ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32816DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32817MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32818GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032819HPGLDecodeDelegateDefault='hp2xx'
32820HTMLDecodeDelegateDefault='html2ps'
32821ILBMDecodeDelegateDefault='ilbmtoppm'
32822ILBMEncodeDelegateDefault='ppmtoilbm'
32823LPDelegateDefault='lp'
32824LPRDelegateDefault='lpr'
32825LZWDecodeDelegateDefault='uncompress'
32826LZWEncodeDelegateDefault='compress'
32827LaunchDelegateDefault='gimp'
32828MANDelegateDefault='groff'
32829MPEGDecodeDelegateDefault='ffmpeg'
32830MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032831MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032832MVDelegateDefault='mv'
32833PCLDelegateDefault='pcl6'
32834PGPDecodeDelegateDefault='pgpv'
32835POVDelegateDefault='povray'
32836if test "$native_win32_build" = 'yes'; then
32837 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032838elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032839 PSDelegateDefault='gsc'
32840else
32841 PSDelegateDefault='gs'
32842fi
32843RLEEncodeDelegateDefault='rawtorle'
32844RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032845RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032846SCANDecodeDelegateDefault='scanimage'
32847TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032848UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032849WMFDecodeDelegateDefault='wmf2eps'
32850WWWDecodeDelegateDefault='curl'
32851XPSDelegateDefault='gxps'
32852ZipDelegateDefault='gzip'
32853
32854# Search for delegates
32855# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32856set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032859if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032860 $as_echo_n "(cached) " >&6
32861else
32862 case $AutotraceDecodeDelegate in
32863 [\\/]* | ?:[\\/]*)
32864 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32865 ;;
32866 *)
32867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32868for as_dir in $PATH
32869do
32870 IFS=$as_save_IFS
32871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032874 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876 break 2
32877 fi
32878done
cristy8b350f62009-11-15 23:12:43 +000032879 done
cristy3ed852e2009-09-05 21:47:34 +000032880IFS=$as_save_IFS
32881
32882 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32883 ;;
32884esac
32885fi
32886AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32887if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "$AutotraceDecodeDelegate" >&6; }
32890else
cristy8b350f62009-11-15 23:12:43 +000032891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo "no" >&6; }
32893fi
32894
32895
cristy3ed852e2009-09-05 21:47:34 +000032896# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32897set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032900if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032901 $as_echo_n "(cached) " >&6
32902else
32903 case $BlenderDecodeDelegate in
32904 [\\/]* | ?:[\\/]*)
32905 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32906 ;;
32907 *)
32908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909for as_dir in $PATH
32910do
32911 IFS=$as_save_IFS
32912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032915 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917 break 2
32918 fi
32919done
cristy8b350f62009-11-15 23:12:43 +000032920 done
cristy3ed852e2009-09-05 21:47:34 +000032921IFS=$as_save_IFS
32922
32923 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32924 ;;
32925esac
32926fi
32927BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32928if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "$BlenderDecodeDelegate" >&6; }
32931else
cristy8b350f62009-11-15 23:12:43 +000032932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo "no" >&6; }
32934fi
32935
32936
32937# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32938set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032941if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032942 $as_echo_n "(cached) " >&6
32943else
32944 case $BZIPDelegate in
32945 [\\/]* | ?:[\\/]*)
32946 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32947 ;;
32948 *)
32949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32950for as_dir in $PATH
32951do
32952 IFS=$as_save_IFS
32953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032954 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032956 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958 break 2
32959 fi
32960done
cristy8b350f62009-11-15 23:12:43 +000032961 done
cristy3ed852e2009-09-05 21:47:34 +000032962IFS=$as_save_IFS
32963
32964 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32965 ;;
32966esac
32967fi
32968BZIPDelegate=$ac_cv_path_BZIPDelegate
32969if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971$as_echo "$BZIPDelegate" >&6; }
32972else
cristy8b350f62009-11-15 23:12:43 +000032973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo "no" >&6; }
32975fi
32976
32977
32978# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32979set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032982if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032983 $as_echo_n "(cached) " >&6
32984else
32985 case $BrowseDelegate in
32986 [\\/]* | ?:[\\/]*)
32987 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32988 ;;
32989 *)
32990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32991for as_dir in $PATH
32992do
32993 IFS=$as_save_IFS
32994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032997 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999 break 2
33000 fi
33001done
cristy8b350f62009-11-15 23:12:43 +000033002 done
cristy3ed852e2009-09-05 21:47:34 +000033003IFS=$as_save_IFS
33004
33005 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
33006 ;;
33007esac
33008fi
33009BrowseDelegate=$ac_cv_path_BrowseDelegate
33010if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "$BrowseDelegate" >&6; }
33013else
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo "no" >&6; }
33016fi
33017
33018
33019# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33020set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033023if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033024 $as_echo_n "(cached) " >&6
33025else
33026 case $CGMDecodeDelegate in
33027 [\\/]* | ?:[\\/]*)
33028 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33029 ;;
33030 *)
33031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032for as_dir in $PATH
33033do
33034 IFS=$as_save_IFS
33035 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033038 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040 break 2
33041 fi
33042done
cristy8b350f62009-11-15 23:12:43 +000033043 done
cristy3ed852e2009-09-05 21:47:34 +000033044IFS=$as_save_IFS
33045
33046 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33047 ;;
33048esac
33049fi
33050CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33051if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo "$CGMDecodeDelegate" >&6; }
33054else
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo "no" >&6; }
33057fi
33058
33059
33060# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33061set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033064if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033065 $as_echo_n "(cached) " >&6
33066else
33067 case $CatDelegate in
33068 [\\/]* | ?:[\\/]*)
33069 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33070 ;;
33071 *)
33072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33073for as_dir in $PATH
33074do
33075 IFS=$as_save_IFS
33076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033079 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081 break 2
33082 fi
33083done
cristy8b350f62009-11-15 23:12:43 +000033084 done
cristy3ed852e2009-09-05 21:47:34 +000033085IFS=$as_save_IFS
33086
33087 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33088 ;;
33089esac
33090fi
33091CatDelegate=$ac_cv_path_CatDelegate
33092if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo "$CatDelegate" >&6; }
33095else
cristy8b350f62009-11-15 23:12:43 +000033096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo "no" >&6; }
33098fi
33099
33100
33101# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33102set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033105if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033106 $as_echo_n "(cached) " >&6
33107else
33108 case $DNGDecodeDelegate in
33109 [\\/]* | ?:[\\/]*)
33110 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33111 ;;
33112 *)
33113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33114for as_dir in $PATH
33115do
33116 IFS=$as_save_IFS
33117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033120 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122 break 2
33123 fi
33124done
cristy8b350f62009-11-15 23:12:43 +000033125 done
cristy3ed852e2009-09-05 21:47:34 +000033126IFS=$as_save_IFS
33127
33128 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33129 ;;
33130esac
33131fi
33132DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33133if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "$DNGDecodeDelegate" >&6; }
33136else
cristy8b350f62009-11-15 23:12:43 +000033137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo "no" >&6; }
33139fi
33140
33141
33142# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33143set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033146if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033147 $as_echo_n "(cached) " >&6
33148else
33149 case $GVCDecodeDelegate in
33150 [\\/]* | ?:[\\/]*)
33151 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33152 ;;
33153 *)
33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33155for as_dir in $PATH
33156do
33157 IFS=$as_save_IFS
33158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033161 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163 break 2
33164 fi
33165done
cristy8b350f62009-11-15 23:12:43 +000033166 done
cristy3ed852e2009-09-05 21:47:34 +000033167IFS=$as_save_IFS
33168
33169 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33170 ;;
33171esac
33172fi
33173GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33174if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176$as_echo "$GVCDecodeDelegate" >&6; }
33177else
cristy8b350f62009-11-15 23:12:43 +000033178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo "no" >&6; }
33180fi
33181
33182
33183# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33184set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033187if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033188 $as_echo_n "(cached) " >&6
33189else
33190 case $DVIDecodeDelegate in
33191 [\\/]* | ?:[\\/]*)
33192 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33193 ;;
33194 *)
33195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33196for as_dir in $PATH
33197do
33198 IFS=$as_save_IFS
33199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033202 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204 break 2
33205 fi
33206done
cristy8b350f62009-11-15 23:12:43 +000033207 done
cristy3ed852e2009-09-05 21:47:34 +000033208IFS=$as_save_IFS
33209
33210 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33211 ;;
33212esac
33213fi
33214DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33215if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "$DVIDecodeDelegate" >&6; }
33218else
cristy8b350f62009-11-15 23:12:43 +000033219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo "no" >&6; }
33221fi
33222
33223
33224# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33225set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033228if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033229 $as_echo_n "(cached) " >&6
33230else
33231 case $EchoDelegate in
33232 [\\/]* | ?:[\\/]*)
33233 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33234 ;;
33235 *)
33236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237for as_dir in $PATH
33238do
33239 IFS=$as_save_IFS
33240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033243 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245 break 2
33246 fi
33247done
cristy8b350f62009-11-15 23:12:43 +000033248 done
cristy3ed852e2009-09-05 21:47:34 +000033249IFS=$as_save_IFS
33250
33251 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33252 ;;
33253esac
33254fi
33255EchoDelegate=$ac_cv_path_EchoDelegate
33256if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "$EchoDelegate" >&6; }
33259else
cristy8b350f62009-11-15 23:12:43 +000033260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo "no" >&6; }
33262fi
33263
33264
33265# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33266set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033269if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033270 $as_echo_n "(cached) " >&6
33271else
33272 case $EditorDelegate in
33273 [\\/]* | ?:[\\/]*)
33274 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33275 ;;
33276 *)
33277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33278for as_dir in $PATH
33279do
33280 IFS=$as_save_IFS
33281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033284 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286 break 2
33287 fi
33288done
cristy8b350f62009-11-15 23:12:43 +000033289 done
cristy3ed852e2009-09-05 21:47:34 +000033290IFS=$as_save_IFS
33291
33292 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33293 ;;
33294esac
33295fi
33296EditorDelegate=$ac_cv_path_EditorDelegate
33297if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299$as_echo "$EditorDelegate" >&6; }
33300else
cristy8b350f62009-11-15 23:12:43 +000033301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033302$as_echo "no" >&6; }
33303fi
33304
33305
33306# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33307set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033310if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033311 $as_echo_n "(cached) " >&6
33312else
33313 case $FIGDecodeDelegate in
33314 [\\/]* | ?:[\\/]*)
33315 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33316 ;;
33317 *)
33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319for as_dir in $PATH
33320do
33321 IFS=$as_save_IFS
33322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033325 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327 break 2
33328 fi
33329done
cristy8b350f62009-11-15 23:12:43 +000033330 done
cristy3ed852e2009-09-05 21:47:34 +000033331IFS=$as_save_IFS
33332
33333 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33334 ;;
33335esac
33336fi
33337FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33338if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "$FIGDecodeDelegate" >&6; }
33341else
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo "no" >&6; }
33344fi
33345
33346
33347# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33348set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033351if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033352 $as_echo_n "(cached) " >&6
33353else
33354 case $ConvertDelegate in
33355 [\\/]* | ?:[\\/]*)
33356 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33357 ;;
33358 *)
33359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360for as_dir in $PATH
33361do
33362 IFS=$as_save_IFS
33363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033366 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368 break 2
33369 fi
33370done
cristy8b350f62009-11-15 23:12:43 +000033371 done
cristy3ed852e2009-09-05 21:47:34 +000033372IFS=$as_save_IFS
33373
33374 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33375 ;;
33376esac
33377fi
33378ConvertDelegate=$ac_cv_path_ConvertDelegate
33379if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "$ConvertDelegate" >&6; }
33382else
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo "no" >&6; }
33385fi
33386
33387
33388# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33389set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033392if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033393 $as_echo_n "(cached) " >&6
33394else
33395 case $DisplayDelegate in
33396 [\\/]* | ?:[\\/]*)
33397 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33398 ;;
33399 *)
33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401for as_dir in $PATH
33402do
33403 IFS=$as_save_IFS
33404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033407 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409 break 2
33410 fi
33411done
cristy8b350f62009-11-15 23:12:43 +000033412 done
cristy3ed852e2009-09-05 21:47:34 +000033413IFS=$as_save_IFS
33414
33415 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33416 ;;
33417esac
33418fi
33419DisplayDelegate=$ac_cv_path_DisplayDelegate
33420if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo "$DisplayDelegate" >&6; }
33423else
cristy8b350f62009-11-15 23:12:43 +000033424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo "no" >&6; }
33426fi
33427
33428
33429# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33430set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033433if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033434 $as_echo_n "(cached) " >&6
33435else
33436 case $MogrifyDelegate in
33437 [\\/]* | ?:[\\/]*)
33438 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33439 ;;
33440 *)
33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442for as_dir in $PATH
33443do
33444 IFS=$as_save_IFS
33445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033448 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450 break 2
33451 fi
33452done
cristy8b350f62009-11-15 23:12:43 +000033453 done
cristy3ed852e2009-09-05 21:47:34 +000033454IFS=$as_save_IFS
33455
33456 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33457 ;;
33458esac
33459fi
33460MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33461if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "$MogrifyDelegate" >&6; }
33464else
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "no" >&6; }
33467fi
33468
33469
33470# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33471set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033474if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033475 $as_echo_n "(cached) " >&6
33476else
33477 case $GnuplotDecodeDelegate in
33478 [\\/]* | ?:[\\/]*)
33479 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33480 ;;
33481 *)
33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33483for as_dir in $PATH
33484do
33485 IFS=$as_save_IFS
33486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033489 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491 break 2
33492 fi
33493done
cristy8b350f62009-11-15 23:12:43 +000033494 done
cristy3ed852e2009-09-05 21:47:34 +000033495IFS=$as_save_IFS
33496
33497 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33498 ;;
33499esac
33500fi
33501GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33502if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504$as_echo "$GnuplotDecodeDelegate" >&6; }
33505else
cristy8b350f62009-11-15 23:12:43 +000033506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033507$as_echo "no" >&6; }
33508fi
33509
33510
cristy3ed852e2009-09-05 21:47:34 +000033511# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33512set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033515if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033516 $as_echo_n "(cached) " >&6
33517else
33518 case $HPGLDecodeDelegate in
33519 [\\/]* | ?:[\\/]*)
33520 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33521 ;;
33522 *)
33523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33524for as_dir in $PATH
33525do
33526 IFS=$as_save_IFS
33527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033530 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532 break 2
33533 fi
33534done
cristy8b350f62009-11-15 23:12:43 +000033535 done
cristy3ed852e2009-09-05 21:47:34 +000033536IFS=$as_save_IFS
33537
33538 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33539 ;;
33540esac
33541fi
33542HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33543if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "$HPGLDecodeDelegate" >&6; }
33546else
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "no" >&6; }
33549fi
33550
33551
33552# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33553set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033556if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033557 $as_echo_n "(cached) " >&6
33558else
33559 case $HTMLDecodeDelegate in
33560 [\\/]* | ?:[\\/]*)
33561 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33562 ;;
33563 *)
33564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33565for as_dir in $PATH
33566do
33567 IFS=$as_save_IFS
33568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033571 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573 break 2
33574 fi
33575done
cristy8b350f62009-11-15 23:12:43 +000033576 done
cristy3ed852e2009-09-05 21:47:34 +000033577IFS=$as_save_IFS
33578
33579 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33580 ;;
33581esac
33582fi
33583HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33584if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586$as_echo "$HTMLDecodeDelegate" >&6; }
33587else
cristy8b350f62009-11-15 23:12:43 +000033588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo "no" >&6; }
33590fi
33591
33592
33593# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33594set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033597if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033598 $as_echo_n "(cached) " >&6
33599else
33600 case $ILBMDecodeDelegate in
33601 [\\/]* | ?:[\\/]*)
33602 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33603 ;;
33604 *)
33605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33606for as_dir in $PATH
33607do
33608 IFS=$as_save_IFS
33609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033612 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614 break 2
33615 fi
33616done
cristy8b350f62009-11-15 23:12:43 +000033617 done
cristy3ed852e2009-09-05 21:47:34 +000033618IFS=$as_save_IFS
33619
33620 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33621 ;;
33622esac
33623fi
33624ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33625if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627$as_echo "$ILBMDecodeDelegate" >&6; }
33628else
cristy8b350f62009-11-15 23:12:43 +000033629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo "no" >&6; }
33631fi
33632
33633
33634# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33635set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033638if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033639 $as_echo_n "(cached) " >&6
33640else
33641 case $ILBMEncodeDelegate in
33642 [\\/]* | ?:[\\/]*)
33643 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33644 ;;
33645 *)
33646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33647for as_dir in $PATH
33648do
33649 IFS=$as_save_IFS
33650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033653 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655 break 2
33656 fi
33657done
cristy8b350f62009-11-15 23:12:43 +000033658 done
cristy3ed852e2009-09-05 21:47:34 +000033659IFS=$as_save_IFS
33660
33661 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33662 ;;
33663esac
33664fi
33665ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33666if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033668$as_echo "$ILBMEncodeDelegate" >&6; }
33669else
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "no" >&6; }
33672fi
33673
33674
33675# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33676set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033679if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033680 $as_echo_n "(cached) " >&6
33681else
33682 case $LPDelegate in
33683 [\\/]* | ?:[\\/]*)
33684 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33685 ;;
33686 *)
33687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33688for as_dir in $PATH
33689do
33690 IFS=$as_save_IFS
33691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033694 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696 break 2
33697 fi
33698done
cristy8b350f62009-11-15 23:12:43 +000033699 done
cristy3ed852e2009-09-05 21:47:34 +000033700IFS=$as_save_IFS
33701
33702 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33703 ;;
33704esac
33705fi
33706LPDelegate=$ac_cv_path_LPDelegate
33707if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033709$as_echo "$LPDelegate" >&6; }
33710else
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo "no" >&6; }
33713fi
33714
33715
33716# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33717set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033720if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033721 $as_echo_n "(cached) " >&6
33722else
33723 case $LPRDelegate in
33724 [\\/]* | ?:[\\/]*)
33725 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33726 ;;
33727 *)
33728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33729for as_dir in $PATH
33730do
33731 IFS=$as_save_IFS
33732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033735 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737 break 2
33738 fi
33739done
cristy8b350f62009-11-15 23:12:43 +000033740 done
cristy3ed852e2009-09-05 21:47:34 +000033741IFS=$as_save_IFS
33742
33743 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33744 ;;
33745esac
33746fi
33747LPRDelegate=$ac_cv_path_LPRDelegate
33748if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033750$as_echo "$LPRDelegate" >&6; }
33751else
cristy8b350f62009-11-15 23:12:43 +000033752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033753$as_echo "no" >&6; }
33754fi
33755
33756
33757# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33758set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033761if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033762 $as_echo_n "(cached) " >&6
33763else
33764 case $LZWDecodeDelegate in
33765 [\\/]* | ?:[\\/]*)
33766 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33767 ;;
33768 *)
33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33770for as_dir in $PATH
33771do
33772 IFS=$as_save_IFS
33773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033776 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778 break 2
33779 fi
33780done
cristy8b350f62009-11-15 23:12:43 +000033781 done
cristy3ed852e2009-09-05 21:47:34 +000033782IFS=$as_save_IFS
33783
33784 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33785 ;;
33786esac
33787fi
33788LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33789if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791$as_echo "$LZWDecodeDelegate" >&6; }
33792else
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "no" >&6; }
33795fi
33796
33797
33798# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33799set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033802if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033803 $as_echo_n "(cached) " >&6
33804else
33805 case $LZWEncodeDelegate in
33806 [\\/]* | ?:[\\/]*)
33807 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33808 ;;
33809 *)
33810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33811for as_dir in $PATH
33812do
33813 IFS=$as_save_IFS
33814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033817 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819 break 2
33820 fi
33821done
cristy8b350f62009-11-15 23:12:43 +000033822 done
cristy3ed852e2009-09-05 21:47:34 +000033823IFS=$as_save_IFS
33824
33825 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33826 ;;
33827esac
33828fi
33829LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33830if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "$LZWEncodeDelegate" >&6; }
33833else
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "no" >&6; }
33836fi
33837
33838
33839# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33840set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033843if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033844 $as_echo_n "(cached) " >&6
33845else
33846 case $LaunchDelegate in
33847 [\\/]* | ?:[\\/]*)
33848 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33849 ;;
33850 *)
33851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33852for as_dir in $PATH
33853do
33854 IFS=$as_save_IFS
33855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033858 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860 break 2
33861 fi
33862done
cristy8b350f62009-11-15 23:12:43 +000033863 done
cristy3ed852e2009-09-05 21:47:34 +000033864IFS=$as_save_IFS
33865
33866 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33867 ;;
33868esac
33869fi
33870LaunchDelegate=$ac_cv_path_LaunchDelegate
33871if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873$as_echo "$LaunchDelegate" >&6; }
33874else
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo "no" >&6; }
33877fi
33878
33879
33880# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33881set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033884if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033885 $as_echo_n "(cached) " >&6
33886else
33887 case $MANDelegate in
33888 [\\/]* | ?:[\\/]*)
33889 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33890 ;;
33891 *)
33892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33893for as_dir in $PATH
33894do
33895 IFS=$as_save_IFS
33896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033899 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901 break 2
33902 fi
33903done
cristy8b350f62009-11-15 23:12:43 +000033904 done
cristy3ed852e2009-09-05 21:47:34 +000033905IFS=$as_save_IFS
33906
33907 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33908 ;;
33909esac
33910fi
33911MANDelegate=$ac_cv_path_MANDelegate
33912if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914$as_echo "$MANDelegate" >&6; }
33915else
cristy8b350f62009-11-15 23:12:43 +000033916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033917$as_echo "no" >&6; }
33918fi
33919
33920
33921# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33922set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033925if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033926 $as_echo_n "(cached) " >&6
33927else
33928 case $MPEGDecodeDelegate in
33929 [\\/]* | ?:[\\/]*)
33930 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33931 ;;
33932 *)
33933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934for as_dir in $PATH
33935do
33936 IFS=$as_save_IFS
33937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033940 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942 break 2
33943 fi
33944done
cristy8b350f62009-11-15 23:12:43 +000033945 done
cristy3ed852e2009-09-05 21:47:34 +000033946IFS=$as_save_IFS
33947
33948 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33949 ;;
33950esac
33951fi
33952MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33953if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033955$as_echo "$MPEGDecodeDelegate" >&6; }
33956else
cristy8b350f62009-11-15 23:12:43 +000033957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo "no" >&6; }
33959fi
33960
33961
33962# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33963set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033966if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033967 $as_echo_n "(cached) " >&6
33968else
33969 case $MPEGEncodeDelegate in
33970 [\\/]* | ?:[\\/]*)
33971 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33972 ;;
33973 *)
33974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33975for as_dir in $PATH
33976do
33977 IFS=$as_save_IFS
33978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033981 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983 break 2
33984 fi
33985done
cristy8b350f62009-11-15 23:12:43 +000033986 done
cristy3ed852e2009-09-05 21:47:34 +000033987IFS=$as_save_IFS
33988
33989 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33990 ;;
33991esac
33992fi
33993MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33994if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996$as_echo "$MPEGEncodeDelegate" >&6; }
33997else
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "no" >&6; }
34000fi
34001
34002
cristy935c86e2010-06-05 23:50:07 +000034003# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34004set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034007if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034008 $as_echo_n "(cached) " >&6
34009else
34010 case $MrSIDDecodeDelegate in
34011 [\\/]* | ?:[\\/]*)
34012 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34013 ;;
34014 *)
34015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34016for as_dir in $PATH
34017do
34018 IFS=$as_save_IFS
34019 test -z "$as_dir" && as_dir=.
34020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034022 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34024 break 2
34025 fi
34026done
34027 done
34028IFS=$as_save_IFS
34029
34030 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34031 ;;
34032esac
34033fi
34034MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34035if test -n "$MrSIDDecodeDelegate"; then
34036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34037$as_echo "$MrSIDDecodeDelegate" >&6; }
34038else
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040$as_echo "no" >&6; }
34041fi
34042
34043
cristy3ed852e2009-09-05 21:47:34 +000034044# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34045set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034048if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034049 $as_echo_n "(cached) " >&6
34050else
34051 case $MVDelegate in
34052 [\\/]* | ?:[\\/]*)
34053 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34054 ;;
34055 *)
34056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34057for as_dir in $PATH
34058do
34059 IFS=$as_save_IFS
34060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034063 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065 break 2
34066 fi
34067done
cristy8b350f62009-11-15 23:12:43 +000034068 done
cristy3ed852e2009-09-05 21:47:34 +000034069IFS=$as_save_IFS
34070
34071 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34072 ;;
34073esac
34074fi
34075MVDelegate=$ac_cv_path_MVDelegate
34076if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo "$MVDelegate" >&6; }
34079else
cristy8b350f62009-11-15 23:12:43 +000034080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034081$as_echo "no" >&6; }
34082fi
34083
34084
34085# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34086set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034089if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034090 $as_echo_n "(cached) " >&6
34091else
34092 case $PCLDelegate in
34093 [\\/]* | ?:[\\/]*)
34094 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34095 ;;
34096 *)
34097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34098for as_dir in $PATH
34099do
34100 IFS=$as_save_IFS
34101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034104 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106 break 2
34107 fi
34108done
cristy8b350f62009-11-15 23:12:43 +000034109 done
cristy3ed852e2009-09-05 21:47:34 +000034110IFS=$as_save_IFS
34111
34112 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34113 ;;
34114esac
34115fi
34116PCLDelegate=$ac_cv_path_PCLDelegate
34117if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "$PCLDelegate" >&6; }
34120else
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "no" >&6; }
34123fi
34124
34125
34126# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34127set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034130if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034131 $as_echo_n "(cached) " >&6
34132else
34133 case $PGPDecodeDelegate in
34134 [\\/]* | ?:[\\/]*)
34135 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34136 ;;
34137 *)
34138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34139for as_dir in $PATH
34140do
34141 IFS=$as_save_IFS
34142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034145 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034147 break 2
34148 fi
34149done
cristy8b350f62009-11-15 23:12:43 +000034150 done
cristy3ed852e2009-09-05 21:47:34 +000034151IFS=$as_save_IFS
34152
34153 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34154 ;;
34155esac
34156fi
34157PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34158if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160$as_echo "$PGPDecodeDelegate" >&6; }
34161else
cristy8b350f62009-11-15 23:12:43 +000034162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034163$as_echo "no" >&6; }
34164fi
34165
34166
34167# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34168set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034171if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034172 $as_echo_n "(cached) " >&6
34173else
34174 case $POVDelegate in
34175 [\\/]* | ?:[\\/]*)
34176 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34177 ;;
34178 *)
34179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34180for as_dir in $PATH
34181do
34182 IFS=$as_save_IFS
34183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034186 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188 break 2
34189 fi
34190done
cristy8b350f62009-11-15 23:12:43 +000034191 done
cristy3ed852e2009-09-05 21:47:34 +000034192IFS=$as_save_IFS
34193
34194 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34195 ;;
34196esac
34197fi
34198POVDelegate=$ac_cv_path_POVDelegate
34199if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo "$POVDelegate" >&6; }
34202else
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "no" >&6; }
34205fi
34206
34207
34208for ac_prog in gsx gsc "$PSDelegateDefault"
34209do
34210 # Extract the first word of "$ac_prog", so it can be a program name with args.
34211set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034214if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034215 $as_echo_n "(cached) " >&6
34216else
34217 case $PSDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034229 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231 break 2
34232 fi
34233done
cristy8b350f62009-11-15 23:12:43 +000034234 done
cristy3ed852e2009-09-05 21:47:34 +000034235IFS=$as_save_IFS
34236
34237 ;;
34238esac
34239fi
34240PSDelegate=$ac_cv_path_PSDelegate
34241if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo "$PSDelegate" >&6; }
34244else
cristy8b350f62009-11-15 23:12:43 +000034245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo "no" >&6; }
34247fi
34248
34249
34250 test -n "$PSDelegate" && break
34251done
34252test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34253
34254# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34255set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034258if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034259 $as_echo_n "(cached) " >&6
34260else
34261 case $RLEEncodeDelegate in
34262 [\\/]* | ?:[\\/]*)
34263 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34264 ;;
34265 *)
34266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34267for as_dir in $PATH
34268do
34269 IFS=$as_save_IFS
34270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034273 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275 break 2
34276 fi
34277done
cristy8b350f62009-11-15 23:12:43 +000034278 done
cristy3ed852e2009-09-05 21:47:34 +000034279IFS=$as_save_IFS
34280
34281 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34282 ;;
34283esac
34284fi
34285RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34286if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo "$RLEEncodeDelegate" >&6; }
34289else
cristy8b350f62009-11-15 23:12:43 +000034290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034291$as_echo "no" >&6; }
34292fi
34293
34294
34295# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34296set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034298$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034299if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034300 $as_echo_n "(cached) " >&6
34301else
34302 case $RMDelegate in
34303 [\\/]* | ?:[\\/]*)
34304 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34305 ;;
34306 *)
34307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34308for as_dir in $PATH
34309do
34310 IFS=$as_save_IFS
34311 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034314 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316 break 2
34317 fi
34318done
cristy8b350f62009-11-15 23:12:43 +000034319 done
cristy3ed852e2009-09-05 21:47:34 +000034320IFS=$as_save_IFS
34321
34322 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34323 ;;
34324esac
34325fi
34326RMDelegate=$ac_cv_path_RMDelegate
34327if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "$RMDelegate" >&6; }
34330else
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "no" >&6; }
34333fi
34334
34335
cristy4689cf02010-02-17 21:15:45 +000034336# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34337set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034340if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034341 $as_echo_n "(cached) " >&6
34342else
34343 case $RSVGDecodeDelegate in
34344 [\\/]* | ?:[\\/]*)
34345 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34346 ;;
34347 *)
34348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34349for as_dir in $PATH
34350do
34351 IFS=$as_save_IFS
34352 test -z "$as_dir" && as_dir=.
34353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034355 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34357 break 2
34358 fi
34359done
34360 done
34361IFS=$as_save_IFS
34362
34363 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34364 ;;
34365esac
34366fi
34367RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34368if test -n "$RSVGDecodeDelegate"; then
34369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34370$as_echo "$RSVGDecodeDelegate" >&6; }
34371else
34372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34373$as_echo "no" >&6; }
34374fi
34375
34376
cristy3ed852e2009-09-05 21:47:34 +000034377# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34378set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034381if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034382 $as_echo_n "(cached) " >&6
34383else
34384 case $SCANDecodeDelegate in
34385 [\\/]* | ?:[\\/]*)
34386 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34387 ;;
34388 *)
34389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34390for as_dir in $PATH
34391do
34392 IFS=$as_save_IFS
34393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034396 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398 break 2
34399 fi
34400done
cristy8b350f62009-11-15 23:12:43 +000034401 done
cristy3ed852e2009-09-05 21:47:34 +000034402IFS=$as_save_IFS
34403
34404 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34405 ;;
34406esac
34407fi
34408SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34409if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411$as_echo "$SCANDecodeDelegate" >&6; }
34412else
cristy8b350f62009-11-15 23:12:43 +000034413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034414$as_echo "no" >&6; }
34415fi
34416
34417
34418# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34419set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034422if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034423 $as_echo_n "(cached) " >&6
34424else
34425 case $TXTDelegate in
34426 [\\/]* | ?:[\\/]*)
34427 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34428 ;;
34429 *)
34430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34431for as_dir in $PATH
34432do
34433 IFS=$as_save_IFS
34434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034437 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439 break 2
34440 fi
34441done
cristy8b350f62009-11-15 23:12:43 +000034442 done
cristy3ed852e2009-09-05 21:47:34 +000034443IFS=$as_save_IFS
34444
34445 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34446 ;;
34447esac
34448fi
34449TXTDelegate=$ac_cv_path_TXTDelegate
34450if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034452$as_echo "$TXTDelegate" >&6; }
34453else
cristy8b350f62009-11-15 23:12:43 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034455$as_echo "no" >&6; }
34456fi
34457
34458
cristy5ac9ac82010-07-29 13:24:24 +000034459# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34460set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034463if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034464 $as_echo_n "(cached) " >&6
34465else
34466 case $UniconvertorDelegate in
34467 [\\/]* | ?:[\\/]*)
34468 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34469 ;;
34470 *)
34471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34472for as_dir in $PATH
34473do
34474 IFS=$as_save_IFS
34475 test -z "$as_dir" && as_dir=.
34476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034478 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34480 break 2
34481 fi
34482done
34483 done
34484IFS=$as_save_IFS
34485
34486 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34487 ;;
34488esac
34489fi
34490UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34491if test -n "$UniconvertorDelegate"; then
34492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34493$as_echo "$UniconvertorDelegate" >&6; }
34494else
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34496$as_echo "no" >&6; }
34497fi
34498
34499
cristy3ed852e2009-09-05 21:47:34 +000034500# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34501set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034504if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034505 $as_echo_n "(cached) " >&6
34506else
34507 case $WMFDecodeDelegate in
34508 [\\/]* | ?:[\\/]*)
34509 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34510 ;;
34511 *)
34512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34513for as_dir in $PATH
34514do
34515 IFS=$as_save_IFS
34516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034519 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034521 break 2
34522 fi
34523done
cristy8b350f62009-11-15 23:12:43 +000034524 done
cristy3ed852e2009-09-05 21:47:34 +000034525IFS=$as_save_IFS
34526
34527 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34528 ;;
34529esac
34530fi
34531WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34532if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534$as_echo "$WMFDecodeDelegate" >&6; }
34535else
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo "no" >&6; }
34538fi
34539
34540
34541# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34542set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034545if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034546 $as_echo_n "(cached) " >&6
34547else
34548 case $WWWDecodeDelegate in
34549 [\\/]* | ?:[\\/]*)
34550 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34551 ;;
34552 *)
34553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34554for as_dir in $PATH
34555do
34556 IFS=$as_save_IFS
34557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034560 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034562 break 2
34563 fi
34564done
cristy8b350f62009-11-15 23:12:43 +000034565 done
cristy3ed852e2009-09-05 21:47:34 +000034566IFS=$as_save_IFS
34567
34568 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34569 ;;
34570esac
34571fi
34572WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34573if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034575$as_echo "$WWWDecodeDelegate" >&6; }
34576else
cristy8b350f62009-11-15 23:12:43 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034578$as_echo "no" >&6; }
34579fi
34580
34581
34582# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34583set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034586if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034587 $as_echo_n "(cached) " >&6
34588else
34589 case $XPSDelegate in
34590 [\\/]* | ?:[\\/]*)
34591 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34592 ;;
34593 *)
34594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34595for as_dir in $PATH
34596do
34597 IFS=$as_save_IFS
34598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034601 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034603 break 2
34604 fi
34605done
cristy8b350f62009-11-15 23:12:43 +000034606 done
cristy3ed852e2009-09-05 21:47:34 +000034607IFS=$as_save_IFS
34608
34609 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34610 ;;
34611esac
34612fi
34613XPSDelegate=$ac_cv_path_XPSDelegate
34614if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616$as_echo "$XPSDelegate" >&6; }
34617else
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "no" >&6; }
34620fi
34621
34622
34623# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34624set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034627if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034628 $as_echo_n "(cached) " >&6
34629else
34630 case $ZipDelegate in
34631 [\\/]* | ?:[\\/]*)
34632 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34633 ;;
34634 *)
34635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34636for as_dir in $PATH
34637do
34638 IFS=$as_save_IFS
34639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034642 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034644 break 2
34645 fi
34646done
cristy8b350f62009-11-15 23:12:43 +000034647 done
cristy3ed852e2009-09-05 21:47:34 +000034648IFS=$as_save_IFS
34649
34650 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34651 ;;
34652esac
34653fi
34654ZipDelegate=$ac_cv_path_ZipDelegate
34655if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo "$ZipDelegate" >&6; }
34658else
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "no" >&6; }
34661fi
34662
34663
34664
34665# Prefer lpr to lp; lp needs options tacked on.
34666if test "$LPRDelegate" != no; then
34667 PrintDelegate="$LPRDelegate"
34668else
34669 PrintDelegate="$LPDelegate -c -s"
34670fi
34671
34672
34673# Installed ImageMagick utiltity paths
34674ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34675DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34676MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34677
34678# Set delegate booleans
34679have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34680have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34681have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34682have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34683have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034684have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034685have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34686have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034687have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34688have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34689
34690#
34691# Test for font directories
34692#
34693type_include_files=''
34694
cristy430a7312010-01-21 20:44:04 +000034695# Dejavu fonts.
34696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34697$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34698dejavu_font_dir=''
34699if test "${with_dejavu_font_dir}" != 'default'; then
34700 dejavu_font_dir="${with_dejavu_font_dir}/"
34701else
34702 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34703 if test -f "${font_dir}DejaVuSerif.ttf"; then
34704 dejavu_font_dir="${font_dir}"
34705 break 1
34706 fi
34707 done
34708fi
34709if test "${dejavu_font_dir}x" != 'x'; then
34710 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034711 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34712$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034713else
cristy09b53e12011-10-14 12:47:22 +000034714 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34715$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034716fi
34717
34718
cristy3ed852e2009-09-05 21:47:34 +000034719# Windows
34720windows_font_dir=''
34721if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34722 windows_font_dir="${with_windows_font_dir}/"
34723fi
cristy430a7312010-01-21 20:44:04 +000034724if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034725 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34726 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34727 fi
34728 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34729 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34730 fi
34731 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34732 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34733 fi
34734fi
cristy430a7312010-01-21 20:44:04 +000034735if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034736 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34737fi
34738
34739
34740# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34743ghostscript_font_dir=''
34744if test "${with_gs_font_dir}" != 'default'; then
34745 ghostscript_font_dir="${with_gs_font_dir}/"
34746else
34747 if test "${native_win32_build}" = 'yes'; then
34748 # Native Windows Build
34749 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34750 if test -f "${font_dir}a010013l.pfb"; then
34751 ghostscript_font_dir="$font_dir"
34752 break 1
34753 fi
34754 done
34755 if test "${PSDelegate}" != 'gswin32c'; then
34756 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34757 fi
34758 else
34759 # Linux / Mac OS X / Unix Build
34760 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
34761 if test -f "${font_dir}a010013l.pfb"; then
34762 ghostscript_font_dir="${font_dir}"
34763 break 1
34764 fi
34765 done
34766 if test "${ghostscript_font_dir}x" = 'x'; then
34767 if test "$PSDelegate" != 'gs'; then
34768 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34769 fi
34770 fi
34771 fi
34772fi
34773if test "${ghostscript_font_dir}x" != 'x'; then
34774 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34776$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034777else
cristy09b53e12011-10-14 12:47:22 +000034778 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34779$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034780fi
34781
34782case "${build_os}" in
34783 mingw* )
34784 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34785 ;;
34786esac
34787
34788
34789
34790#
34791# Handle case where user doesn't want frozen paths
34792#
34793if test "$with_frozenpaths" != 'yes'; then
34794 # Re-set delegate definitions to default (no paths)
34795 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034796 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34797 BZIPDelegate="$BZIPDelegateDefault"
34798 BrowseDelegate="$BrowseDelegateDefault"
34799 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34800 CatDelegate="$CatDelegateDefault"
34801 ConvertDelegate="$ConvertDelegateDefault"
34802 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34803 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34804 EchoDelegate="$EchoDelegateDefault"
34805 EditorDelegate="$EditorDelegateDefault"
34806 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34807 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34808 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34809 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34810 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34811 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34812 LPDelegate="$LPDelegateDefault"
34813 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34814 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34815 LaunchDelegate="$LaunchDelegateDefault"
34816 MANDelegate="$MANDelegateDefault"
34817 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34818 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034819 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034820 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34821 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034822 PCLDelegate="$PCLDelegateDefault"
34823 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34824 POVDelegate="$POVDelegateDefault"
34825 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034826 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34827 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034828 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034829 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34830 ShowImageDelegate="$ShowImageDelegateDefault"
34831 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034832 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034833 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34834 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34835 XPSDelegate="$XPSDelegateDefault"
34836 ZipDelegate="$ZipDelegateDefault"
34837fi
34838
34839# Delegate substitutions
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882#
34883# RPM support.
34884#
34885RPM=''
34886for ac_prog in gnutar gtar tar
34887do
34888 # Extract the first word of "$ac_prog", so it can be a program name with args.
34889set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034892if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034893 $as_echo_n "(cached) " >&6
34894else
34895 if test -n "$TAR"; then
34896 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34897else
34898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34899for as_dir in $PATH
34900do
34901 IFS=$as_save_IFS
34902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034905 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034907 break 2
34908 fi
34909done
cristy8b350f62009-11-15 23:12:43 +000034910 done
cristy3ed852e2009-09-05 21:47:34 +000034911IFS=$as_save_IFS
34912
34913fi
34914fi
34915TAR=$ac_cv_prog_TAR
34916if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034918$as_echo "$TAR" >&6; }
34919else
cristy8b350f62009-11-15 23:12:43 +000034920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034921$as_echo "no" >&6; }
34922fi
34923
34924
34925 test -n "$TAR" && break
34926done
34927
34928for ac_prog in perl
34929do
34930 # Extract the first word of "$ac_prog", so it can be a program name with args.
34931set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034934if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034935 $as_echo_n "(cached) " >&6
34936else
34937 if test -n "$PERL"; then
34938 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34939else
34940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34941for as_dir in $PATH
34942do
34943 IFS=$as_save_IFS
34944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034947 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034949 break 2
34950 fi
34951done
cristy8b350f62009-11-15 23:12:43 +000034952 done
cristy3ed852e2009-09-05 21:47:34 +000034953IFS=$as_save_IFS
34954
34955fi
34956fi
34957PERL=$ac_cv_prog_PERL
34958if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo "$PERL" >&6; }
34961else
cristy8b350f62009-11-15 23:12:43 +000034962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034963$as_echo "no" >&6; }
34964fi
34965
34966
34967 test -n "$PERL" && break
34968done
34969
34970for ac_prog in rpmbuild rpm
34971do
34972 # Extract the first word of "$ac_prog", so it can be a program name with args.
34973set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034976if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034977 $as_echo_n "(cached) " >&6
34978else
34979 if test -n "$RPM"; then
34980 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34981else
34982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34983for as_dir in $PATH
34984do
34985 IFS=$as_save_IFS
34986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034989 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034991 break 2
34992 fi
34993done
cristy8b350f62009-11-15 23:12:43 +000034994 done
cristy3ed852e2009-09-05 21:47:34 +000034995IFS=$as_save_IFS
34996
34997fi
34998fi
34999RPM=$ac_cv_prog_RPM
35000if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035002$as_echo "$RPM" >&6; }
35003else
cristy8b350f62009-11-15 23:12:43 +000035004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035005$as_echo "no" >&6; }
35006fi
35007
35008
35009 test -n "$RPM" && break
35010done
35011
35012
cristy73bd4a52010-10-05 11:24:23 +000035013ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35014
35015
35016AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35017
35018
35019AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35020
35021
35022AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35023
35024
35025 if test "x$RPM" != "x" ; then
35026 RPM_DELEGATE_TRUE=
35027 RPM_DELEGATE_FALSE='#'
35028else
35029 RPM_DELEGATE_TRUE='#'
35030 RPM_DELEGATE_FALSE=
35031fi
35032
cristy3ed852e2009-09-05 21:47:34 +000035033
35034#
35035# 7ZIP support (http://p7zip.sourceforge.net/)
35036#
35037P7ZIP=''
35038for ac_prog in 7za
35039do
35040 # Extract the first word of "$ac_prog", so it can be a program name with args.
35041set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035044if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035045 $as_echo_n "(cached) " >&6
35046else
35047 if test -n "$P7ZIP"; then
35048 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35049else
35050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35051for as_dir in $PATH
35052do
35053 IFS=$as_save_IFS
35054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035057 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035059 break 2
35060 fi
35061done
cristy8b350f62009-11-15 23:12:43 +000035062 done
cristy3ed852e2009-09-05 21:47:34 +000035063IFS=$as_save_IFS
35064
35065fi
35066fi
35067P7ZIP=$ac_cv_prog_P7ZIP
35068if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035070$as_echo "$P7ZIP" >&6; }
35071else
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo "no" >&6; }
35074fi
35075
35076
35077 test -n "$P7ZIP" && break
35078done
35079
35080
cristy73bd4a52010-10-05 11:24:23 +000035081 if test "x$P7ZIP" != "x" ; then
35082 P7ZIP_DELEGATE_TRUE=
35083 P7ZIP_DELEGATE_FALSE='#'
35084else
35085 P7ZIP_DELEGATE_TRUE='#'
35086 P7ZIP_DELEGATE_FALSE=
35087fi
35088
cristy3ed852e2009-09-05 21:47:34 +000035089
35090#
35091# ZIP support (http://www.info-zip.org/Zip.html)
35092#
35093ZIP=''
35094for ac_prog in zip
35095do
35096 # Extract the first word of "$ac_prog", so it can be a program name with args.
35097set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035100if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035101 $as_echo_n "(cached) " >&6
35102else
35103 if test -n "$ZIP"; then
35104 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35105else
35106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35107for as_dir in $PATH
35108do
35109 IFS=$as_save_IFS
35110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035113 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035115 break 2
35116 fi
35117done
cristy8b350f62009-11-15 23:12:43 +000035118 done
cristy3ed852e2009-09-05 21:47:34 +000035119IFS=$as_save_IFS
35120
35121fi
35122fi
35123ZIP=$ac_cv_prog_ZIP
35124if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035126$as_echo "$ZIP" >&6; }
35127else
cristy8b350f62009-11-15 23:12:43 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129$as_echo "no" >&6; }
35130fi
35131
35132
35133 test -n "$ZIP" && break
35134done
35135
35136
cristy73bd4a52010-10-05 11:24:23 +000035137 if test "x$ZIP" != "x" ; then
35138 ZIP_DELEGATE_TRUE=
35139 ZIP_DELEGATE_FALSE='#'
35140else
35141 ZIP_DELEGATE_TRUE='#'
35142 ZIP_DELEGATE_FALSE=
35143fi
35144
cristy3ed852e2009-09-05 21:47:34 +000035145
35146#
35147# GhostPCL related configuration.
35148#
35149PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035150PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035151PCLMonoDevice=pbmraw
35152if test -z "$PCLVersion"; then
35153 PCLVersion='unknown'
35154fi
35155if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35157$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035159$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35161$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035162 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035164$as_echo_n "checking for pcl color device... " >&6; }
35165 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35166 :
35167 else
35168 PCLColorDevice=ppmraw
35169 fi
cristy09b53e12011-10-14 12:47:22 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35171$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035172
35173 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035175$as_echo_n "checking for pcl CMYK device... " >&6; }
35176 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35177 :
35178 else
35179 PCLCMYKDevice=$PCLColorDevice
35180 fi
cristy09b53e12011-10-14 12:47:22 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35182$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035183
35184 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035186$as_echo_n "checking for pcl mono device... " >&6; }
35187 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35188 :
35189 else
35190 PCLMonoDevice=$PCLColorDevice
35191 fi
cristy09b53e12011-10-14 12:47:22 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35193$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035194fi
35195
35196
35197
35198
35199
35200
35201#
35202# GhostXPS related configuration.
35203#
35204XPSColorDevice=ppmraw
35205XPSCMYKDevice=bmpsep8
35206XPSMonoDevice=pbmraw
35207if test -z "$XPSVersion"; then
35208 XPSVersion='unknown'
35209fi
35210if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35212$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035214$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035215 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35216$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035217 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035219$as_echo_n "checking for xps color device... " >&6; }
35220 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35221 :
35222 else
35223 XPSColorDevice=ppmraw
35224 fi
cristy09b53e12011-10-14 12:47:22 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35226$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035227
35228 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035230$as_echo_n "checking for xps CMYK device... " >&6; }
35231 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35232 :
35233 else
35234 XPSCMYKDevice=$XPSColorDevice
35235 fi
cristy09b53e12011-10-14 12:47:22 +000035236 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35237$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035238
35239 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035241$as_echo_n "checking for xps mono device... " >&6; }
35242 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35243 :
35244 else
35245 XPSMonoDevice=$XPSColorDevice
35246 fi
cristy09b53e12011-10-14 12:47:22 +000035247 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35248$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035249fi
35250
35251
35252
35253
35254
35255
35256#
35257# Ghostscript related configuration.
35258#
cristya97426c2011-02-04 01:41:27 +000035259GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035260GSColorDevice=pnmraw
35261GSCMYKDevice=pam
35262GSMonoDevice=pbmraw
35263GSPDFDevice=pdfwrite
35264GSPSDevice=pswrite
35265GSEPSDevice=epswrite
35266GSVersion='unknown'
35267if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35269$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035271$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35273$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035275$as_echo_n "checking for Ghostscript version... " >&6; }
35276 if GSVersion=`$PSDelegate --version`; then
35277 :
35278 else
35279 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35280 fi
cristy09b53e12011-10-14 12:47:22 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35282$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035283
35284 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035286$as_echo_n "checking for gs alpha device... " >&6; }
35287 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35288 :
35289 else
35290 GSAlphaDevice=pnmraw
35291 fi
cristy09b53e12011-10-14 12:47:22 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35293$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035294
35295 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035297$as_echo_n "checking for gs color device... " >&6; }
35298 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35299 :
35300 else
35301 GSColorDevice=pnmraw
35302 fi
cristy09b53e12011-10-14 12:47:22 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35304$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035305
35306 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035308$as_echo_n "checking for gs CMYK device... " >&6; }
35309 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35310 :
35311 else
35312 GSCMYKDevice=bmpsep8
35313 fi
cristy09b53e12011-10-14 12:47:22 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35315$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035316
35317 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035319$as_echo_n "checking for gs mono device... " >&6; }
35320 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35321 :
35322 else
35323 GSMonoDevice=$GSColorDevice
35324 fi
cristy09b53e12011-10-14 12:47:22 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35326$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035327
35328 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035330$as_echo_n "checking for gs PDF writing device... " >&6; }
35331 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35332 :
35333 else
35334 GSPDFDevice=nodevice
35335 fi
cristy09b53e12011-10-14 12:47:22 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35337$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035338
35339 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035341$as_echo_n "checking for gs PS writing device... " >&6; }
35342 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35343 :
35344 else
35345 GSPSDevice=nodevice
35346 fi
cristy09b53e12011-10-14 12:47:22 +000035347 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35348$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035349
35350 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035352$as_echo_n "checking for gs EPS writing device... " >&6; }
35353 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35354 :
35355 else
35356 GSEPSDevice=nodevice
35357 fi
cristy09b53e12011-10-14 12:47:22 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35359$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035360fi
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371#
35372# PerlMagick-related configuration
35373#
35374
35375# Look for PERL if PerlMagick requested
35376# If name/path of desired PERL interpreter is specified, look for that one first
35377have_perl='no'
35378if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35380$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035383 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35384$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035385 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035387$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035388if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035389 $as_echo_n "(cached) " >&6
35390else
35391 ac_cv_path_PERL="$with_perl"
35392fi
cristy8b350f62009-11-15 23:12:43 +000035393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035394$as_echo "$ac_cv_path_PERL" >&6; };
35395 PERL=$ac_cv_path_PERL
35396 have_perl="$ac_cv_path_PERL"
35397 else
35398 for ac_prog in perl perl5
35399do
35400 # Extract the first word of "$ac_prog", so it can be a program name with args.
35401set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035404if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035405 $as_echo_n "(cached) " >&6
35406else
35407 case $PERL in
35408 [\\/]* | ?:[\\/]*)
35409 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35410 ;;
35411 *)
35412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35413for as_dir in $PATH
35414do
35415 IFS=$as_save_IFS
35416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035419 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035421 break 2
35422 fi
35423done
cristy8b350f62009-11-15 23:12:43 +000035424 done
cristy3ed852e2009-09-05 21:47:34 +000035425IFS=$as_save_IFS
35426
35427 ;;
35428esac
35429fi
35430PERL=$ac_cv_path_PERL
35431if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433$as_echo "$PERL" >&6; }
35434else
cristy8b350f62009-11-15 23:12:43 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035436$as_echo "no" >&6; }
35437fi
35438
35439
35440 test -n "$PERL" && break
35441done
35442 if test "$ac_cv_path_PERL"; then
35443 have_perl="$ac_cv_path_PERL"
35444 fi
35445 fi
35446fi
35447
cristy949301e2010-01-06 01:38:40 +000035448if test "$with_perl" != 'yes' ; then
35449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35450fi
35451
35452PERL_SUPPORTS_DESTDIR='no'
35453
cristy3ed852e2009-09-05 21:47:34 +000035454with_perl_static='no'
35455with_perl_dynamic='no'
35456if test "$have_perl" != 'no'; then
35457 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35458 with_perl_static='yes'
35459 fi
35460 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35461 with_perl_dynamic='yes'
35462 fi
35463 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035464
35465
35466
35467
35468 if test -n "$PERL"; then :
35469
35470 ax_perl_version="5.8.1"
35471
35472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35473$as_echo_n "checking for perl version... " >&6; }
35474
35475 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35476
35477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35478$as_echo "$perl_version" >&6; }
35479
35480 PERL_VERSION=$perl_version
35481
35482
35483
35484
35485
35486 # Used to indicate true or false condition
35487 ax_compare_version=false
35488
35489 # Convert the two version strings to be compared into a format that
35490 # allows a simple string comparison. The end result is that a version
35491 # string of the form 1.12.5-r617 will be converted to the form
35492 # 0001001200050617. In other words, each number is zero padded to four
35493 # digits, and non digits are removed.
35494
35495 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35496 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35497 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35498 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35499 -e 's/[^0-9]//g'`
35500
35501
35502 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35503 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35504 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35505 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35506 -e 's/[^0-9]//g'`
35507
35508
35509 ax_compare_version=`echo "x$ax_compare_version_A
35510x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35511
35512
35513
35514 if test "$ax_compare_version" = "true" ; then
35515
35516 :
35517 PERL_SUPPORTS_DESTDIR='yes'
35518
35519 else
35520 :
35521 PERL_SUPPORTS_DESTDIR='no'
35522
35523 fi
35524
35525
35526else
35527
35528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35529$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35530 PERL_SUPPORTS_DESTDIR='no'
35531
cristy3ed852e2009-09-05 21:47:34 +000035532fi
cristy73bd4a52010-10-05 11:24:23 +000035533
35534fi
35535 if test "$have_perl" != 'no'; then
35536 WITH_PERL_TRUE=
35537 WITH_PERL_FALSE='#'
35538else
35539 WITH_PERL_TRUE='#'
35540 WITH_PERL_FALSE=
35541fi
35542
35543 if test $with_perl_static = 'yes'; then
35544 WITH_PERL_STATIC_TRUE=
35545 WITH_PERL_STATIC_FALSE='#'
35546else
35547 WITH_PERL_STATIC_TRUE='#'
35548 WITH_PERL_STATIC_FALSE=
35549fi
35550
35551 if test $with_perl_dynamic = 'yes'; then
35552 WITH_PERL_DYNAMIC_TRUE=
35553 WITH_PERL_DYNAMIC_FALSE='#'
35554else
35555 WITH_PERL_DYNAMIC_TRUE='#'
35556 WITH_PERL_DYNAMIC_FALSE=
35557fi
35558
cristy3ed852e2009-09-05 21:47:34 +000035559
35560
35561# Determine path to pick up MagickCore library from for use with building PerlMagick
35562MAGICKCORE_PATH="${LIB_DIR}"
35563if test $with_perl_static = 'yes'; then
35564 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35565 libtool_objdir=$objdir
35566
35567 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035568 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035569fi
35570
35571
35572# Create a simple string containing format names for all delegate libraries
35573DELEGATES=''
35574if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35575if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35576if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35577if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35578if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35579if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35580if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35581if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35582if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35583if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35584if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35585if test "$have_jpeg" = 'yes'; then
35586 DELEGATES="$DELEGATES jpeg";
35587 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35588fi
35589if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035590if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035591if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35592if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035593if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035594if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35595if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035596if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035597if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35598if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35599if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35600if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35601if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35602if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35603if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35604
35605
35606
35607#
35608# Handle special compiler flags
35609#
35610
35611# Add '-p' if prof source profiling support enabled
35612if test "$enable_prof" = 'yes'; then
35613 CFLAGS="-p $CFLAGS"
35614 CXXFLAGS="-p $CXXFLAGS"
35615 LDFLAGS="-p $LDFLAGS"
35616fi
35617
35618# Add '-pg' if gprof source profiling support enabled
35619if test "$enable_gprof" = 'yes'; then
35620 CFLAGS="-pg $CFLAGS"
35621 CXXFLAGS="-pg $CXXFLAGS"
35622 LDFLAGS="-pg $LDFLAGS"
35623fi
35624
35625# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35626# This is a gcc-specific feature
35627if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035629$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035630if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035631 $as_echo_n "(cached) " >&6
35632else
35633 ac_check_lib_save_LIBS=$LIBS
35634LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035636/* end confdefs.h. */
35637
35638/* Override any GCC internal prototype to avoid an error.
35639 Use char because int might match the return type of a GCC
35640 builtin and then its argument prototype would still apply. */
35641#ifdef __cplusplus
35642extern "C"
35643#endif
35644char _gcov_init ();
35645int
35646main ()
35647{
35648return _gcov_init ();
35649 ;
35650 return 0;
35651}
35652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035654 ac_cv_lib_gcov__gcov_init=yes
35655else
cristy8b350f62009-11-15 23:12:43 +000035656 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035657fi
cristy8b350f62009-11-15 23:12:43 +000035658rm -f core conftest.err conftest.$ac_objext \
35659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035660LIBS=$ac_check_lib_save_LIBS
35661fi
cristy8b350f62009-11-15 23:12:43 +000035662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035663$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035664if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035665 cat >>confdefs.h <<_ACEOF
35666#define HAVE_LIBGCOV 1
35667_ACEOF
35668
35669 LIBS="-lgcov $LIBS"
35670
35671fi
35672
cristy8b350f62009-11-15 23:12:43 +000035673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035674$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035675if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035676 $as_echo_n "(cached) " >&6
35677else
35678 ac_check_lib_save_LIBS=$LIBS
35679LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035681/* end confdefs.h. */
35682
35683/* Override any GCC internal prototype to avoid an error.
35684 Use char because int might match the return type of a GCC
35685 builtin and then its argument prototype would still apply. */
35686#ifdef __cplusplus
35687extern "C"
35688#endif
35689char __gcov_init ();
35690int
35691main ()
35692{
35693return __gcov_init ();
35694 ;
35695 return 0;
35696}
35697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035699 ac_cv_lib_gcov___gcov_init=yes
35700else
cristy8b350f62009-11-15 23:12:43 +000035701 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035702fi
cristy8b350f62009-11-15 23:12:43 +000035703rm -f core conftest.err conftest.$ac_objext \
35704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035705LIBS=$ac_check_lib_save_LIBS
35706fi
cristy8b350f62009-11-15 23:12:43 +000035707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035708$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035709if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035710 cat >>confdefs.h <<_ACEOF
35711#define HAVE_LIBGCOV 1
35712_ACEOF
35713
35714 LIBS="-lgcov $LIBS"
35715
35716fi
35717
35718 case "$target_os" in
35719 darwin*)
35720 OSX_GCOV_LDFLAG="-Wl,-single_module"
35721 ;;
35722 *)
35723 OSX_GCOV_LDFLAG=""
35724 ;;
35725 esac
35726
35727 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35728 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35729 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35730fi
35731
35732#
35733# Build library dependency list for libMagickCore
35734#
35735
35736MAGICK_LIBLTDL='' # Libltdl for build
35737MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35738MAGICK_LTDLDEPS='' # extra libltdl dependencies
35739if test "$with_ltdl" != 'no'
35740then
35741 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35742 MAGICK_API_LIBLTDL='-lltdl'
35743 fi
35744 MAGICK_LIBLTDL=${LIBLTDL}
35745 MAGICK_LTDLDEPS=${LTDLDEPS}
35746fi
35747
35748
35749
35750if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035751 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035752else
cristy41cbe8a2011-10-27 01:35:18 +000035753 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 $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035754fi
35755
35756
35757#
35758# Remove extraneous spaces from output variables (asthetic)
35759#
35760X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35761X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35762X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35763X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35764
35765CC=`echo $CC | sed -e 's/ */ /g'`
35766CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35767CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35768CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35769DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35770DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35771LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35772TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35773MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35774#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35775
35776# Pass only user-provided LIBS as "global" libraries
35777LIBS=$USER_LIBS
35778
35779#AC_SUBST(CPPFLAGS)
35780
35781#AC_SUBST(LDFLAGS)
35782#AC_SUBST(X_PRE_LIBS)
35783#AC_SUBST(X_LIBS)
35784#AC_SUBST(X_EXTRA_LIBS)
35785
35786MAGICK_CFLAGS=$CFLAGS
35787MAGICK_CXXFLAGS="$CXXFLAGS"
35788MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35789MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35790MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35791MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35792
35793
35794
35795
35796
35797
35798
35799
cristyfd9dcd42010-08-08 18:07:02 +000035800
cristy3ed852e2009-09-05 21:47:34 +000035801# Set configured scripts to executable.
35802ac_config_commands="$ac_config_commands default"
35803
cristy2bd4b6e2012-07-22 15:29:11 +000035804ac_config_commands="$ac_config_commands magick.sh.in"
35805
cristy3ed852e2009-09-05 21:47:34 +000035806ac_config_commands="$ac_config_commands MagickCore-config.in"
35807
cristy3ed852e2009-09-05 21:47:34 +000035808ac_config_commands="$ac_config_commands MagickWand-config.in"
35809
cristy3ed852e2009-09-05 21:47:34 +000035810ac_config_commands="$ac_config_commands Magick++-config.in"
35811
35812ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35813
35814
cristy09b53e12011-10-14 12:47:22 +000035815{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35816$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35817{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35818$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035819cat >confcache <<\_ACEOF
35820# This file is a shell script that caches the results of configure
35821# tests run on this system so they can be shared between configure
35822# scripts and configure runs, see configure's option --config-cache.
35823# It is not useful on other systems. If it contains results you don't
35824# want to keep, you may remove or edit it.
35825#
35826# config.status only pays attention to the cache file if you give it
35827# the --recheck option to rerun configure.
35828#
35829# `ac_cv_env_foo' variables (set or unset) will be overridden when
35830# loading this file, other *unset* `ac_cv_foo' will be assigned the
35831# following values.
35832
35833_ACEOF
35834
35835# The following way of writing the cache mishandles newlines in values,
35836# but we know of no workaround that is simple, portable, and efficient.
35837# So, we kill variables containing newlines.
35838# Ultrix sh set writes to stderr and can't be redirected directly,
35839# and sets the high bit in the cache file unless we assign to the vars.
35840(
35841 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35842 eval ac_val=\$$ac_var
35843 case $ac_val in #(
35844 *${as_nl}*)
35845 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35848 esac
35849 case $ac_var in #(
35850 _ | IFS | as_nl) ;; #(
35851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035852 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035853 esac ;;
35854 esac
35855 done
35856
35857 (set) 2>&1 |
35858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35859 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035860 # `set' does not quote correctly, so add quotes: double-quote
35861 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035862 sed -n \
35863 "s/'/'\\\\''/g;
35864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35865 ;; #(
35866 *)
35867 # `set' quotes correctly as required by POSIX, so do not add quotes.
35868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35869 ;;
35870 esac |
35871 sort
35872) |
35873 sed '
35874 /^ac_cv_env_/b end
35875 t clear
35876 :clear
35877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35878 t end
35879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35880 :end' >>confcache
35881if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35882 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035883 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035885$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035886 if test ! -f "$cache_file" || test -h "$cache_file"; then
35887 cat confcache >"$cache_file"
35888 else
35889 case $cache_file in #(
35890 */* | ?:*)
35891 mv -f confcache "$cache_file"$$ &&
35892 mv -f "$cache_file"$$ "$cache_file" ;; #(
35893 *)
35894 mv -f confcache "$cache_file" ;;
35895 esac
35896 fi
35897 fi
cristy3ed852e2009-09-05 21:47:34 +000035898 else
cristy8b350f62009-11-15 23:12:43 +000035899 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035900$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35901 fi
35902fi
35903rm -f confcache
35904
35905test "x$prefix" = xNONE && prefix=$ac_default_prefix
35906# Let make expand exec_prefix.
35907test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35908
35909DEFS=-DHAVE_CONFIG_H
35910
35911ac_libobjs=
35912ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035913U=
cristy3ed852e2009-09-05 21:47:34 +000035914for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35915 # 1. Remove the extension, and $U if already installed.
35916 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35917 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35918 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35919 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035920 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35921 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035922done
35923LIBOBJS=$ac_libobjs
35924
35925LTLIBOBJS=$ac_ltlibobjs
35926
35927
cristyc0890a62012-07-19 00:18:20 +000035928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35929$as_echo_n "checking that generated files are newer than configure... " >&6; }
35930 if test -n "$am_sleep_pid"; then
35931 # Hide warnings about reused PIDs.
35932 wait $am_sleep_pid 2>/dev/null
35933 fi
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35935$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035936 if test -n "$EXEEXT"; then
35937 am__EXEEXT_TRUE=
35938 am__EXEEXT_FALSE='#'
35939else
35940 am__EXEEXT_TRUE='#'
35941 am__EXEEXT_FALSE=
35942fi
cristy3ed852e2009-09-05 21:47:34 +000035943
cristy73bd4a52010-10-05 11:24:23 +000035944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
35948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
35956if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
35972if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
cristy73bd4a52010-10-05 11:24:23 +000035976if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
35980if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035982Usually this means the macro was only invoked conditionally." "$LINENO" 5
35983fi
35984LT_CONFIG_H=config/config.h
35985
35986 _ltdl_libobjs=
35987 _ltdl_ltlibobjs=
35988 if test -n "$_LT_LIBOBJS"; then
35989 # Remove the extension.
35990 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35991 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35992 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35993 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35994 done
35995 fi
35996 ltdl_LIBOBJS=$_ltdl_libobjs
35997
35998 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35999
36000
36001if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036002 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
36005if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
36009if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036010 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
36013if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036014 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
cristy71d8c202012-03-20 17:05:01 +000036017if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36018 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
cristy73bd4a52010-10-05 11:24:23 +000036021
36022if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036023 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
36026if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036027 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036028Usually this means the macro was only invoked conditionally." "$LINENO" 5
36029fi
36030if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
36034if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
36042if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
36062if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036071 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
36074if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036075 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036083 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
36086if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036087 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
36090if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036091 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
36094if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036095 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036096Usually this means the macro was only invoked conditionally." "$LINENO" 5
36097fi
36098if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036099 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036100Usually this means the macro was only invoked conditionally." "$LINENO" 5
36101fi
cristyfbb0ef02010-12-19 02:32:11 +000036102if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36103 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36104Usually this means the macro was only invoked conditionally." "$LINENO" 5
36105fi
cristy73bd4a52010-10-05 11:24:23 +000036106if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036107 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036108Usually this means the macro was only invoked conditionally." "$LINENO" 5
36109fi
cristy41cbe8a2011-10-27 01:35:18 +000036110if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36111 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36112Usually this means the macro was only invoked conditionally." "$LINENO" 5
36113fi
cristya054b762012-03-26 23:16:00 +000036114if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36115 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036116Usually this means the macro was only invoked conditionally." "$LINENO" 5
36117fi
cristy73bd4a52010-10-05 11:24:23 +000036118if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036119 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036120Usually this means the macro was only invoked conditionally." "$LINENO" 5
36121fi
36122if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036123 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036124Usually this means the macro was only invoked conditionally." "$LINENO" 5
36125fi
36126if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036127 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036128Usually this means the macro was only invoked conditionally." "$LINENO" 5
36129fi
36130if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036131 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036132Usually this means the macro was only invoked conditionally." "$LINENO" 5
36133fi
cristyb1860752011-03-14 00:27:46 +000036134if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36135 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36136Usually this means the macro was only invoked conditionally." "$LINENO" 5
36137fi
cristy73bd4a52010-10-05 11:24:23 +000036138if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036139 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036140Usually this means the macro was only invoked conditionally." "$LINENO" 5
36141fi
36142if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036143 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036144Usually this means the macro was only invoked conditionally." "$LINENO" 5
36145fi
36146if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036147 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036148Usually this means the macro was only invoked conditionally." "$LINENO" 5
36149fi
36150if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036151 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036152Usually this means the macro was only invoked conditionally." "$LINENO" 5
36153fi
36154if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036155 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036156Usually this means the macro was only invoked conditionally." "$LINENO" 5
36157fi
36158if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036159 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036160Usually this means the macro was only invoked conditionally." "$LINENO" 5
36161fi
36162if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036163 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036164Usually this means the macro was only invoked conditionally." "$LINENO" 5
36165fi
36166if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036167 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036168Usually this means the macro was only invoked conditionally." "$LINENO" 5
36169fi
cristy3ed852e2009-09-05 21:47:34 +000036170
cristyda16f162011-02-19 23:52:17 +000036171: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036172ac_write_fail=0
36173ac_clean_files_save=$ac_clean_files
36174ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036175{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036176$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036177as_write_fail=0
36178cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036179#! $SHELL
36180# Generated by $as_me.
36181# Run this file to recreate the current configuration.
36182# Compiler output produced by configure, useful for debugging
36183# configure, is in config.log if it exists.
36184
36185debug=false
36186ac_cs_recheck=false
36187ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036188
cristy8b350f62009-11-15 23:12:43 +000036189SHELL=\${CONFIG_SHELL-$SHELL}
36190export SHELL
36191_ASEOF
36192cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36193## -------------------- ##
36194## M4sh Initialization. ##
36195## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036196
36197# Be more Bourne compatible
36198DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036199if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036200 emulate sh
36201 NULLCMD=:
36202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36203 # is contrary to our usage. Disable this feature.
36204 alias -g '${1+"$@"}'='"$@"'
36205 setopt NO_GLOB_SUBST
36206else
cristy8b350f62009-11-15 23:12:43 +000036207 case `(set -o) 2>/dev/null` in #(
36208 *posix*) :
36209 set -o posix ;; #(
36210 *) :
36211 ;;
cristy3ed852e2009-09-05 21:47:34 +000036212esac
cristy3ed852e2009-09-05 21:47:34 +000036213fi
36214
36215
cristy3ed852e2009-09-05 21:47:34 +000036216as_nl='
36217'
36218export as_nl
36219# Printing a long string crashes Solaris 7 /usr/bin/printf.
36220as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036223# Prefer a ksh shell builtin over an external printf program on Solaris,
36224# but without wasting forks for bash or zsh.
36225if test -z "$BASH_VERSION$ZSH_VERSION" \
36226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36227 as_echo='print -r --'
36228 as_echo_n='print -rn --'
36229elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036230 as_echo='printf %s\n'
36231 as_echo_n='printf %s'
36232else
36233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36235 as_echo_n='/usr/ucb/echo -n'
36236 else
36237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36238 as_echo_n_body='eval
36239 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036240 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036241 *"$as_nl"*)
36242 expr "X$arg" : "X\\(.*\\)$as_nl";
36243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36244 esac;
36245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36246 '
36247 export as_echo_n_body
36248 as_echo_n='sh -c $as_echo_n_body as_echo'
36249 fi
36250 export as_echo_body
36251 as_echo='sh -c $as_echo_body as_echo'
36252fi
36253
36254# The user is always right.
36255if test "${PATH_SEPARATOR+set}" != set; then
36256 PATH_SEPARATOR=:
36257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36259 PATH_SEPARATOR=';'
36260 }
36261fi
36262
cristy3ed852e2009-09-05 21:47:34 +000036263
36264# IFS
36265# We need space, tab and new line, in precisely that order. Quoting is
36266# there to prevent editors from complaining about space-tab.
36267# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36268# splitting by setting IFS to empty value.)
36269IFS=" "" $as_nl"
36270
36271# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036272as_myself=
cristy8b350f62009-11-15 23:12:43 +000036273case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036274 *[\\/]* ) as_myself=$0 ;;
36275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36276for as_dir in $PATH
36277do
36278 IFS=$as_save_IFS
36279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36281 done
cristy3ed852e2009-09-05 21:47:34 +000036282IFS=$as_save_IFS
36283
36284 ;;
36285esac
36286# We did not find ourselves, most probably we were run as `sh COMMAND'
36287# in which case we are not to be found in the path.
36288if test "x$as_myself" = x; then
36289 as_myself=$0
36290fi
36291if test ! -f "$as_myself"; then
36292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036293 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036294fi
36295
cristy8b350f62009-11-15 23:12:43 +000036296# Unset variables that we do not need and which cause bugs (e.g. in
36297# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36298# suppresses any "Segmentation fault" message there. '((' could
36299# trigger a bug in pdksh 5.2.14.
36300for as_var in BASH_ENV ENV MAIL MAILPATH
36301do eval test x\${$as_var+set} = xset \
36302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036303done
36304PS1='$ '
36305PS2='> '
36306PS4='+ '
36307
36308# NLS nuisances.
36309LC_ALL=C
36310export LC_ALL
36311LANGUAGE=C
36312export LANGUAGE
36313
cristy8b350f62009-11-15 23:12:43 +000036314# CDPATH.
36315(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36316
36317
cristy98dddb52010-11-04 00:30:15 +000036318# as_fn_error STATUS ERROR [LINENO LOG_FD]
36319# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036322# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036323as_fn_error ()
36324{
cristy98dddb52010-11-04 00:30:15 +000036325 as_status=$1; test $as_status -eq 0 && as_status=1
36326 if test "$4"; then
36327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036329 fi
cristy98dddb52010-11-04 00:30:15 +000036330 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036331 as_fn_exit $as_status
36332} # as_fn_error
36333
36334
36335# as_fn_set_status STATUS
36336# -----------------------
36337# Set $? to STATUS, without forking.
36338as_fn_set_status ()
36339{
36340 return $1
36341} # as_fn_set_status
36342
36343# as_fn_exit STATUS
36344# -----------------
36345# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36346as_fn_exit ()
36347{
36348 set +e
36349 as_fn_set_status $1
36350 exit $1
36351} # as_fn_exit
36352
36353# as_fn_unset VAR
36354# ---------------
36355# Portably unset VAR.
36356as_fn_unset ()
36357{
36358 { eval $1=; unset $1;}
36359}
36360as_unset=as_fn_unset
36361# as_fn_append VAR VALUE
36362# ----------------------
36363# Append the text in VALUE to the end of the definition contained in VAR. Take
36364# advantage of any shell optimizations that allow amortized linear growth over
36365# repeated appends, instead of the typical quadratic growth present in naive
36366# implementations.
36367if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36368 eval 'as_fn_append ()
36369 {
36370 eval $1+=\$2
36371 }'
36372else
36373 as_fn_append ()
36374 {
36375 eval $1=\$$1\$2
36376 }
36377fi # as_fn_append
36378
36379# as_fn_arith ARG...
36380# ------------------
36381# Perform arithmetic evaluation on the ARGs, and store the result in the
36382# global $as_val. Take advantage of shells that can avoid forks. The arguments
36383# must be portable across $(()) and expr.
36384if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36385 eval 'as_fn_arith ()
36386 {
36387 as_val=$(( $* ))
36388 }'
36389else
36390 as_fn_arith ()
36391 {
36392 as_val=`expr "$@" || test $? -eq 1`
36393 }
36394fi # as_fn_arith
36395
36396
cristy3ed852e2009-09-05 21:47:34 +000036397if expr a : '\(a\)' >/dev/null 2>&1 &&
36398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36399 as_expr=expr
36400else
36401 as_expr=false
36402fi
36403
36404if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36405 as_basename=basename
36406else
36407 as_basename=false
36408fi
36409
cristy8b350f62009-11-15 23:12:43 +000036410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36411 as_dirname=dirname
36412else
36413 as_dirname=false
36414fi
cristy3ed852e2009-09-05 21:47:34 +000036415
cristy3ed852e2009-09-05 21:47:34 +000036416as_me=`$as_basename -- "$0" ||
36417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36418 X"$0" : 'X\(//\)$' \| \
36419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36420$as_echo X/"$0" |
36421 sed '/^.*\/\([^/][^/]*\)\/*$/{
36422 s//\1/
36423 q
36424 }
36425 /^X\/\(\/\/\)$/{
36426 s//\1/
36427 q
36428 }
36429 /^X\/\(\/\).*/{
36430 s//\1/
36431 q
36432 }
36433 s/.*/./; q'`
36434
cristy8b350f62009-11-15 23:12:43 +000036435# Avoid depending upon Character Ranges.
36436as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36438as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36439as_cr_digits='0123456789'
36440as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036441
36442ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036443case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036444-n*)
cristy8b350f62009-11-15 23:12:43 +000036445 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036447 xy) ECHO_C='\c';;
36448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36449 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036450 esac;;
36451*)
36452 ECHO_N='-n';;
36453esac
cristy3ed852e2009-09-05 21:47:34 +000036454
36455rm -f conf$$ conf$$.exe conf$$.file
36456if test -d conf$$.dir; then
36457 rm -f conf$$.dir/conf$$.file
36458else
36459 rm -f conf$$.dir
36460 mkdir conf$$.dir 2>/dev/null
36461fi
36462if (echo >conf$$.file) 2>/dev/null; then
36463 if ln -s conf$$.file conf$$ 2>/dev/null; then
36464 as_ln_s='ln -s'
36465 # ... but there are two gotchas:
36466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036468 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036470 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036471 elif ln conf$$.file conf$$ 2>/dev/null; then
36472 as_ln_s=ln
36473 else
cristy14fefe52012-05-21 00:59:18 +000036474 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036475 fi
36476else
cristy14fefe52012-05-21 00:59:18 +000036477 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036478fi
36479rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36480rmdir conf$$.dir 2>/dev/null
36481
cristy8b350f62009-11-15 23:12:43 +000036482
36483# as_fn_mkdir_p
36484# -------------
36485# Create "$as_dir" as a directory, including parents if necessary.
36486as_fn_mkdir_p ()
36487{
36488
36489 case $as_dir in #(
36490 -*) as_dir=./$as_dir;;
36491 esac
36492 test -d "$as_dir" || eval $as_mkdir_p || {
36493 as_dirs=
36494 while :; do
36495 case $as_dir in #(
36496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36497 *) as_qdir=$as_dir;;
36498 esac
36499 as_dirs="'$as_qdir' $as_dirs"
36500 as_dir=`$as_dirname -- "$as_dir" ||
36501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36502 X"$as_dir" : 'X\(//\)[^/]' \| \
36503 X"$as_dir" : 'X\(//\)$' \| \
36504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36505$as_echo X"$as_dir" |
36506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36507 s//\1/
36508 q
36509 }
36510 /^X\(\/\/\)[^/].*/{
36511 s//\1/
36512 q
36513 }
36514 /^X\(\/\/\)$/{
36515 s//\1/
36516 q
36517 }
36518 /^X\(\/\).*/{
36519 s//\1/
36520 q
36521 }
36522 s/.*/./; q'`
36523 test -d "$as_dir" && break
36524 done
36525 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036527
36528
36529} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036530if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036531 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036532else
36533 test -d ./-p && rmdir ./-p
36534 as_mkdir_p=false
36535fi
36536
cristy14fefe52012-05-21 00:59:18 +000036537
36538# as_fn_executable_p FILE
36539# -----------------------
36540# Test if FILE is an executable regular file.
36541as_fn_executable_p ()
36542{
36543 test -f "$1" && test -x "$1"
36544} # as_fn_executable_p
36545as_test_x='test -x'
36546as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036547
36548# Sed expression to map a string onto a valid CPP name.
36549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36550
36551# Sed expression to map a string onto a valid variable name.
36552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36553
36554
36555exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036556## ----------------------------------- ##
36557## Main body of $CONFIG_STATUS script. ##
36558## ----------------------------------- ##
36559_ASEOF
36560test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036561
cristy8b350f62009-11-15 23:12:43 +000036562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36563# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036564# report actual input values of CONFIG_FILES etc. instead of their
36565# values after options handling.
36566ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036567This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036568generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036569
36570 CONFIG_FILES = $CONFIG_FILES
36571 CONFIG_HEADERS = $CONFIG_HEADERS
36572 CONFIG_LINKS = $CONFIG_LINKS
36573 CONFIG_COMMANDS = $CONFIG_COMMANDS
36574 $ $0 $@
36575
36576on `(hostname || uname -n) 2>/dev/null | sed 1q`
36577"
36578
36579_ACEOF
36580
36581case $ac_config_files in *"
36582"*) set x $ac_config_files; shift; ac_config_files=$*;;
36583esac
36584
36585case $ac_config_headers in *"
36586"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36587esac
36588
36589
36590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36591# Files that config.status was made for.
36592config_files="$ac_config_files"
36593config_headers="$ac_config_headers"
36594config_commands="$ac_config_commands"
36595
36596_ACEOF
36597
36598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36599ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036600\`$as_me' instantiates files and other configuration actions
36601from templates according to the current configuration. Unless the files
36602and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036603
cristy8b350f62009-11-15 23:12:43 +000036604Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036605
36606 -h, --help print this help, then exit
36607 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036608 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036609 -q, --quiet, --silent
36610 do not print progress messages
36611 -d, --debug don't remove temporary files
36612 --recheck update $as_me by reconfiguring in the same conditions
36613 --file=FILE[:TEMPLATE]
36614 instantiate the configuration file FILE
36615 --header=FILE[:TEMPLATE]
36616 instantiate the configuration header FILE
36617
36618Configuration files:
36619$config_files
36620
36621Configuration headers:
36622$config_headers
36623
36624Configuration commands:
36625$config_commands
36626
cristy8b350f62009-11-15 23:12:43 +000036627Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036628
36629_ACEOF
36630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036631ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036632ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036633ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036634configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036635 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036636
cristy14fefe52012-05-21 00:59:18 +000036637Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036638This config.status script is free software; the Free Software Foundation
36639gives unlimited permission to copy, distribute and modify it."
36640
36641ac_pwd='$ac_pwd'
36642srcdir='$srcdir'
36643INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036644MKDIR_P='$MKDIR_P'
36645AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036646test -n "\$AWK" || AWK=awk
36647_ACEOF
36648
36649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36650# The default lists apply if the user does not specify any file.
36651ac_need_defaults=:
36652while test $# != 0
36653do
36654 case $1 in
cristyda16f162011-02-19 23:52:17 +000036655 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036656 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36658 ac_shift=:
36659 ;;
cristyda16f162011-02-19 23:52:17 +000036660 --*=)
36661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36662 ac_optarg=
36663 ac_shift=:
36664 ;;
cristy3ed852e2009-09-05 21:47:34 +000036665 *)
36666 ac_option=$1
36667 ac_optarg=$2
36668 ac_shift=shift
36669 ;;
36670 esac
36671
36672 case $ac_option in
36673 # Handling of the options.
36674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36675 ac_cs_recheck=: ;;
36676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36677 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036678 --config | --confi | --conf | --con | --co | --c )
36679 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036680 --debug | --debu | --deb | --de | --d | -d )
36681 debug=: ;;
36682 --file | --fil | --fi | --f )
36683 $ac_shift
36684 case $ac_optarg in
36685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036686 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036687 esac
cristy8b350f62009-11-15 23:12:43 +000036688 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036689 ac_need_defaults=false;;
36690 --header | --heade | --head | --hea )
36691 $ac_shift
36692 case $ac_optarg in
36693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36694 esac
cristy8b350f62009-11-15 23:12:43 +000036695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036696 ac_need_defaults=false;;
36697 --he | --h)
36698 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036699 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036700Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036701 --help | --hel | -h )
36702 $as_echo "$ac_cs_usage"; exit ;;
36703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36705 ac_cs_silent=: ;;
36706
36707 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036708 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036709Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036710
cristy8b350f62009-11-15 23:12:43 +000036711 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036712 ac_need_defaults=false ;;
36713
36714 esac
36715 shift
36716done
36717
36718ac_configure_extra_args=
36719
36720if $ac_cs_silent; then
36721 exec 6>/dev/null
36722 ac_configure_extra_args="$ac_configure_extra_args --silent"
36723fi
36724
36725_ACEOF
36726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36727if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036729 shift
36730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36731 CONFIG_SHELL='$SHELL'
36732 export CONFIG_SHELL
36733 exec "\$@"
36734fi
36735
36736_ACEOF
36737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36738exec 5>>config.log
36739{
36740 echo
36741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36742## Running $as_me. ##
36743_ASBOX
36744 $as_echo "$ac_log"
36745} >&5
36746
36747_ACEOF
36748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036749#
36750# INIT-COMMANDS
36751#
36752PACKAGE="$PACKAGE"
36753AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36754
36755
36756# The HP-UX ksh and POSIX shell print the target directory to stdout
36757# if CDPATH is set.
36758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36759
36760sed_quote_subst='$sed_quote_subst'
36761double_quote_subst='$double_quote_subst'
36762delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036763SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36764Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36765GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36766EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36767FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36768SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36769ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36770LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36771macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36772macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36773AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36774DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36775OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36776enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36777enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36778pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36779enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036780PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036781host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36782host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36783host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36784build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36785build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36786build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36787NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36788LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36789max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36790ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36791exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36792lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36793lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36794lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036795lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36796lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036797reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36798reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36799deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36800file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036801file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36802want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36803sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036804AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36805AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036806archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036807STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36808RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36809old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36810old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36811old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36812lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36813CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36814CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36815compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36816GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36817lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36818lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36819lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36820lt_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 +000036821nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36822lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036823objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36824MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36825lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036826lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036827lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036828lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36829lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36830need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036831MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036832DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36833NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36834LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36835OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36836OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36837libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36838shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36839extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36840archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36841enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36842export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36843whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36844compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36845old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36846old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36847archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36848archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36849module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36850module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36851with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36852allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36853no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36854hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036855hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36856hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36857hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36858hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36859hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36860hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36861inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36862link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036863always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36864export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36865exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36866include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36867prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036868postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036869file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36870variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36871need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36872need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36873version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36874runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36875shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36876shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36877libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36878library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36879soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36880install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36881postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36882postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36883finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36884finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36885hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36886sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36887sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36888hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36889enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36890enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36891enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36892old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36893striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36894compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36895predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36896postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36897predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36898postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36899compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36900LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36901reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36902reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36903old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36904compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36905GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36906lt_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 +000036907lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036908lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036909lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36910lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36911archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36912enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36913export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36914whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36915compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36916old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36917old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36919archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36920module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36921module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36922with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36923allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36924no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36925hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036926hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36928hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36929hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36930hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36931hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36932inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36933link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036934always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36935export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36936exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36937include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36938prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036939postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036940file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36941hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36942compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36943predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36944postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36945predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36946postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36947compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036948
36949LTCC='$LTCC'
36950LTCFLAGS='$LTCFLAGS'
36951compiler='$compiler_DEFAULT'
36952
cristy0c60a692010-11-04 01:09:47 +000036953# A function that is used when there is no print builtin or printf.
36954func_fallback_echo ()
36955{
36956 eval 'cat <<_LTECHO_EOF
36957\$1
36958_LTECHO_EOF'
36959}
36960
cristy73bd4a52010-10-05 11:24:23 +000036961# Quote evaled strings.
36962for var in SED \
36963GREP \
36964EGREP \
36965FGREP \
cristy0c60a692010-11-04 01:09:47 +000036966SHELL \
36967ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036968LD \
cristy0c60a692010-11-04 01:09:47 +000036969AS \
36970DLLTOOL \
36971OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036972PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036973NM \
36974LN_S \
36975lt_SP2NL \
36976lt_NL2SP \
36977reload_flag \
36978deplibs_check_method \
36979file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036980file_magic_glob \
36981want_nocaseglob \
36982sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036983AR \
36984AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036985archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036986STRIP \
36987RANLIB \
36988CC \
36989CFLAGS \
36990compiler \
36991lt_cv_sys_global_symbol_pipe \
36992lt_cv_sys_global_symbol_to_cdecl \
36993lt_cv_sys_global_symbol_to_c_name_address \
36994lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036995nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036996lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036997lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036998lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036999lt_prog_compiler_static \
37000lt_cv_prog_compiler_c_o \
37001need_locks \
cristyda16f162011-02-19 23:52:17 +000037002MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037003DSYMUTIL \
37004NMEDIT \
37005LIPO \
37006OTOOL \
37007OTOOL64 \
37008shrext_cmds \
37009export_dynamic_flag_spec \
37010whole_archive_flag_spec \
37011compiler_needs_object \
37012with_gnu_ld \
37013allow_undefined_flag \
37014no_undefined_flag \
37015hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037016hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037017exclude_expsyms \
37018include_expsyms \
37019file_list_spec \
37020variables_saved_for_relink \
37021libname_spec \
37022library_names_spec \
37023soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037024install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037025finish_eval \
37026old_striplib \
37027striplib \
37028compiler_lib_search_dirs \
37029predep_objects \
37030postdep_objects \
37031predeps \
37032postdeps \
37033compiler_lib_search_path \
37034LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037035reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037036compiler_CXX \
37037lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037038lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037039lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037040lt_prog_compiler_static_CXX \
37041lt_cv_prog_compiler_c_o_CXX \
37042export_dynamic_flag_spec_CXX \
37043whole_archive_flag_spec_CXX \
37044compiler_needs_object_CXX \
37045with_gnu_ld_CXX \
37046allow_undefined_flag_CXX \
37047no_undefined_flag_CXX \
37048hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037049hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037050exclude_expsyms_CXX \
37051include_expsyms_CXX \
37052file_list_spec_CXX \
37053compiler_lib_search_dirs_CXX \
37054predep_objects_CXX \
37055postdep_objects_CXX \
37056predeps_CXX \
37057postdeps_CXX \
37058compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037060 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037062 ;;
37063 *)
37064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37065 ;;
37066 esac
37067done
37068
37069# Double-quote double-evaled strings.
37070for var in reload_cmds \
37071old_postinstall_cmds \
37072old_postuninstall_cmds \
37073old_archive_cmds \
37074extract_expsyms_cmds \
37075old_archive_from_new_cmds \
37076old_archive_from_expsyms_cmds \
37077archive_cmds \
37078archive_expsym_cmds \
37079module_cmds \
37080module_expsym_cmds \
37081export_symbols_cmds \
37082prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037083postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037084postinstall_cmds \
37085postuninstall_cmds \
37086finish_cmds \
37087sys_lib_search_path_spec \
37088sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037089reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037090old_archive_cmds_CXX \
37091old_archive_from_new_cmds_CXX \
37092old_archive_from_expsyms_cmds_CXX \
37093archive_cmds_CXX \
37094archive_expsym_cmds_CXX \
37095module_cmds_CXX \
37096module_expsym_cmds_CXX \
37097export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037098prelink_cmds_CXX \
37099postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037100 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037101 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037102 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037103 ;;
37104 *)
37105 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37106 ;;
37107 esac
37108done
37109
cristy73bd4a52010-10-05 11:24:23 +000037110ac_aux_dir='$ac_aux_dir'
37111xsi_shell='$xsi_shell'
37112lt_shell_append='$lt_shell_append'
37113
37114# See if we are running on zsh, and set the options which allow our
37115# commands through without removal of \ escapes INIT.
37116if test -n "\${ZSH_VERSION+set}" ; then
37117 setopt NO_GLOB_SUBST
37118fi
37119
37120
37121 PACKAGE='$PACKAGE'
37122 VERSION='$VERSION'
37123 TIMESTAMP='$TIMESTAMP'
37124 RM='$RM'
37125 ofile='$ofile'
37126
37127
37128
37129
37130
37131
cristy3ed852e2009-09-05 21:47:34 +000037132_ACEOF
37133
37134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37135
37136# Handling of arguments.
37137for ac_config_target in $ac_config_targets
37138do
37139 case $ac_config_target in
37140 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037141 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037142 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37143 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37144 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37145 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37146 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037147 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037148 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37149 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37150 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37151 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37152 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037153 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037154 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37155 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037156 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37157 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37158 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037159 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37160 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37161 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37162 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37163 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37164 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37165 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37166 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37167 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37168 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37169 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37170 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37171 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37172 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37173 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37174 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37175 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037176 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37177 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037178 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37179 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037180 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037181 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037182 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037183 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037184 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37185 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37186
cristy98dddb52010-11-04 00:30:15 +000037187 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037188 esac
37189done
37190
37191
37192# If the user did not use the arguments to specify the items to instantiate,
37193# then the envvar interface is used. Set only those that are not.
37194# We use the long form for the default assignment because of an extremely
37195# bizarre bug on SunOS 4.1.3.
37196if $ac_need_defaults; then
37197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37200fi
37201
37202# Have a temporary directory for convenience. Make it in the build tree
37203# simply because there is no reason against having it here, and in addition,
37204# creating and moving files from /tmp can sometimes cause problems.
37205# Hook for its removal unless debugging.
37206# Note that there is a small window in which the directory will not be cleaned:
37207# after its creation but before its name has been assigned to `$tmp'.
37208$debug ||
37209{
cristyda16f162011-02-19 23:52:17 +000037210 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037211 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037212 : "${ac_tmp:=$tmp}"
37213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037214' 0
cristy8b350f62009-11-15 23:12:43 +000037215 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037216}
37217# Create a (secure) tmp directory for tmp files.
37218
37219{
37220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037221 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037222} ||
37223{
37224 tmp=./conf$$-$RANDOM
37225 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037226} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037227ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037228
37229# Set up the scripts for CONFIG_FILES section.
37230# No need to generate them if there are no CONFIG_FILES.
37231# This happens for instance with `./config.status config.h'.
37232if test -n "$CONFIG_FILES"; then
37233
37234
cristy8b350f62009-11-15 23:12:43 +000037235ac_cr=`echo X | tr X '\015'`
37236# On cygwin, bash can eat \r inside `` if the user requested igncr.
37237# But we know of no other shell where ac_cr would be empty at this
37238# point, so we can use a bashism as a fallback.
37239if test "x$ac_cr" = x; then
37240 eval ac_cr=\$\'\\r\'
37241fi
cristy3ed852e2009-09-05 21:47:34 +000037242ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37243if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037244 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037245else
37246 ac_cs_awk_cr=$ac_cr
37247fi
37248
cristyda16f162011-02-19 23:52:17 +000037249echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037250_ACEOF
37251
37252
37253{
37254 echo "cat >conf$$subs.awk <<_ACEOF" &&
37255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37256 echo "_ACEOF"
37257} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37259ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037260ac_delim='%!_!# '
37261for ac_last_try in false false false false false :; do
37262 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037264
37265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37266 if test $ac_delim_n = $ac_delim_num; then
37267 break
37268 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037270 else
37271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37272 fi
37273done
37274rm -f conf$$subs.sh
37275
37276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037277cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037278_ACEOF
37279sed -n '
37280h
37281s/^/S["/; s/!.*/"]=/
37282p
37283g
37284s/^[^!]*!//
37285:repl
37286t repl
37287s/'"$ac_delim"'$//
37288t delim
37289:nl
37290h
cristycd4c5312009-11-22 01:19:08 +000037291s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037292t more1
37293s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37294p
37295n
37296b repl
37297:more1
37298s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37299p
37300g
37301s/.\{148\}//
37302t nl
37303:delim
37304h
cristycd4c5312009-11-22 01:19:08 +000037305s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037306t more2
37307s/["\\]/\\&/g; s/^/"/; s/$/"/
37308p
37309b
37310:more2
37311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37312p
37313g
37314s/.\{148\}//
37315t delim
37316' <conf$$subs.awk | sed '
37317/^[^""]/{
37318 N
37319 s/\n//
37320}
37321' >>$CONFIG_STATUS || ac_write_fail=1
37322rm -f conf$$subs.awk
37323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37324_ACAWK
cristyda16f162011-02-19 23:52:17 +000037325cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037326 for (key in S) S_is_set[key] = 1
37327 FS = ""
37328
37329}
37330{
37331 line = $ 0
37332 nfields = split(line, field, "@")
37333 substed = 0
37334 len = length(field[1])
37335 for (i = 2; i < nfields; i++) {
37336 key = field[i]
37337 keylen = length(key)
37338 if (S_is_set[key]) {
37339 value = S[key]
37340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37341 len += length(value) + length(field[++i])
37342 substed = 1
37343 } else
37344 len += 1 + keylen
37345 }
37346
37347 print line
37348}
37349
37350_ACAWK
37351_ACEOF
37352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37353if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37355else
37356 cat
cristyda16f162011-02-19 23:52:17 +000037357fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037359_ACEOF
37360
cristy98dddb52010-11-04 00:30:15 +000037361# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37362# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037363# trailing colons and then remove the whole line if VPATH becomes empty
37364# (actually we leave an empty line to preserve line numbers).
37365if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37367h
37368s///
37369s/^/:/
37370s/[ ]*$/:/
37371s/:\$(srcdir):/:/g
37372s/:\${srcdir}:/:/g
37373s/:@srcdir@:/:/g
37374s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037375s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037376x
37377s/\(=[ ]*\).*/\1/
37378G
37379s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037380s/^[^=]*=[ ]*$//
37381}'
37382fi
37383
37384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37385fi # test -n "$CONFIG_FILES"
37386
37387# Set up the scripts for CONFIG_HEADERS section.
37388# No need to generate them if there are no CONFIG_HEADERS.
37389# This happens for instance with `./config.status Makefile'.
37390if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037391cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037392BEGIN {
37393_ACEOF
37394
37395# Transform confdefs.h into an awk script `defines.awk', embedded as
37396# here-document in config.status, that substitutes the proper values into
37397# config.h.in to produce config.h.
37398
37399# Create a delimiter string that does not exist in confdefs.h, to ease
37400# handling of long lines.
37401ac_delim='%!_!# '
37402for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37404 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037405 break
37406 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037408 else
37409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37410 fi
37411done
37412
37413# For the awk script, D is an array of macro values keyed by name,
37414# likewise P contains macro parameters if any. Preserve backslash
37415# newline sequences.
37416
37417ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37418sed -n '
37419s/.\{148\}/&'"$ac_delim"'/g
37420t rset
37421:rset
37422s/^[ ]*#[ ]*define[ ][ ]*/ /
37423t def
37424d
37425:def
37426s/\\$//
37427t bsnl
37428s/["\\]/\\&/g
37429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37430D["\1"]=" \3"/p
37431s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37432d
37433:bsnl
37434s/["\\]/\\&/g
37435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37436D["\1"]=" \3\\\\\\n"\\/p
37437t cont
37438s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37439t cont
37440d
37441:cont
37442n
37443s/.\{148\}/&'"$ac_delim"'/g
37444t clear
37445:clear
37446s/\\$//
37447t bsnlc
37448s/["\\]/\\&/g; s/^/"/; s/$/"/p
37449d
37450:bsnlc
37451s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37452b cont
37453' <confdefs.h | sed '
37454s/'"$ac_delim"'/"\\\
37455"/g' >>$CONFIG_STATUS || ac_write_fail=1
37456
37457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37458 for (key in D) D_is_set[key] = 1
37459 FS = ""
37460}
37461/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37462 line = \$ 0
37463 split(line, arg, " ")
37464 if (arg[1] == "#") {
37465 defundef = arg[2]
37466 mac1 = arg[3]
37467 } else {
37468 defundef = substr(arg[1], 2)
37469 mac1 = arg[2]
37470 }
37471 split(mac1, mac2, "(") #)
37472 macro = mac2[1]
37473 prefix = substr(line, 1, index(line, defundef) - 1)
37474 if (D_is_set[macro]) {
37475 # Preserve the white space surrounding the "#".
37476 print prefix "define", macro P[macro] D[macro]
37477 next
37478 } else {
37479 # Replace #undef with comments. This is necessary, for example,
37480 # in the case of _POSIX_SOURCE, which is predefined and required
37481 # on some systems where configure will not decide to define it.
37482 if (defundef == "undef") {
37483 print "/*", prefix defundef, macro, "*/"
37484 next
37485 }
37486 }
37487}
37488{ print }
37489_ACAWK
37490_ACEOF
37491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037493fi # test -n "$CONFIG_HEADERS"
37494
37495
37496eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37497shift
37498for ac_tag
37499do
37500 case $ac_tag in
37501 :[FHLC]) ac_mode=$ac_tag; continue;;
37502 esac
37503 case $ac_mode$ac_tag in
37504 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037506 :[FH]-) ac_tag=-:-;;
37507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37508 esac
37509 ac_save_IFS=$IFS
37510 IFS=:
37511 set x $ac_tag
37512 IFS=$ac_save_IFS
37513 shift
37514 ac_file=$1
37515 shift
37516
37517 case $ac_mode in
37518 :L) ac_source=$1;;
37519 :[FH])
37520 ac_file_inputs=
37521 for ac_f
37522 do
37523 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037524 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037525 *) # Look for the file first in the build tree, then in the source tree
37526 # (if the path is not absolute). The absolute path cannot be DOS-style,
37527 # because $ac_f cannot contain `:'.
37528 test -f "$ac_f" ||
37529 case $ac_f in
37530 [\\/$]*) false;;
37531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37532 esac ||
cristy98dddb52010-11-04 00:30:15 +000037533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037534 esac
37535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037536 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037537 done
37538
37539 # Let's still pretend it is `configure' which instantiates (i.e., don't
37540 # use $as_me), people would be surprised to read:
37541 # /* config.h. Generated by config.status. */
37542 configure_input='Generated from '`
37543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37544 `' by configure.'
37545 if test x"$ac_file" != x-; then
37546 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037548$as_echo "$as_me: creating $ac_file" >&6;}
37549 fi
37550 # Neutralize special characters interpreted by sed in replacement strings.
37551 case $configure_input in #(
37552 *\&* | *\|* | *\\* )
37553 ac_sed_conf_input=`$as_echo "$configure_input" |
37554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37555 *) ac_sed_conf_input=$configure_input;;
37556 esac
37557
37558 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037559 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037561 esac
37562 ;;
37563 esac
37564
37565 ac_dir=`$as_dirname -- "$ac_file" ||
37566$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37567 X"$ac_file" : 'X\(//\)[^/]' \| \
37568 X"$ac_file" : 'X\(//\)$' \| \
37569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37570$as_echo X"$ac_file" |
37571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37572 s//\1/
37573 q
37574 }
37575 /^X\(\/\/\)[^/].*/{
37576 s//\1/
37577 q
37578 }
37579 /^X\(\/\/\)$/{
37580 s//\1/
37581 q
37582 }
37583 /^X\(\/\).*/{
37584 s//\1/
37585 q
37586 }
37587 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037588 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037589 ac_builddir=.
37590
37591case "$ac_dir" in
37592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37593*)
37594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37595 # A ".." for each directory in $ac_dir_suffix.
37596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37597 case $ac_top_builddir_sub in
37598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37600 esac ;;
37601esac
37602ac_abs_top_builddir=$ac_pwd
37603ac_abs_builddir=$ac_pwd$ac_dir_suffix
37604# for backward compatibility:
37605ac_top_builddir=$ac_top_build_prefix
37606
37607case $srcdir in
37608 .) # We are building in place.
37609 ac_srcdir=.
37610 ac_top_srcdir=$ac_top_builddir_sub
37611 ac_abs_top_srcdir=$ac_pwd ;;
37612 [\\/]* | ?:[\\/]* ) # Absolute name.
37613 ac_srcdir=$srcdir$ac_dir_suffix;
37614 ac_top_srcdir=$srcdir
37615 ac_abs_top_srcdir=$srcdir ;;
37616 *) # Relative name.
37617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37618 ac_top_srcdir=$ac_top_build_prefix$srcdir
37619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37620esac
37621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37622
37623
37624 case $ac_mode in
37625 :F)
37626 #
37627 # CONFIG_FILE
37628 #
37629
37630 case $INSTALL in
37631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37633 esac
cristy73bd4a52010-10-05 11:24:23 +000037634 ac_MKDIR_P=$MKDIR_P
37635 case $MKDIR_P in
37636 [\\/$]* | ?:[\\/]* ) ;;
37637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37638 esac
cristy3ed852e2009-09-05 21:47:34 +000037639_ACEOF
37640
37641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37642# If the template does not know about datarootdir, expand it.
37643# FIXME: This hack should be removed a few years after 2.60.
37644ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037645ac_sed_dataroot='
37646/datarootdir/ {
37647 p
37648 q
37649}
37650/@datadir@/p
37651/@docdir@/p
37652/@infodir@/p
37653/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037654/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037655case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37656*datarootdir*) ac_datarootdir_seen=yes;;
37657*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037659$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37660_ACEOF
37661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37662 ac_datarootdir_hack='
37663 s&@datadir@&$datadir&g
37664 s&@docdir@&$docdir&g
37665 s&@infodir@&$infodir&g
37666 s&@localedir@&$localedir&g
37667 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037668 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037669esac
37670_ACEOF
37671
37672# Neutralize VPATH when `$srcdir' = `.'.
37673# Shell code in configure.ac might set extrasub.
37674# FIXME: do we really want to maintain this feature?
37675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37676ac_sed_extra="$ac_vpsub
37677$extrasub
37678_ACEOF
37679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37680:t
37681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37682s|@configure_input@|$ac_sed_conf_input|;t t
37683s&@top_builddir@&$ac_top_builddir_sub&;t t
37684s&@top_build_prefix@&$ac_top_build_prefix&;t t
37685s&@srcdir@&$ac_srcdir&;t t
37686s&@abs_srcdir@&$ac_abs_srcdir&;t t
37687s&@top_srcdir@&$ac_top_srcdir&;t t
37688s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37689s&@builddir@&$ac_builddir&;t t
37690s&@abs_builddir@&$ac_abs_builddir&;t t
37691s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37692s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037693s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037694$ac_datarootdir_hack
37695"
cristyda16f162011-02-19 23:52:17 +000037696eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037698
37699test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037704which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037705$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037706which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037707
cristyda16f162011-02-19 23:52:17 +000037708 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037709 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037712 esac \
cristy98dddb52010-11-04 00:30:15 +000037713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037714 ;;
37715 :H)
37716 #
37717 # CONFIG_HEADER
37718 #
37719 if test x"$ac_file" != x-; then
37720 {
37721 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37723 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037727$as_echo "$as_me: $ac_file is unchanged" >&6;}
37728 else
37729 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037730 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037732 fi
37733 else
37734 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037736 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037737 fi
cristy73bd4a52010-10-05 11:24:23 +000037738# Compute "$ac_file"'s index in $config_headers.
37739_am_arg="$ac_file"
37740_am_stamp_count=1
37741for _am_header in $config_headers :; do
37742 case $_am_header in
37743 $_am_arg | $_am_arg:* )
37744 break ;;
37745 * )
37746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37747 esac
37748done
37749echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37750$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37751 X"$_am_arg" : 'X\(//\)[^/]' \| \
37752 X"$_am_arg" : 'X\(//\)$' \| \
37753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37754$as_echo X"$_am_arg" |
37755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37756 s//\1/
37757 q
37758 }
37759 /^X\(\/\/\)[^/].*/{
37760 s//\1/
37761 q
37762 }
37763 /^X\(\/\/\)$/{
37764 s//\1/
37765 q
37766 }
37767 /^X\(\/\).*/{
37768 s//\1/
37769 q
37770 }
37771 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037772 ;;
37773
cristy8b350f62009-11-15 23:12:43 +000037774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037775$as_echo "$as_me: executing $ac_file commands" >&6;}
37776 ;;
37777 esac
37778
37779
37780 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037781 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037782ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37783ac_prefix_conf_PKG=`echo MagickCore`
37784ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37785ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37786ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37787if test ".$ac_prefix_conf_INP" = "."; then
37788 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37789 case "$ac_file" in
37790 *.h) ac_prefix_conf_INP=$ac_file ;;
37791 *)
37792 esac
37793 test ".$ac_prefix_conf_INP" != "." && break
37794 done
37795fi
37796if test ".$ac_prefix_conf_INP" = "."; then
37797 case "$ac_prefix_conf_OUT" in
37798 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37799 ;;
37800 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37801 ;;
37802 *) ac_prefix_conf_INP=config.h
37803 ;;
37804 esac
37805fi
37806if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037807 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037808else
37809 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37810 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37811 fi fi
37812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37813$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37814 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037815 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37816 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37817 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37818 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37819 $as_echo "#endif/" >> conftest.prefix
37820 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37821 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37822 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037823 # now executing _script on _DEF input to create _OUT output file
37824 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37825 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37826 echo ' ' >>$tmp/pconfig.h
37827 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37828
37829 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37830 echo ' ' >>$tmp/pconfig.h
37831 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37832 echo "#endif" >>$tmp/pconfig.h
37833 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37835$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37836 else
37837 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37838$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37839 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37840 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37841 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37842$as_echo X"$ac_prefix_conf_OUT" |
37843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37844 s//\1/
37845 q
37846 }
37847 /^X\(\/\/\)[^/].*/{
37848 s//\1/
37849 q
37850 }
37851 /^X\(\/\/\)$/{
37852 s//\1/
37853 q
37854 }
37855 /^X\(\/\).*/{
37856 s//\1/
37857 q
37858 }
37859 s/.*/./; q'`
37860 as_dir="$ac_dir"; as_fn_mkdir_p
37861 rm -f "$ac_prefix_conf_OUT"
37862 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37863 fi
37864 cp conftest.prefix _configs.sed
37865 else
cristy98dddb52010-11-04 00:30:15 +000037866 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 +000037867 fi
37868 rm -f conftest.*
37869fi
37870 ;;
37871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37872 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37873 # are listed without --file. Let's play safe and only enable the eval
37874 # if we detect the quoting.
37875 case $CONFIG_FILES in
37876 *\'*) eval set x "$CONFIG_FILES" ;;
37877 *) set x $CONFIG_FILES ;;
37878 esac
37879 shift
37880 for mf
37881 do
37882 # Strip MF so we end up with the name of the file.
37883 mf=`echo "$mf" | sed -e 's/:.*$//'`
37884 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037885 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037886 # some people rename them; so instead we look at the file content.
37887 # Grep'ing the first line is not enough: some people post-process
37888 # each Makefile.in and add a new line on top of each file to say so.
37889 # Grep'ing the whole file is not good either: AIX grep has a line
37890 # limit of 2048, but all sed's we know have understand at least 4000.
37891 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37892 dirpart=`$as_dirname -- "$mf" ||
37893$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37894 X"$mf" : 'X\(//\)[^/]' \| \
37895 X"$mf" : 'X\(//\)$' \| \
37896 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37897$as_echo X"$mf" |
37898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37899 s//\1/
37900 q
37901 }
37902 /^X\(\/\/\)[^/].*/{
37903 s//\1/
37904 q
37905 }
37906 /^X\(\/\/\)$/{
37907 s//\1/
37908 q
37909 }
37910 /^X\(\/\).*/{
37911 s//\1/
37912 q
37913 }
37914 s/.*/./; q'`
37915 else
37916 continue
37917 fi
37918 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037919 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037920 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37921 test -z "$DEPDIR" && continue
37922 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37923 test -z "am__include" && continue
37924 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037925 # Find all dependency output files, they are included files with
37926 # $(DEPDIR) in their names. We invoke sed twice because it is the
37927 # simplest approach to changing $(DEPDIR) to its actual value in the
37928 # expansion.
37929 for file in `sed -n "
37930 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037931 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037932 # Make sure the directory exists.
37933 test -f "$dirpart/$file" && continue
37934 fdir=`$as_dirname -- "$file" ||
37935$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37936 X"$file" : 'X\(//\)[^/]' \| \
37937 X"$file" : 'X\(//\)$' \| \
37938 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37939$as_echo X"$file" |
37940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37941 s//\1/
37942 q
37943 }
37944 /^X\(\/\/\)[^/].*/{
37945 s//\1/
37946 q
37947 }
37948 /^X\(\/\/\)$/{
37949 s//\1/
37950 q
37951 }
37952 /^X\(\/\).*/{
37953 s//\1/
37954 q
37955 }
37956 s/.*/./; q'`
37957 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37958 # echo "creating $dirpart/$file"
37959 echo '# dummy' > "$dirpart/$file"
37960 done
37961 done
37962}
37963 ;;
37964 "libtool":C)
37965
37966 # See if we are running on zsh, and set the options which allow our
37967 # commands through without removal of \ escapes.
37968 if test -n "${ZSH_VERSION+set}" ; then
37969 setopt NO_GLOB_SUBST
37970 fi
37971
37972 cfgfile="${ofile}T"
37973 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37974 $RM "$cfgfile"
37975
37976 cat <<_LT_EOF >> "$cfgfile"
37977#! $SHELL
37978
37979# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37980# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37981# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37982# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37983#
37984# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037985# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37986# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037987# Written by Gordon Matzigkeit, 1996
37988#
37989# This file is part of GNU Libtool.
37990#
37991# GNU Libtool is free software; you can redistribute it and/or
37992# modify it under the terms of the GNU General Public License as
37993# published by the Free Software Foundation; either version 2 of
37994# the License, or (at your option) any later version.
37995#
37996# As a special exception to the GNU General Public License,
37997# if you distribute this file as part of a program or library that
37998# is built using GNU Libtool, you may include this file under the
37999# same distribution terms that you use for the rest of that program.
38000#
38001# GNU Libtool is distributed in the hope that it will be useful,
38002# but WITHOUT ANY WARRANTY; without even the implied warranty of
38003# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38004# GNU General Public License for more details.
38005#
38006# You should have received a copy of the GNU General Public License
38007# along with GNU Libtool; see the file COPYING. If not, a copy
38008# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38009# obtained by writing to the Free Software Foundation, Inc.,
38010# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38011
38012
38013# The names of the tagged configurations supported by this script.
38014available_tags="CXX "
38015
38016# ### BEGIN LIBTOOL CONFIG
38017
38018# A sed program that does not truncate output.
38019SED=$lt_SED
38020
38021# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38022Xsed="\$SED -e 1s/^X//"
38023
38024# A grep program that handles long lines.
38025GREP=$lt_GREP
38026
38027# An ERE matcher.
38028EGREP=$lt_EGREP
38029
38030# A literal string matcher.
38031FGREP=$lt_FGREP
38032
cristy0c60a692010-11-04 01:09:47 +000038033# Shell to use when invoking shell scripts.
38034SHELL=$lt_SHELL
38035
38036# An echo program that protects backslashes.
38037ECHO=$lt_ECHO
38038
cristy73bd4a52010-10-05 11:24:23 +000038039# Which release of libtool.m4 was used?
38040macro_version=$macro_version
38041macro_revision=$macro_revision
38042
38043# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038044AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038045
38046# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038047DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038048
38049# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038050OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038051
38052# Whether or not to build shared libraries.
38053build_libtool_libs=$enable_shared
38054
38055# Whether or not to build static libraries.
38056build_old_libs=$enable_static
38057
38058# What type of objects to build.
38059pic_mode=$pic_mode
38060
38061# Whether or not to optimize for fast installation.
38062fast_install=$enable_fast_install
38063
cristy99bd5232011-12-07 14:38:20 +000038064# The PATH separator for the build system.
38065PATH_SEPARATOR=$lt_PATH_SEPARATOR
38066
cristy73bd4a52010-10-05 11:24:23 +000038067# The host system.
38068host_alias=$host_alias
38069host=$host
38070host_os=$host_os
38071
38072# The build system.
38073build_alias=$build_alias
38074build=$build
38075build_os=$build_os
38076
38077# A BSD- or MS-compatible name lister.
38078NM=$lt_NM
38079
38080# Whether we need soft or hard links.
38081LN_S=$lt_LN_S
38082
38083# What is the maximum length of a command?
38084max_cmd_len=$max_cmd_len
38085
38086# Object file suffix (normally "o").
38087objext=$ac_objext
38088
38089# Executable file suffix (normally "").
38090exeext=$exeext
38091
38092# whether the shell understands "unset".
38093lt_unset=$lt_unset
38094
38095# turn spaces into newlines.
38096SP2NL=$lt_lt_SP2NL
38097
38098# turn newlines into spaces.
38099NL2SP=$lt_lt_NL2SP
38100
cristyda16f162011-02-19 23:52:17 +000038101# convert \$build file names to \$host format.
38102to_host_file_cmd=$lt_cv_to_host_file_cmd
38103
38104# convert \$build files to toolchain format.
38105to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38106
cristy73bd4a52010-10-05 11:24:23 +000038107# Method to check whether dependent libraries are shared objects.
38108deplibs_check_method=$lt_deplibs_check_method
38109
cristyda16f162011-02-19 23:52:17 +000038110# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038111file_magic_cmd=$lt_file_magic_cmd
38112
cristyda16f162011-02-19 23:52:17 +000038113# How to find potential files when deplibs_check_method = "file_magic".
38114file_magic_glob=$lt_file_magic_glob
38115
38116# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38117want_nocaseglob=$lt_want_nocaseglob
38118
38119# Command to associate shared and link libraries.
38120sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38121
cristy73bd4a52010-10-05 11:24:23 +000038122# The archiver.
38123AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038124
38125# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038126AR_FLAGS=$lt_AR_FLAGS
38127
cristyda16f162011-02-19 23:52:17 +000038128# How to feed a file listing to the archiver.
38129archiver_list_spec=$lt_archiver_list_spec
38130
cristy73bd4a52010-10-05 11:24:23 +000038131# A symbol stripping program.
38132STRIP=$lt_STRIP
38133
38134# Commands used to install an old-style archive.
38135RANLIB=$lt_RANLIB
38136old_postinstall_cmds=$lt_old_postinstall_cmds
38137old_postuninstall_cmds=$lt_old_postuninstall_cmds
38138
cristy0c60a692010-11-04 01:09:47 +000038139# Whether to use a lock for old archive extraction.
38140lock_old_archive_extraction=$lock_old_archive_extraction
38141
cristy73bd4a52010-10-05 11:24:23 +000038142# A C compiler.
38143LTCC=$lt_CC
38144
38145# LTCC compiler flags.
38146LTCFLAGS=$lt_CFLAGS
38147
38148# Take the output of nm and produce a listing of raw symbols and C names.
38149global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38150
38151# Transform the output of nm in a proper C declaration.
38152global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38153
38154# Transform the output of nm in a C name address pair.
38155global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38156
38157# Transform the output of nm in a C name address pair when lib prefix is needed.
38158global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38159
cristyda16f162011-02-19 23:52:17 +000038160# Specify filename containing input files for \$NM.
38161nm_file_list_spec=$lt_nm_file_list_spec
38162
38163# The root where to search for dependent libraries,and in which our libraries should be installed.
38164lt_sysroot=$lt_sysroot
38165
cristy73bd4a52010-10-05 11:24:23 +000038166# The name of the directory that contains temporary libtool files.
38167objdir=$objdir
38168
cristy73bd4a52010-10-05 11:24:23 +000038169# Used to examine libraries when file_magic_cmd begins with "file".
38170MAGIC_CMD=$MAGIC_CMD
38171
38172# Must we lock files when doing compilation?
38173need_locks=$lt_need_locks
38174
cristyda16f162011-02-19 23:52:17 +000038175# Manifest tool.
38176MANIFEST_TOOL=$lt_MANIFEST_TOOL
38177
cristy73bd4a52010-10-05 11:24:23 +000038178# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38179DSYMUTIL=$lt_DSYMUTIL
38180
38181# Tool to change global to local symbols on Mac OS X.
38182NMEDIT=$lt_NMEDIT
38183
38184# Tool to manipulate fat objects and archives on Mac OS X.
38185LIPO=$lt_LIPO
38186
38187# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38188OTOOL=$lt_OTOOL
38189
38190# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38191OTOOL64=$lt_OTOOL64
38192
38193# Old archive suffix (normally "a").
38194libext=$libext
38195
38196# Shared library suffix (normally ".so").
38197shrext_cmds=$lt_shrext_cmds
38198
38199# The commands to extract the exported symbol list from a shared archive.
38200extract_expsyms_cmds=$lt_extract_expsyms_cmds
38201
38202# Variables whose values should be saved in libtool wrapper scripts and
38203# restored at link time.
38204variables_saved_for_relink=$lt_variables_saved_for_relink
38205
38206# Do we need the "lib" prefix for modules?
38207need_lib_prefix=$need_lib_prefix
38208
38209# Do we need a version for libraries?
38210need_version=$need_version
38211
38212# Library versioning type.
38213version_type=$version_type
38214
38215# Shared library runtime path variable.
38216runpath_var=$runpath_var
38217
38218# Shared library path variable.
38219shlibpath_var=$shlibpath_var
38220
38221# Is shlibpath searched before the hard-coded library search path?
38222shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38223
38224# Format of library name prefix.
38225libname_spec=$lt_libname_spec
38226
38227# List of archive names. First name is the real one, the rest are links.
38228# The last name is the one that the linker finds with -lNAME
38229library_names_spec=$lt_library_names_spec
38230
38231# The coded name of the library, if different from the real name.
38232soname_spec=$lt_soname_spec
38233
cristy0c60a692010-11-04 01:09:47 +000038234# Permission mode override for installation of shared libraries.
38235install_override_mode=$lt_install_override_mode
38236
cristy73bd4a52010-10-05 11:24:23 +000038237# Command to use after installation of a shared archive.
38238postinstall_cmds=$lt_postinstall_cmds
38239
38240# Command to use after uninstallation of a shared archive.
38241postuninstall_cmds=$lt_postuninstall_cmds
38242
38243# Commands used to finish a libtool library installation in a directory.
38244finish_cmds=$lt_finish_cmds
38245
38246# As "finish_cmds", except a single script fragment to be evaled but
38247# not shown.
38248finish_eval=$lt_finish_eval
38249
38250# Whether we should hardcode library paths into libraries.
38251hardcode_into_libs=$hardcode_into_libs
38252
38253# Compile-time system search path for libraries.
38254sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38255
38256# Run-time system search path for libraries.
38257sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38258
38259# Whether dlopen is supported.
38260dlopen_support=$enable_dlopen
38261
38262# Whether dlopen of programs is supported.
38263dlopen_self=$enable_dlopen_self
38264
38265# Whether dlopen of statically linked programs is supported.
38266dlopen_self_static=$enable_dlopen_self_static
38267
38268# Commands to strip libraries.
38269old_striplib=$lt_old_striplib
38270striplib=$lt_striplib
38271
38272
38273# The linker used to build libraries.
38274LD=$lt_LD
38275
cristy0c60a692010-11-04 01:09:47 +000038276# How to create reloadable object files.
38277reload_flag=$lt_reload_flag
38278reload_cmds=$lt_reload_cmds
38279
cristy73bd4a52010-10-05 11:24:23 +000038280# Commands used to build an old-style archive.
38281old_archive_cmds=$lt_old_archive_cmds
38282
38283# A language specific compiler.
38284CC=$lt_compiler
38285
38286# Is the compiler the GNU compiler?
38287with_gcc=$GCC
38288
38289# Compiler flag to turn off builtin functions.
38290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38291
cristy73bd4a52010-10-05 11:24:23 +000038292# Additional compiler flags for building library objects.
38293pic_flag=$lt_lt_prog_compiler_pic
38294
cristyda16f162011-02-19 23:52:17 +000038295# How to pass a linker flag through the compiler.
38296wl=$lt_lt_prog_compiler_wl
38297
cristy73bd4a52010-10-05 11:24:23 +000038298# Compiler flag to prevent dynamic linking.
38299link_static_flag=$lt_lt_prog_compiler_static
38300
38301# Does compiler simultaneously support -c and -o options?
38302compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38303
38304# Whether or not to add -lc for building shared libraries.
38305build_libtool_need_lc=$archive_cmds_need_lc
38306
38307# Whether or not to disallow shared libs when runtime libs are static.
38308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38309
38310# Compiler flag to allow reflexive dlopens.
38311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38312
38313# Compiler flag to generate shared objects directly from archives.
38314whole_archive_flag_spec=$lt_whole_archive_flag_spec
38315
38316# Whether the compiler copes with passing no objects directly.
38317compiler_needs_object=$lt_compiler_needs_object
38318
38319# Create an old-style archive from a shared archive.
38320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38321
38322# Create a temporary old-style archive to link instead of a shared archive.
38323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38324
38325# Commands used to build a shared archive.
38326archive_cmds=$lt_archive_cmds
38327archive_expsym_cmds=$lt_archive_expsym_cmds
38328
38329# Commands used to build a loadable module if different from building
38330# a shared archive.
38331module_cmds=$lt_module_cmds
38332module_expsym_cmds=$lt_module_expsym_cmds
38333
38334# Whether we are building with GNU ld or not.
38335with_gnu_ld=$lt_with_gnu_ld
38336
38337# Flag that allows shared libraries with undefined symbols to be built.
38338allow_undefined_flag=$lt_allow_undefined_flag
38339
38340# Flag that enforces no undefined symbols.
38341no_undefined_flag=$lt_no_undefined_flag
38342
38343# Flag to hardcode \$libdir into a binary during linking.
38344# This must work even if \$libdir does not exist
38345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38346
cristy73bd4a52010-10-05 11:24:23 +000038347# Whether we need a single "-rpath" flag with a separated argument.
38348hardcode_libdir_separator=$lt_hardcode_libdir_separator
38349
38350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38351# DIR into the resulting binary.
38352hardcode_direct=$hardcode_direct
38353
38354# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38355# DIR into the resulting binary and the resulting library dependency is
38356# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38357# library is relocated.
38358hardcode_direct_absolute=$hardcode_direct_absolute
38359
38360# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38361# into the resulting binary.
38362hardcode_minus_L=$hardcode_minus_L
38363
38364# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38365# into the resulting binary.
38366hardcode_shlibpath_var=$hardcode_shlibpath_var
38367
38368# Set to "yes" if building a shared library automatically hardcodes DIR
38369# into the library and all subsequent libraries and executables linked
38370# against it.
38371hardcode_automatic=$hardcode_automatic
38372
38373# Set to yes if linker adds runtime paths of dependent libraries
38374# to runtime path list.
38375inherit_rpath=$inherit_rpath
38376
38377# Whether libtool must link a program against all its dependency libraries.
38378link_all_deplibs=$link_all_deplibs
38379
cristy73bd4a52010-10-05 11:24:23 +000038380# Set to "yes" if exported symbols are required.
38381always_export_symbols=$always_export_symbols
38382
38383# The commands to list exported symbols.
38384export_symbols_cmds=$lt_export_symbols_cmds
38385
38386# Symbols that should not be listed in the preloaded symbols.
38387exclude_expsyms=$lt_exclude_expsyms
38388
38389# Symbols that must always be exported.
38390include_expsyms=$lt_include_expsyms
38391
38392# Commands necessary for linking programs (against libraries) with templates.
38393prelink_cmds=$lt_prelink_cmds
38394
cristyda16f162011-02-19 23:52:17 +000038395# Commands necessary for finishing linking programs.
38396postlink_cmds=$lt_postlink_cmds
38397
cristy73bd4a52010-10-05 11:24:23 +000038398# Specify filename containing input files.
38399file_list_spec=$lt_file_list_spec
38400
38401# How to hardcode a shared library path into an executable.
38402hardcode_action=$hardcode_action
38403
38404# The directories searched by this compiler when creating a shared library.
38405compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38406
38407# Dependencies to place before and after the objects being linked to
38408# create a shared library.
38409predep_objects=$lt_predep_objects
38410postdep_objects=$lt_postdep_objects
38411predeps=$lt_predeps
38412postdeps=$lt_postdeps
38413
38414# The library search path used internally by the compiler when linking
38415# a shared library.
38416compiler_lib_search_path=$lt_compiler_lib_search_path
38417
38418# ### END LIBTOOL CONFIG
38419
38420_LT_EOF
38421
38422 case $host_os in
38423 aix3*)
38424 cat <<\_LT_EOF >> "$cfgfile"
38425# AIX sometimes has problems with the GCC collect2 program. For some
38426# reason, if we set the COLLECT_NAMES environment variable, the problems
38427# vanish in a puff of smoke.
38428if test "X${COLLECT_NAMES+set}" != Xset; then
38429 COLLECT_NAMES=
38430 export COLLECT_NAMES
38431fi
38432_LT_EOF
38433 ;;
38434 esac
38435
38436
38437ltmain="$ac_aux_dir/ltmain.sh"
38438
38439
38440 # We use sed instead of cat because bash on DJGPP gets confused if
38441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38442 # text mode, it properly converts lines to CR/LF. This bash problem
38443 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038444 sed '$q' "$ltmain" >> "$cfgfile" \
38445 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038446
cristyda16f162011-02-19 23:52:17 +000038447 if test x"$xsi_shell" = xyes; then
38448 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38449func_dirname ()\
38450{\
38451\ case ${1} in\
38452\ */*) func_dirname_result="${1%/*}${2}" ;;\
38453\ * ) func_dirname_result="${3}" ;;\
38454\ esac\
38455} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38456 && mv -f "$cfgfile.tmp" "$cfgfile" \
38457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38458test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038459
38460
cristyda16f162011-02-19 23:52:17 +000038461 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38462func_basename ()\
38463{\
38464\ func_basename_result="${1##*/}"\
38465} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38466 && mv -f "$cfgfile.tmp" "$cfgfile" \
38467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38468test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038469
38470
cristyda16f162011-02-19 23:52:17 +000038471 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38472func_dirname_and_basename ()\
38473{\
38474\ case ${1} in\
38475\ */*) func_dirname_result="${1%/*}${2}" ;;\
38476\ * ) func_dirname_result="${3}" ;;\
38477\ esac\
38478\ func_basename_result="${1##*/}"\
38479} # Extended-shell func_dirname_and_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000038483
cristyda16f162011-02-19 23:52:17 +000038484
38485 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38486func_stripname ()\
38487{\
38488\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38489\ # positional parameters, so assign one to ordinary parameter first.\
38490\ func_stripname_result=${3}\
38491\ func_stripname_result=${func_stripname_result#"${1}"}\
38492\ func_stripname_result=${func_stripname_result%"${2}"}\
38493} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38494 && mv -f "$cfgfile.tmp" "$cfgfile" \
38495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38496test 0 -eq $? || _lt_function_replace_fail=:
38497
38498
38499 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38500func_split_long_opt ()\
38501{\
38502\ func_split_long_opt_name=${1%%=*}\
38503\ func_split_long_opt_arg=${1#*=}\
38504} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38505 && mv -f "$cfgfile.tmp" "$cfgfile" \
38506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38507test 0 -eq $? || _lt_function_replace_fail=:
38508
38509
38510 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38511func_split_short_opt ()\
38512{\
38513\ func_split_short_opt_arg=${1#??}\
38514\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38515} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38516 && mv -f "$cfgfile.tmp" "$cfgfile" \
38517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38518test 0 -eq $? || _lt_function_replace_fail=:
38519
38520
38521 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38522func_lo2o ()\
38523{\
38524\ case ${1} in\
38525\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38526\ *) func_lo2o_result=${1} ;;\
38527\ esac\
38528} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38529 && mv -f "$cfgfile.tmp" "$cfgfile" \
38530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38531test 0 -eq $? || _lt_function_replace_fail=:
38532
38533
38534 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38535func_xform ()\
38536{\
38537 func_xform_result=${1%.*}.lo\
38538} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38539 && mv -f "$cfgfile.tmp" "$cfgfile" \
38540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38541test 0 -eq $? || _lt_function_replace_fail=:
38542
38543
38544 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38545func_arith ()\
38546{\
38547 func_arith_result=$(( $* ))\
38548} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38549 && mv -f "$cfgfile.tmp" "$cfgfile" \
38550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38551test 0 -eq $? || _lt_function_replace_fail=:
38552
38553
38554 sed -e '/^func_len ()$/,/^} # func_len /c\
38555func_len ()\
38556{\
38557 func_len_result=${#1}\
38558} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38559 && mv -f "$cfgfile.tmp" "$cfgfile" \
38560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38561test 0 -eq $? || _lt_function_replace_fail=:
38562
38563fi
38564
38565if test x"$lt_shell_append" = xyes; then
38566 sed -e '/^func_append ()$/,/^} # func_append /c\
38567func_append ()\
38568{\
38569 eval "${1}+=\\${2}"\
38570} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38571 && mv -f "$cfgfile.tmp" "$cfgfile" \
38572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38573test 0 -eq $? || _lt_function_replace_fail=:
38574
38575
38576 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38577func_append_quoted ()\
38578{\
38579\ func_quote_for_eval "${2}"\
38580\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38581} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38582 && mv -f "$cfgfile.tmp" "$cfgfile" \
38583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38584test 0 -eq $? || _lt_function_replace_fail=:
38585
38586
38587 # Save a `func_append' function call where possible by direct use of '+='
38588 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38589 && mv -f "$cfgfile.tmp" "$cfgfile" \
38590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38591 test 0 -eq $? || _lt_function_replace_fail=:
38592else
38593 # Save a `func_append' function call even when '+=' is not available
38594 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38595 && mv -f "$cfgfile.tmp" "$cfgfile" \
38596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38597 test 0 -eq $? || _lt_function_replace_fail=:
38598fi
38599
38600if test x"$_lt_function_replace_fail" = x":"; then
38601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38602$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38603fi
38604
38605
38606 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038607 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38608 chmod +x "$ofile"
38609
38610
38611 cat <<_LT_EOF >> "$ofile"
38612
38613# ### BEGIN LIBTOOL TAG CONFIG: CXX
38614
38615# The linker used to build libraries.
38616LD=$lt_LD_CXX
38617
cristy0c60a692010-11-04 01:09:47 +000038618# How to create reloadable object files.
38619reload_flag=$lt_reload_flag_CXX
38620reload_cmds=$lt_reload_cmds_CXX
38621
cristy73bd4a52010-10-05 11:24:23 +000038622# Commands used to build an old-style archive.
38623old_archive_cmds=$lt_old_archive_cmds_CXX
38624
38625# A language specific compiler.
38626CC=$lt_compiler_CXX
38627
38628# Is the compiler the GNU compiler?
38629with_gcc=$GCC_CXX
38630
38631# Compiler flag to turn off builtin functions.
38632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38633
cristy73bd4a52010-10-05 11:24:23 +000038634# Additional compiler flags for building library objects.
38635pic_flag=$lt_lt_prog_compiler_pic_CXX
38636
cristyda16f162011-02-19 23:52:17 +000038637# How to pass a linker flag through the compiler.
38638wl=$lt_lt_prog_compiler_wl_CXX
38639
cristy73bd4a52010-10-05 11:24:23 +000038640# Compiler flag to prevent dynamic linking.
38641link_static_flag=$lt_lt_prog_compiler_static_CXX
38642
38643# Does compiler simultaneously support -c and -o options?
38644compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38645
38646# Whether or not to add -lc for building shared libraries.
38647build_libtool_need_lc=$archive_cmds_need_lc_CXX
38648
38649# Whether or not to disallow shared libs when runtime libs are static.
38650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38651
38652# Compiler flag to allow reflexive dlopens.
38653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38654
38655# Compiler flag to generate shared objects directly from archives.
38656whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38657
38658# Whether the compiler copes with passing no objects directly.
38659compiler_needs_object=$lt_compiler_needs_object_CXX
38660
38661# Create an old-style archive from a shared archive.
38662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38663
38664# Create a temporary old-style archive to link instead of a shared archive.
38665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38666
38667# Commands used to build a shared archive.
38668archive_cmds=$lt_archive_cmds_CXX
38669archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38670
38671# Commands used to build a loadable module if different from building
38672# a shared archive.
38673module_cmds=$lt_module_cmds_CXX
38674module_expsym_cmds=$lt_module_expsym_cmds_CXX
38675
38676# Whether we are building with GNU ld or not.
38677with_gnu_ld=$lt_with_gnu_ld_CXX
38678
38679# Flag that allows shared libraries with undefined symbols to be built.
38680allow_undefined_flag=$lt_allow_undefined_flag_CXX
38681
38682# Flag that enforces no undefined symbols.
38683no_undefined_flag=$lt_no_undefined_flag_CXX
38684
38685# Flag to hardcode \$libdir into a binary during linking.
38686# This must work even if \$libdir does not exist
38687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38688
cristy73bd4a52010-10-05 11:24:23 +000038689# Whether we need a single "-rpath" flag with a separated argument.
38690hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38691
38692# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38693# DIR into the resulting binary.
38694hardcode_direct=$hardcode_direct_CXX
38695
38696# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38697# DIR into the resulting binary and the resulting library dependency is
38698# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38699# library is relocated.
38700hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38701
38702# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38703# into the resulting binary.
38704hardcode_minus_L=$hardcode_minus_L_CXX
38705
38706# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38707# into the resulting binary.
38708hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38709
38710# Set to "yes" if building a shared library automatically hardcodes DIR
38711# into the library and all subsequent libraries and executables linked
38712# against it.
38713hardcode_automatic=$hardcode_automatic_CXX
38714
38715# Set to yes if linker adds runtime paths of dependent libraries
38716# to runtime path list.
38717inherit_rpath=$inherit_rpath_CXX
38718
38719# Whether libtool must link a program against all its dependency libraries.
38720link_all_deplibs=$link_all_deplibs_CXX
38721
cristy73bd4a52010-10-05 11:24:23 +000038722# Set to "yes" if exported symbols are required.
38723always_export_symbols=$always_export_symbols_CXX
38724
38725# The commands to list exported symbols.
38726export_symbols_cmds=$lt_export_symbols_cmds_CXX
38727
38728# Symbols that should not be listed in the preloaded symbols.
38729exclude_expsyms=$lt_exclude_expsyms_CXX
38730
38731# Symbols that must always be exported.
38732include_expsyms=$lt_include_expsyms_CXX
38733
38734# Commands necessary for linking programs (against libraries) with templates.
38735prelink_cmds=$lt_prelink_cmds_CXX
38736
cristyda16f162011-02-19 23:52:17 +000038737# Commands necessary for finishing linking programs.
38738postlink_cmds=$lt_postlink_cmds_CXX
38739
cristy73bd4a52010-10-05 11:24:23 +000038740# Specify filename containing input files.
38741file_list_spec=$lt_file_list_spec_CXX
38742
38743# How to hardcode a shared library path into an executable.
38744hardcode_action=$hardcode_action_CXX
38745
38746# The directories searched by this compiler when creating a shared library.
38747compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38748
38749# Dependencies to place before and after the objects being linked to
38750# create a shared library.
38751predep_objects=$lt_predep_objects_CXX
38752postdep_objects=$lt_postdep_objects_CXX
38753predeps=$lt_predeps_CXX
38754postdeps=$lt_postdeps_CXX
38755
38756# The library search path used internally by the compiler when linking
38757# a shared library.
38758compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38759
38760# ### END LIBTOOL TAG CONFIG: CXX
38761_LT_EOF
38762
38763 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038764 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038765 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038766 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038767 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38768 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38769
38770 esac
38771done # for ac_tag
38772
38773
cristy8b350f62009-11-15 23:12:43 +000038774as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038775_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038776ac_clean_files=$ac_clean_files_save
38777
38778test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038779 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038780
38781
38782# configure is writing to config.log, and then calls config.status.
38783# config.status does its own redirection, appending to config.log.
38784# Unfortunately, on DOS this fails, as config.log is still kept open
38785# by configure, so config.status won't be able to write to it; its
38786# output is simply discarded. So we exec the FD to /dev/null,
38787# effectively closing config.log, so it can be properly (re)opened and
38788# appended to by config.status. When coming back to configure, we
38789# need to make the FD available again.
38790if test "$no_create" != yes; then
38791 ac_cs_success=:
38792 ac_config_status_args=
38793 test "$silent" = yes &&
38794 ac_config_status_args="$ac_config_status_args --quiet"
38795 exec 5>/dev/null
38796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38797 exec 5>>config.log
38798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38799 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038800 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038801fi
38802if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038804$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38805fi
38806
38807
38808rm -f magick-version
38809
cristy430a7312010-01-21 20:44:04 +000038810result_dejavu_font_dir='none'
38811if test "${dejavu_font_dir}x" != 'x'; then
38812 result_dejavu_font_dir=$dejavu_font_dir
38813fi
38814
cristy3ed852e2009-09-05 21:47:34 +000038815result_ghostscript_font_dir='none'
38816if test "${ghostscript_font_dir}x" != 'x'; then
38817 result_ghostscript_font_dir=$ghostscript_font_dir
38818fi
38819
38820result_windows_font_dir='none'
38821if test "${windows_font_dir}x" != 'x'; then
38822 result_windows_font_dir=${windows_font_dir}
38823fi
38824
cristy09b53e12011-10-14 12:47:22 +000038825{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038826ImageMagick is configured as follows. Please verify that this configuration
38827matches your expectations.
38828
38829Host system type: $host
38830Build system type: $build
38831
38832 Option Value
38833-------------------------------------------------------------------------------
38834Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38835Static libraries --enable-static=$enable_static $libtool_build_static_libs
38836Module support --with-modules=$with_modules $with_modules
38837GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38838Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38839High Dynamic Range Imagery
38840 --enable-hdri=$enable_hdri $enable_hdri
38841
38842Delegate Configuration:
38843BZLIB --with-bzlib=$with_bzlib $have_bzlib
38844Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038845Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038846DJVU --with-djvu=$with_djvu $have_djvu
38847DPS --with-dps=$with_dps $have_dps
38848FFTW --with-fftw=$with_fftw $have_fftw
38849FlashPIX --with-fpx=$with_fpx $have_fpx
38850FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38851FreeType --with-freetype=$with_freetype $have_freetype
38852GhostPCL None $PCLDelegate ($PCLVersion)
38853GhostXPS None $XPSDelegate ($XPSVersion)
38854Ghostscript None $PSDelegate ($GSVersion)
38855Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38856Ghostscript lib --with-gslib=$with_gslib $have_gslib
38857Graphviz --with-gvc=$with_gvc $have_gvc
38858JBIG --with-jbig=$with_jbig $have_jbig
38859JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38860JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038861LCMS v1 --with-lcms=$with_lcms $have_lcms
38862LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038863LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038864LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038865Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38866OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038867PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038868PERL --with-perl=$with_perl $have_perl
38869PNG --with-png=$with_png $have_png
38870RSVG --with-rsvg=$with_rsvg $have_rsvg
38871TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038872WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038873Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38874WMF --with-wmf=$with_wmf $have_wmf
38875X11 --with-x=$with_x $have_x
38876XML --with-xml=$with_xml $have_xml
38877ZLIB --with-zlib=$with_zlib $have_zlib
38878
38879X11 Configuration:
38880 X_CFLAGS = $X_CFLAGS
38881 X_PRE_LIBS = $X_PRE_LIBS
38882 X_LIBS = $X_LIBS
38883 X_EXTRA_LIBS = $X_EXTRA_LIBS
38884
38885Options used to compile and link:
38886 PREFIX = $PREFIX_DIR
38887 EXEC-PREFIX = $EXEC_PREFIX_DIR
38888 VERSION = $PACKAGE_VERSION
38889 CC = $CC
38890 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038891 CPPFLAGS = $MAGICK_CPPFLAGS
38892 PCFLAGS = $MAGICK_PCFLAGS
38893 DEFS = $DEFS
38894 LDFLAGS = $LDFLAGS
38895 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38896 LIBS = $MAGICK_LIBS
38897 CXX = $CXX
38898 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038899 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038900" >&5
cristy09b53e12011-10-14 12:47:22 +000038901$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038902ImageMagick is configured as follows. Please verify that this configuration
38903matches your expectations.
38904
38905Host system type: $host
38906Build system type: $build
38907
38908 Option Value
38909-------------------------------------------------------------------------------
38910Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38911Static libraries --enable-static=$enable_static $libtool_build_static_libs
38912Module support --with-modules=$with_modules $with_modules
38913GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38914Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38915High Dynamic Range Imagery
38916 --enable-hdri=$enable_hdri $enable_hdri
38917
38918Delegate Configuration:
38919BZLIB --with-bzlib=$with_bzlib $have_bzlib
38920Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038921Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038922DJVU --with-djvu=$with_djvu $have_djvu
38923DPS --with-dps=$with_dps $have_dps
38924FFTW --with-fftw=$with_fftw $have_fftw
38925FlashPIX --with-fpx=$with_fpx $have_fpx
38926FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38927FreeType --with-freetype=$with_freetype $have_freetype
38928GhostPCL None $PCLDelegate ($PCLVersion)
38929GhostXPS None $XPSDelegate ($XPSVersion)
38930Ghostscript None $PSDelegate ($GSVersion)
38931Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38932Ghostscript lib --with-gslib=$with_gslib $have_gslib
38933Graphviz --with-gvc=$with_gvc $have_gvc
38934JBIG --with-jbig=$with_jbig $have_jbig
38935JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38936JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038937LCMS v1 --with-lcms=$with_lcms $have_lcms
38938LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038939LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038940LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038941Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38942OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038943PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038944PERL --with-perl=$with_perl $have_perl
38945PNG --with-png=$with_png $have_png
38946RSVG --with-rsvg=$with_rsvg $have_rsvg
38947TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038948WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038949Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38950WMF --with-wmf=$with_wmf $have_wmf
38951X11 --with-x=$with_x $have_x
38952XML --with-xml=$with_xml $have_xml
38953ZLIB --with-zlib=$with_zlib $have_zlib
38954
38955X11 Configuration:
38956 X_CFLAGS = $X_CFLAGS
38957 X_PRE_LIBS = $X_PRE_LIBS
38958 X_LIBS = $X_LIBS
38959 X_EXTRA_LIBS = $X_EXTRA_LIBS
38960
38961Options used to compile and link:
38962 PREFIX = $PREFIX_DIR
38963 EXEC-PREFIX = $EXEC_PREFIX_DIR
38964 VERSION = $PACKAGE_VERSION
38965 CC = $CC
38966 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038967 CPPFLAGS = $MAGICK_CPPFLAGS
38968 PCFLAGS = $MAGICK_PCFLAGS
38969 DEFS = $DEFS
38970 LDFLAGS = $LDFLAGS
38971 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38972 LIBS = $MAGICK_LIBS
38973 CXX = $CXX
38974 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038975 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038976" >&6;}