blob: db7700a70a211239f1c3eb8ae4e438e2db1ec6f2 [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
cristy191c0b72012-08-12 16:29:52 +00001874 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001875 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
cristy191c0b72012-08-12 16:29:52 +00003669MAGICK_SVN_REVISION=8906:8907M
cristyd694ca32011-03-27 21:42:54 +00003670
cristy3ed852e2009-09-05 21:47:34 +00003671
3672
3673# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3675$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003676# Reject unsafe characters in $srcdir or the absolute working directory
3677# name. Accept space and tab only in the latter.
3678am_lf='
3679'
3680case `pwd` in
3681 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003683esac
3684case $srcdir in
3685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003686 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003687esac
cristy3ed852e2009-09-05 21:47:34 +00003688
cristyc0890a62012-07-19 00:18:20 +00003689# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003690# arguments. Must try -L first in case configure is actually a
3691# symlink; some systems play weird games with the mod time of symlinks
3692# (eg FreeBSD returns the mod time of the symlink's containing
3693# directory).
3694if (
cristyc0890a62012-07-19 00:18:20 +00003695 am_has_slept=no
3696 for am_try in 1 2; do
3697 echo "timestamp, slept: $am_has_slept" > conftest.file
3698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3699 if test "$*" = "X"; then
3700 # -L didn't work.
3701 set X `ls -t "$srcdir/configure" conftest.file`
3702 fi
3703 if test "$*" != "X $srcdir/configure conftest.file" \
3704 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003705
cristyc0890a62012-07-19 00:18:20 +00003706 # If neither matched, then we have a broken ls. This can happen
3707 # if, for instance, CONFIG_SHELL is bash and it inherits a
3708 # broken ls alias from the environment. This has actually
3709 # happened. Such a system could not be considered "sane".
3710 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3711 alias in your environment" "$LINENO" 5
3712 fi
3713 if test "$2" = conftest.file || test $am_try -eq 2; then
3714 break
3715 fi
3716 # Just in case.
3717 sleep 1
3718 am_has_slept=yes
3719 done
cristy73bd4a52010-10-05 11:24:23 +00003720 test "$2" = conftest.file
3721 )
3722then
3723 # Ok.
3724 :
3725else
cristy98dddb52010-11-04 00:30:15 +00003726 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003727Check your system clock" "$LINENO" 5
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003731# If we didn't sleep, we still need to ensure time stamps of config.status and
3732# generated files are strictly newer.
3733am_sleep_pid=
3734if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3735 ( sleep 1 ) &
3736 am_sleep_pid=$!
3737fi
cristy73bd4a52010-10-05 11:24:23 +00003738
cristyc0890a62012-07-19 00:18:20 +00003739rm -f conftest.file
3740
3741
3742am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003743
3744# Find a good install program. We prefer a C program (faster),
3745# so one script is as good as another. But avoid the broken or
3746# incompatible versions:
3747# SysV /etc/install, /usr/sbin/install
3748# SunOS /usr/etc/install
3749# IRIX /sbin/install
3750# AIX /bin/install
3751# AmigaOS /C/install, which installs bootblocks on floppy discs
3752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755# OS/2's system install, which has a completely different semantic
3756# ./install, which can be erroneously created by make from ./install.sh.
3757# Reject install programs that cannot install multiple files.
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759$as_echo_n "checking for a BSD-compatible install... " >&6; }
3760if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003761if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003762 $as_echo_n "(cached) " >&6
3763else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770case $as_dir/ in #((
3771 ./ | .// | /[cC]/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774 /usr/ucb/* ) ;;
3775 *)
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3785 :
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3789 :
3790 else
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3802 fi
3803 fi
3804 fi
3805 done
3806 done
3807 ;;
3808esac
3809
3810 done
3811IFS=$as_save_IFS
3812
3813rm -rf conftest.one conftest.two conftest.dir
3814
3815fi
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
3818 else
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
3824 fi
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827$as_echo "$INSTALL" >&6; }
3828
3829# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830# It thinks the first close brace ends the variable substitution.
3831test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3832
3833test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3834
3835test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836
3837test "$program_prefix" != NONE &&
3838 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3839# Use a double $ so make ignores it.
3840test "$program_suffix" != NONE &&
3841 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3842# Double any \ or $.
3843# By default was `s,x,x', remove it if useless.
3844ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3845program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3846
3847# expand $ac_aux_dir to an absolute path
3848am_aux_dir=`cd $ac_aux_dir && pwd`
3849
3850if test x"${MISSING+set}" != xset; then
3851 case $am_aux_dir in
3852 *\ * | *\ *)
3853 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3854 *)
3855 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3856 esac
3857fi
3858# Use eval to expand $SHELL
3859if eval "$MISSING --run true"; then
3860 am_missing_run="$MISSING --run "
3861else
3862 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3864$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003865fi
3866
3867if test x"${install_sh}" != xset; then
3868 case $am_aux_dir in
3869 *\ * | *\ *)
3870 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3871 *)
3872 install_sh="\${SHELL} $am_aux_dir/install-sh"
3873 esac
3874fi
3875
cristyc0890a62012-07-19 00:18:20 +00003876# Installed binaries are usually stripped using 'strip' when the user
3877# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003878# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003879# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003880if test "$cross_compiling" != no; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}strip; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003886if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003887 $as_echo_n "(cached) " >&6
3888else
3889 if test -n "$STRIP"; then
3890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904 done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909STRIP=$ac_cv_prog_STRIP
3910if test -n "$STRIP"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3912$as_echo "$STRIP" >&6; }
3913else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918
3919fi
3920if test -z "$ac_cv_prog_STRIP"; then
3921 ac_ct_STRIP=$STRIP
3922 # Extract the first word of "strip", so it can be a program name with args.
3923set dummy strip; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003926if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003927 $as_echo_n "(cached) " >&6
3928else
3929 if test -n "$ac_ct_STRIP"; then
3930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003939 ac_cv_prog_ac_ct_STRIP="strip"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944 done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3950if test -n "$ac_ct_STRIP"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3952$as_echo "$ac_ct_STRIP" >&6; }
3953else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958 if test "x$ac_ct_STRIP" = x; then
3959 STRIP=":"
3960 else
3961 case $cross_compiling:$ac_tool_warned in
3962yes:)
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965ac_tool_warned=yes ;;
3966esac
3967 STRIP=$ac_ct_STRIP
3968 fi
3969else
3970 STRIP="$ac_cv_prog_STRIP"
3971fi
3972
3973fi
3974INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3977$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3978if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003979 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003980 $as_echo_n "(cached) " >&6
3981else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in mkdir gmkdir; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003989 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003990 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3991 'mkdir (GNU coreutils) '* | \
3992 'mkdir (coreutils) '* | \
3993 'mkdir (fileutils) '4.1*)
3994 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3995 break 3;;
3996 esac
3997 done
3998 done
3999 done
4000IFS=$as_save_IFS
4001
4002fi
4003
4004 test -d ./--version && rmdir ./--version
4005 if test "${ac_cv_path_mkdir+set}" = set; then
4006 MKDIR_P="$ac_cv_path_mkdir -p"
4007 else
4008 # As a last resort, use the slow shell script. Don't cache a
4009 # value for MKDIR_P within a source directory, because that will
4010 # break other packages using the cache if that directory is
4011 # removed, or if the value is a relative name.
4012 MKDIR_P="$ac_install_sh -d"
4013 fi
4014fi
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4016$as_echo "$MKDIR_P" >&6; }
4017
cristy73bd4a52010-10-05 11:24:23 +00004018for ac_prog in gawk mawk nawk awk
4019do
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004024if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004025 $as_echo_n "(cached) " >&6
4026else
4027 if test -n "$AWK"; then
4028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004037 ac_cv_prog_AWK="$ac_prog"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4040 fi
4041done
4042 done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047AWK=$ac_cv_prog_AWK
4048if test -n "$AWK"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4050$as_echo "$AWK" >&6; }
4051else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056
4057 test -n "$AWK" && break
4058done
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4061$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4062set x ${MAKE-make}
4063ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004064if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004065 $as_echo_n "(cached) " >&6
4066else
4067 cat >conftest.make <<\_ACEOF
4068SHELL = /bin/sh
4069all:
4070 @echo '@@@%%%=$(MAKE)=@@@%%%'
4071_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004072# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004073case `${MAKE-make} -f conftest.make 2>/dev/null` in
4074 *@@@%%%=?*=@@@%%%*)
4075 eval ac_cv_prog_make_${ac_make}_set=yes;;
4076 *)
4077 eval ac_cv_prog_make_${ac_make}_set=no;;
4078esac
4079rm -f conftest.make
4080fi
4081if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083$as_echo "yes" >&6; }
4084 SET_MAKE=
4085else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087$as_echo "no" >&6; }
4088 SET_MAKE="MAKE=${MAKE-make}"
4089fi
4090
4091rm -rf .tst 2>/dev/null
4092mkdir .tst 2>/dev/null
4093if test -d .tst; then
4094 am__leading_dot=.
4095else
4096 am__leading_dot=_
4097fi
4098rmdir .tst 2>/dev/null
4099
cristya448bd22011-10-14 12:38:13 +00004100# Check whether --enable-silent-rules was given.
4101if test "${enable_silent_rules+set}" = set; then :
4102 enableval=$enable_silent_rules;
4103fi
4104
cristyc0890a62012-07-19 00:18:20 +00004105case $enable_silent_rules in # (((
4106 yes) AM_DEFAULT_VERBOSITY=0;;
4107 no) AM_DEFAULT_VERBOSITY=1;;
4108 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004109esac
cristyc3fb77b2012-02-06 01:49:41 +00004110am_make=${MAKE-make}
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4112$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4113if ${am_cv_make_support_nested_variables+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if $as_echo 'TRUE=$(BAR$(V))
4117BAR0=false
4118BAR1=true
4119V=1
4120am__doit:
4121 @$(TRUE)
4122.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4123 am_cv_make_support_nested_variables=yes
4124else
4125 am_cv_make_support_nested_variables=no
4126fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4129$as_echo "$am_cv_make_support_nested_variables" >&6; }
4130if test $am_cv_make_support_nested_variables = yes; then
4131 AM_V='$(V)'
4132 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4133else
4134 AM_V=$AM_DEFAULT_VERBOSITY
4135 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4136fi
cristya448bd22011-10-14 12:38:13 +00004137AM_BACKSLASH='\'
4138
cristy73bd4a52010-10-05 11:24:23 +00004139if test "`cd $srcdir && pwd`" != "`pwd`"; then
4140 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4141 # is not polluted with repeated "-I."
4142 am__isrc=' -I$(srcdir)'
4143 # test to see if srcdir already configured
4144 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004145 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004146 fi
4147fi
4148
4149# test whether we have cygpath
4150if test -z "$CYGPATH_W"; then
4151 if (cygpath --version) >/dev/null 2>/dev/null; then
4152 CYGPATH_W='cygpath -w'
4153 else
4154 CYGPATH_W=echo
4155 fi
4156fi
4157
4158
4159# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004160 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004161 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004162
4163
cristya448bd22011-10-14 12:38:13 +00004164cat >>confdefs.h <<_ACEOF
4165#define PACKAGE "$PACKAGE"
4166_ACEOF
4167
4168
4169cat >>confdefs.h <<_ACEOF
4170#define VERSION "$VERSION"
4171_ACEOF
4172
cristy73bd4a52010-10-05 11:24:23 +00004173# Some tools Automake needs.
4174
4175ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4176
4177
4178AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4179
4180
4181AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4182
4183
4184AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4185
4186
4187MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4188
cristyc0890a62012-07-19 00:18:20 +00004189# For better backward compatibility. To be removed once Automake 1.9.x
4190# dies out for good. For more background, see:
4191# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4192# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4193mkdir_p='$(MKDIR_P)'
4194
cristy73bd4a52010-10-05 11:24:23 +00004195# We need awk for the "check" target. The system "awk" is bad on
4196# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004197# Always define AMTAR for backward compatibility. Yes, it's still used
4198# in the wild :-( We should find a proper way to deprecate it ...
4199AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004200
cristyc3fb77b2012-02-06 01:49:41 +00004201am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004202
4203
4204
4205
4206
cristy3ed852e2009-09-05 21:47:34 +00004207
4208# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004209# Check whether --enable-silent-rules was given.
4210if test "${enable_silent_rules+set}" = set; then :
4211 enableval=$enable_silent_rules;
4212fi
4213
cristyc0890a62012-07-19 00:18:20 +00004214case $enable_silent_rules in # (((
4215 yes) AM_DEFAULT_VERBOSITY=0;;
4216 no) AM_DEFAULT_VERBOSITY=1;;
4217 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004218esac
cristyc3fb77b2012-02-06 01:49:41 +00004219am_make=${MAKE-make}
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4221$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4222if ${am_cv_make_support_nested_variables+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 if $as_echo 'TRUE=$(BAR$(V))
4226BAR0=false
4227BAR1=true
4228V=1
4229am__doit:
4230 @$(TRUE)
4231.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4232 am_cv_make_support_nested_variables=yes
4233else
4234 am_cv_make_support_nested_variables=no
4235fi
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4238$as_echo "$am_cv_make_support_nested_variables" >&6; }
4239if test $am_cv_make_support_nested_variables = yes; then
4240 AM_V='$(V)'
4241 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4242else
4243 AM_V=$AM_DEFAULT_VERBOSITY
4244 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4245fi
cristy73bd4a52010-10-05 11:24:23 +00004246AM_BACKSLASH='\'
4247
cristy3ed852e2009-09-05 21:47:34 +00004248
4249MAGICK_LIB_VERSION="0x"
4250if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4251 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4252fi
4253MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4254if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4255 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4258if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4259 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4262
4263
4264# Definition used to define MagickLibVersionText in version.h
4265MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4266
4267
4268# Definition used to define MagickLibVersionNumber in version.h
4269MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4270
4271
4272# Regenerate config.status if ChangeLog or version.sh is updated.
4273CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4274
4275
4276PERLMAINCC=$CC
4277
4278MAGICK_CFLAGS=''
4279MAGICK_CPPFLAGS=$CPPFLAGS_USER
4280MAGICK_PCFLAGS=$CPPFLAGS_USER
4281MAGICK_LDFLAGS=''
4282MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004283MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004284
4285#
4286# Evaluate shell variable equivalents to Makefile directory variables
4287#
4288if test "x$prefix" = xNONE; then
4289 prefix=$ac_default_prefix
4290fi
4291# Let make expand exec_prefix.
4292if test "x$exec_prefix" = xNONE; then
4293 exec_prefix='${prefix}'
4294fi
4295
4296#
4297eval "eval PREFIX_DIR=${prefix}"
4298
4299eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4300
4301eval "eval BIN_DIR=$bindir"
4302
4303eval "eval SBIN_DIR=$sbindir"
4304
4305eval "eval LIBEXEC_DIR=$libexecdir"
4306
4307eval "eval DATA_DIR=$datadir"
4308
cristy4e65ec22012-04-08 01:33:27 +00004309eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004310
cristy3ed852e2009-09-05 21:47:34 +00004311eval "eval SYSCONF_DIR=$sysconfdir"
4312
4313eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4314
4315eval "eval LOCALSTATE_DIR=$localstatedir"
4316
4317eval "eval LIB_DIR=$libdir"
4318
4319eval "eval INCLUDE_DIR=$includedir"
4320
4321eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4322
4323eval "eval INFO_DIR=$infodir"
4324
4325eval "eval MAN_DIR=$mandir"
4326
4327
4328# Get full paths to source and build directories
4329srcdirfull="`cd $srcdir && pwd`"
4330builddir="`pwd`"
4331
4332#
4333# Compute variables useful for running uninstalled software.
4334#
4335MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4336MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4337MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4338MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4339DIRSEP=':'
4340case "${build_os}" in
4341 mingw* )
4342 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4343 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4344 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4345 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4346 DIRSEP=';'
4347 ;;
4348esac
4349case "${host_os}" in
4350 mingw* )
4351 DIRSEP=';'
4352 ;;
4353esac
4354
4355
4356
4357
4358
4359
cristya0b81c32010-01-22 02:54:33 +00004360
4361#
4362# Enable OS features.
4363#
cristy73bd4a52010-10-05 11:24:23 +00004364DEPDIR="${am__leading_dot}deps"
4365
4366ac_config_commands="$ac_config_commands depfiles"
4367
4368
4369am_make=${MAKE-make}
4370cat > confinc << 'END'
4371am__doit:
4372 @echo this is the am__doit target
4373.PHONY: am__doit
4374END
4375# If we don't find an include directive, just comment out the code.
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4377$as_echo_n "checking for style of include used by $am_make... " >&6; }
4378am__include="#"
4379am__quote=
4380_am_result=none
4381# First try GNU make style include.
4382echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004383# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004384case `$am_make -s -f confmf 2> /dev/null` in #(
4385*the\ am__doit\ target*)
4386 am__include=include
4387 am__quote=
4388 _am_result=GNU
4389 ;;
4390esac
4391# Now try BSD make style include.
4392if test "$am__include" = "#"; then
4393 echo '.include "confinc"' > confmf
4394 case `$am_make -s -f confmf 2> /dev/null` in #(
4395 *the\ am__doit\ target*)
4396 am__include=.include
4397 am__quote="\""
4398 _am_result=BSD
4399 ;;
4400 esac
4401fi
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4405$as_echo "$_am_result" >&6; }
4406rm -f confinc confmf
4407
4408# Check whether --enable-dependency-tracking was given.
4409if test "${enable_dependency_tracking+set}" = set; then :
4410 enableval=$enable_dependency_tracking;
4411fi
4412
4413if test "x$enable_dependency_tracking" != xno; then
4414 am_depcomp="$ac_aux_dir/depcomp"
4415 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004416 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004417fi
4418 if test "x$enable_dependency_tracking" != xno; then
4419 AMDEP_TRUE=
4420 AMDEP_FALSE='#'
4421else
4422 AMDEP_TRUE='#'
4423 AMDEP_FALSE=
4424fi
4425
4426
cristy3ed852e2009-09-05 21:47:34 +00004427ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4434set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004437if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004438 $as_echo_n "(cached) " >&6
4439else
4440 if test -n "$CC"; then
4441 ac_cv_prog_CC="$CC" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004452 break 2
4453 fi
4454done
cristy8b350f62009-11-15 23:12:43 +00004455 done
cristy3ed852e2009-09-05 21:47:34 +00004456IFS=$as_save_IFS
4457
4458fi
4459fi
4460CC=$ac_cv_prog_CC
4461if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004463$as_echo "$CC" >&6; }
4464else
cristy8b350f62009-11-15 23:12:43 +00004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo "no" >&6; }
4467fi
4468
4469
4470fi
4471if test -z "$ac_cv_prog_CC"; then
4472 ac_ct_CC=$CC
4473 # Extract the first word of "gcc", so it can be a program name with args.
4474set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004477if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004478 $as_echo_n "(cached) " >&6
4479else
4480 if test -n "$ac_ct_CC"; then
4481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004490 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492 break 2
4493 fi
4494done
cristy8b350f62009-11-15 23:12:43 +00004495 done
cristy3ed852e2009-09-05 21:47:34 +00004496IFS=$as_save_IFS
4497
4498fi
4499fi
4500ac_ct_CC=$ac_cv_prog_ac_ct_CC
4501if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$ac_ct_CC" >&6; }
4504else
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "no" >&6; }
4507fi
4508
4509 if test "x$ac_ct_CC" = x; then
4510 CC=""
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513yes:)
cristy8b350f62009-11-15 23:12:43 +00004514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516ac_tool_warned=yes ;;
4517esac
4518 CC=$ac_ct_CC
4519 fi
4520else
4521 CC="$ac_cv_prog_CC"
4522fi
4523
4524if test -z "$CC"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4527set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004530if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004531 $as_echo_n "(cached) " >&6
4532else
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004543 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545 break 2
4546 fi
4547done
cristy8b350f62009-11-15 23:12:43 +00004548 done
cristy3ed852e2009-09-05 21:47:34 +00004549IFS=$as_save_IFS
4550
4551fi
4552fi
4553CC=$ac_cv_prog_CC
4554if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo "$CC" >&6; }
4557else
cristy8b350f62009-11-15 23:12:43 +00004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "no" >&6; }
4560fi
4561
4562
4563 fi
4564fi
4565if test -z "$CC"; then
4566 # Extract the first word of "cc", so it can be a program name with args.
4567set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004570if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004571 $as_echo_n "(cached) " >&6
4572else
4573 if test -n "$CC"; then
4574 ac_cv_prog_CC="$CC" # Let the user override the test.
4575else
4576 ac_prog_rejected=no
4577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4585 ac_prog_rejected=yes
4586 continue
4587 fi
4588 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590 break 2
4591 fi
4592done
cristy8b350f62009-11-15 23:12:43 +00004593 done
cristy3ed852e2009-09-05 21:47:34 +00004594IFS=$as_save_IFS
4595
4596if test $ac_prog_rejected = yes; then
4597 # We found a bogon in the path, so make sure we never use it.
4598 set dummy $ac_cv_prog_CC
4599 shift
4600 if test $# != 0; then
4601 # We chose a different compiler from the bogus one.
4602 # However, it has the same basename, so the bogon will be chosen
4603 # first if we set CC to just the basename; use the full file name.
4604 shift
4605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4606 fi
4607fi
4608fi
4609fi
4610CC=$ac_cv_prog_CC
4611if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004613$as_echo "$CC" >&6; }
4614else
cristy8b350f62009-11-15 23:12:43 +00004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo "no" >&6; }
4617fi
4618
4619
4620fi
4621if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4623 for ac_prog in cl.exe
4624 do
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004629if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004630 $as_echo_n "(cached) " >&6
4631else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644 break 2
4645 fi
4646done
cristy8b350f62009-11-15 23:12:43 +00004647 done
cristy3ed852e2009-09-05 21:47:34 +00004648IFS=$as_save_IFS
4649
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo "$CC" >&6; }
4656else
cristy8b350f62009-11-15 23:12:43 +00004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "no" >&6; }
4659fi
4660
4661
4662 test -n "$CC" && break
4663 done
4664fi
4665if test -z "$CC"; then
4666 ac_ct_CC=$CC
4667 for ac_prog in cl.exe
4668do
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004673if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004674 $as_echo_n "(cached) " >&6
4675else
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678else
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004686 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688 break 2
4689 fi
4690done
cristy8b350f62009-11-15 23:12:43 +00004691 done
cristy3ed852e2009-09-05 21:47:34 +00004692IFS=$as_save_IFS
4693
4694fi
4695fi
4696ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo "$ac_ct_CC" >&6; }
4700else
cristy8b350f62009-11-15 23:12:43 +00004701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "no" >&6; }
4703fi
4704
4705
4706 test -n "$ac_ct_CC" && break
4707done
4708
4709 if test "x$ac_ct_CC" = x; then
4710 CC=""
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713yes:)
cristy8b350f62009-11-15 23:12:43 +00004714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716ac_tool_warned=yes ;;
4717esac
4718 CC=$ac_ct_CC
4719 fi
4720fi
4721
4722fi
4723
4724
cristy8b350f62009-11-15 23:12:43 +00004725test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004727as_fn_error $? "no acceptable C compiler found in \$PATH
4728See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004729
4730# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004731$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732set X $ac_compile
4733ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004734for ac_option in --version -v -V -qversion; do
4735 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004736case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739esac
cristy8b350f62009-11-15 23:12:43 +00004740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741$as_echo "$ac_try_echo"; } >&5
4742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004743 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004744 if test -s conftest.err; then
4745 sed '10a\
4746... rest of stderr output deleted ...
4747 10q' conftest.err >conftest.er1
4748 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004749 fi
cristycd4c5312009-11-22 01:19:08 +00004750 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4753done
cristy3ed852e2009-09-05 21:47:34 +00004754
cristy8b350f62009-11-15 23:12:43 +00004755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004756/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004757
cristy3ed852e2009-09-05 21:47:34 +00004758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004767ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004768# Try to create an executable without -o first, disregard a.out.
4769# It will help us diagnose broken compilers, and finding out an intuition
4770# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4772$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004773ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4774
4775# The possible output files:
4776ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4777
4778ac_rmfiles=
4779for ac_file in $ac_files
4780do
4781 case $ac_file in
4782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4784 esac
4785done
4786rm -f $ac_rmfiles
4787
cristy8b350f62009-11-15 23:12:43 +00004788if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004789case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792esac
cristy8b350f62009-11-15 23:12:43 +00004793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004795 (eval "$ac_link_default") 2>&5
4796 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4800# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4801# in a Makefile. We should not override ac_cv_exeext if it was cached,
4802# so that the user can short-circuit this test for compilers unknown to
4803# Autoconf.
4804for ac_file in $ac_files ''
4805do
4806 test -f "$ac_file" || continue
4807 case $ac_file in
4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4809 ;;
4810 [ab].out )
4811 # We found the default executable, but exeext='' is most
4812 # certainly right.
4813 break;;
4814 *.* )
cristy8b350f62009-11-15 23:12:43 +00004815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004816 then :; else
4817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4818 fi
4819 # We set ac_cv_exeext here because the later test for it is not
4820 # safe: cross compilers may not add the suffix if given an `-o'
4821 # argument, so we may need to know it at that point already.
4822 # Even if this section looks crufty: it has the advantage of
4823 # actually working.
4824 break;;
4825 * )
4826 break;;
4827 esac
4828done
4829test "$ac_cv_exeext" = no && ac_cv_exeext=
4830
4831else
4832 ac_file=''
4833fi
cristy8b350f62009-11-15 23:12:43 +00004834if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838sed 's/^/| /' conftest.$ac_ext >&5
4839
cristy8b350f62009-11-15 23:12:43 +00004840{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004842as_fn_error 77 "C compiler cannot create executables
4843See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004847fi
cristycd4c5312009-11-22 01:19:08 +00004848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4849$as_echo_n "checking for C compiler default output file name... " >&6; }
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4851$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004852ac_exeext=$ac_cv_exeext
4853
cristycd4c5312009-11-22 01:19:08 +00004854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004855ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004858if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004859case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862esac
cristy8b350f62009-11-15 23:12:43 +00004863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004865 (eval "$ac_link") 2>&5
4866 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4871# work properly (i.e., refer to `conftest.exe'), while it won't with
4872# `rm'.
4873for ac_file in conftest.exe conftest conftest.*; do
4874 test -f "$ac_file" || continue
4875 case $ac_file in
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4878 break;;
4879 * ) break;;
4880 esac
4881done
4882else
cristy8b350f62009-11-15 23:12:43 +00004883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004885as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4886See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004887fi
cristycd4c5312009-11-22 01:19:08 +00004888rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004890$as_echo "$ac_cv_exeext" >&6; }
4891
4892rm -f conftest.$ac_ext
4893EXEEXT=$ac_cv_exeext
4894ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897#include <stdio.h>
4898int
4899main ()
4900{
4901FILE *f = fopen ("conftest.out", "w");
4902 return ferror (f) || fclose (f) != 0;
4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908ac_clean_files="$ac_clean_files conftest.out"
4909# Check that the compiler produces executables we can run. If not, either
4910# the compiler is broken, or we cross compile.
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4912$as_echo_n "checking whether we are cross compiling... " >&6; }
4913if test "$cross_compiling" != yes; then
4914 { { ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_link") 2>&5
4922 ac_status=$?
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 if { ac_try='./conftest$ac_cv_exeext'
4926 { { case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_try") 2>&5
4933 ac_status=$?
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }; }; then
4936 cross_compiling=no
4937 else
4938 if test "$cross_compiling" = maybe; then
4939 cross_compiling=yes
4940 else
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004943as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004944If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004945See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004946 fi
4947 fi
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4950$as_echo "$cross_compiling" >&6; }
4951
4952rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4953ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004955$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004956if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004957 $as_echo_n "(cached) " >&6
4958else
cristy8b350f62009-11-15 23:12:43 +00004959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004960/* end confdefs.h. */
4961
4962int
4963main ()
4964{
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004971if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
cristy8b350f62009-11-15 23:12:43 +00004976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004978 (eval "$ac_compile") 2>&5
4979 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004982 for ac_file in conftest.o conftest.obj conftest.*; do
4983 test -f "$ac_file" || continue;
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4987 break;;
4988 esac
4989done
4990else
4991 $as_echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
cristy8b350f62009-11-15 23:12:43 +00004994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004996as_fn_error $? "cannot compute suffix of object files: cannot compile
4997See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004998fi
cristy3ed852e2009-09-05 21:47:34 +00004999rm -f conftest.$ac_cv_objext conftest.$ac_ext
5000fi
cristy8b350f62009-11-15 23:12:43 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005002$as_echo "$ac_cv_objext" >&6; }
5003OBJEXT=$ac_cv_objext
5004ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005007if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005008 $as_echo_n "(cached) " >&6
5009else
cristy8b350f62009-11-15 23:12:43 +00005010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016#ifndef __GNUC__
5017 choke me
5018#endif
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005024if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005025 ac_compiler_gnu=yes
5026else
cristy8b350f62009-11-15 23:12:43 +00005027 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005028fi
cristy3ed852e2009-09-05 21:47:34 +00005029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030ac_cv_c_compiler_gnu=$ac_compiler_gnu
5031
5032fi
cristy8b350f62009-11-15 23:12:43 +00005033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5035if test $ac_compiler_gnu = yes; then
5036 GCC=yes
5037else
5038 GCC=
5039fi
5040ac_test_CFLAGS=${CFLAGS+set}
5041ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005043$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005044if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005045 $as_echo_n "(cached) " >&6
5046else
5047 ac_save_c_werror_flag=$ac_c_werror_flag
5048 ac_c_werror_flag=yes
5049 ac_cv_prog_cc_g=no
5050 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005052/* end confdefs.h. */
5053
5054int
5055main ()
5056{
5057
5058 ;
5059 return 0;
5060}
5061_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005062if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005063 ac_cv_prog_cc_g=yes
5064else
cristy8b350f62009-11-15 23:12:43 +00005065 CFLAGS=""
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005078
cristy8b350f62009-11-15 23:12:43 +00005079else
5080 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005081 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005083/* end confdefs.h. */
5084
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005094 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005095fi
cristy3ed852e2009-09-05 21:47:34 +00005096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
cristy3ed852e2009-09-05 21:47:34 +00005098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
cristy3ed852e2009-09-05 21:47:34 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 ac_c_werror_flag=$ac_save_c_werror_flag
5102fi
cristy8b350f62009-11-15 23:12:43 +00005103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005104$as_echo "$ac_cv_prog_cc_g" >&6; }
5105if test "$ac_test_CFLAGS" = set; then
5106 CFLAGS=$ac_save_CFLAGS
5107elif test $ac_cv_prog_cc_g = yes; then
5108 if test "$GCC" = yes; then
5109 CFLAGS="-g -O2"
5110 else
5111 CFLAGS="-g"
5112 fi
5113else
5114 if test "$GCC" = yes; then
5115 CFLAGS="-O2"
5116 else
5117 CFLAGS=
5118 fi
5119fi
cristy8b350f62009-11-15 23:12:43 +00005120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005122if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005123 $as_echo_n "(cached) " >&6
5124else
5125 ac_cv_prog_cc_c89=no
5126ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005128/* end confdefs.h. */
5129#include <stdarg.h>
5130#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005131struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5133struct buf { int x; };
5134FILE * (*rcsopen) (struct buf *, struct stat *, int);
5135static char *e (p, i)
5136 char **p;
5137 int i;
5138{
5139 return p[i];
5140}
5141static char *f (char * (*g) (char **, int), char **p, ...)
5142{
5143 char *s;
5144 va_list v;
5145 va_start (v,p);
5146 s = g (p, va_arg (v,int));
5147 va_end (v);
5148 return s;
5149}
5150
5151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5152 function prototypes and stuff, but not '\xHH' hex character constants.
5153 These don't provoke an error unfortunately, instead are silently treated
5154 as 'x'. The following induces an error, until -std is added to get
5155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5156 array size at least. It's necessary to write '\x00'==0 to get something
5157 that's true only with -std. */
5158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5159
5160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5161 inside strings and character constants. */
5162#define FOO(x) 'x'
5163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5164
5165int test (int i, double x);
5166struct s1 {int (*f) (int a);};
5167struct s2 {int (*f) (double a);};
5168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5169int argc;
5170char **argv;
5171int
5172main ()
5173{
5174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5181do
5182 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005183 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005184 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005185fi
cristy3ed852e2009-09-05 21:47:34 +00005186rm -f core conftest.err conftest.$ac_objext
5187 test "x$ac_cv_prog_cc_c89" != "xno" && break
5188done
5189rm -f conftest.$ac_ext
5190CC=$ac_save_CC
5191
5192fi
5193# AC_CACHE_VAL
5194case "x$ac_cv_prog_cc_c89" in
5195 x)
cristy8b350f62009-11-15 23:12:43 +00005196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005197$as_echo "none needed" >&6; } ;;
5198 xno)
cristy8b350f62009-11-15 23:12:43 +00005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005200$as_echo "unsupported" >&6; } ;;
5201 *)
5202 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5205esac
cristy8b350f62009-11-15 23:12:43 +00005206if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005207
cristy8b350f62009-11-15 23:12:43 +00005208fi
cristy3ed852e2009-09-05 21:47:34 +00005209
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005215
cristy73bd4a52010-10-05 11:24:23 +00005216depcc="$CC" am_compiler_list=
5217
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5219$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005220if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005221 $as_echo_n "(cached) " >&6
5222else
5223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5224 # We make a subdir and do the tests there. Otherwise we can end up
5225 # making bogus files that we don't know about and never remove. For
5226 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005227 # making a dummy file named 'D' -- because '-MD' means "put the output
5228 # in D".
cristy7247bba2012-02-05 16:37:27 +00005229 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005230 mkdir conftest.dir
5231 # Copy depcomp to subdir because otherwise we won't find it if we're
5232 # using a relative directory.
5233 cp "$am_depcomp" conftest.dir
5234 cd conftest.dir
5235 # We will build objects and dependencies in a subdirectory because
5236 # it helps to detect inapplicable dependency modes. For instance
5237 # both Tru64's cc and ICC support -MD to output dependencies as a
5238 # side effect of compilation, but ICC will put the dependencies in
5239 # the current directory while Tru64 will put them in the object
5240 # directory.
5241 mkdir sub
5242
5243 am_cv_CC_dependencies_compiler_type=none
5244 if test "$am_compiler_list" = ""; then
5245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5246 fi
5247 am__universal=false
5248 case " $depcc " in #(
5249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5250 esac
5251
5252 for depmode in $am_compiler_list; do
5253 # Setup a source with many dependencies, because some compilers
5254 # like to wrap large dependency lists on column 80 (with \), and
5255 # we should not choose a depcomp mode which is confused by this.
5256 #
5257 # We need to recreate these files for each test, as the compiler may
5258 # overwrite some of them when testing with obscure command lines.
5259 # This happens at least with the AIX C compiler.
5260 : > sub/conftest.c
5261 for i in 1 2 3 4 5 6; do
5262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005263 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5264 # Solaris 10 /bin/sh.
5265 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005266 done
5267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5268
cristyc0890a62012-07-19 00:18:20 +00005269 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005270 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005271 # handle '-M -o', and we need to detect this. Also, some Intel
5272 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005273 am__obj=sub/conftest.${OBJEXT-o}
5274 am__minus_obj="-o $am__obj"
5275 case $depmode in
5276 gcc)
5277 # This depmode causes a compiler race in universal mode.
5278 test "$am__universal" = false || continue
5279 ;;
5280 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005281 # After this tag, mechanisms are not by side-effect, so they'll
5282 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005283 if test "x$enable_dependency_tracking" = xyes; then
5284 continue
5285 else
5286 break
5287 fi
5288 ;;
cristy7247bba2012-02-05 16:37:27 +00005289 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005290 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005291 # not run yet. These depmodes are late enough in the game, and
5292 # so weak that their functioning should not be impacted.
5293 am__obj=conftest.${OBJEXT-o}
5294 am__minus_obj=
5295 ;;
5296 none) break ;;
5297 esac
5298 if depmode=$depmode \
5299 source=sub/conftest.c object=$am__obj \
5300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5302 >/dev/null 2>conftest.err &&
5303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5307 # icc doesn't choke on unknown options, it will just issue warnings
5308 # or remarks (even with -Werror). So we grep stderr for any message
5309 # that says an option was ignored or not supported.
5310 # When given -MP, icc 7.0 and 7.1 complain thusly:
5311 # icc: Command line warning: ignoring option '-M'; no argument required
5312 # The diagnosis changed in icc 8.0:
5313 # icc: Command line remark: option '-MP' not supported
5314 if (grep 'ignoring option' conftest.err ||
5315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5316 am_cv_CC_dependencies_compiler_type=$depmode
5317 break
5318 fi
5319 fi
5320 done
5321
5322 cd ..
5323 rm -rf conftest.dir
5324else
5325 am_cv_CC_dependencies_compiler_type=none
5326fi
5327
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5330$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5331CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5332
5333 if
5334 test "x$enable_dependency_tracking" != xno \
5335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5336 am__fastdepCC_TRUE=
5337 am__fastdepCC_FALSE='#'
5338else
5339 am__fastdepCC_TRUE='#'
5340 am__fastdepCC_FALSE=
5341fi
5342
5343
cristy3ed852e2009-09-05 21:47:34 +00005344
cristya0b81c32010-01-22 02:54:33 +00005345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351$as_echo_n "checking how to run the C preprocessor... " >&6; }
5352# On Suns, sometimes $CPP names a directory.
5353if test -n "$CPP" && test -d "$CPP"; then
5354 CPP=
5355fi
5356if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005357 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005358 $as_echo_n "(cached) " >&6
5359else
5360 # Double quotes because CPP needs to be expanded
5361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362 do
5363 ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379 Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384 # Broken: fails on valid input.
5385continue
5386fi
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5397continue
5398else
5399 # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
cristyda16f162011-02-19 23:52:17 +00005403rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005407rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005408if $ac_preproc_ok; then :
5409 break
5410fi
5411
5412 done
5413 ac_cv_prog_CPP=$CPP
5414
5415fi
5416 CPP=$ac_cv_prog_CPP
5417else
5418 ac_cv_prog_CPP=$CPP
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421$as_echo "$CPP" >&6; }
5422ac_preproc_ok=false
5423for ac_c_preproc_warn_flag in '' yes
5424do
5425 # Use a header file that comes with gcc, so configuring glibc
5426 # with a fresh cross-compiler works.
5427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 # <limits.h> exists even on freestanding compilers.
5429 # On the NeXT, cc -E runs the code through the compiler's parser,
5430 # not just through cpp. "Syntax error" is here to catch this case.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438 Syntax error
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442else
5443 # Broken: fails on valid input.
5444continue
5445fi
cristyda16f162011-02-19 23:52:17 +00005446rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005447
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452#include <ac_nonexistent.h>
5453_ACEOF
5454if ac_fn_c_try_cpp "$LINENO"; then :
5455 # Broken: success on invalid input.
5456continue
5457else
5458 # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
cristyda16f162011-02-19 23:52:17 +00005462rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005466rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005467if $ac_preproc_ok; then :
5468
5469else
5470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005485if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005486 $as_echo_n "(cached) " >&6
5487else
5488 if test -z "$GREP"; then
5489 ac_path_GREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_prog in grep ggrep; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005499 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005500# Check for GNU ac_path_GREP and select it if it is found.
5501 # Check for GNU $ac_path_GREP
5502case `"$ac_path_GREP" --version 2>&1` in
5503*GNU*)
5504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5505*)
5506 ac_count=0
5507 $as_echo_n 0123456789 >"conftest.in"
5508 while :
5509 do
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'GREP' >> "conftest.nl"
5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516 as_fn_arith $ac_count + 1 && ac_count=$as_val
5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_GREP="$ac_path_GREP"
5520 ac_path_GREP_max=$ac_count
5521 fi
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5524 done
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528 $ac_path_GREP_found && break 3
5529 done
5530 done
5531 done
5532IFS=$as_save_IFS
5533 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005535 fi
5536else
5537 ac_cv_path_GREP=$GREP
5538fi
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542$as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP="$ac_cv_path_GREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5552 then ac_cv_path_EGREP="$GREP -E"
5553 else
5554 if test -z "$EGREP"; then
5555 ac_path_EGREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in egrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005565 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005566# Check for GNU ac_path_EGREP and select it if it is found.
5567 # Check for GNU $ac_path_EGREP
5568case `"$ac_path_EGREP" --version 2>&1` in
5569*GNU*)
5570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5571*)
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5575 do
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'EGREP' >> "conftest.nl"
5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_EGREP="$ac_path_EGREP"
5586 ac_path_EGREP_max=$ac_count
5587 fi
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592esac
5593
5594 $ac_path_EGREP_found && break 3
5595 done
5596 done
5597 done
5598IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005601 fi
5602else
5603 ac_cv_path_EGREP=$EGREP
5604fi
5605
5606 fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609$as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP="$ac_cv_path_EGREP"
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005615if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005616 $as_echo_n "(cached) " >&6
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <stdlib.h>
5621#include <stdarg.h>
5622#include <string.h>
5623#include <float.h>
5624
5625int
5626main ()
5627{
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_header_stdc=yes
5635else
5636 ac_cv_header_stdc=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#include <string.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev/null 2>&1; then :
5649
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "free" >/dev/null 2>&1; then :
5666
5667else
5668 ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676 if test "$cross_compiling" = yes; then :
5677 :
5678else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <ctype.h>
5682#include <stdlib.h>
5683#if ((' ' & 0x0FF) == 0x020)
5684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686#else
5687# define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692#endif
5693
5694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695int
5696main ()
5697{
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5702 return 2;
5703 return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_run "$LINENO"; then :
5707
5708else
5709 ac_cv_header_stdc=no
5710fi
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5713fi
5714
5715fi
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718$as_echo "$ac_cv_header_stdc" >&6; }
5719if test $ac_cv_header_stdc = yes; then
5720
5721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5722
5723fi
5724
5725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5727 inttypes.h stdint.h unistd.h
5728do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731"
cristy98dddb52010-11-04 00:30:15 +00005732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005733 cat >>confdefs.h <<_ACEOF
5734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735_ACEOF
5736
5737fi
5738
5739done
5740
5741
5742
5743 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 +00005744if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005745 MINIX=yes
5746else
5747 MINIX=
5748fi
5749
5750
5751 if test "$MINIX" = yes; then
5752
5753$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5754
5755
5756$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5757
5758
5759$as_echo "#define _MINIX 1" >>confdefs.h
5760
5761 fi
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5765$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005766if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005767 $as_echo_n "(cached) " >&6
5768else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h. */
5771
cristy14fefe52012-05-21 00:59:18 +00005772# define __EXTENSIONS__ 1
5773 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005774int
5775main ()
5776{
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783 ac_cv_safe_to_define___extensions__=yes
5784else
5785 ac_cv_safe_to_define___extensions__=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5790$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5791 test $ac_cv_safe_to_define___extensions__ = yes &&
5792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5793
5794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5797
5798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5799
5800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5801
5802
5803
5804# Check for programs
5805ac_ext=c
5806ac_cpp='$CPP $CPPFLAGS'
5807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}gcc; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005815if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$CC"; then
5819 ac_cv_prog_CC="$CC" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005828 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838CC=$ac_cv_prog_CC
5839if test -n "$CC"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5841$as_echo "$CC" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_CC"; then
5850 ac_ct_CC=$CC
5851 # Extract the first word of "gcc", so it can be a program name with args.
5852set dummy gcc; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005855if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$ac_ct_CC"; then
5859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005868 ac_cv_prog_ac_ct_CC="gcc"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_CC=$ac_cv_prog_ac_ct_CC
5879if test -n "$ac_ct_CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5881$as_echo "$ac_ct_CC" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887 if test "x$ac_ct_CC" = x; then
5888 CC=""
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 CC=$ac_ct_CC
5897 fi
5898else
5899 CC="$ac_cv_prog_CC"
5900fi
5901
5902if test -z "$CC"; then
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5905set dummy ${ac_tool_prefix}cc; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005908if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005909 $as_echo_n "(cached) " >&6
5910else
5911 if test -n "$CC"; then
5912 ac_cv_prog_CC="$CC" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005921 ac_cv_prog_CC="${ac_tool_prefix}cc"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926 done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931CC=$ac_cv_prog_CC
5932if test -n "$CC"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5934$as_echo "$CC" >&6; }
5935else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940
5941 fi
5942fi
5943if test -z "$CC"; then
5944 # Extract the first word of "cc", so it can be a program name with args.
5945set dummy cc; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005948if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005949 $as_echo_n "(cached) " >&6
5950else
5951 if test -n "$CC"; then
5952 ac_cv_prog_CC="$CC" # Let the user override the test.
5953else
5954 ac_prog_rejected=no
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005962 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5963 ac_prog_rejected=yes
5964 continue
5965 fi
5966 ac_cv_prog_CC="cc"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971 done
5972IFS=$as_save_IFS
5973
5974if test $ac_prog_rejected = yes; then
5975 # We found a bogon in the path, so make sure we never use it.
5976 set dummy $ac_cv_prog_CC
5977 shift
5978 if test $# != 0; then
5979 # We chose a different compiler from the bogus one.
5980 # However, it has the same basename, so the bogon will be chosen
5981 # first if we set CC to just the basename; use the full file name.
5982 shift
5983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5984 fi
5985fi
5986fi
5987fi
5988CC=$ac_cv_prog_CC
5989if test -n "$CC"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5991$as_echo "$CC" >&6; }
5992else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994$as_echo "no" >&6; }
5995fi
5996
5997
5998fi
5999if test -z "$CC"; then
6000 if test -n "$ac_tool_prefix"; then
6001 for ac_prog in cl.exe
6002 do
6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006007if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006008 $as_echo_n "(cached) " >&6
6009else
6010 if test -n "$CC"; then
6011 ac_cv_prog_CC="$CC" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025 done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030CC=$ac_cv_prog_CC
6031if test -n "$CC"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6033$as_echo "$CC" >&6; }
6034else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040 test -n "$CC" && break
6041 done
6042fi
6043if test -z "$CC"; then
6044 ac_ct_CC=$CC
6045 for ac_prog in cl.exe
6046do
6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
6048set dummy $ac_prog; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006051if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006052 $as_echo_n "(cached) " >&6
6053else
6054 if test -n "$ac_ct_CC"; then
6055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006064 ac_cv_prog_ac_ct_CC="$ac_prog"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069 done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_CC=$ac_cv_prog_ac_ct_CC
6075if test -n "$ac_ct_CC"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6077$as_echo "$ac_ct_CC" >&6; }
6078else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084 test -n "$ac_ct_CC" && break
6085done
6086
6087 if test "x$ac_ct_CC" = x; then
6088 CC=""
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094ac_tool_warned=yes ;;
6095esac
6096 CC=$ac_ct_CC
6097 fi
6098fi
6099
6100fi
6101
6102
6103test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006105as_fn_error $? "no acceptable C compiler found in \$PATH
6106See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006107
6108# Provide some information about the compiler.
6109$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6110set X $ac_compile
6111ac_compiler=$2
6112for ac_option in --version -v -V -qversion; do
6113 { { ac_try="$ac_compiler $ac_option >&5"
6114case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6119$as_echo "$ac_try_echo"; } >&5
6120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6121 ac_status=$?
6122 if test -s conftest.err; then
6123 sed '10a\
6124... rest of stderr output deleted ...
6125 10q' conftest.err >conftest.er1
6126 cat conftest.er1 >&5
6127 fi
6128 rm -f conftest.er1 conftest.err
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }
6131done
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006135if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006136 $as_echo_n "(cached) " >&6
6137else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h. */
6140
6141int
6142main ()
6143{
6144#ifndef __GNUC__
6145 choke me
6146#endif
6147
6148 ;
6149 return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153 ac_compiler_gnu=yes
6154else
6155 ac_compiler_gnu=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158ac_cv_c_compiler_gnu=$ac_compiler_gnu
6159
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6163if test $ac_compiler_gnu = yes; then
6164 GCC=yes
6165else
6166 GCC=
6167fi
6168ac_test_CFLAGS=${CFLAGS+set}
6169ac_save_CFLAGS=$CFLAGS
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6171$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006172if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006173 $as_echo_n "(cached) " >&6
6174else
6175 ac_save_c_werror_flag=$ac_c_werror_flag
6176 ac_c_werror_flag=yes
6177 ac_cv_prog_cc_g=no
6178 CFLAGS="-g"
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h. */
6181
6182int
6183main ()
6184{
6185
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190if ac_fn_c_try_compile "$LINENO"; then :
6191 ac_cv_prog_cc_g=yes
6192else
6193 CFLAGS=""
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197int
6198main ()
6199{
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206
6207else
6208 ac_c_werror_flag=$ac_save_c_werror_flag
6209 CFLAGS="-g"
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212
6213int
6214main ()
6215{
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_cv_prog_cc_g=yes
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_c_werror_flag=$ac_save_c_werror_flag
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6232$as_echo "$ac_cv_prog_cc_g" >&6; }
6233if test "$ac_test_CFLAGS" = set; then
6234 CFLAGS=$ac_save_CFLAGS
6235elif test $ac_cv_prog_cc_g = yes; then
6236 if test "$GCC" = yes; then
6237 CFLAGS="-g -O2"
6238 else
6239 CFLAGS="-g"
6240 fi
6241else
6242 if test "$GCC" = yes; then
6243 CFLAGS="-O2"
6244 else
6245 CFLAGS=
6246 fi
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006250if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006251 $as_echo_n "(cached) " >&6
6252else
6253 ac_cv_prog_cc_c89=no
6254ac_save_CC=$CC
6255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h. */
6257#include <stdarg.h>
6258#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006259struct stat;
cristya0b81c32010-01-22 02:54:33 +00006260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6261struct buf { int x; };
6262FILE * (*rcsopen) (struct buf *, struct stat *, int);
6263static char *e (p, i)
6264 char **p;
6265 int i;
6266{
6267 return p[i];
6268}
6269static char *f (char * (*g) (char **, int), char **p, ...)
6270{
6271 char *s;
6272 va_list v;
6273 va_start (v,p);
6274 s = g (p, va_arg (v,int));
6275 va_end (v);
6276 return s;
6277}
6278
6279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6280 function prototypes and stuff, but not '\xHH' hex character constants.
6281 These don't provoke an error unfortunately, instead are silently treated
6282 as 'x'. The following induces an error, until -std is added to get
6283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6284 array size at least. It's necessary to write '\x00'==0 to get something
6285 that's true only with -std. */
6286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6287
6288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6289 inside strings and character constants. */
6290#define FOO(x) 'x'
6291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6292
6293int test (int i, double x);
6294struct s1 {int (*f) (int a);};
6295struct s2 {int (*f) (double a);};
6296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6297int argc;
6298char **argv;
6299int
6300main ()
6301{
6302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6309do
6310 CC="$ac_save_CC $ac_arg"
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 ac_cv_prog_cc_c89=$ac_arg
6313fi
6314rm -f core conftest.err conftest.$ac_objext
6315 test "x$ac_cv_prog_cc_c89" != "xno" && break
6316done
6317rm -f conftest.$ac_ext
6318CC=$ac_save_CC
6319
6320fi
6321# AC_CACHE_VAL
6322case "x$ac_cv_prog_cc_c89" in
6323 x)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6325$as_echo "none needed" >&6; } ;;
6326 xno)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6328$as_echo "unsupported" >&6; } ;;
6329 *)
6330 CC="$CC $ac_cv_prog_cc_c89"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6333esac
6334if test "x$ac_cv_prog_cc_c89" != xno; then :
6335
6336fi
6337
6338ac_ext=c
6339ac_cpp='$CPP $CPPFLAGS'
6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
cristy73bd4a52010-10-05 11:24:23 +00006344depcc="$CC" am_compiler_list=
6345
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6347$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006348if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006349 $as_echo_n "(cached) " >&6
6350else
6351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6352 # We make a subdir and do the tests there. Otherwise we can end up
6353 # making bogus files that we don't know about and never remove. For
6354 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006355 # making a dummy file named 'D' -- because '-MD' means "put the output
6356 # in D".
cristy7247bba2012-02-05 16:37:27 +00006357 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006358 mkdir conftest.dir
6359 # Copy depcomp to subdir because otherwise we won't find it if we're
6360 # using a relative directory.
6361 cp "$am_depcomp" conftest.dir
6362 cd conftest.dir
6363 # We will build objects and dependencies in a subdirectory because
6364 # it helps to detect inapplicable dependency modes. For instance
6365 # both Tru64's cc and ICC support -MD to output dependencies as a
6366 # side effect of compilation, but ICC will put the dependencies in
6367 # the current directory while Tru64 will put them in the object
6368 # directory.
6369 mkdir sub
6370
6371 am_cv_CC_dependencies_compiler_type=none
6372 if test "$am_compiler_list" = ""; then
6373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6374 fi
6375 am__universal=false
6376 case " $depcc " in #(
6377 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6378 esac
6379
6380 for depmode in $am_compiler_list; do
6381 # Setup a source with many dependencies, because some compilers
6382 # like to wrap large dependency lists on column 80 (with \), and
6383 # we should not choose a depcomp mode which is confused by this.
6384 #
6385 # We need to recreate these files for each test, as the compiler may
6386 # overwrite some of them when testing with obscure command lines.
6387 # This happens at least with the AIX C compiler.
6388 : > sub/conftest.c
6389 for i in 1 2 3 4 5 6; do
6390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6392 # Solaris 10 /bin/sh.
6393 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006394 done
6395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6396
cristyc0890a62012-07-19 00:18:20 +00006397 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006398 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006399 # handle '-M -o', and we need to detect this. Also, some Intel
6400 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006401 am__obj=sub/conftest.${OBJEXT-o}
6402 am__minus_obj="-o $am__obj"
6403 case $depmode in
6404 gcc)
6405 # This depmode causes a compiler race in universal mode.
6406 test "$am__universal" = false || continue
6407 ;;
6408 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006409 # After this tag, mechanisms are not by side-effect, so they'll
6410 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006411 if test "x$enable_dependency_tracking" = xyes; then
6412 continue
6413 else
6414 break
6415 fi
6416 ;;
cristy7247bba2012-02-05 16:37:27 +00006417 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006418 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006419 # not run yet. These depmodes are late enough in the game, and
6420 # so weak that their functioning should not be impacted.
6421 am__obj=conftest.${OBJEXT-o}
6422 am__minus_obj=
6423 ;;
6424 none) break ;;
6425 esac
6426 if depmode=$depmode \
6427 source=sub/conftest.c object=$am__obj \
6428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6430 >/dev/null 2>conftest.err &&
6431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6435 # icc doesn't choke on unknown options, it will just issue warnings
6436 # or remarks (even with -Werror). So we grep stderr for any message
6437 # that says an option was ignored or not supported.
6438 # When given -MP, icc 7.0 and 7.1 complain thusly:
6439 # icc: Command line warning: ignoring option '-M'; no argument required
6440 # The diagnosis changed in icc 8.0:
6441 # icc: Command line remark: option '-MP' not supported
6442 if (grep 'ignoring option' conftest.err ||
6443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6444 am_cv_CC_dependencies_compiler_type=$depmode
6445 break
6446 fi
6447 fi
6448 done
6449
6450 cd ..
6451 rm -rf conftest.dir
6452else
6453 am_cv_CC_dependencies_compiler_type=none
6454fi
6455
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6458$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6459CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6460
6461 if
6462 test "x$enable_dependency_tracking" != xno \
6463 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6464 am__fastdepCC_TRUE=
6465 am__fastdepCC_FALSE='#'
6466else
6467 am__fastdepCC_TRUE='#'
6468 am__fastdepCC_FALSE=
6469fi
6470
6471
cristy95646052009-11-28 23:05:30 +00006472ac_ext=cpp
6473ac_cpp='$CXXCPP $CPPFLAGS'
6474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6477if test -z "$CXX"; then
6478 if test -n "$CCC"; then
6479 CXX=$CCC
6480 else
6481 if test -n "$ac_tool_prefix"; then
6482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6483 do
6484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006488if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$CXX"; then
6492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006501 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511CXX=$ac_cv_prog_CXX
6512if test -n "$CXX"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6514$as_echo "$CXX" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521 test -n "$CXX" && break
6522 done
6523fi
6524if test -z "$CXX"; then
6525 ac_ct_CXX=$CXX
6526 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6527do
6528 # Extract the first word of "$ac_prog", so it can be a program name with args.
6529set dummy $ac_prog; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006532if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_CXX"; then
6536 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006545 ac_cv_prog_ac_ct_CXX="$ac_prog"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6556if test -n "$ac_ct_CXX"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6558$as_echo "$ac_ct_CXX" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565 test -n "$ac_ct_CXX" && break
6566done
6567
6568 if test "x$ac_ct_CXX" = x; then
6569 CXX="g++"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572yes:)
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575ac_tool_warned=yes ;;
6576esac
6577 CXX=$ac_ct_CXX
6578 fi
6579fi
6580
6581 fi
6582fi
6583# Provide some information about the compiler.
6584$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6585set X $ac_compile
6586ac_compiler=$2
6587for ac_option in --version -v -V -qversion; do
6588 { { ac_try="$ac_compiler $ac_option >&5"
6589case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6594$as_echo "$ac_try_echo"; } >&5
6595 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6596 ac_status=$?
6597 if test -s conftest.err; then
6598 sed '10a\
6599... rest of stderr output deleted ...
6600 10q' conftest.err >conftest.er1
6601 cat conftest.er1 >&5
6602 fi
6603 rm -f conftest.er1 conftest.err
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }
6606done
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6609$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006610if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006611 $as_echo_n "(cached) " >&6
6612else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615
6616int
6617main ()
6618{
6619#ifndef __GNUC__
6620 choke me
6621#endif
6622
6623 ;
6624 return 0;
6625}
6626_ACEOF
6627if ac_fn_cxx_try_compile "$LINENO"; then :
6628 ac_compiler_gnu=yes
6629else
6630 ac_compiler_gnu=no
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6634
6635fi
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6637$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6638if test $ac_compiler_gnu = yes; then
6639 GXX=yes
6640else
6641 GXX=
6642fi
6643ac_test_CXXFLAGS=${CXXFLAGS+set}
6644ac_save_CXXFLAGS=$CXXFLAGS
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6646$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006647if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006648 $as_echo_n "(cached) " >&6
6649else
6650 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6651 ac_cxx_werror_flag=yes
6652 ac_cv_prog_cxx_g=no
6653 CXXFLAGS="-g"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h. */
6656
6657int
6658main ()
6659{
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665if ac_fn_cxx_try_compile "$LINENO"; then :
6666 ac_cv_prog_cxx_g=yes
6667else
6668 CXXFLAGS=""
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681
6682else
6683 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6684 CXXFLAGS="-g"
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h. */
6687
6688int
6689main ()
6690{
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697 ac_cv_prog_cxx_g=yes
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6707$as_echo "$ac_cv_prog_cxx_g" >&6; }
6708if test "$ac_test_CXXFLAGS" = set; then
6709 CXXFLAGS=$ac_save_CXXFLAGS
6710elif test $ac_cv_prog_cxx_g = yes; then
6711 if test "$GXX" = yes; then
6712 CXXFLAGS="-g -O2"
6713 else
6714 CXXFLAGS="-g"
6715 fi
6716else
6717 if test "$GXX" = yes; then
6718 CXXFLAGS="-O2"
6719 else
6720 CXXFLAGS=
6721 fi
6722fi
6723ac_ext=c
6724ac_cpp='$CPP $CPPFLAGS'
6725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6727ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728
cristy73bd4a52010-10-05 11:24:23 +00006729depcc="$CXX" am_compiler_list=
6730
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6732$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006733if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006734 $as_echo_n "(cached) " >&6
6735else
6736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6737 # We make a subdir and do the tests there. Otherwise we can end up
6738 # making bogus files that we don't know about and never remove. For
6739 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006740 # making a dummy file named 'D' -- because '-MD' means "put the output
6741 # in D".
cristy7247bba2012-02-05 16:37:27 +00006742 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006743 mkdir conftest.dir
6744 # Copy depcomp to subdir because otherwise we won't find it if we're
6745 # using a relative directory.
6746 cp "$am_depcomp" conftest.dir
6747 cd conftest.dir
6748 # We will build objects and dependencies in a subdirectory because
6749 # it helps to detect inapplicable dependency modes. For instance
6750 # both Tru64's cc and ICC support -MD to output dependencies as a
6751 # side effect of compilation, but ICC will put the dependencies in
6752 # the current directory while Tru64 will put them in the object
6753 # directory.
6754 mkdir sub
6755
6756 am_cv_CXX_dependencies_compiler_type=none
6757 if test "$am_compiler_list" = ""; then
6758 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6759 fi
6760 am__universal=false
6761 case " $depcc " in #(
6762 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6763 esac
6764
6765 for depmode in $am_compiler_list; do
6766 # Setup a source with many dependencies, because some compilers
6767 # like to wrap large dependency lists on column 80 (with \), and
6768 # we should not choose a depcomp mode which is confused by this.
6769 #
6770 # We need to recreate these files for each test, as the compiler may
6771 # overwrite some of them when testing with obscure command lines.
6772 # This happens at least with the AIX C compiler.
6773 : > sub/conftest.c
6774 for i in 1 2 3 4 5 6; do
6775 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006776 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6777 # Solaris 10 /bin/sh.
6778 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006779 done
6780 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6781
cristyc0890a62012-07-19 00:18:20 +00006782 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006783 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006784 # handle '-M -o', and we need to detect this. Also, some Intel
6785 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006786 am__obj=sub/conftest.${OBJEXT-o}
6787 am__minus_obj="-o $am__obj"
6788 case $depmode in
6789 gcc)
6790 # This depmode causes a compiler race in universal mode.
6791 test "$am__universal" = false || continue
6792 ;;
6793 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006794 # After this tag, mechanisms are not by side-effect, so they'll
6795 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006796 if test "x$enable_dependency_tracking" = xyes; then
6797 continue
6798 else
6799 break
6800 fi
6801 ;;
cristy7247bba2012-02-05 16:37:27 +00006802 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006803 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006804 # not run yet. These depmodes are late enough in the game, and
6805 # so weak that their functioning should not be impacted.
6806 am__obj=conftest.${OBJEXT-o}
6807 am__minus_obj=
6808 ;;
6809 none) break ;;
6810 esac
6811 if depmode=$depmode \
6812 source=sub/conftest.c object=$am__obj \
6813 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6814 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6815 >/dev/null 2>conftest.err &&
6816 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6817 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6818 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6819 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6820 # icc doesn't choke on unknown options, it will just issue warnings
6821 # or remarks (even with -Werror). So we grep stderr for any message
6822 # that says an option was ignored or not supported.
6823 # When given -MP, icc 7.0 and 7.1 complain thusly:
6824 # icc: Command line warning: ignoring option '-M'; no argument required
6825 # The diagnosis changed in icc 8.0:
6826 # icc: Command line remark: option '-MP' not supported
6827 if (grep 'ignoring option' conftest.err ||
6828 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6829 am_cv_CXX_dependencies_compiler_type=$depmode
6830 break
6831 fi
6832 fi
6833 done
6834
6835 cd ..
6836 rm -rf conftest.dir
6837else
6838 am_cv_CXX_dependencies_compiler_type=none
6839fi
6840
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6843$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6844CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6845
6846 if
6847 test "x$enable_dependency_tracking" != xno \
6848 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6849 am__fastdepCXX_TRUE=
6850 am__fastdepCXX_FALSE='#'
6851else
6852 am__fastdepCXX_TRUE='#'
6853 am__fastdepCXX_FALSE=
6854fi
6855
6856
cristy8b350f62009-11-15 23:12:43 +00006857 case $ac_cv_prog_cc_stdc in #(
6858 no) :
6859 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6860 *) :
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006862$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006863if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 $as_echo_n "(cached) " >&6
6865else
6866 ac_cv_prog_cc_c99=no
6867ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006869/* end confdefs.h. */
6870#include <stdarg.h>
6871#include <stdbool.h>
6872#include <stdlib.h>
6873#include <wchar.h>
6874#include <stdio.h>
6875
6876// Check varargs macros. These examples are taken from C99 6.10.3.5.
6877#define debug(...) fprintf (stderr, __VA_ARGS__)
6878#define showlist(...) puts (#__VA_ARGS__)
6879#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6880static void
6881test_varargs_macros (void)
6882{
6883 int x = 1234;
6884 int y = 5678;
6885 debug ("Flag");
6886 debug ("X = %d\n", x);
6887 showlist (The first, second, and third items.);
6888 report (x>y, "x is %d but y is %d", x, y);
6889}
6890
6891// Check long long types.
6892#define BIG64 18446744073709551615ull
6893#define BIG32 4294967295ul
6894#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6895#if !BIG_OK
6896 your preprocessor is broken;
6897#endif
6898#if BIG_OK
6899#else
6900 your preprocessor is broken;
6901#endif
6902static long long int bignum = -9223372036854775807LL;
6903static unsigned long long int ubignum = BIG64;
6904
6905struct incomplete_array
6906{
6907 int datasize;
6908 double data[];
6909};
6910
6911struct named_init {
6912 int number;
6913 const wchar_t *name;
6914 double average;
6915};
6916
6917typedef const char *ccp;
6918
6919static inline int
6920test_restrict (ccp restrict text)
6921{
6922 // See if C++-style comments work.
6923 // Iterate through items via the restricted pointer.
6924 // Also check for declarations in for loops.
6925 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6926 continue;
6927 return 0;
6928}
6929
6930// Check varargs and va_copy.
6931static void
6932test_varargs (const char *format, ...)
6933{
6934 va_list args;
6935 va_start (args, format);
6936 va_list args_copy;
6937 va_copy (args_copy, args);
6938
6939 const char *str;
6940 int number;
6941 float fnumber;
6942
6943 while (*format)
6944 {
6945 switch (*format++)
6946 {
6947 case 's': // string
6948 str = va_arg (args_copy, const char *);
6949 break;
6950 case 'd': // int
6951 number = va_arg (args_copy, int);
6952 break;
6953 case 'f': // float
6954 fnumber = va_arg (args_copy, double);
6955 break;
6956 default:
6957 break;
6958 }
6959 }
6960 va_end (args_copy);
6961 va_end (args);
6962}
6963
6964int
6965main ()
6966{
6967
6968 // Check bool.
6969 _Bool success = false;
6970
6971 // Check restrict.
6972 if (test_restrict ("String literal") == 0)
6973 success = true;
6974 char *restrict newvar = "Another string";
6975
6976 // Check varargs.
6977 test_varargs ("s, d' f .", "string", 65, 34.234);
6978 test_varargs_macros ();
6979
6980 // Check flexible array members.
6981 struct incomplete_array *ia =
6982 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6983 ia->datasize = 10;
6984 for (int i = 0; i < ia->datasize; ++i)
6985 ia->data[i] = i * 1.234;
6986
6987 // Check named initializers.
6988 struct named_init ni = {
6989 .number = 34,
6990 .name = L"Test wide string",
6991 .average = 543.34343,
6992 };
6993
6994 ni.number = 58;
6995
6996 int dynamic_array[ni.number];
6997 dynamic_array[ni.number - 1] = 543;
6998
6999 // work around unused variable warnings
7000 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7001 || dynamic_array[ni.number - 1] != 543);
7002
7003 ;
7004 return 0;
7005}
7006_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007007for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007008do
7009 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007010 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007011 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007012fi
cristy3ed852e2009-09-05 21:47:34 +00007013rm -f core conftest.err conftest.$ac_objext
7014 test "x$ac_cv_prog_cc_c99" != "xno" && break
7015done
7016rm -f conftest.$ac_ext
7017CC=$ac_save_CC
7018
7019fi
7020# AC_CACHE_VAL
7021case "x$ac_cv_prog_cc_c99" in
7022 x)
cristy8b350f62009-11-15 23:12:43 +00007023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007024$as_echo "none needed" >&6; } ;;
7025 xno)
cristy8b350f62009-11-15 23:12:43 +00007026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007027$as_echo "unsupported" >&6; } ;;
7028 *)
7029 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7032esac
cristy8b350f62009-11-15 23:12:43 +00007033if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7035else
cristy8b350f62009-11-15 23:12:43 +00007036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007037$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007038if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 $as_echo_n "(cached) " >&6
7040else
7041 ac_cv_prog_cc_c89=no
7042ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007044/* end confdefs.h. */
7045#include <stdarg.h>
7046#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007047struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007048/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7049struct buf { int x; };
7050FILE * (*rcsopen) (struct buf *, struct stat *, int);
7051static char *e (p, i)
7052 char **p;
7053 int i;
7054{
7055 return p[i];
7056}
7057static char *f (char * (*g) (char **, int), char **p, ...)
7058{
7059 char *s;
7060 va_list v;
7061 va_start (v,p);
7062 s = g (p, va_arg (v,int));
7063 va_end (v);
7064 return s;
7065}
7066
7067/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7068 function prototypes and stuff, but not '\xHH' hex character constants.
7069 These don't provoke an error unfortunately, instead are silently treated
7070 as 'x'. The following induces an error, until -std is added to get
7071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7072 array size at least. It's necessary to write '\x00'==0 to get something
7073 that's true only with -std. */
7074int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7075
7076/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7077 inside strings and character constants. */
7078#define FOO(x) 'x'
7079int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7080
7081int test (int i, double x);
7082struct s1 {int (*f) (int a);};
7083struct s2 {int (*f) (double a);};
7084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7085int argc;
7086char **argv;
7087int
7088main ()
7089{
7090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7091 ;
7092 return 0;
7093}
7094_ACEOF
7095for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7097do
7098 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007099 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007100 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007101fi
cristy3ed852e2009-09-05 21:47:34 +00007102rm -f core conftest.err conftest.$ac_objext
7103 test "x$ac_cv_prog_cc_c89" != "xno" && break
7104done
7105rm -f conftest.$ac_ext
7106CC=$ac_save_CC
7107
7108fi
7109# AC_CACHE_VAL
7110case "x$ac_cv_prog_cc_c89" in
7111 x)
cristy8b350f62009-11-15 23:12:43 +00007112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007113$as_echo "none needed" >&6; } ;;
7114 xno)
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo "unsupported" >&6; } ;;
7117 *)
7118 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007120$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7121esac
cristy8b350f62009-11-15 23:12:43 +00007122if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007123 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7124else
7125 ac_cv_prog_cc_stdc=no
7126fi
7127
cristy3ed852e2009-09-05 21:47:34 +00007128fi
cristy3ed852e2009-09-05 21:47:34 +00007129 ;;
7130esac
cristy8b350f62009-11-15 23:12:43 +00007131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007132$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007133 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007134 $as_echo_n "(cached) " >&6
7135fi
7136
cristy8b350f62009-11-15 23:12:43 +00007137 case $ac_cv_prog_cc_stdc in #(
7138 no) :
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7140$as_echo "unsupported" >&6; } ;; #(
7141 '') :
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7143$as_echo "none needed" >&6; } ;; #(
7144 *) :
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007146$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7147esac
7148
cristy3ed852e2009-09-05 21:47:34 +00007149ac_ext=c
7150ac_cpp='$CPP $CPPFLAGS'
7151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007155$as_echo_n "checking how to run the C preprocessor... " >&6; }
7156# On Suns, sometimes $CPP names a directory.
7157if test -n "$CPP" && test -d "$CPP"; then
7158 CPP=
7159fi
7160if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007161 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 $as_echo_n "(cached) " >&6
7163else
7164 # Double quotes because CPP needs to be expanded
7165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7166 do
7167 ac_preproc_ok=false
7168for ac_c_preproc_warn_flag in '' yes
7169do
7170 # Use a header file that comes with gcc, so configuring glibc
7171 # with a fresh cross-compiler works.
7172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7173 # <limits.h> exists even on freestanding compilers.
7174 # On the NeXT, cc -E runs the code through the compiler's parser,
7175 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007177/* end confdefs.h. */
7178#ifdef __STDC__
7179# include <limits.h>
7180#else
7181# include <assert.h>
7182#endif
7183 Syntax error
7184_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007185if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007186
cristy8b350f62009-11-15 23:12:43 +00007187else
cristy3ed852e2009-09-05 21:47:34 +00007188 # Broken: fails on valid input.
7189continue
7190fi
cristyda16f162011-02-19 23:52:17 +00007191rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007192
7193 # OK, works on sane cases. Now check whether nonexistent headers
7194 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196/* end confdefs.h. */
7197#include <ac_nonexistent.h>
7198_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007199if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007200 # Broken: success on invalid input.
7201continue
7202else
cristy3ed852e2009-09-05 21:47:34 +00007203 # Passes both tests.
7204ac_preproc_ok=:
7205break
7206fi
cristyda16f162011-02-19 23:52:17 +00007207rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007208
7209done
7210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007211rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007212if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007213 break
7214fi
7215
7216 done
7217 ac_cv_prog_CPP=$CPP
7218
7219fi
7220 CPP=$ac_cv_prog_CPP
7221else
7222 ac_cv_prog_CPP=$CPP
7223fi
cristy8b350f62009-11-15 23:12:43 +00007224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007225$as_echo "$CPP" >&6; }
7226ac_preproc_ok=false
7227for ac_c_preproc_warn_flag in '' yes
7228do
7229 # Use a header file that comes with gcc, so configuring glibc
7230 # with a fresh cross-compiler works.
7231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7232 # <limits.h> exists even on freestanding compilers.
7233 # On the NeXT, cc -E runs the code through the compiler's parser,
7234 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007236/* end confdefs.h. */
7237#ifdef __STDC__
7238# include <limits.h>
7239#else
7240# include <assert.h>
7241#endif
7242 Syntax error
7243_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007244if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007245
cristy8b350f62009-11-15 23:12:43 +00007246else
cristy3ed852e2009-09-05 21:47:34 +00007247 # Broken: fails on valid input.
7248continue
7249fi
cristyda16f162011-02-19 23:52:17 +00007250rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007251
7252 # OK, works on sane cases. Now check whether nonexistent headers
7253 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255/* end confdefs.h. */
7256#include <ac_nonexistent.h>
7257_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007258if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007259 # Broken: success on invalid input.
7260continue
7261else
cristy3ed852e2009-09-05 21:47:34 +00007262 # Passes both tests.
7263ac_preproc_ok=:
7264break
7265fi
cristyda16f162011-02-19 23:52:17 +00007266rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007267
7268done
7269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007270rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007271if $ac_preproc_ok; then :
7272
cristy3ed852e2009-09-05 21:47:34 +00007273else
cristy8b350f62009-11-15 23:12:43 +00007274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007276as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7277See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007278fi
7279
7280ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
cristy73bd4a52010-10-05 11:24:23 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7287$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007288if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007289 $as_echo_n "(cached) " >&6
7290else
7291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7292 for ac_i in 1 2 3 4 5 6 7; do
7293 ac_script="$ac_script$as_nl$ac_script"
7294 done
7295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7296 { ac_script=; unset ac_script;}
7297 if test -z "$SED"; then
7298 ac_path_SED_found=false
7299 # Loop through the user's path and test for each of PROGNAME-LIST
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_prog in sed gsed; do
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007308 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007309# Check for GNU ac_path_SED and select it if it is found.
7310 # Check for GNU $ac_path_SED
7311case `"$ac_path_SED" --version 2>&1` in
7312*GNU*)
7313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7314*)
7315 ac_count=0
7316 $as_echo_n 0123456789 >"conftest.in"
7317 while :
7318 do
7319 cat "conftest.in" "conftest.in" >"conftest.tmp"
7320 mv "conftest.tmp" "conftest.in"
7321 cp "conftest.in" "conftest.nl"
7322 $as_echo '' >> "conftest.nl"
7323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7325 as_fn_arith $ac_count + 1 && ac_count=$as_val
7326 if test $ac_count -gt ${ac_path_SED_max-0}; then
7327 # Best one so far, save it but keep looking for a better one
7328 ac_cv_path_SED="$ac_path_SED"
7329 ac_path_SED_max=$ac_count
7330 fi
7331 # 10*(2^10) chars as input seems more than enough
7332 test $ac_count -gt 10 && break
7333 done
7334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7335esac
7336
7337 $ac_path_SED_found && break 3
7338 done
7339 done
7340 done
7341IFS=$as_save_IFS
7342 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007344 fi
7345else
7346 ac_cv_path_SED=$SED
7347fi
7348
7349fi
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7351$as_echo "$ac_cv_path_SED" >&6; }
7352 SED="$ac_cv_path_SED"
7353 rm -f conftest.sed
7354
7355test -z "$SED" && SED=sed
7356Xsed="$SED -e 1s/^X//"
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7369$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007370if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007371 $as_echo_n "(cached) " >&6
7372else
7373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7374 then ac_cv_path_FGREP="$GREP -F"
7375 else
7376 if test -z "$FGREP"; then
7377 ac_path_FGREP_found=false
7378 # Loop through the user's path and test for each of PROGNAME-LIST
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_prog in fgrep; do
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007387 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007388# Check for GNU ac_path_FGREP and select it if it is found.
7389 # Check for GNU $ac_path_FGREP
7390case `"$ac_path_FGREP" --version 2>&1` in
7391*GNU*)
7392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7393*)
7394 ac_count=0
7395 $as_echo_n 0123456789 >"conftest.in"
7396 while :
7397 do
7398 cat "conftest.in" "conftest.in" >"conftest.tmp"
7399 mv "conftest.tmp" "conftest.in"
7400 cp "conftest.in" "conftest.nl"
7401 $as_echo 'FGREP' >> "conftest.nl"
7402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7404 as_fn_arith $ac_count + 1 && ac_count=$as_val
7405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7406 # Best one so far, save it but keep looking for a better one
7407 ac_cv_path_FGREP="$ac_path_FGREP"
7408 ac_path_FGREP_max=$ac_count
7409 fi
7410 # 10*(2^10) chars as input seems more than enough
7411 test $ac_count -gt 10 && break
7412 done
7413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7414esac
7415
7416 $ac_path_FGREP_found && break 3
7417 done
7418 done
7419 done
7420IFS=$as_save_IFS
7421 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007423 fi
7424else
7425 ac_cv_path_FGREP=$FGREP
7426fi
7427
7428 fi
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7431$as_echo "$ac_cv_path_FGREP" >&6; }
7432 FGREP="$ac_cv_path_FGREP"
7433
7434
7435test -z "$GREP" && GREP=grep
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
cristy0c60a692010-11-04 01:09:47 +00007453ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7454ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7455ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7456
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7458$as_echo_n "checking how to print strings... " >&6; }
7459# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007460if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007461 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7462 ECHO='print -r --'
7463elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7464 ECHO='printf %s\n'
7465else
7466 # Use this function as a fallback that always works.
7467 func_fallback_echo ()
7468 {
7469 eval 'cat <<_LTECHO_EOF
7470$1
7471_LTECHO_EOF'
7472 }
7473 ECHO='func_fallback_echo'
7474fi
7475
7476# func_echo_all arg...
7477# Invoke $ECHO with all args, space-separated.
7478func_echo_all ()
7479{
7480 $ECHO ""
7481}
7482
7483case "$ECHO" in
7484 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7485$as_echo "printf" >&6; } ;;
7486 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7487$as_echo "print -r" >&6; } ;;
7488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7489$as_echo "cat" >&6; } ;;
7490esac
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
cristy73bd4a52010-10-05 11:24:23 +00007505
7506
7507# Check whether --with-gnu-ld was given.
7508if test "${with_gnu_ld+set}" = set; then :
7509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7510else
7511 with_gnu_ld=no
7512fi
7513
7514ac_prog=ld
7515if test "$GCC" = yes; then
7516 # Check if gcc -print-prog-name=ld gives a path.
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7518$as_echo_n "checking for ld used by $CC... " >&6; }
7519 case $host in
7520 *-*-mingw*)
7521 # gcc leaves a trailing carriage return which upsets mingw
7522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7523 *)
7524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7525 esac
7526 case $ac_prog in
7527 # Accept absolute paths.
7528 [\\/]* | ?:[\\/]*)
7529 re_direlt='/[^/][^/]*/\.\./'
7530 # Canonicalize the pathname of ld
7531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7534 done
7535 test -z "$LD" && LD="$ac_prog"
7536 ;;
7537 "")
7538 # If it fails, then pretend we aren't using GCC.
7539 ac_prog=ld
7540 ;;
7541 *)
7542 # If it is relative, then search for the first ld in PATH.
7543 with_gnu_ld=unknown
7544 ;;
7545 esac
7546elif test "$with_gnu_ld" = yes; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7548$as_echo_n "checking for GNU ld... " >&6; }
7549else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7551$as_echo_n "checking for non-GNU ld... " >&6; }
7552fi
cristyda16f162011-02-19 23:52:17 +00007553if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007554 $as_echo_n "(cached) " >&6
7555else
7556 if test -z "$LD"; then
7557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7558 for ac_dir in $PATH; do
7559 IFS="$lt_save_ifs"
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7562 lt_cv_path_LD="$ac_dir/$ac_prog"
7563 # Check to see if the program is GNU ld. I'd rather use --version,
7564 # but apparently some variants of GNU ld only accept -v.
7565 # Break only if it was the GNU/non-GNU ld that we prefer.
7566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7567 *GNU* | *'with BFD'*)
7568 test "$with_gnu_ld" != no && break
7569 ;;
7570 *)
7571 test "$with_gnu_ld" != yes && break
7572 ;;
7573 esac
7574 fi
7575 done
7576 IFS="$lt_save_ifs"
7577else
7578 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7579fi
7580fi
7581
7582LD="$lt_cv_path_LD"
7583if test -n "$LD"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7585$as_echo "$LD" >&6; }
7586else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
cristy98dddb52010-11-04 00:30:15 +00007590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007593if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007594 $as_echo_n "(cached) " >&6
7595else
7596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7597case `$LD -v 2>&1 </dev/null` in
7598*GNU* | *'with BFD'*)
7599 lt_cv_prog_gnu_ld=yes
7600 ;;
7601*)
7602 lt_cv_prog_gnu_ld=no
7603 ;;
7604esac
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7608with_gnu_ld=$lt_cv_prog_gnu_ld
7609
7610
7611
7612
7613
7614
7615
7616
7617
cristy3ed852e2009-09-05 21:47:34 +00007618
cristy837d6dc2010-02-27 01:16:57 +00007619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7620$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007621if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007622 $as_echo_n "(cached) " >&6
7623else
7624 ac_cv_prog_cc_c99=no
7625ac_save_CC=$CC
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */
7628#include <stdarg.h>
7629#include <stdbool.h>
7630#include <stdlib.h>
7631#include <wchar.h>
7632#include <stdio.h>
7633
7634// Check varargs macros. These examples are taken from C99 6.10.3.5.
7635#define debug(...) fprintf (stderr, __VA_ARGS__)
7636#define showlist(...) puts (#__VA_ARGS__)
7637#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7638static void
7639test_varargs_macros (void)
7640{
7641 int x = 1234;
7642 int y = 5678;
7643 debug ("Flag");
7644 debug ("X = %d\n", x);
7645 showlist (The first, second, and third items.);
7646 report (x>y, "x is %d but y is %d", x, y);
7647}
7648
7649// Check long long types.
7650#define BIG64 18446744073709551615ull
7651#define BIG32 4294967295ul
7652#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7653#if !BIG_OK
7654 your preprocessor is broken;
7655#endif
7656#if BIG_OK
7657#else
7658 your preprocessor is broken;
7659#endif
7660static long long int bignum = -9223372036854775807LL;
7661static unsigned long long int ubignum = BIG64;
7662
7663struct incomplete_array
7664{
7665 int datasize;
7666 double data[];
7667};
7668
7669struct named_init {
7670 int number;
7671 const wchar_t *name;
7672 double average;
7673};
7674
7675typedef const char *ccp;
7676
7677static inline int
7678test_restrict (ccp restrict text)
7679{
7680 // See if C++-style comments work.
7681 // Iterate through items via the restricted pointer.
7682 // Also check for declarations in for loops.
7683 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7684 continue;
7685 return 0;
7686}
7687
7688// Check varargs and va_copy.
7689static void
7690test_varargs (const char *format, ...)
7691{
7692 va_list args;
7693 va_start (args, format);
7694 va_list args_copy;
7695 va_copy (args_copy, args);
7696
7697 const char *str;
7698 int number;
7699 float fnumber;
7700
7701 while (*format)
7702 {
7703 switch (*format++)
7704 {
7705 case 's': // string
7706 str = va_arg (args_copy, const char *);
7707 break;
7708 case 'd': // int
7709 number = va_arg (args_copy, int);
7710 break;
7711 case 'f': // float
7712 fnumber = va_arg (args_copy, double);
7713 break;
7714 default:
7715 break;
7716 }
7717 }
7718 va_end (args_copy);
7719 va_end (args);
7720}
7721
7722int
7723main ()
7724{
7725
7726 // Check bool.
7727 _Bool success = false;
7728
7729 // Check restrict.
7730 if (test_restrict ("String literal") == 0)
7731 success = true;
7732 char *restrict newvar = "Another string";
7733
7734 // Check varargs.
7735 test_varargs ("s, d' f .", "string", 65, 34.234);
7736 test_varargs_macros ();
7737
7738 // Check flexible array members.
7739 struct incomplete_array *ia =
7740 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7741 ia->datasize = 10;
7742 for (int i = 0; i < ia->datasize; ++i)
7743 ia->data[i] = i * 1.234;
7744
7745 // Check named initializers.
7746 struct named_init ni = {
7747 .number = 34,
7748 .name = L"Test wide string",
7749 .average = 543.34343,
7750 };
7751
7752 ni.number = 58;
7753
7754 int dynamic_array[ni.number];
7755 dynamic_array[ni.number - 1] = 543;
7756
7757 // work around unused variable warnings
7758 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7759 || dynamic_array[ni.number - 1] != 543);
7760
7761 ;
7762 return 0;
7763}
7764_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007765for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007766do
7767 CC="$ac_save_CC $ac_arg"
7768 if ac_fn_c_try_compile "$LINENO"; then :
7769 ac_cv_prog_cc_c99=$ac_arg
7770fi
7771rm -f core conftest.err conftest.$ac_objext
7772 test "x$ac_cv_prog_cc_c99" != "xno" && break
7773done
7774rm -f conftest.$ac_ext
7775CC=$ac_save_CC
7776
7777fi
7778# AC_CACHE_VAL
7779case "x$ac_cv_prog_cc_c99" in
7780 x)
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7782$as_echo "none needed" >&6; } ;;
7783 xno)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7785$as_echo "unsupported" >&6; } ;;
7786 *)
7787 CC="$CC $ac_cv_prog_cc_c99"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7789$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7790esac
7791if test "x$ac_cv_prog_cc_c99" != xno; then :
7792
7793fi
7794
7795
cristy73bd4a52010-10-05 11:24:23 +00007796if test "x$CC" != xcc; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7798$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7801$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7802fi
7803set dummy $CC; ac_cc=`$as_echo "$2" |
7804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007805if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007806 $as_echo_n "(cached) " >&6
7807else
cristy73bd4a52010-10-05 11:24:23 +00007808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h. */
7810
7811int
7812main ()
7813{
7814
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819# Make sure it works both with $CC and with simple cc.
7820# We do the test twice because some compilers refuse to overwrite an
7821# existing .o file with -o, though they will create one.
7822ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7823rm -f conftest2.*
7824if { { case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827esac
7828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7829$as_echo "$ac_try_echo"; } >&5
7830 (eval "$ac_try") 2>&5
7831 ac_status=$?
7832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833 test $ac_status = 0; } &&
7834 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; };
7844then
7845 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7846 if test "x$CC" != xcc; then
7847 # Test first that cc exists at all.
7848 if { ac_try='cc -c conftest.$ac_ext >&5'
7849 { { case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7854$as_echo "$ac_try_echo"; } >&5
7855 (eval "$ac_try") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; }; then
7859 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7860 rm -f conftest2.*
7861 if { { case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7866$as_echo "$ac_try_echo"; } >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; } &&
7871 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7876$as_echo "$ac_try_echo"; } >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; };
7881 then
7882 # cc works too.
7883 :
7884 else
7885 # cc exists but doesn't like -o.
7886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7887 fi
7888 fi
7889 fi
7890else
7891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7892fi
7893rm -f core conftest*
7894
7895fi
7896if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898$as_echo "yes" >&6; }
7899else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902
7903$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7904
7905fi
7906
7907# FIXME: we rely on the cache variable name because
7908# there is no other way.
7909set dummy $CC
7910am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7911eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7912if test "$am_t" != yes; then
7913 # Losing compiler, so override with the script.
7914 # FIXME: It is wrong to rewrite CC.
7915 # But if we don't then we get into trouble of one sort or another.
7916 # A longer-term fix would be to have automake use am__CC in this case,
7917 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7918 CC="$am_aux_dir/compile $CC"
7919fi
7920
7921
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7923$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007924if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007925 $as_echo_n "(cached) " >&6
7926else
7927 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007928 ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934 ac_save_CFLAGS="$CFLAGS"
7935for 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" #
7936do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h. */
7939
7940int
7941main ()
7942{
cristy24fc1fe2010-10-23 21:13:01 +00007943
cristy73bd4a52010-10-05 11:24:23 +00007944 ;
7945 return 0;
7946}
7947_ACEOF
7948if ac_fn_c_try_compile "$LINENO"; then :
7949 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952done
7953 CFLAGS="$ac_save_CFLAGS"
7954 ac_ext=c
7955ac_cpp='$CPP $CPPFLAGS'
7956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7963$as_echo "$ac_cv_cflags_warn_all" >&6; }
7964case ".$ac_cv_cflags_warn_all" in
7965 .ok|.ok,*) ;;
7966 .|.no|.no,*)
7967 ;;
7968 *)
7969 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7970 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7971 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7972 ac_status=$?
7973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7974 test $ac_status = 0; }
7975 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7976 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7977 ac_status=$?
7978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7979 test $ac_status = 0; }
7980 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7981 fi
7982 ;;
nicolas6237c462010-10-05 06:11:49 +00007983esac
cristy3ed852e2009-09-05 21:47:34 +00007984
cristy568c2d42012-07-27 01:41:20 +00007985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7986$as_echo_n "checking for C compiler vendor... " >&6; }
7987if ${ax_cv_c_compiler_vendor+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 # note: don't check for gcc first since some other compilers define __GNUC__
7991 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7992 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7993 pathscale: __PATHCC__,__PATHSCALE__
7994 clang: __clang__
7995 gnu: __GNUC__
7996 sun: __SUNPRO_C,__SUNPRO_CC
7997 hp: __HP_cc,__HP_aCC
7998 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7999 borland: __BORLANDC__,__TURBOC__
8000 comeau: __COMO__
8001 cray: _CRAYC
8002 kai: __KCC
8003 lcc: __LCC__
8004 sgi: __sgi,sgi
8005 microsoft: _MSC_VER
8006 metrowerks: __MWERKS__
8007 watcom: __WATCOMC__
8008 portland: __PGI
8009 unknown: UNKNOWN"
8010 for ventest in $vendors; do
8011 case $ventest in
8012 *:) vendor=$ventest; continue ;;
8013 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8014 esac
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h. */
8017
8018int
8019main ()
8020{
8021
8022 #if !($vencpp)
8023 thisisanerror;
8024 #endif
8025
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031 break
8032fi
8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 done
8035 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8036
8037fi
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8039$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8040
cristya0b81c32010-01-22 02:54:33 +00008041
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8044set x ${MAKE-make}
8045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008047 $as_echo_n "(cached) " >&6
8048else
8049 cat >conftest.make <<\_ACEOF
8050SHELL = /bin/sh
8051all:
8052 @echo '@@@%%%=$(MAKE)=@@@%%%'
8053_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008055case `${MAKE-make} -f conftest.make 2>/dev/null` in
8056 *@@@%%%=?*=@@@%%%*)
8057 eval ac_cv_prog_make_${ac_make}_set=yes;;
8058 *)
8059 eval ac_cv_prog_make_${ac_make}_set=no;;
8060esac
8061rm -f conftest.make
8062fi
8063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065$as_echo "yes" >&6; }
8066 SET_MAKE=
8067else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070 SET_MAKE="MAKE=${MAKE-make}"
8071fi
8072
cristy8b350f62009-11-15 23:12:43 +00008073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008074$as_echo_n "checking whether ln -s works... " >&6; }
8075LN_S=$as_ln_s
8076if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008078$as_echo "yes" >&6; }
8079else
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "no, using $LN_S" >&6; }
8082fi
8083
cristy73bd4a52010-10-05 11:24:23 +00008084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8085$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8086
8087# Check whether --with-dmalloc was given.
8088if test "${with_dmalloc+set}" = set; then :
8089 withval=$with_dmalloc; if test "$withval" = yes; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8091$as_echo "yes" >&6; }
8092
8093$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8094
8095 LIBS="$LIBS -ldmalloc"
8096 LDFLAGS="$LDFLAGS -g"
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8109$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008110if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008111 $as_echo_n "(cached) " >&6
8112else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h. */
8115#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008116 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008117 static void
8118 foo(void) {
8119 exit(1);
8120 }
8121
8122int
8123main ()
8124{
8125
8126 ;
8127 return 0;
8128}
8129_ACEOF
8130if ac_fn_c_try_compile "$LINENO"; then :
8131 ax_cv___attribute__=yes
8132else
8133 ax_cv___attribute__=no
8134
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8140$as_echo "$ax_cv___attribute__" >&6; }
8141 if test "$ax_cv___attribute__" = "yes"; then
8142
8143$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8144
8145 fi
8146
8147
8148
cristy37110d62012-03-01 18:38:20 +00008149
8150
8151# Check whether --with-gcc-arch was given.
8152if test "${with_gcc_arch+set}" = set; then :
8153 withval=$with_gcc_arch; ax_gcc_arch=$withval
8154else
cristya32d1812012-03-02 19:24:21 +00008155 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008156fi
8157
8158
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8160$as_echo_n "checking for gcc architecture flag... " >&6; }
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8162$as_echo "" >&6; }
8163if ${ax_cv_gcc_archflag+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165else
8166
8167ax_cv_gcc_archflag="unknown"
8168
8169if test "$GCC" = yes; then
8170
8171if test "x$ax_gcc_arch" = xyes; then
8172ax_gcc_arch=""
8173if test "$cross_compiling" = no; then
8174case $host_cpu in
8175 i[3456]86*|x86_64*) # use cpuid codes
8176
8177ac_ext=c
8178ac_cpp='$CPP $CPPFLAGS'
8179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8184$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8185if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187else
8188 if test "$cross_compiling" = yes; then :
8189 ax_cv_gcc_x86_cpuid_0=unknown
8190else
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h. */
8193#include <stdio.h>
8194int
8195main ()
8196{
8197
8198 int op = 0, eax, ebx, ecx, edx;
8199 FILE *f;
8200 __asm__("cpuid"
8201 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8202 : "a" (op));
8203 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8204 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8205 fclose(f);
8206 return 0;
8207
8208 ;
8209 return 0;
8210}
8211_ACEOF
8212if ac_fn_c_try_run "$LINENO"; then :
8213 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8214else
8215 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8216fi
8217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8218 conftest.$ac_objext conftest.beam conftest.$ac_ext
8219fi
8220
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8223$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8224ac_ext=c
8225ac_cpp='$CPP $CPPFLAGS'
8226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230
8231
8232ac_ext=c
8233ac_cpp='$CPP $CPPFLAGS'
8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8239$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8240if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242else
8243 if test "$cross_compiling" = yes; then :
8244 ax_cv_gcc_x86_cpuid_1=unknown
8245else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248#include <stdio.h>
8249int
8250main ()
8251{
8252
8253 int op = 1, eax, ebx, ecx, edx;
8254 FILE *f;
8255 __asm__("cpuid"
8256 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8257 : "a" (op));
8258 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8259 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8260 fclose(f);
8261 return 0;
8262
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_run "$LINENO"; then :
8268 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8269else
8270 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8271fi
8272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8273 conftest.$ac_objext conftest.beam conftest.$ac_ext
8274fi
8275
8276fi
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8278$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8279ac_ext=c
8280ac_cpp='$CPP $CPPFLAGS'
8281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8283ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284
8285
8286 case $ax_cv_gcc_x86_cpuid_0 in
8287 *:756e6547:*:*) # Intel
8288 case $ax_cv_gcc_x86_cpuid_1 in
8289 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8290 *5??:*:*:*) ax_gcc_arch=pentium ;;
8291 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8292 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8293 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8294 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8295 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8296 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8297 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8298 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8299 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8300 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8301 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8302 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8303 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8304 case $host_cpu in
8305 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8306 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8307 esac ;;
8308 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8309 esac ;;
8310 *:68747541:*:*) # AMD
8311 case $ax_cv_gcc_x86_cpuid_1 in
8312 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8313 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8314 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8315 *60?:*:*:*) ax_gcc_arch=k7 ;;
8316 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8317 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8318 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8319 *6[68a]?:*:*:*)
8320
8321ac_ext=c
8322ac_cpp='$CPP $CPPFLAGS'
8323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8328$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8329if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331else
8332 if test "$cross_compiling" = yes; then :
8333 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8334else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h. */
8337#include <stdio.h>
8338int
8339main ()
8340{
8341
8342 int op = 0x80000006, eax, ebx, ecx, edx;
8343 FILE *f;
8344 __asm__("cpuid"
8345 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8346 : "a" (op));
8347 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8348 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8349 fclose(f);
8350 return 0;
8351
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_run "$LINENO"; then :
8357 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8358else
8359 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8360fi
8361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8362 conftest.$ac_objext conftest.beam conftest.$ac_ext
8363fi
8364
8365fi
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8367$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8368ac_ext=c
8369ac_cpp='$CPP $CPPFLAGS'
8370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372ac_compiler_gnu=$ac_cv_c_compiler_gnu
8373
8374 # L2 cache size
8375 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8376 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8377 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8378 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8379 esac ;;
8380 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8381 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8382 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8383 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8384 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8385 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8386 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8387 esac ;;
8388 *:746e6543:*:*) # IDT
8389 case $ax_cv_gcc_x86_cpuid_1 in
8390 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8391 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8392 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8393 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8394 esac ;;
8395 esac
8396 if test x"$ax_gcc_arch" = x; then # fallback
8397 case $host_cpu in
8398 i586*) ax_gcc_arch=pentium ;;
8399 i686*) ax_gcc_arch=pentiumpro ;;
8400 esac
8401 fi
8402 ;;
8403
8404 sparc*)
8405 # Extract the first word of "prtdiag", so it can be a program name with args.
8406set dummy prtdiag; ac_word=$2
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if ${ac_cv_path_PRTDIAG+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411else
8412 case $PRTDIAG in
8413 [\\/]* | ?:[\\/]*)
8414 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8415 ;;
8416 *)
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8419for as_dir in $as_dummy
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008425 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429done
8430 done
8431IFS=$as_save_IFS
8432
8433 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8434 ;;
8435esac
8436fi
8437PRTDIAG=$ac_cv_path_PRTDIAG
8438if test -n "$PRTDIAG"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8440$as_echo "$PRTDIAG" >&6; }
8441else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445
8446
8447 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`
8448 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8449 case $cputype in
8450 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8451 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8452 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8453 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8454 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8455 *cypress*) ax_gcc_arch=cypress ;;
8456 esac ;;
8457
8458 alphaev5) ax_gcc_arch=ev5 ;;
8459 alphaev56) ax_gcc_arch=ev56 ;;
8460 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8461 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8462 alphaev6) ax_gcc_arch=ev6 ;;
8463 alphaev67) ax_gcc_arch=ev67 ;;
8464 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8465 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8466 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8467 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8468
8469 powerpc*)
8470 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`
8471 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8472 case $cputype in
8473 *750*) ax_gcc_arch="750 G3" ;;
8474 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8475 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8476 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8477 *970*) ax_gcc_arch="970 G5 power4";;
8478 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8479 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8480 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8481 *) ax_gcc_arch=$cputype ;;
8482 esac
8483 ax_gcc_arch="$ax_gcc_arch powerpc"
8484 ;;
8485esac
8486fi # not cross-compiling
8487fi # guess arch
8488
8489if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8490for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008491 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008492 flags="-mtune=$arch"
8493 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8494 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8495 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8496 else
8497 flags="-march=$arch -mcpu=$arch -m$arch"
8498 fi
8499 for flag in $flags; do
8500 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8502$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8503if eval \${$as_CACHEVAR+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505else
8506
8507 ax_check_save_flags=$CFLAGS
8508 CFLAGS="$CFLAGS $flag"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h. */
8511
8512int
8513main ()
8514{
8515
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_compile "$LINENO"; then :
8521 eval "$as_CACHEVAR=yes"
8522else
8523 eval "$as_CACHEVAR=no"
8524fi
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 CFLAGS=$ax_check_save_flags
8527fi
8528eval ac_res=\$$as_CACHEVAR
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8530$as_echo "$ac_res" >&6; }
8531if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8532 ax_cv_gcc_archflag=$flag; break
8533else
8534 :
8535fi
8536
8537 done
8538 test "x$ax_cv_gcc_archflag" = xunknown || break
8539done
8540fi
8541
8542fi # $GCC=yes
8543
8544fi
8545
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8547$as_echo_n "checking for gcc architecture flag... " >&6; }
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8549$as_echo "$ax_cv_gcc_archflag" >&6; }
8550if test "x$ax_cv_gcc_archflag" = xunknown; then
8551 :
8552else
8553 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8554fi
8555
8556
8557
cristy73bd4a52010-10-05 11:24:23 +00008558if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8559 if test -n "$ac_tool_prefix"; then
8560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8561set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008564if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008565 $as_echo_n "(cached) " >&6
8566else
8567 case $PKG_CONFIG in
8568 [\\/]* | ?:[\\/]*)
8569 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8570 ;;
8571 *)
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573for as_dir in $PATH
8574do
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008579 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8582 fi
8583done
8584 done
8585IFS=$as_save_IFS
8586
8587 ;;
8588esac
8589fi
8590PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8591if test -n "$PKG_CONFIG"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8593$as_echo "$PKG_CONFIG" >&6; }
8594else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598
8599
8600fi
8601if test -z "$ac_cv_path_PKG_CONFIG"; then
8602 ac_pt_PKG_CONFIG=$PKG_CONFIG
8603 # Extract the first word of "pkg-config", so it can be a program name with args.
8604set dummy pkg-config; ac_word=$2
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008607if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008608 $as_echo_n "(cached) " >&6
8609else
8610 case $ac_pt_PKG_CONFIG in
8611 [\\/]* | ?:[\\/]*)
8612 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8613 ;;
8614 *)
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008622 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626done
8627 done
8628IFS=$as_save_IFS
8629
8630 ;;
8631esac
8632fi
8633ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8634if test -n "$ac_pt_PKG_CONFIG"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8636$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8637else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641
8642 if test "x$ac_pt_PKG_CONFIG" = x; then
8643 PKG_CONFIG=""
8644 else
8645 case $cross_compiling:$ac_tool_warned in
8646yes:)
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8649ac_tool_warned=yes ;;
8650esac
8651 PKG_CONFIG=$ac_pt_PKG_CONFIG
8652 fi
8653else
8654 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8655fi
8656
8657fi
8658if test -n "$PKG_CONFIG"; then
8659 _pkg_min_version=0.9.0
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8661$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8662 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8664$as_echo "yes" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
8668 PKG_CONFIG=""
8669 fi
8670
8671fi
cristy3ed852e2009-09-05 21:47:34 +00008672
8673#
cristy3ed852e2009-09-05 21:47:34 +00008674# Enable run-time checking.
8675#
8676# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008677if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008678 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8679else
8680 enable_bounds_checking='no'
8681fi
8682
8683
8684if test "$enable_bounds_checking" = yes; then
8685
cristy8b350f62009-11-15 23:12:43 +00008686$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008687
8688fi
8689
8690#
8691# Tests for Windows
8692#
8693
8694
8695
8696GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008697native_win32_build='no'
8698cygwin_build='no'
8699case "${host_os}" in
8700 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008701 cygwin_build='yes'
8702 GDI32_LIBS='-lgdi32'
8703 ;;
8704 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008705 native_win32_build='yes'
8706 GDI32_LIBS='-lgdi32'
8707 ;;
8708esac
8709if test "${GDI32_LIBS}x" != 'x'; then
8710
cristy8b350f62009-11-15 23:12:43 +00008711$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008712
8713fi
8714
cristy73bd4a52010-10-05 11:24:23 +00008715 if test "${GDI32_LIBS}x" != 'x' ; then
8716 WINGDI32_DELEGATE_TRUE=
8717 WINGDI32_DELEGATE_FALSE='#'
8718else
8719 WINGDI32_DELEGATE_TRUE='#'
8720 WINGDI32_DELEGATE_FALSE=
8721fi
8722
8723 if test "${native_win32_build}" = 'yes' ; then
8724 WIN32_NATIVE_BUILD_TRUE=
8725 WIN32_NATIVE_BUILD_FALSE='#'
8726else
8727 WIN32_NATIVE_BUILD_TRUE='#'
8728 WIN32_NATIVE_BUILD_FALSE=
8729fi
8730
8731 if test "${cygwin_build}" = 'yes' ; then
8732 CYGWIN_BUILD_TRUE=
8733 CYGWIN_BUILD_FALSE='#'
8734else
8735 CYGWIN_BUILD_TRUE='#'
8736 CYGWIN_BUILD_FALSE=
8737fi
8738
8739 if test "x${CC}" = 'xcl.exe' ; then
8740 USING_CL_TRUE=
8741 USING_CL_FALSE='#'
8742else
8743 USING_CL_TRUE='#'
8744 USING_CL_FALSE=
8745fi
8746
cristy3ed852e2009-09-05 21:47:34 +00008747
8748WinPathScript="${srcdirfull}/winpath.sh"
8749
8750
8751#
8752# Compiler flags tweaks
8753#
8754if test "${GCC}" != "yes"; then
8755 case "${host}" in
8756 *-*-hpux* )
8757 # aCC: HP ANSI C++ B3910B A.03.34
8758 CFLAGS="${CFLAGS} -Wp,-H30000"
8759 if test -n "${CXXFLAGS}"; then
8760 CXXFLAGS='-AA'
8761 else
8762 CXXFLAGS="${CXXFLAGS} -AA"
8763 fi
8764 ;;
8765 *-dec-osf5.* )
8766 # Compaq alphaev68-dec-osf5.1 compiler
8767 if test -n "${CXXFLAGS}"; then
8768 CXXFLAGS='-std strict_ansi -noimplicit_include'
8769 else
8770 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8771 fi
8772 esac
8773fi
8774
8775# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008777$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008778if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008779 $as_echo_n "(cached) " >&6
8780else
8781
8782im_cv_ld_lazyload='none'
8783case "${host}" in
8784 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8785 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8786 im_cv_ld_lazyload='-Wl,-zlazyload'
8787 fi
8788 ;;
8789esac
8790
8791fi
cristy8b350f62009-11-15 23:12:43 +00008792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008793$as_echo "$im_cv_ld_lazyload" >&6; }
8794if test "${im_cv_ld_lazyload}" != 'none' ; then
8795 if test -z "${LDFLAGS}" ; then
8796 LDFLAGS="${im_cv_ld_lazyload}"
8797 else
8798 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8799 fi
8800fi
8801
8802case "$host" in
8803*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008804 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008805if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008806 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8807else
8808 build_osxuniversal=no
8809fi
8810
8811
8812 if test "${build_osxuniversal}" != no ; then
8813 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008814 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008815Please re-run configure with these options:
8816 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008817 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008818 fi
8819 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8820 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8821 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8822 fi
8823 ;;
8824esac
8825
cristy0151ae12011-10-28 16:32:29 +00008826#
8827# ARCH specific include directory
8828#
8829
cristy670aa3c2011-11-03 00:54:00 +00008830# Check whether --with-includearch-dir was given.
8831if test "${with_includearch_dir+set}" = set; then :
8832 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008833else
cristy670aa3c2011-11-03 00:54:00 +00008834 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008835fi
8836
8837
cristy670aa3c2011-11-03 00:54:00 +00008838eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008839
cristy0151ae12011-10-28 16:32:29 +00008840
8841#
8842# ARCH specific configuration directory
8843#
8844
cristy670aa3c2011-11-03 00:54:00 +00008845# Check whether --with-sharearch-dir was given.
8846if test "${with_sharearch_dir+set}" = set; then :
8847 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008848else
cristy408ebcd2011-11-14 01:36:57 +00008849 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008850fi
8851
8852
cristy670aa3c2011-11-03 00:54:00 +00008853eval "eval SHAREARCH_DIR=$sharearch_dir"
8854SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008855
cristy0151ae12011-10-28 16:32:29 +00008856
8857#
cristy3ed852e2009-09-05 21:47:34 +00008858# Enable support for threads
8859
8860# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008861if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008862 withval=$with_threads; with_threads=$withval
8863else
8864 with_threads='yes'
8865fi
8866
8867
8868have_threads=no
8869if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008870
8871
cristy73bd4a52010-10-05 11:24:23 +00008872ac_ext=c
8873ac_cpp='$CPP $CPPFLAGS'
8874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8876ac_compiler_gnu=$ac_cv_c_compiler_gnu
8877
8878ax_pthread_ok=no
8879
8880# We used to check for pthread.h first, but this fails if pthread.h
8881# requires special compiler flags (e.g. on True64 or Sequent).
8882# It gets checked for in the link test anyway.
8883
8884# First of all, check if the user has set any of the PTHREAD_LIBS,
8885# etcetera environment variables, and if threads linking works using
8886# them:
8887if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8888 save_CFLAGS="$CFLAGS"
8889 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8890 save_LIBS="$LIBS"
8891 LIBS="$PTHREAD_LIBS $LIBS"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8893$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h. */
8896
8897/* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8900#ifdef __cplusplus
8901extern "C"
8902#endif
8903char pthread_join ();
8904int
8905main ()
8906{
8907return pthread_join ();
8908 ;
8909 return 0;
8910}
8911_ACEOF
8912if ac_fn_c_try_link "$LINENO"; then :
8913 ax_pthread_ok=yes
8914fi
8915rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8918$as_echo "$ax_pthread_ok" >&6; }
8919 if test x"$ax_pthread_ok" = xno; then
8920 PTHREAD_LIBS=""
8921 PTHREAD_CFLAGS=""
8922 fi
8923 LIBS="$save_LIBS"
8924 CFLAGS="$save_CFLAGS"
8925fi
8926
8927# We must check for the threads library under a number of different
8928# names; the ordering is very important because some systems
8929# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8930# libraries is broken (non-POSIX).
8931
8932# Create a list of thread flags to try. Items starting with a "-" are
8933# C compiler flags, and other items are library names, except for "none"
8934# which indicates that we try without any flags at all, and "pthread-config"
8935# which is a program returning the flags for the Pth emulation library.
8936
cristy18307f12011-12-30 01:20:16 +00008937ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008938
8939# The ordering *is* (sometimes) important. Some notes on the
8940# individual items follow:
8941
8942# pthreads: AIX (must check this before -lpthread)
8943# none: in case threads are in libc; should be tried before -Kthread and
8944# other compiler flags to prevent continual compiler warnings
8945# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8946# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8947# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8948# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8949# -pthreads: Solaris/gcc
8950# -mthreads: Mingw32/gcc, Lynx/gcc
8951# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8952# doesn't hurt to check since this sometimes defines pthreads too;
8953# also defines -D_REENTRANT)
8954# ... -mt is also the pthreads flag for HP/aCC
8955# pthread: Linux, etcetera
8956# --thread-safe: KAI C++
8957# pthread-config: use pthread-config program (for GNU Pth library)
8958
8959case "${host_cpu}-${host_os}" in
8960 *solaris*)
8961
8962 # On Solaris (at least, for some versions), libc contains stubbed
8963 # (non-functional) versions of the pthreads routines, so link-based
8964 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8965 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8966 # a function called by this macro, so we could check for that, but
8967 # who knows whether they'll stub that too in a future libc.) So,
8968 # we'll just look for -pthreads and -lpthread first:
8969
8970 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8971 ;;
8972
cristya316db12011-10-24 00:49:45 +00008973 *-darwin*)
8974 ax_pthread_flags="-pthread $ax_pthread_flags"
8975 ;;
cristy73bd4a52010-10-05 11:24:23 +00008976esac
8977
8978if test x"$ax_pthread_ok" = xno; then
8979for flag in $ax_pthread_flags; do
8980
8981 case $flag in
8982 none)
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8984$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8985 ;;
8986
8987 -*)
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8989$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8990 PTHREAD_CFLAGS="$flag"
8991 ;;
8992
cristya316db12011-10-24 00:49:45 +00008993 pthread-config)
8994 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008995set dummy pthread-config; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008998if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008999 $as_echo_n "(cached) " >&6
9000else
9001 if test -n "$ax_pthread_config"; then
9002 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009011 ac_cv_prog_ax_pthread_config="yes"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015done
9016 done
9017IFS=$as_save_IFS
9018
9019 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9020fi
9021fi
9022ax_pthread_config=$ac_cv_prog_ax_pthread_config
9023if test -n "$ax_pthread_config"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9025$as_echo "$ax_pthread_config" >&6; }
9026else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028$as_echo "no" >&6; }
9029fi
9030
9031
cristya316db12011-10-24 00:49:45 +00009032 if test x"$ax_pthread_config" = xno; then continue; fi
9033 PTHREAD_CFLAGS="`pthread-config --cflags`"
9034 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9035 ;;
cristy73bd4a52010-10-05 11:24:23 +00009036
9037 *)
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9039$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9040 PTHREAD_LIBS="-l$flag"
9041 ;;
9042 esac
9043
9044 save_LIBS="$LIBS"
9045 save_CFLAGS="$CFLAGS"
9046 LIBS="$PTHREAD_LIBS $LIBS"
9047 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9048
9049 # Check for various functions. We must include pthread.h,
9050 # since some functions may be macros. (On the Sequent, we
9051 # need a special flag -Kthread to make this header compile.)
9052 # We check for pthread_join because it is in -lpthread on IRIX
9053 # while pthread_create is in libc. We check for pthread_attr_init
9054 # due to DEC craziness with -lpthreads. We check for
9055 # pthread_cleanup_push because it is one of the few pthread
9056 # functions on Solaris that doesn't have a non-functional libc stub.
9057 # We try pthread_create on general principles.
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h. */
9060#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009061 static void routine(void *a) { a = 0; }
9062 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009063int
9064main ()
9065{
9066pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009067 pthread_create(&th, 0, start_routine, 0);
9068 pthread_join(th, 0);
9069 pthread_attr_init(&attr);
9070 pthread_cleanup_push(routine, 0);
9071 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009072 ;
9073 return 0;
9074}
9075_ACEOF
9076if ac_fn_c_try_link "$LINENO"; then :
9077 ax_pthread_ok=yes
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081
9082 LIBS="$save_LIBS"
9083 CFLAGS="$save_CFLAGS"
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9086$as_echo "$ax_pthread_ok" >&6; }
9087 if test "x$ax_pthread_ok" = xyes; then
9088 break;
9089 fi
9090
9091 PTHREAD_LIBS=""
9092 PTHREAD_CFLAGS=""
9093done
9094fi
9095
9096# Various other checks:
9097if test "x$ax_pthread_ok" = xyes; then
9098 save_LIBS="$LIBS"
9099 LIBS="$PTHREAD_LIBS $LIBS"
9100 save_CFLAGS="$CFLAGS"
9101 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9102
9103 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009105$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009106 attr_name=unknown
9107 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009109/* end confdefs.h. */
9110#include <pthread.h>
9111int
9112main ()
9113{
cristya316db12011-10-24 00:49:45 +00009114int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009115 ;
9116 return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120 attr_name=$attr; break
9121fi
9122rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009124 done
cristy73bd4a52010-10-05 11:24:23 +00009125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9126$as_echo "$attr_name" >&6; }
9127 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9128
9129cat >>confdefs.h <<_ACEOF
9130#define PTHREAD_CREATE_JOINABLE $attr_name
9131_ACEOF
9132
9133 fi
9134
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9136$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9137 flag=no
9138 case "${host_cpu}-${host_os}" in
9139 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9140 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9141 esac
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9143$as_echo "${flag}" >&6; }
9144 if test "x$flag" != xno; then
9145 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9146 fi
9147
cristya316db12011-10-24 00:49:45 +00009148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9149$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9150if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152else
9153
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h. */
9156
9157 #include <pthread.h>
9158int
9159main ()
9160{
9161int i = PTHREAD_PRIO_INHERIT;
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_link "$LINENO"; then :
9167 ax_cv_PTHREAD_PRIO_INHERIT=yes
9168else
9169 ax_cv_PTHREAD_PRIO_INHERIT=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9176$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9177 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9178
9179$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9180
9181fi
9182
cristy73bd4a52010-10-05 11:24:23 +00009183 LIBS="$save_LIBS"
9184 CFLAGS="$save_CFLAGS"
9185
9186 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009187 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009188 for ac_prog in xlc_r cc_r
9189do
9190 # Extract the first word of "$ac_prog", so it can be a program name with args.
9191set dummy $ac_prog; ac_word=$2
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009194if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009195 $as_echo_n "(cached) " >&6
9196else
9197 if test -n "$PTHREAD_CC"; then
9198 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9199else
9200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009207 ac_cv_prog_PTHREAD_CC="$ac_prog"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211done
9212 done
9213IFS=$as_save_IFS
9214
9215fi
9216fi
9217PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9218if test -n "$PTHREAD_CC"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9220$as_echo "$PTHREAD_CC" >&6; }
9221else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
9224fi
9225
9226
9227 test -n "$PTHREAD_CC" && break
9228done
9229test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9230
9231 else
9232 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009233 fi
cristy73bd4a52010-10-05 11:24:23 +00009234else
9235 PTHREAD_CC="$CC"
9236fi
9237
9238
9239
9240
9241
9242# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9243if test x"$ax_pthread_ok" = xyes; then
9244
9245$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9246
9247 :
9248else
9249 ax_pthread_ok=no
9250
9251fi
9252ac_ext=c
9253ac_cpp='$CPP $CPPFLAGS'
9254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9256ac_compiler_gnu=$ac_cv_c_compiler_gnu
9257
9258
cristy7acf8fb2010-09-23 19:58:53 +00009259 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009260 have_threads=yes
9261 DEF_THREAD="$PTHREAD_CFLAGS"
9262 CFLAGS="$CFLAGS $DEF_THREAD"
9263 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9264 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009265 { $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 +00009266$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9267 CC="$PTHREAD_CC"
9268 fi
cristy55bf91c2010-09-24 00:29:41 +00009269
9270$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9271
cristy3ed852e2009-09-05 21:47:34 +00009272 fi
9273fi
9274
9275# Enable support for OpenMP
9276if test "$have_threads" != 'yes'; then
9277 ac_cv_prog_c_openmp=unsupported
9278fi
9279
9280 OPENMP_CFLAGS=
9281 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009282if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009283 enableval=$enable_openmp;
9284fi
9285
9286 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009288$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009289if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009290 $as_echo_n "(cached) " >&6
9291else
cristy8b350f62009-11-15 23:12:43 +00009292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009294
9295#ifndef _OPENMP
9296 choke me
9297#endif
9298#include <omp.h>
9299int main () { return omp_get_num_threads (); }
9300
9301_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009303 ac_cv_prog_c_openmp='none needed'
9304else
cristy8b350f62009-11-15 23:12:43 +00009305 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009306 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9307 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009308 ac_save_CFLAGS=$CFLAGS
9309 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009312
9313#ifndef _OPENMP
9314 choke me
9315#endif
9316#include <omp.h>
9317int main () { return omp_get_num_threads (); }
9318
9319_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009321 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009322fi
cristy8b350f62009-11-15 23:12:43 +00009323rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009325 CFLAGS=$ac_save_CFLAGS
9326 if test "$ac_cv_prog_c_openmp" != unsupported; then
9327 break
9328 fi
9329 done
9330fi
cristy8b350f62009-11-15 23:12:43 +00009331rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009333fi
cristy8b350f62009-11-15 23:12:43 +00009334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009335$as_echo "$ac_cv_prog_c_openmp" >&6; }
9336 case $ac_cv_prog_c_openmp in #(
9337 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009338 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009339 *)
cristy8b350f62009-11-15 23:12:43 +00009340 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009341 esac
9342 fi
9343
9344
9345CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9346MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9347
cristy391f1ce2010-09-09 17:23:28 +00009348if test "$enable_openmp" != no; then
9349 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9350 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9351 fi
9352fi
cristy3ed852e2009-09-05 21:47:34 +00009353
cristy736173a2009-09-20 21:18:22 +00009354# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009355
9356
cristy73bd4a52010-10-05 11:24:23 +00009357ac_ext=c
9358ac_cpp='$CPP $CPPFLAGS'
9359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361ac_compiler_gnu=$ac_cv_c_compiler_gnu
9362
9363ax_pthread_ok=no
9364
9365# We used to check for pthread.h first, but this fails if pthread.h
9366# requires special compiler flags (e.g. on True64 or Sequent).
9367# It gets checked for in the link test anyway.
9368
9369# First of all, check if the user has set any of the PTHREAD_LIBS,
9370# etcetera environment variables, and if threads linking works using
9371# them:
9372if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9373 save_CFLAGS="$CFLAGS"
9374 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9375 save_LIBS="$LIBS"
9376 LIBS="$PTHREAD_LIBS $LIBS"
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9378$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h. */
9381
9382/* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385#ifdef __cplusplus
9386extern "C"
9387#endif
9388char pthread_join ();
9389int
9390main ()
9391{
9392return pthread_join ();
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397if ac_fn_c_try_link "$LINENO"; then :
9398 ax_pthread_ok=yes
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9403$as_echo "$ax_pthread_ok" >&6; }
9404 if test x"$ax_pthread_ok" = xno; then
9405 PTHREAD_LIBS=""
9406 PTHREAD_CFLAGS=""
9407 fi
9408 LIBS="$save_LIBS"
9409 CFLAGS="$save_CFLAGS"
9410fi
9411
9412# We must check for the threads library under a number of different
9413# names; the ordering is very important because some systems
9414# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9415# libraries is broken (non-POSIX).
9416
9417# Create a list of thread flags to try. Items starting with a "-" are
9418# C compiler flags, and other items are library names, except for "none"
9419# which indicates that we try without any flags at all, and "pthread-config"
9420# which is a program returning the flags for the Pth emulation library.
9421
cristy18307f12011-12-30 01:20:16 +00009422ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009423
9424# The ordering *is* (sometimes) important. Some notes on the
9425# individual items follow:
9426
9427# pthreads: AIX (must check this before -lpthread)
9428# none: in case threads are in libc; should be tried before -Kthread and
9429# other compiler flags to prevent continual compiler warnings
9430# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9431# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9432# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9433# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9434# -pthreads: Solaris/gcc
9435# -mthreads: Mingw32/gcc, Lynx/gcc
9436# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9437# doesn't hurt to check since this sometimes defines pthreads too;
9438# also defines -D_REENTRANT)
9439# ... -mt is also the pthreads flag for HP/aCC
9440# pthread: Linux, etcetera
9441# --thread-safe: KAI C++
9442# pthread-config: use pthread-config program (for GNU Pth library)
9443
9444case "${host_cpu}-${host_os}" in
9445 *solaris*)
9446
9447 # On Solaris (at least, for some versions), libc contains stubbed
9448 # (non-functional) versions of the pthreads routines, so link-based
9449 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9450 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9451 # a function called by this macro, so we could check for that, but
9452 # who knows whether they'll stub that too in a future libc.) So,
9453 # we'll just look for -pthreads and -lpthread first:
9454
9455 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9456 ;;
9457
cristya316db12011-10-24 00:49:45 +00009458 *-darwin*)
9459 ax_pthread_flags="-pthread $ax_pthread_flags"
9460 ;;
cristy73bd4a52010-10-05 11:24:23 +00009461esac
9462
9463if test x"$ax_pthread_ok" = xno; then
9464for flag in $ax_pthread_flags; do
9465
9466 case $flag in
9467 none)
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9469$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9470 ;;
9471
9472 -*)
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9474$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9475 PTHREAD_CFLAGS="$flag"
9476 ;;
9477
cristya316db12011-10-24 00:49:45 +00009478 pthread-config)
9479 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009480set dummy pthread-config; ac_word=$2
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009483if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009484 $as_echo_n "(cached) " >&6
9485else
9486 if test -n "$ax_pthread_config"; then
9487 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9488else
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009496 ac_cv_prog_ax_pthread_config="yes"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9499 fi
9500done
9501 done
9502IFS=$as_save_IFS
9503
9504 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9505fi
9506fi
9507ax_pthread_config=$ac_cv_prog_ax_pthread_config
9508if test -n "$ax_pthread_config"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9510$as_echo "$ax_pthread_config" >&6; }
9511else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
9514fi
9515
9516
cristya316db12011-10-24 00:49:45 +00009517 if test x"$ax_pthread_config" = xno; then continue; fi
9518 PTHREAD_CFLAGS="`pthread-config --cflags`"
9519 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9520 ;;
cristy73bd4a52010-10-05 11:24:23 +00009521
9522 *)
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9524$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9525 PTHREAD_LIBS="-l$flag"
9526 ;;
9527 esac
9528
9529 save_LIBS="$LIBS"
9530 save_CFLAGS="$CFLAGS"
9531 LIBS="$PTHREAD_LIBS $LIBS"
9532 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9533
9534 # Check for various functions. We must include pthread.h,
9535 # since some functions may be macros. (On the Sequent, we
9536 # need a special flag -Kthread to make this header compile.)
9537 # We check for pthread_join because it is in -lpthread on IRIX
9538 # while pthread_create is in libc. We check for pthread_attr_init
9539 # due to DEC craziness with -lpthreads. We check for
9540 # pthread_cleanup_push because it is one of the few pthread
9541 # functions on Solaris that doesn't have a non-functional libc stub.
9542 # We try pthread_create on general principles.
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h. */
9545#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009546 static void routine(void *a) { a = 0; }
9547 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009548int
9549main ()
9550{
9551pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009552 pthread_create(&th, 0, start_routine, 0);
9553 pthread_join(th, 0);
9554 pthread_attr_init(&attr);
9555 pthread_cleanup_push(routine, 0);
9556 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009557 ;
9558 return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_link "$LINENO"; then :
9562 ax_pthread_ok=yes
9563fi
9564rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566
9567 LIBS="$save_LIBS"
9568 CFLAGS="$save_CFLAGS"
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9571$as_echo "$ax_pthread_ok" >&6; }
9572 if test "x$ax_pthread_ok" = xyes; then
9573 break;
9574 fi
9575
9576 PTHREAD_LIBS=""
9577 PTHREAD_CFLAGS=""
9578done
9579fi
9580
9581# Various other checks:
9582if test "x$ax_pthread_ok" = xyes; then
9583 save_LIBS="$LIBS"
9584 LIBS="$PTHREAD_LIBS $LIBS"
9585 save_CFLAGS="$CFLAGS"
9586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9587
9588 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009590$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009591 attr_name=unknown
9592 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009594/* end confdefs.h. */
9595#include <pthread.h>
9596int
9597main ()
9598{
cristya316db12011-10-24 00:49:45 +00009599int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009600 ;
9601 return 0;
9602}
9603_ACEOF
9604if ac_fn_c_try_link "$LINENO"; then :
9605 attr_name=$attr; break
9606fi
9607rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009609 done
cristy73bd4a52010-10-05 11:24:23 +00009610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9611$as_echo "$attr_name" >&6; }
9612 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9613
9614cat >>confdefs.h <<_ACEOF
9615#define PTHREAD_CREATE_JOINABLE $attr_name
9616_ACEOF
9617
9618 fi
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9621$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9622 flag=no
9623 case "${host_cpu}-${host_os}" in
9624 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9625 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9626 esac
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9628$as_echo "${flag}" >&6; }
9629 if test "x$flag" != xno; then
9630 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9631 fi
9632
cristya316db12011-10-24 00:49:45 +00009633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9634$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9635if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637else
9638
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641
9642 #include <pthread.h>
9643int
9644main ()
9645{
9646int i = PTHREAD_PRIO_INHERIT;
9647 ;
9648 return 0;
9649}
9650_ACEOF
9651if ac_fn_c_try_link "$LINENO"; then :
9652 ax_cv_PTHREAD_PRIO_INHERIT=yes
9653else
9654 ax_cv_PTHREAD_PRIO_INHERIT=no
9655fi
9656rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext conftest.$ac_ext
9658
9659fi
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9661$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9662 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9663
9664$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9665
9666fi
9667
cristy73bd4a52010-10-05 11:24:23 +00009668 LIBS="$save_LIBS"
9669 CFLAGS="$save_CFLAGS"
9670
9671 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009672 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009673 for ac_prog in xlc_r cc_r
9674do
9675 # Extract the first word of "$ac_prog", so it can be a program name with args.
9676set dummy $ac_prog; ac_word=$2
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009679if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009680 $as_echo_n "(cached) " >&6
9681else
9682 if test -n "$PTHREAD_CC"; then
9683 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9684else
9685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686for as_dir in $PATH
9687do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009692 ac_cv_prog_PTHREAD_CC="$ac_prog"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696done
9697 done
9698IFS=$as_save_IFS
9699
9700fi
9701fi
9702PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9703if test -n "$PTHREAD_CC"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9705$as_echo "$PTHREAD_CC" >&6; }
9706else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708$as_echo "no" >&6; }
9709fi
9710
9711
9712 test -n "$PTHREAD_CC" && break
9713done
9714test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9715
9716 else
9717 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009718 fi
cristy73bd4a52010-10-05 11:24:23 +00009719else
9720 PTHREAD_CC="$CC"
9721fi
9722
9723
9724
9725
9726
9727# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9728if test x"$ax_pthread_ok" = xyes; then
9729
9730$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9731
9732 :
9733else
9734 ax_pthread_ok=no
9735
9736fi
9737ac_ext=c
9738ac_cpp='$CPP $CPPFLAGS'
9739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741ac_compiler_gnu=$ac_cv_c_compiler_gnu
9742
9743
9744
9745# Check whether --enable-opencl was given.
9746if test "${enable_opencl+set}" = set; then :
9747 enableval=$enable_opencl; disable_opencl=$enableval
9748else
9749 disable_opencl='yes'
9750fi
9751
9752
9753if test "$disable_opencl" = 'yes'; then
9754 ac_ext=c
9755ac_cpp='$CPP $CPPFLAGS'
9756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9758ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759
cristy568c2d42012-07-27 01:41:20 +00009760 AX_LANG_COMPILER_MS
cristy73bd4a52010-10-05 11:24:23 +00009761 if test X$ax_compiler_ms = Xno; then :
9762 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9763fi
9764
9765 ax_save_CPPFLAGS=$CPPFLAGS
9766 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9767 for ac_header in CL/cl.h OpenCL/cl.h
9768do :
9769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9770ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009771if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009772 cat >>confdefs.h <<_ACEOF
9773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9774_ACEOF
9775
9776fi
9777
9778done
9779
9780 CPPFLAGS=$ax_save_CPPFLAGS
9781
9782 for ac_header in windows.h
9783do :
9784 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009785if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009786 cat >>confdefs.h <<_ACEOF
9787#define HAVE_WINDOWS_H 1
9788_ACEOF
9789
9790fi
9791
9792done
9793
9794
9795
9796
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9798$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009799if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009800 $as_echo_n "(cached) " >&6
9801else
9802 ax_cv_check_cl_libcl=no
9803 case $host_cpu in
9804 x86_64) ax_check_cl_libdir=lib64 ;;
9805 *) ax_check_cl_libdir=lib ;;
9806 esac
9807 ax_save_CPPFLAGS=$CPPFLAGS
9808 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9809 ax_save_LIBS=$LIBS
9810 LIBS=""
9811 ax_check_libs="-lOpenCL -lCL -lclparser"
9812 for ax_lib in $ax_check_libs; do
9813 if test X$ax_compiler_ms = Xyes; then :
9814 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9815else
9816 ax_try_lib=$ax_lib
9817fi
9818 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h. */
9821
9822 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9823 # include <windows.h>
9824 # endif
9825 # ifdef HAVE_CL_CL_H
9826 # include <CL/cl.h>
9827 # elif defined(HAVE_OPENCL_CL_H)
9828 # include <OpenCL/cl.h>
9829 # else
9830 # error no CL.h
9831 # endif
9832int
9833main ()
9834{
9835clCreateContextFromType(0,0,0,0,0)
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840if ac_fn_c_try_link "$LINENO"; then :
9841 ax_cv_check_cl_libcl=$ax_try_lib; break
9842else
9843 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"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h. */
9846
9847 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9848 # include <windows.h>
9849 # endif
9850 # ifdef HAVE_CL_CL_H
9851 # include <CL/cl.h>
9852 # elif defined(HAVE_OPENCL_CL_H)
9853 # include <OpenCL/cl.h>
9854 # else
9855 # error no CL.h
9856 # endif
9857int
9858main ()
9859{
9860clCreateContextFromType(0,0,0,0,0)
9861 ;
9862 return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_link "$LINENO"; then :
9866 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9867else
cristy78c5a0c2010-12-04 20:00:59 +00009868 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 +00009869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h. */
9871
9872 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9873 # include <windows.h>
9874 # endif
9875 # ifdef HAVE_CL_CL_H
9876 # include <CL/cl.h>
9877 # elif defined(HAVE_OPENCL_CL_H)
9878 # include <OpenCL/cl.h>
9879 # else
9880 # error no CL.h
9881 # endif
9882int
9883main ()
9884{
9885clCreateContextFromType(0,0,0,0,0)
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890if ac_fn_c_try_link "$LINENO"; then :
9891 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9892fi
9893rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895fi
9896rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900 conftest$ac_exeext conftest.$ac_ext
9901 done
9902
cristyc3f8b8e2011-12-22 14:55:16 +00009903 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009904 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906/* end confdefs.h. */
9907
9908 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9909 # include <windows.h>
9910 # endif
9911 # ifdef HAVE_CL_CL_H
9912 # include <CL/cl.h>
9913 # elif defined(HAVE_OPENCL_CL_H)
9914 # include <OpenCL/cl.h>
9915 # else
9916 # error no CL.h
9917 # endif
9918int
9919main ()
9920{
9921clCreateContextFromType(0,0,0,0,0)
9922 ;
9923 return 0;
9924}
9925_ACEOF
9926if ac_fn_c_try_link "$LINENO"; then :
9927 ax_cv_check_cl_libcl=$LIBS
9928fi
9929rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931fi
9932
9933 LIBS=$ax_save_LIBS
9934 CPPFLAGS=$ax_save_CPPFLAGS
9935fi
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9937$as_echo "$ax_cv_check_cl_libcl" >&6; }
9938
9939 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9940 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9941else
9942 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9943$as_echo "#define _OPENCL 1" >>confdefs.h
9944
9945fi
9946 ac_ext=c
9947ac_cpp='$CPP $CPPFLAGS'
9948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
9952fi
9953
9954
9955
9956
cristyc7083c12009-10-14 03:16:55 +00009957CFLAGS="$CL_CFLAGS $CFLAGS"
9958LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009959
cristy391f1ce2010-09-09 17:23:28 +00009960if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009961 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009962 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9963 fi
cristyfd9dcd42010-08-08 18:07:02 +00009964fi
cristy2e8b51d2009-10-17 18:26:15 +00009965
cristy3ed852e2009-09-05 21:47:34 +00009966########
9967#
9968# Check for large file support
9969#
9970########
9971# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009972if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009973 enableval=$enable_largefile;
9974fi
9975
9976if test "$enable_largefile" != no; then
9977
cristy8b350f62009-11-15 23:12:43 +00009978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009979$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009980if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009981 $as_echo_n "(cached) " >&6
9982else
9983 ac_cv_sys_largefile_CC=no
9984 if test "$GCC" != yes; then
9985 ac_save_CC=$CC
9986 while :; do
9987 # IRIX 6.2 and later do not support large files by default,
9988 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009990/* end confdefs.h. */
9991#include <sys/types.h>
9992 /* Check that off_t can represent 2**63 - 1 correctly.
9993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9994 since some C++ compilers masquerading as C compilers
9995 incorrectly reject 9223372036854775807. */
9996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9998 && LARGE_OFF_T % 2147483647 == 1)
9999 ? 1 : -1];
10000int
10001main ()
10002{
10003
10004 ;
10005 return 0;
10006}
10007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010008 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010009 break
cristy3ed852e2009-09-05 21:47:34 +000010010fi
cristy3ed852e2009-09-05 21:47:34 +000010011rm -f core conftest.err conftest.$ac_objext
10012 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010013 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010014 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010015fi
cristy3ed852e2009-09-05 21:47:34 +000010016rm -f core conftest.err conftest.$ac_objext
10017 break
10018 done
10019 CC=$ac_save_CC
10020 rm -f conftest.$ac_ext
10021 fi
10022fi
cristy8b350f62009-11-15 23:12:43 +000010023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010024$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10025 if test "$ac_cv_sys_largefile_CC" != no; then
10026 CC=$CC$ac_cv_sys_largefile_CC
10027 fi
10028
cristy8b350f62009-11-15 23:12:43 +000010029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010030$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010031if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010032 $as_echo_n "(cached) " >&6
10033else
10034 while :; do
cristy8b350f62009-11-15 23:12:43 +000010035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010036/* end confdefs.h. */
10037#include <sys/types.h>
10038 /* Check that off_t can represent 2**63 - 1 correctly.
10039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10040 since some C++ compilers masquerading as C compilers
10041 incorrectly reject 9223372036854775807. */
10042#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10044 && LARGE_OFF_T % 2147483647 == 1)
10045 ? 1 : -1];
10046int
10047main ()
10048{
10049
10050 ;
10051 return 0;
10052}
10053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010054if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010055 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010056fi
cristy3ed852e2009-09-05 21:47:34 +000010057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010059/* end confdefs.h. */
10060#define _FILE_OFFSET_BITS 64
10061#include <sys/types.h>
10062 /* Check that off_t can represent 2**63 - 1 correctly.
10063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10064 since some C++ compilers masquerading as C compilers
10065 incorrectly reject 9223372036854775807. */
10066#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10068 && LARGE_OFF_T % 2147483647 == 1)
10069 ? 1 : -1];
10070int
10071main ()
10072{
10073
10074 ;
10075 return 0;
10076}
10077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010078if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010079 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010080fi
cristy3ed852e2009-09-05 21:47:34 +000010081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 ac_cv_sys_file_offset_bits=unknown
10083 break
10084done
10085fi
cristy8b350f62009-11-15 23:12:43 +000010086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010087$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10088case $ac_cv_sys_file_offset_bits in #(
10089 no | unknown) ;;
10090 *)
10091cat >>confdefs.h <<_ACEOF
10092#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10093_ACEOF
10094;;
10095esac
10096rm -rf conftest*
10097 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010100if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010101 $as_echo_n "(cached) " >&6
10102else
10103 while :; do
cristy8b350f62009-11-15 23:12:43 +000010104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010105/* end confdefs.h. */
10106#include <sys/types.h>
10107 /* Check that off_t can represent 2**63 - 1 correctly.
10108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10109 since some C++ compilers masquerading as C compilers
10110 incorrectly reject 9223372036854775807. */
10111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10113 && LARGE_OFF_T % 2147483647 == 1)
10114 ? 1 : -1];
10115int
10116main ()
10117{
10118
10119 ;
10120 return 0;
10121}
10122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010123if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010124 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010125fi
cristy3ed852e2009-09-05 21:47:34 +000010126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010128/* end confdefs.h. */
10129#define _LARGE_FILES 1
10130#include <sys/types.h>
10131 /* Check that off_t can represent 2**63 - 1 correctly.
10132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10133 since some C++ compilers masquerading as C compilers
10134 incorrectly reject 9223372036854775807. */
10135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10137 && LARGE_OFF_T % 2147483647 == 1)
10138 ? 1 : -1];
10139int
10140main ()
10141{
10142
10143 ;
10144 return 0;
10145}
10146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010147if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010148 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010149fi
cristy3ed852e2009-09-05 21:47:34 +000010150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 ac_cv_sys_large_files=unknown
10152 break
10153done
10154fi
cristy8b350f62009-11-15 23:12:43 +000010155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010156$as_echo "$ac_cv_sys_large_files" >&6; }
10157case $ac_cv_sys_large_files in #(
10158 no | unknown) ;;
10159 *)
10160cat >>confdefs.h <<_ACEOF
10161#define _LARGE_FILES $ac_cv_sys_large_files
10162_ACEOF
10163;;
10164esac
10165rm -rf conftest*
10166 fi
cristy14fefe52012-05-21 00:59:18 +000010167
10168
cristy3ed852e2009-09-05 21:47:34 +000010169fi
10170
cristy8b350f62009-11-15 23:12:43 +000010171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010172$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010173if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010174 $as_echo_n "(cached) " >&6
10175else
10176 while :; do
cristy8b350f62009-11-15 23:12:43 +000010177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010178/* end confdefs.h. */
10179#include <sys/types.h> /* for off_t */
10180 #include <stdio.h>
10181int
10182main ()
10183{
10184int (*fp) (FILE *, off_t, int) = fseeko;
10185 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10186 ;
10187 return 0;
10188}
10189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010191 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010192fi
cristy8b350f62009-11-15 23:12:43 +000010193rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010196/* end confdefs.h. */
10197#define _LARGEFILE_SOURCE 1
10198#include <sys/types.h> /* for off_t */
10199 #include <stdio.h>
10200int
10201main ()
10202{
10203int (*fp) (FILE *, off_t, int) = fseeko;
10204 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10205 ;
10206 return 0;
10207}
10208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010210 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010211fi
cristy8b350f62009-11-15 23:12:43 +000010212rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010214 ac_cv_sys_largefile_source=unknown
10215 break
10216done
10217fi
cristy8b350f62009-11-15 23:12:43 +000010218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010219$as_echo "$ac_cv_sys_largefile_source" >&6; }
10220case $ac_cv_sys_largefile_source in #(
10221 no | unknown) ;;
10222 *)
10223cat >>confdefs.h <<_ACEOF
10224#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10225_ACEOF
10226;;
10227esac
10228rm -rf conftest*
10229
10230# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10231# in glibc 2.1.3, but that breaks too many other things.
10232# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10233if test $ac_cv_sys_largefile_source != unknown; then
10234
cristy8b350f62009-11-15 23:12:43 +000010235$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010236
10237fi
10238
10239LFS_CPPFLAGS=''
10240if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010241 case $ac_cv_sys_file_offset_bits in
10242 no)
10243 # nothing to do here as the host supports LFS fine
10244 ;;
10245 unknown)
cristy8b350f62009-11-15 23:12:43 +000010246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010248 if test "$cross_compiling" = yes; then :
10249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010251as_fn_error $? "cannot run test program while cross compiling
10252See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010253else
cristy8b350f62009-11-15 23:12:43 +000010254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010256#include <unistd.h>
10257 main () {
10258 exit(!(sizeof(off_t) == 8));
10259 }
cristyda16f162011-02-19 23:52:17 +000010260int
10261main ()
10262{
10263
10264 ;
10265 return 0;
10266}
cristy3ed852e2009-09-05 21:47:34 +000010267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010268if ac_fn_c_try_run "$LINENO"; then :
10269 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010270
cristy09b53e12011-10-14 12:47:22 +000010271 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10272$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010273else
cristy09b53e12011-10-14 12:47:22 +000010274 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10275$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010276fi
cristy8b350f62009-11-15 23:12:43 +000010277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10278 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010279fi
10280
cristyc1e0cc12011-09-21 16:41:16 +000010281 ;;
10282 *)
10283 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10284 ;;
10285 esac
cristy3ed852e2009-09-05 21:47:34 +000010286 if test "$ac_cv_sys_large_files" != 'no'; then
10287 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10288 fi
10289 if test "$ac_cv_sys_largefile_source" != 'no'; then
10290 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10291 fi
10292fi
10293
10294
cristy3ed852e2009-09-05 21:47:34 +000010295# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010296enable_dlopen=yes
10297
10298
10299
10300case `pwd` in
10301 *\ * | *\ *)
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10303$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10304esac
10305
10306
10307
cristy99bd5232011-12-07 14:38:20 +000010308macro_version='2.4.2'
10309macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323ltmain="$ac_aux_dir/ltmain.sh"
10324
cristy0c60a692010-11-04 01:09:47 +000010325# Backslashify metacharacters that are still active within
10326# double-quoted strings.
10327sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10328
10329# Same as above, but do not quote variable references.
10330double_quote_subst='s/\(["`\\]\)/\\\1/g'
10331
10332# Sed substitution to delay expansion of an escaped shell variable in a
10333# double_quote_subst'ed string.
10334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10335
10336# Sed substitution to delay expansion of an escaped single quote.
10337delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10338
10339# Sed substitution to avoid accidental globbing in evaled expressions
10340no_glob_subst='s/\*/\\\*/g'
10341
cristy73bd4a52010-10-05 11:24:23 +000010342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10343$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010344if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010345 $as_echo_n "(cached) " >&6
10346else
10347 if test -n "$NM"; then
10348 # Let the user override the test.
10349 lt_cv_path_NM="$NM"
10350else
10351 lt_nm_to_check="${ac_tool_prefix}nm"
10352 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10353 lt_nm_to_check="$lt_nm_to_check nm"
10354 fi
10355 for lt_tmp_nm in $lt_nm_to_check; do
10356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10357 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10358 IFS="$lt_save_ifs"
10359 test -z "$ac_dir" && ac_dir=.
10360 tmp_nm="$ac_dir/$lt_tmp_nm"
10361 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10362 # Check to see if the nm accepts a BSD-compat flag.
10363 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10364 # nm: unknown option "B" ignored
10365 # Tru64's nm complains that /dev/null is an invalid object file
10366 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10367 */dev/null* | *'Invalid file or object type'*)
10368 lt_cv_path_NM="$tmp_nm -B"
10369 break
10370 ;;
10371 *)
10372 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10373 */dev/null*)
10374 lt_cv_path_NM="$tmp_nm -p"
10375 break
10376 ;;
10377 *)
10378 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10379 continue # so that we can try to find one that supports BSD flags
10380 ;;
10381 esac
10382 ;;
10383 esac
10384 fi
10385 done
10386 IFS="$lt_save_ifs"
10387 done
10388 : ${lt_cv_path_NM=no}
10389fi
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10392$as_echo "$lt_cv_path_NM" >&6; }
10393if test "$lt_cv_path_NM" != "no"; then
10394 NM="$lt_cv_path_NM"
10395else
10396 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010397 if test -n "$DUMPBIN"; then :
10398 # Let the user override the test.
10399 else
10400 if test -n "$ac_tool_prefix"; then
10401 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010402 do
10403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010407if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010408 $as_echo_n "(cached) " >&6
10409else
10410 if test -n "$DUMPBIN"; then
10411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10412else
10413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414for as_dir in $PATH
10415do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010420 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10423 fi
10424done
10425 done
10426IFS=$as_save_IFS
10427
10428fi
10429fi
10430DUMPBIN=$ac_cv_prog_DUMPBIN
10431if test -n "$DUMPBIN"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10433$as_echo "$DUMPBIN" >&6; }
10434else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436$as_echo "no" >&6; }
10437fi
10438
10439
10440 test -n "$DUMPBIN" && break
10441 done
10442fi
10443if test -z "$DUMPBIN"; then
10444 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010445 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010446do
10447 # Extract the first word of "$ac_prog", so it can be a program name with args.
10448set dummy $ac_prog; ac_word=$2
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010451if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010452 $as_echo_n "(cached) " >&6
10453else
10454 if test -n "$ac_ct_DUMPBIN"; then
10455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10456else
10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $PATH
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10467 fi
10468done
10469 done
10470IFS=$as_save_IFS
10471
10472fi
10473fi
10474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10475if test -n "$ac_ct_DUMPBIN"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10477$as_echo "$ac_ct_DUMPBIN" >&6; }
10478else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480$as_echo "no" >&6; }
10481fi
10482
10483
10484 test -n "$ac_ct_DUMPBIN" && break
10485done
10486
10487 if test "x$ac_ct_DUMPBIN" = x; then
10488 DUMPBIN=":"
10489 else
10490 case $cross_compiling:$ac_tool_warned in
10491yes:)
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10494ac_tool_warned=yes ;;
10495esac
10496 DUMPBIN=$ac_ct_DUMPBIN
10497 fi
10498fi
10499
cristy0c60a692010-11-04 01:09:47 +000010500 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10501 *COFF*)
10502 DUMPBIN="$DUMPBIN -symbols"
10503 ;;
10504 *)
10505 DUMPBIN=:
10506 ;;
10507 esac
10508 fi
cristy73bd4a52010-10-05 11:24:23 +000010509
10510 if test "$DUMPBIN" != ":"; then
10511 NM="$DUMPBIN"
10512 fi
10513fi
10514test -z "$NM" && NM=nm
10515
10516
10517
10518
10519
10520
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10522$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010523if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010524 $as_echo_n "(cached) " >&6
10525else
10526 lt_cv_nm_interface="BSD nm"
10527 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010528 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010529 (eval "$ac_compile" 2>conftest.err)
10530 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010531 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010532 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10533 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010534 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010535 cat conftest.out >&5
10536 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10537 lt_cv_nm_interface="MS dumpbin"
10538 fi
10539 rm -f conftest*
10540fi
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10542$as_echo "$lt_cv_nm_interface" >&6; }
10543
10544# find the maximum length of command line arguments
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10546$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010547if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010548 $as_echo_n "(cached) " >&6
10549else
10550 i=0
10551 teststring="ABCD"
10552
10553 case $build_os in
10554 msdosdjgpp*)
10555 # On DJGPP, this test can blow up pretty badly due to problems in libc
10556 # (any single argument exceeding 2000 bytes causes a buffer overrun
10557 # during glob expansion). Even if it were fixed, the result of this
10558 # check would be larger than it should be.
10559 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10560 ;;
10561
10562 gnu*)
10563 # Under GNU Hurd, this test is not required because there is
10564 # no limit to the length of command line arguments.
10565 # Libtool will interpret -1 as no limit whatsoever
10566 lt_cv_sys_max_cmd_len=-1;
10567 ;;
10568
10569 cygwin* | mingw* | cegcc*)
10570 # On Win9x/ME, this test blows up -- it succeeds, but takes
10571 # about 5 minutes as the teststring grows exponentially.
10572 # Worse, since 9x/ME are not pre-emptively multitasking,
10573 # you end up with a "frozen" computer, even though with patience
10574 # the test eventually succeeds (with a max line length of 256k).
10575 # Instead, let's just punt: use the minimum linelength reported by
10576 # all of the supported platforms: 8192 (on NT/2K/XP).
10577 lt_cv_sys_max_cmd_len=8192;
10578 ;;
10579
cristy0c60a692010-11-04 01:09:47 +000010580 mint*)
10581 # On MiNT this can take a long time and run out of memory.
10582 lt_cv_sys_max_cmd_len=8192;
10583 ;;
10584
cristy73bd4a52010-10-05 11:24:23 +000010585 amigaos*)
10586 # On AmigaOS with pdksh, this test takes hours, literally.
10587 # So we just punt and use a minimum line length of 8192.
10588 lt_cv_sys_max_cmd_len=8192;
10589 ;;
10590
10591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10592 # This has been around since 386BSD, at least. Likely further.
10593 if test -x /sbin/sysctl; then
10594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10595 elif test -x /usr/sbin/sysctl; then
10596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10597 else
10598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10599 fi
10600 # And add a safety zone
10601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10603 ;;
10604
10605 interix*)
10606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10607 lt_cv_sys_max_cmd_len=196608
10608 ;;
10609
cristy99bd5232011-12-07 14:38:20 +000010610 os2*)
10611 # The test takes a long time on OS/2.
10612 lt_cv_sys_max_cmd_len=8192
10613 ;;
10614
cristy73bd4a52010-10-05 11:24:23 +000010615 osf*)
10616 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10617 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10618 # nice to cause kernel panics so lets avoid the loop below.
10619 # First set a reasonable default.
10620 lt_cv_sys_max_cmd_len=16384
10621 #
10622 if test -x /sbin/sysconfig; then
10623 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10624 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10625 esac
10626 fi
10627 ;;
10628 sco3.2v5*)
10629 lt_cv_sys_max_cmd_len=102400
10630 ;;
10631 sysv5* | sco5v6* | sysv4.2uw2*)
10632 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10633 if test -n "$kargmax"; then
10634 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10635 else
10636 lt_cv_sys_max_cmd_len=32768
10637 fi
10638 ;;
10639 *)
10640 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10641 if test -n "$lt_cv_sys_max_cmd_len"; then
10642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10644 else
10645 # Make teststring a little bigger before we do anything with it.
10646 # a 1K string should be a reasonable start.
10647 for i in 1 2 3 4 5 6 7 8 ; do
10648 teststring=$teststring$teststring
10649 done
10650 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10651 # If test is not a shell built-in, we'll probably end up computing a
10652 # maximum length that is only half of the actual maximum length, but
10653 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010654 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010655 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010656 test $i != 17 # 1/2 MB should be enough
10657 do
10658 i=`expr $i + 1`
10659 teststring=$teststring$teststring
10660 done
10661 # Only check the string length outside the loop.
10662 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10663 teststring=
10664 # Add a significant safety factor because C++ compilers can tack on
10665 # massive amounts of additional arguments before passing them to the
10666 # linker. It appears as though 1/2 is a usable value.
10667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10668 fi
10669 ;;
10670 esac
10671
10672fi
10673
10674if test -n $lt_cv_sys_max_cmd_len ; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10676$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10677else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10679$as_echo "none" >&6; }
10680fi
10681max_cmd_len=$lt_cv_sys_max_cmd_len
10682
10683
10684
10685
10686
10687
10688: ${CP="cp -f"}
10689: ${MV="mv -f"}
10690: ${RM="rm -f"}
10691
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10693$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10694# Try some XSI features
10695xsi_shell=no
10696( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010697 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10698 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010699 && eval 'test $(( 1 + 1 )) -eq 2 \
10700 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10701 && xsi_shell=yes
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10703$as_echo "$xsi_shell" >&6; }
10704
10705
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10707$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10708lt_shell_append=no
10709( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10710 >/dev/null 2>&1 \
10711 && lt_shell_append=yes
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10713$as_echo "$lt_shell_append" >&6; }
10714
10715
10716if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10717 lt_unset=unset
10718else
10719 lt_unset=false
10720fi
10721
10722
10723
10724
10725
10726# test EBCDIC or ASCII
10727case `echo X|tr X '\101'` in
10728 A) # ASCII based system
10729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10730 lt_SP2NL='tr \040 \012'
10731 lt_NL2SP='tr \015\012 \040\040'
10732 ;;
10733 *) # EBCDIC based system
10734 lt_SP2NL='tr \100 \n'
10735 lt_NL2SP='tr \r\n \100\100'
10736 ;;
10737esac
10738
10739
10740
10741
10742
10743
10744
10745
10746
cristyda16f162011-02-19 23:52:17 +000010747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10748$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10749if ${lt_cv_to_host_file_cmd+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751else
10752 case $host in
10753 *-*-mingw* )
10754 case $build in
10755 *-*-mingw* ) # actually msys
10756 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10757 ;;
10758 *-*-cygwin* )
10759 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10760 ;;
10761 * ) # otherwise, assume *nix
10762 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10763 ;;
10764 esac
10765 ;;
10766 *-*-cygwin* )
10767 case $build in
10768 *-*-mingw* ) # actually msys
10769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10770 ;;
10771 *-*-cygwin* )
10772 lt_cv_to_host_file_cmd=func_convert_file_noop
10773 ;;
10774 * ) # otherwise, assume *nix
10775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10776 ;;
10777 esac
10778 ;;
10779 * ) # unhandled hosts (and "normal" native builds)
10780 lt_cv_to_host_file_cmd=func_convert_file_noop
10781 ;;
10782esac
10783
10784fi
10785
10786to_host_file_cmd=$lt_cv_to_host_file_cmd
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10788$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10789
10790
10791
10792
10793
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10795$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10796if ${lt_cv_to_tool_file_cmd+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798else
10799 #assume ordinary cross tools, or native build.
10800lt_cv_to_tool_file_cmd=func_convert_file_noop
10801case $host in
10802 *-*-mingw* )
10803 case $build in
10804 *-*-mingw* ) # actually msys
10805 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10806 ;;
10807 esac
10808 ;;
10809esac
10810
10811fi
10812
10813to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10815$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10816
10817
10818
10819
10820
cristy73bd4a52010-10-05 11:24:23 +000010821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10822$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010823if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010824 $as_echo_n "(cached) " >&6
10825else
10826 lt_cv_ld_reload_flag='-r'
10827fi
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10829$as_echo "$lt_cv_ld_reload_flag" >&6; }
10830reload_flag=$lt_cv_ld_reload_flag
10831case $reload_flag in
10832"" | " "*) ;;
10833*) reload_flag=" $reload_flag" ;;
10834esac
10835reload_cmds='$LD$reload_flag -o $output$reload_objs'
10836case $host_os in
cristyda16f162011-02-19 23:52:17 +000010837 cygwin* | mingw* | pw32* | cegcc*)
10838 if test "$GCC" != yes; then
10839 reload_cmds=false
10840 fi
10841 ;;
cristy73bd4a52010-10-05 11:24:23 +000010842 darwin*)
10843 if test "$GCC" = yes; then
10844 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10845 else
10846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10847 fi
10848 ;;
10849esac
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10861set dummy ${ac_tool_prefix}objdump; ac_word=$2
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010864if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010865 $as_echo_n "(cached) " >&6
10866else
10867 if test -n "$OBJDUMP"; then
10868 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010877 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10880 fi
10881done
10882 done
10883IFS=$as_save_IFS
10884
10885fi
10886fi
10887OBJDUMP=$ac_cv_prog_OBJDUMP
10888if test -n "$OBJDUMP"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10890$as_echo "$OBJDUMP" >&6; }
10891else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
10894fi
10895
10896
10897fi
10898if test -z "$ac_cv_prog_OBJDUMP"; then
10899 ac_ct_OBJDUMP=$OBJDUMP
10900 # Extract the first word of "objdump", so it can be a program name with args.
10901set dummy objdump; ac_word=$2
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010904if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010905 $as_echo_n "(cached) " >&6
10906else
10907 if test -n "$ac_ct_OBJDUMP"; then
10908 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10909else
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010917 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922 done
10923IFS=$as_save_IFS
10924
10925fi
10926fi
10927ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10928if test -n "$ac_ct_OBJDUMP"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10930$as_echo "$ac_ct_OBJDUMP" >&6; }
10931else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
10934fi
10935
10936 if test "x$ac_ct_OBJDUMP" = x; then
10937 OBJDUMP="false"
10938 else
10939 case $cross_compiling:$ac_tool_warned in
10940yes:)
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10943ac_tool_warned=yes ;;
10944esac
10945 OBJDUMP=$ac_ct_OBJDUMP
10946 fi
10947else
10948 OBJDUMP="$ac_cv_prog_OBJDUMP"
10949fi
10950
10951test -z "$OBJDUMP" && OBJDUMP=objdump
10952
10953
10954
10955
10956
10957
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10959$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010960if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010961 $as_echo_n "(cached) " >&6
10962else
10963 lt_cv_file_magic_cmd='$MAGIC_CMD'
10964lt_cv_file_magic_test_file=
10965lt_cv_deplibs_check_method='unknown'
10966# Need to set the preceding variable on all platforms that support
10967# interlibrary dependencies.
10968# 'none' -- dependencies not supported.
10969# `unknown' -- same as none, but documents that we really don't know.
10970# 'pass_all' -- all dependencies passed with no checks.
10971# 'test_compile' -- check by making test program.
10972# 'file_magic [[regex]]' -- check by looking for files in library path
10973# which responds to the $file_magic_cmd with a given extended regex.
10974# If you have `file' or equivalent on your system and you're not sure
10975# whether `pass_all' will *always* work, you probably want this one.
10976
10977case $host_os in
10978aix[4-9]*)
10979 lt_cv_deplibs_check_method=pass_all
10980 ;;
10981
10982beos*)
10983 lt_cv_deplibs_check_method=pass_all
10984 ;;
10985
10986bsdi[45]*)
10987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10988 lt_cv_file_magic_cmd='/usr/bin/file -L'
10989 lt_cv_file_magic_test_file=/shlib/libc.so
10990 ;;
10991
10992cygwin*)
10993 # func_win32_libid is a shell function defined in ltmain.sh
10994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10995 lt_cv_file_magic_cmd='func_win32_libid'
10996 ;;
10997
10998mingw* | pw32*)
10999 # Base MSYS/MinGW do not provide the 'file' command needed by
11000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11001 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011002 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11003 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11005 lt_cv_file_magic_cmd='func_win32_libid'
11006 else
cristy0c60a692010-11-04 01:09:47 +000011007 # Keep this pattern in sync with the one in func_win32_libid.
11008 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 +000011009 lt_cv_file_magic_cmd='$OBJDUMP -f'
11010 fi
11011 ;;
11012
cristy0c60a692010-11-04 01:09:47 +000011013cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011014 # use the weaker test based on 'objdump'. See mingw*.
11015 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11016 lt_cv_file_magic_cmd='$OBJDUMP -f'
11017 ;;
11018
11019darwin* | rhapsody*)
11020 lt_cv_deplibs_check_method=pass_all
11021 ;;
11022
11023freebsd* | dragonfly*)
11024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11025 case $host_cpu in
11026 i*86 )
11027 # Not sure whether the presence of OpenBSD here was a mistake.
11028 # Let's accept both of them until this is cleared up.
11029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11030 lt_cv_file_magic_cmd=/usr/bin/file
11031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11032 ;;
11033 esac
11034 else
11035 lt_cv_deplibs_check_method=pass_all
11036 fi
11037 ;;
11038
11039gnu*)
11040 lt_cv_deplibs_check_method=pass_all
11041 ;;
11042
cristy0c60a692010-11-04 01:09:47 +000011043haiku*)
11044 lt_cv_deplibs_check_method=pass_all
11045 ;;
11046
cristy73bd4a52010-10-05 11:24:23 +000011047hpux10.20* | hpux11*)
11048 lt_cv_file_magic_cmd=/usr/bin/file
11049 case $host_cpu in
11050 ia64*)
11051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11052 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11053 ;;
11054 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011055 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 +000011056 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11057 ;;
11058 *)
cristy0c60a692010-11-04 01:09:47 +000011059 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 +000011060 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11061 ;;
11062 esac
11063 ;;
11064
11065interix[3-9]*)
11066 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11068 ;;
11069
11070irix5* | irix6* | nonstopux*)
11071 case $LD in
11072 *-32|*"-32 ") libmagic=32-bit;;
11073 *-n32|*"-n32 ") libmagic=N32;;
11074 *-64|*"-64 ") libmagic=64-bit;;
11075 *) libmagic=never-match;;
11076 esac
11077 lt_cv_deplibs_check_method=pass_all
11078 ;;
11079
cristy99bd5232011-12-07 14:38:20 +000011080# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011081linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011082 lt_cv_deplibs_check_method=pass_all
11083 ;;
11084
11085netbsd*)
11086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11088 else
11089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11090 fi
11091 ;;
11092
11093newos6*)
11094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11095 lt_cv_file_magic_cmd=/usr/bin/file
11096 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11097 ;;
11098
11099*nto* | *qnx*)
11100 lt_cv_deplibs_check_method=pass_all
11101 ;;
11102
11103openbsd*)
11104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11106 else
11107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11108 fi
11109 ;;
11110
11111osf3* | osf4* | osf5*)
11112 lt_cv_deplibs_check_method=pass_all
11113 ;;
11114
11115rdos*)
11116 lt_cv_deplibs_check_method=pass_all
11117 ;;
11118
11119solaris*)
11120 lt_cv_deplibs_check_method=pass_all
11121 ;;
11122
11123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11124 lt_cv_deplibs_check_method=pass_all
11125 ;;
11126
11127sysv4 | sysv4.3*)
11128 case $host_vendor in
11129 motorola)
11130 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]'
11131 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11132 ;;
11133 ncr)
11134 lt_cv_deplibs_check_method=pass_all
11135 ;;
11136 sequent)
11137 lt_cv_file_magic_cmd='/bin/file'
11138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11139 ;;
11140 sni)
11141 lt_cv_file_magic_cmd='/bin/file'
11142 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11143 lt_cv_file_magic_test_file=/lib/libc.so
11144 ;;
11145 siemens)
11146 lt_cv_deplibs_check_method=pass_all
11147 ;;
11148 pc)
11149 lt_cv_deplibs_check_method=pass_all
11150 ;;
11151 esac
11152 ;;
11153
11154tpf*)
11155 lt_cv_deplibs_check_method=pass_all
11156 ;;
11157esac
11158
11159fi
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11161$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011162
11163file_magic_glob=
11164want_nocaseglob=no
11165if test "$build" = "$host"; then
11166 case $host_os in
11167 mingw* | pw32*)
11168 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11169 want_nocaseglob=yes
11170 else
11171 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11172 fi
11173 ;;
11174 esac
11175fi
11176
cristy73bd4a52010-10-05 11:24:23 +000011177file_magic_cmd=$lt_cv_file_magic_cmd
11178deplibs_check_method=$lt_cv_deplibs_check_method
11179test -z "$deplibs_check_method" && deplibs_check_method=unknown
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
cristyda16f162011-02-19 23:52:17 +000011192
11193
11194
11195
11196
11197
11198
11199
11200
11201
cristy73bd4a52010-10-05 11:24:23 +000011202if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011203 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11204set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011207if ${ac_cv_prog_DLLTOOL+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209else
11210 if test -n "$DLLTOOL"; then
11211 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11212else
11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $PATH
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011220 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224done
11225 done
11226IFS=$as_save_IFS
11227
11228fi
11229fi
11230DLLTOOL=$ac_cv_prog_DLLTOOL
11231if test -n "$DLLTOOL"; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11233$as_echo "$DLLTOOL" >&6; }
11234else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236$as_echo "no" >&6; }
11237fi
11238
11239
11240fi
11241if test -z "$ac_cv_prog_DLLTOOL"; then
11242 ac_ct_DLLTOOL=$DLLTOOL
11243 # Extract the first word of "dlltool", so it can be a program name with args.
11244set dummy dlltool; ac_word=$2
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246$as_echo_n "checking for $ac_word... " >&6; }
11247if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249else
11250 if test -n "$ac_ct_DLLTOOL"; then
11251 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11252else
11253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254for as_dir in $PATH
11255do
11256 IFS=$as_save_IFS
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011260 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262 break 2
11263 fi
11264done
11265 done
11266IFS=$as_save_IFS
11267
11268fi
11269fi
11270ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11271if test -n "$ac_ct_DLLTOOL"; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11273$as_echo "$ac_ct_DLLTOOL" >&6; }
11274else
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277fi
11278
11279 if test "x$ac_ct_DLLTOOL" = x; then
11280 DLLTOOL="false"
11281 else
11282 case $cross_compiling:$ac_tool_warned in
11283yes:)
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11286ac_tool_warned=yes ;;
11287esac
11288 DLLTOOL=$ac_ct_DLLTOOL
11289 fi
11290else
11291 DLLTOOL="$ac_cv_prog_DLLTOOL"
11292fi
11293
11294test -z "$DLLTOOL" && DLLTOOL=dlltool
11295
11296
11297
11298
11299
11300
11301
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11303$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11304if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306else
11307 lt_cv_sharedlib_from_linklib_cmd='unknown'
11308
11309case $host_os in
11310cygwin* | mingw* | pw32* | cegcc*)
11311 # two different shell functions defined in ltmain.sh
11312 # decide which to use based on capabilities of $DLLTOOL
11313 case `$DLLTOOL --help 2>&1` in
11314 *--identify-strict*)
11315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11316 ;;
11317 *)
11318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11319 ;;
11320 esac
11321 ;;
11322*)
11323 # fallback: assume linklib IS sharedlib
11324 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11325 ;;
11326esac
11327
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11330$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11331sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11332test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11333
11334
11335
11336
11337
11338
11339
11340if test -n "$ac_tool_prefix"; then
11341 for ac_prog in ar
11342 do
11343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
11347if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011348 $as_echo_n "(cached) " >&6
11349else
11350 if test -n "$AR"; then
11351 ac_cv_prog_AR="$AR" # Let the user override the test.
11352else
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011360 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11362 break 2
11363 fi
11364done
11365 done
11366IFS=$as_save_IFS
11367
11368fi
11369fi
11370AR=$ac_cv_prog_AR
11371if test -n "$AR"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11373$as_echo "$AR" >&6; }
11374else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
11377fi
11378
11379
cristyda16f162011-02-19 23:52:17 +000011380 test -n "$AR" && break
11381 done
cristy73bd4a52010-10-05 11:24:23 +000011382fi
cristyda16f162011-02-19 23:52:17 +000011383if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011384 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011385 for ac_prog in ar
11386do
11387 # Extract the first word of "$ac_prog", so it can be a program name with args.
11388set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011391if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011392 $as_echo_n "(cached) " >&6
11393else
11394 if test -n "$ac_ct_AR"; then
11395 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11396else
11397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398for as_dir in $PATH
11399do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011404 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408done
11409 done
11410IFS=$as_save_IFS
11411
11412fi
11413fi
11414ac_ct_AR=$ac_cv_prog_ac_ct_AR
11415if test -n "$ac_ct_AR"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11417$as_echo "$ac_ct_AR" >&6; }
11418else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421fi
11422
cristyda16f162011-02-19 23:52:17 +000011423
11424 test -n "$ac_ct_AR" && break
11425done
11426
cristy73bd4a52010-10-05 11:24:23 +000011427 if test "x$ac_ct_AR" = x; then
11428 AR="false"
11429 else
11430 case $cross_compiling:$ac_tool_warned in
11431yes:)
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434ac_tool_warned=yes ;;
11435esac
11436 AR=$ac_ct_AR
11437 fi
cristy73bd4a52010-10-05 11:24:23 +000011438fi
11439
cristyda16f162011-02-19 23:52:17 +000011440: ${AR=ar}
11441: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
cristyda16f162011-02-19 23:52:17 +000011453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11454$as_echo_n "checking for archiver @FILE support... " >&6; }
11455if ${lt_cv_ar_at_file+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457else
11458 lt_cv_ar_at_file=no
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h. */
11461
11462int
11463main ()
11464{
11465
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470if ac_fn_c_try_compile "$LINENO"; then :
11471 echo conftest.$ac_objext > conftest.lst
11472 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11474 (eval $lt_ar_try) 2>&5
11475 ac_status=$?
11476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11477 test $ac_status = 0; }
11478 if test "$ac_status" -eq 0; then
11479 # Ensure the archiver fails upon bogus file names.
11480 rm -f conftest.$ac_objext libconftest.a
11481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11482 (eval $lt_ar_try) 2>&5
11483 ac_status=$?
11484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485 test $ac_status = 0; }
11486 if test "$ac_status" -ne 0; then
11487 lt_cv_ar_at_file=@
11488 fi
11489 fi
11490 rm -f conftest.* libconftest.a
11491
11492fi
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11497$as_echo "$lt_cv_ar_at_file" >&6; }
11498
11499if test "x$lt_cv_ar_at_file" = xno; then
11500 archiver_list_spec=
11501else
11502 archiver_list_spec=$lt_cv_ar_at_file
11503fi
11504
11505
11506
11507
11508
11509
11510
cristy73bd4a52010-10-05 11:24:23 +000011511if test -n "$ac_tool_prefix"; then
11512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11513set dummy ${ac_tool_prefix}strip; ac_word=$2
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011516if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011517 $as_echo_n "(cached) " >&6
11518else
11519 if test -n "$STRIP"; then
11520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534 done
11535IFS=$as_save_IFS
11536
11537fi
11538fi
11539STRIP=$ac_cv_prog_STRIP
11540if test -n "$STRIP"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11542$as_echo "$STRIP" >&6; }
11543else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545$as_echo "no" >&6; }
11546fi
11547
11548
11549fi
11550if test -z "$ac_cv_prog_STRIP"; then
11551 ac_ct_STRIP=$STRIP
11552 # Extract the first word of "strip", so it can be a program name with args.
11553set dummy strip; ac_word=$2
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011556if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011557 $as_echo_n "(cached) " >&6
11558else
11559 if test -n "$ac_ct_STRIP"; then
11560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011569 ac_cv_prog_ac_ct_STRIP="strip"
11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573done
11574 done
11575IFS=$as_save_IFS
11576
11577fi
11578fi
11579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11580if test -n "$ac_ct_STRIP"; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11582$as_echo "$ac_ct_STRIP" >&6; }
11583else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585$as_echo "no" >&6; }
11586fi
11587
11588 if test "x$ac_ct_STRIP" = x; then
11589 STRIP=":"
11590 else
11591 case $cross_compiling:$ac_tool_warned in
11592yes:)
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11595ac_tool_warned=yes ;;
11596esac
11597 STRIP=$ac_ct_STRIP
11598 fi
11599else
11600 STRIP="$ac_cv_prog_STRIP"
11601fi
11602
11603test -z "$STRIP" && STRIP=:
11604
11605
11606
11607
11608
11609
11610if test -n "$ac_tool_prefix"; then
11611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11612set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011615if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011616 $as_echo_n "(cached) " >&6
11617else
11618 if test -n "$RANLIB"; then
11619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632done
11633 done
11634IFS=$as_save_IFS
11635
11636fi
11637fi
11638RANLIB=$ac_cv_prog_RANLIB
11639if test -n "$RANLIB"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11641$as_echo "$RANLIB" >&6; }
11642else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
11645fi
11646
11647
11648fi
11649if test -z "$ac_cv_prog_RANLIB"; then
11650 ac_ct_RANLIB=$RANLIB
11651 # Extract the first word of "ranlib", so it can be a program name with args.
11652set dummy ranlib; ac_word=$2
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011655if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011656 $as_echo_n "(cached) " >&6
11657else
11658 if test -n "$ac_ct_RANLIB"; then
11659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011668 ac_cv_prog_ac_ct_RANLIB="ranlib"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672done
11673 done
11674IFS=$as_save_IFS
11675
11676fi
11677fi
11678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11679if test -n "$ac_ct_RANLIB"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11681$as_echo "$ac_ct_RANLIB" >&6; }
11682else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
11685fi
11686
11687 if test "x$ac_ct_RANLIB" = x; then
11688 RANLIB=":"
11689 else
11690 case $cross_compiling:$ac_tool_warned in
11691yes:)
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11694ac_tool_warned=yes ;;
11695esac
11696 RANLIB=$ac_ct_RANLIB
11697 fi
11698else
11699 RANLIB="$ac_cv_prog_RANLIB"
11700fi
11701
11702test -z "$RANLIB" && RANLIB=:
11703
11704
11705
11706
11707
11708
11709# Determine commands to create old-style static archives.
11710old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11711old_postinstall_cmds='chmod 644 $oldlib'
11712old_postuninstall_cmds=
11713
11714if test -n "$RANLIB"; then
11715 case $host_os in
11716 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011718 ;;
11719 *)
cristy99bd5232011-12-07 14:38:20 +000011720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011721 ;;
11722 esac
cristy99bd5232011-12-07 14:38:20 +000011723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011724fi
11725
cristy0c60a692010-11-04 01:09:47 +000011726case $host_os in
11727 darwin*)
11728 lock_old_archive_extraction=yes ;;
11729 *)
11730 lock_old_archive_extraction=no ;;
11731esac
11732
11733
11734
11735
11736
11737
cristy73bd4a52010-10-05 11:24:23 +000011738
11739
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# If no C compiler was specified, use CC.
11772LTCC=${LTCC-"$CC"}
11773
11774# If no C compiler flags were specified, use CFLAGS.
11775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11776
11777# Allow CC to be a program name with arguments.
11778compiler=$CC
11779
11780
11781# Check for command to grab the raw symbol name followed by C symbol from nm.
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11783$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011784if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011785 $as_echo_n "(cached) " >&6
11786else
11787
11788# These are sane defaults that work on at least a few old systems.
11789# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11790
11791# Character class describing NM global symbol codes.
11792symcode='[BCDEGRST]'
11793
11794# Regexp to match symbols that can be accessed directly from C.
11795sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11796
11797# Define system-specific variables.
11798case $host_os in
11799aix*)
11800 symcode='[BCDT]'
11801 ;;
11802cygwin* | mingw* | pw32* | cegcc*)
11803 symcode='[ABCDGISTW]'
11804 ;;
11805hpux*)
11806 if test "$host_cpu" = ia64; then
11807 symcode='[ABCDEGRST]'
11808 fi
11809 ;;
11810irix* | nonstopux*)
11811 symcode='[BCDEGRST]'
11812 ;;
11813osf*)
11814 symcode='[BCDEGQRST]'
11815 ;;
11816solaris*)
11817 symcode='[BDRT]'
11818 ;;
11819sco3.2v5*)
11820 symcode='[DT]'
11821 ;;
11822sysv4.2uw2*)
11823 symcode='[DT]'
11824 ;;
11825sysv5* | sco5v6* | unixware* | OpenUNIX*)
11826 symcode='[ABDT]'
11827 ;;
11828sysv4)
11829 symcode='[DFNSTU]'
11830 ;;
11831esac
11832
11833# If we're using GNU nm, then use its standard symbol codes.
11834case `$NM -V 2>&1` in
11835*GNU* | *'with BFD'*)
11836 symcode='[ABCDGIRSTW]' ;;
11837esac
11838
11839# Transform an extracted symbol line into a proper C declaration.
11840# Some systems (esp. on ia64) link data and code symbols differently,
11841# so use this general approach.
11842lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11843
11844# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011845lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11846lt_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 +000011847
11848# Handle CRLF in mingw tool chain
11849opt_cr=
11850case $build_os in
11851mingw*)
11852 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11853 ;;
11854esac
11855
11856# Try without a prefix underscore, then with it.
11857for ac_symprfx in "" "_"; do
11858
11859 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11860 symxfrm="\\1 $ac_symprfx\\2 \\2"
11861
11862 # Write the raw and C identifiers.
11863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11864 # Fake it for dumpbin and say T for any non-static function
11865 # and D for any global variable.
11866 # Also find C++ and __fastcall symbols from MSVC++,
11867 # which start with @ or ?.
11868 lt_cv_sys_global_symbol_pipe="$AWK '"\
11869" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011870" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011871" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11872" \$ 0!~/External *\|/{next};"\
11873" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11874" {if(hide[section]) next};"\
11875" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11876" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11877" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11878" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11879" ' prfx=^$ac_symprfx"
11880 else
11881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11882 fi
cristyda16f162011-02-19 23:52:17 +000011883 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011884
11885 # Check to see that the pipe works correctly.
11886 pipe_works=no
11887
11888 rm -f conftest*
11889 cat > conftest.$ac_ext <<_LT_EOF
11890#ifdef __cplusplus
11891extern "C" {
11892#endif
11893char nm_test_var;
11894void nm_test_func(void);
11895void nm_test_func(void){}
11896#ifdef __cplusplus
11897}
11898#endif
11899int main(){nm_test_var='a';nm_test_func();return(0);}
11900_LT_EOF
11901
11902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11903 (eval $ac_compile) 2>&5
11904 ac_status=$?
11905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906 test $ac_status = 0; }; then
11907 # Now try to grab the symbols.
11908 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11910 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011911 ac_status=$?
11912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11913 test $ac_status = 0; } && test -s "$nlist"; then
11914 # Try sorting and uniquifying the output.
11915 if sort "$nlist" | uniq > "$nlist"T; then
11916 mv -f "$nlist"T "$nlist"
11917 else
11918 rm -f "$nlist"T
11919 fi
11920
11921 # Make sure that we snagged all the symbols we need.
11922 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11923 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11924 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011925/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11926#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11927/* DATA imports from DLLs on WIN32 con't be const, because runtime
11928 relocations are performed -- see ld's documentation on pseudo-relocs. */
11929# define LT_DLSYM_CONST
11930#elif defined(__osf__)
11931/* This system does not cope well with relocations in const data. */
11932# define LT_DLSYM_CONST
11933#else
11934# define LT_DLSYM_CONST const
11935#endif
11936
cristy73bd4a52010-10-05 11:24:23 +000011937#ifdef __cplusplus
11938extern "C" {
11939#endif
11940
11941_LT_EOF
11942 # Now generate the symbol file.
11943 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11944
11945 cat <<_LT_EOF >> conftest.$ac_ext
11946
11947/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011948LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011949 const char *name;
11950 void *address;
11951}
11952lt__PROGRAM__LTX_preloaded_symbols[] =
11953{
11954 { "@PROGRAM@", (void *) 0 },
11955_LT_EOF
11956 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11957 cat <<\_LT_EOF >> conftest.$ac_ext
11958 {0, (void *) 0}
11959};
11960
11961/* This works around a problem in FreeBSD linker */
11962#ifdef FREEBSD_WORKAROUND
11963static const void *lt_preloaded_setup() {
11964 return lt__PROGRAM__LTX_preloaded_symbols;
11965}
11966#endif
11967
11968#ifdef __cplusplus
11969}
11970#endif
11971_LT_EOF
11972 # Now try linking the two files.
11973 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011974 lt_globsym_save_LIBS=$LIBS
11975 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011976 LIBS="conftstm.$ac_objext"
11977 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11979 (eval $ac_link) 2>&5
11980 ac_status=$?
11981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11982 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11983 pipe_works=yes
11984 fi
cristyda16f162011-02-19 23:52:17 +000011985 LIBS=$lt_globsym_save_LIBS
11986 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011987 else
11988 echo "cannot find nm_test_func in $nlist" >&5
11989 fi
11990 else
11991 echo "cannot find nm_test_var in $nlist" >&5
11992 fi
11993 else
11994 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11995 fi
11996 else
11997 echo "$progname: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 fi
12000 rm -rf conftest* conftst*
12001
12002 # Do not use the global_symbol_pipe unless it works.
12003 if test "$pipe_works" = yes; then
12004 break
12005 else
12006 lt_cv_sys_global_symbol_pipe=
12007 fi
12008done
12009
12010fi
12011
12012if test -z "$lt_cv_sys_global_symbol_pipe"; then
12013 lt_cv_sys_global_symbol_to_cdecl=
12014fi
12015if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12017$as_echo "failed" >&6; }
12018else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12020$as_echo "ok" >&6; }
12021fi
12022
cristyda16f162011-02-19 23:52:17 +000012023# Response file support.
12024if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12025 nm_file_list_spec='@'
12026elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12027 nm_file_list_spec='@'
12028fi
cristy73bd4a52010-10-05 11:24:23 +000012029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
cristyda16f162011-02-19 23:52:17 +000012050
12051
12052
12053
12054
12055
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12057$as_echo_n "checking for sysroot... " >&6; }
12058
12059# Check whether --with-sysroot was given.
12060if test "${with_sysroot+set}" = set; then :
12061 withval=$with_sysroot;
12062else
12063 with_sysroot=no
12064fi
12065
12066
12067lt_sysroot=
12068case ${with_sysroot} in #(
12069 yes)
12070 if test "$GCC" = yes; then
12071 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12072 fi
12073 ;; #(
12074 /*)
12075 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12076 ;; #(
12077 no|'')
12078 ;; #(
12079 *)
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12081$as_echo "${with_sysroot}" >&6; }
12082 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12083 ;;
12084esac
12085
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12087$as_echo "${lt_sysroot:-no}" >&6; }
12088
12089
12090
12091
12092
cristy73bd4a52010-10-05 11:24:23 +000012093# Check whether --enable-libtool-lock was given.
12094if test "${enable_libtool_lock+set}" = set; then :
12095 enableval=$enable_libtool_lock;
12096fi
12097
12098test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12099
12100# Some flags need to be propagated to the compiler or linker for good
12101# libtool support.
12102case $host in
12103ia64-*-hpux*)
12104 # Find out which ABI we are using.
12105 echo 'int i;' > conftest.$ac_ext
12106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12107 (eval $ac_compile) 2>&5
12108 ac_status=$?
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }; then
12111 case `/usr/bin/file conftest.$ac_objext` in
12112 *ELF-32*)
12113 HPUX_IA64_MODE="32"
12114 ;;
12115 *ELF-64*)
12116 HPUX_IA64_MODE="64"
12117 ;;
12118 esac
12119 fi
12120 rm -rf conftest*
12121 ;;
12122*-*-irix6*)
12123 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012124 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12126 (eval $ac_compile) 2>&5
12127 ac_status=$?
12128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12129 test $ac_status = 0; }; then
12130 if test "$lt_cv_prog_gnu_ld" = yes; then
12131 case `/usr/bin/file conftest.$ac_objext` in
12132 *32-bit*)
12133 LD="${LD-ld} -melf32bsmip"
12134 ;;
12135 *N32*)
12136 LD="${LD-ld} -melf32bmipn32"
12137 ;;
12138 *64-bit*)
12139 LD="${LD-ld} -melf64bmip"
12140 ;;
12141 esac
12142 else
12143 case `/usr/bin/file conftest.$ac_objext` in
12144 *32-bit*)
12145 LD="${LD-ld} -32"
12146 ;;
12147 *N32*)
12148 LD="${LD-ld} -n32"
12149 ;;
12150 *64-bit*)
12151 LD="${LD-ld} -64"
12152 ;;
12153 esac
12154 fi
12155 fi
12156 rm -rf conftest*
12157 ;;
12158
12159x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12160s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12161 # Find out which ABI we are using.
12162 echo 'int i;' > conftest.$ac_ext
12163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12164 (eval $ac_compile) 2>&5
12165 ac_status=$?
12166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12167 test $ac_status = 0; }; then
12168 case `/usr/bin/file conftest.o` in
12169 *32-bit*)
12170 case $host in
12171 x86_64-*kfreebsd*-gnu)
12172 LD="${LD-ld} -m elf_i386_fbsd"
12173 ;;
12174 x86_64-*linux*)
12175 LD="${LD-ld} -m elf_i386"
12176 ;;
12177 ppc64-*linux*|powerpc64-*linux*)
12178 LD="${LD-ld} -m elf32ppclinux"
12179 ;;
12180 s390x-*linux*)
12181 LD="${LD-ld} -m elf_s390"
12182 ;;
12183 sparc64-*linux*)
12184 LD="${LD-ld} -m elf32_sparc"
12185 ;;
12186 esac
12187 ;;
12188 *64-bit*)
12189 case $host in
12190 x86_64-*kfreebsd*-gnu)
12191 LD="${LD-ld} -m elf_x86_64_fbsd"
12192 ;;
12193 x86_64-*linux*)
12194 LD="${LD-ld} -m elf_x86_64"
12195 ;;
12196 ppc*-*linux*|powerpc*-*linux*)
12197 LD="${LD-ld} -m elf64ppc"
12198 ;;
12199 s390*-*linux*|s390*-*tpf*)
12200 LD="${LD-ld} -m elf64_s390"
12201 ;;
12202 sparc*-*linux*)
12203 LD="${LD-ld} -m elf64_sparc"
12204 ;;
12205 esac
12206 ;;
12207 esac
12208 fi
12209 rm -rf conftest*
12210 ;;
12211
12212*-*-sco3.2v5*)
12213 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12214 SAVE_CFLAGS="$CFLAGS"
12215 CFLAGS="$CFLAGS -belf"
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12217$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012218if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012219 $as_echo_n "(cached) " >&6
12220else
12221 ac_ext=c
12222ac_cpp='$CPP $CPPFLAGS'
12223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225ac_compiler_gnu=$ac_cv_c_compiler_gnu
12226
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h. */
12229
12230int
12231main ()
12232{
12233
12234 ;
12235 return 0;
12236}
12237_ACEOF
12238if ac_fn_c_try_link "$LINENO"; then :
12239 lt_cv_cc_needs_belf=yes
12240else
12241 lt_cv_cc_needs_belf=no
12242fi
12243rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 ac_ext=c
12246ac_cpp='$CPP $CPPFLAGS'
12247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249ac_compiler_gnu=$ac_cv_c_compiler_gnu
12250
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12253$as_echo "$lt_cv_cc_needs_belf" >&6; }
12254 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12255 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12256 CFLAGS="$SAVE_CFLAGS"
12257 fi
12258 ;;
cristy99bd5232011-12-07 14:38:20 +000012259*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012260 # Find out which ABI we are using.
12261 echo 'int i;' > conftest.$ac_ext
12262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12263 (eval $ac_compile) 2>&5
12264 ac_status=$?
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; }; then
12267 case `/usr/bin/file conftest.o` in
12268 *64-bit*)
12269 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012270 yes*)
12271 case $host in
12272 i?86-*-solaris*)
12273 LD="${LD-ld} -m elf_x86_64"
12274 ;;
12275 sparc*-*-solaris*)
12276 LD="${LD-ld} -m elf64_sparc"
12277 ;;
12278 esac
12279 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12280 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12281 LD="${LD-ld}_sol2"
12282 fi
12283 ;;
cristy73bd4a52010-10-05 11:24:23 +000012284 *)
12285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12286 LD="${LD-ld} -64"
12287 fi
12288 ;;
12289 esac
12290 ;;
12291 esac
12292 fi
12293 rm -rf conftest*
12294 ;;
12295esac
12296
12297need_locks="$enable_libtool_lock"
12298
cristyda16f162011-02-19 23:52:17 +000012299if test -n "$ac_tool_prefix"; then
12300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12301set dummy ${ac_tool_prefix}mt; ac_word=$2
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303$as_echo_n "checking for $ac_word... " >&6; }
12304if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306else
12307 if test -n "$MANIFEST_TOOL"; then
12308 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12309else
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012317 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321done
12322 done
12323IFS=$as_save_IFS
12324
12325fi
12326fi
12327MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12328if test -n "$MANIFEST_TOOL"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12330$as_echo "$MANIFEST_TOOL" >&6; }
12331else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
12334fi
12335
12336
12337fi
12338if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12339 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12340 # Extract the first word of "mt", so it can be a program name with args.
12341set dummy mt; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346else
12347 if test -n "$ac_ct_MANIFEST_TOOL"; then
12348 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012357 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361done
12362 done
12363IFS=$as_save_IFS
12364
12365fi
12366fi
12367ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12368if test -n "$ac_ct_MANIFEST_TOOL"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12370$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12371else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12377 MANIFEST_TOOL=":"
12378 else
12379 case $cross_compiling:$ac_tool_warned in
12380yes:)
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12383ac_tool_warned=yes ;;
12384esac
12385 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12386 fi
12387else
12388 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12389fi
12390
12391test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12393$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12394if ${lt_cv_path_mainfest_tool+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396else
12397 lt_cv_path_mainfest_tool=no
12398 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12399 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12400 cat conftest.err >&5
12401 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12402 lt_cv_path_mainfest_tool=yes
12403 fi
12404 rm -f conftest*
12405fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12407$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12408if test "x$lt_cv_path_mainfest_tool" != xyes; then
12409 MANIFEST_TOOL=:
12410fi
12411
12412
12413
12414
12415
cristy73bd4a52010-10-05 11:24:23 +000012416
12417 case $host_os in
12418 rhapsody* | darwin*)
12419 if test -n "$ac_tool_prefix"; then
12420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12421set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012424if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012425 $as_echo_n "(cached) " >&6
12426else
12427 if test -n "$DSYMUTIL"; then
12428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12429else
12430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431for as_dir in $PATH
12432do
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12440 fi
12441done
12442 done
12443IFS=$as_save_IFS
12444
12445fi
12446fi
12447DSYMUTIL=$ac_cv_prog_DSYMUTIL
12448if test -n "$DSYMUTIL"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12450$as_echo "$DSYMUTIL" >&6; }
12451else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
12454fi
12455
12456
12457fi
12458if test -z "$ac_cv_prog_DSYMUTIL"; then
12459 ac_ct_DSYMUTIL=$DSYMUTIL
12460 # Extract the first word of "dsymutil", so it can be a program name with args.
12461set dummy dsymutil; ac_word=$2
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012464if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012465 $as_echo_n "(cached) " >&6
12466else
12467 if test -n "$ac_ct_DSYMUTIL"; then
12468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481done
12482 done
12483IFS=$as_save_IFS
12484
12485fi
12486fi
12487ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12488if test -n "$ac_ct_DSYMUTIL"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12490$as_echo "$ac_ct_DSYMUTIL" >&6; }
12491else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494fi
12495
12496 if test "x$ac_ct_DSYMUTIL" = x; then
12497 DSYMUTIL=":"
12498 else
12499 case $cross_compiling:$ac_tool_warned in
12500yes:)
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12503ac_tool_warned=yes ;;
12504esac
12505 DSYMUTIL=$ac_ct_DSYMUTIL
12506 fi
12507else
12508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12509fi
12510
12511 if test -n "$ac_tool_prefix"; then
12512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12513set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012516if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012517 $as_echo_n "(cached) " >&6
12518else
12519 if test -n "$NMEDIT"; then
12520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12521else
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533done
12534 done
12535IFS=$as_save_IFS
12536
12537fi
12538fi
12539NMEDIT=$ac_cv_prog_NMEDIT
12540if test -n "$NMEDIT"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12542$as_echo "$NMEDIT" >&6; }
12543else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
12546fi
12547
12548
12549fi
12550if test -z "$ac_cv_prog_NMEDIT"; then
12551 ac_ct_NMEDIT=$NMEDIT
12552 # Extract the first word of "nmedit", so it can be a program name with args.
12553set dummy nmedit; ac_word=$2
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012556if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012557 $as_echo_n "(cached) " >&6
12558else
12559 if test -n "$ac_ct_NMEDIT"; then
12560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12561else
12562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $PATH
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12572 fi
12573done
12574 done
12575IFS=$as_save_IFS
12576
12577fi
12578fi
12579ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12580if test -n "$ac_ct_NMEDIT"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12582$as_echo "$ac_ct_NMEDIT" >&6; }
12583else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586fi
12587
12588 if test "x$ac_ct_NMEDIT" = x; then
12589 NMEDIT=":"
12590 else
12591 case $cross_compiling:$ac_tool_warned in
12592yes:)
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12595ac_tool_warned=yes ;;
12596esac
12597 NMEDIT=$ac_ct_NMEDIT
12598 fi
12599else
12600 NMEDIT="$ac_cv_prog_NMEDIT"
12601fi
12602
12603 if test -n "$ac_tool_prefix"; then
12604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12605set dummy ${ac_tool_prefix}lipo; ac_word=$2
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012608if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012609 $as_echo_n "(cached) " >&6
12610else
12611 if test -n "$LIPO"; then
12612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12613else
12614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625done
12626 done
12627IFS=$as_save_IFS
12628
12629fi
12630fi
12631LIPO=$ac_cv_prog_LIPO
12632if test -n "$LIPO"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12634$as_echo "$LIPO" >&6; }
12635else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638fi
12639
12640
12641fi
12642if test -z "$ac_cv_prog_LIPO"; then
12643 ac_ct_LIPO=$LIPO
12644 # Extract the first word of "lipo", so it can be a program name with args.
12645set dummy lipo; ac_word=$2
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012648if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012649 $as_echo_n "(cached) " >&6
12650else
12651 if test -n "$ac_ct_LIPO"; then
12652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12653else
12654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012661 ac_cv_prog_ac_ct_LIPO="lipo"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12664 fi
12665done
12666 done
12667IFS=$as_save_IFS
12668
12669fi
12670fi
12671ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12672if test -n "$ac_ct_LIPO"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12674$as_echo "$ac_ct_LIPO" >&6; }
12675else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
12678fi
12679
12680 if test "x$ac_ct_LIPO" = x; then
12681 LIPO=":"
12682 else
12683 case $cross_compiling:$ac_tool_warned in
12684yes:)
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12687ac_tool_warned=yes ;;
12688esac
12689 LIPO=$ac_ct_LIPO
12690 fi
12691else
12692 LIPO="$ac_cv_prog_LIPO"
12693fi
12694
12695 if test -n "$ac_tool_prefix"; then
12696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12697set dummy ${ac_tool_prefix}otool; ac_word=$2
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012700if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012701 $as_echo_n "(cached) " >&6
12702else
12703 if test -n "$OTOOL"; then
12704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12705else
12706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707for as_dir in $PATH
12708do
12709 IFS=$as_save_IFS
12710 test -z "$as_dir" && as_dir=.
12711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 break 2
12716 fi
12717done
12718 done
12719IFS=$as_save_IFS
12720
12721fi
12722fi
12723OTOOL=$ac_cv_prog_OTOOL
12724if test -n "$OTOOL"; then
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12726$as_echo "$OTOOL" >&6; }
12727else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729$as_echo "no" >&6; }
12730fi
12731
12732
12733fi
12734if test -z "$ac_cv_prog_OTOOL"; then
12735 ac_ct_OTOOL=$OTOOL
12736 # Extract the first word of "otool", so it can be a program name with args.
12737set dummy otool; ac_word=$2
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012740if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012741 $as_echo_n "(cached) " >&6
12742else
12743 if test -n "$ac_ct_OTOOL"; then
12744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12745else
12746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747for as_dir in $PATH
12748do
12749 IFS=$as_save_IFS
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012753 ac_cv_prog_ac_ct_OTOOL="otool"
12754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 break 2
12756 fi
12757done
12758 done
12759IFS=$as_save_IFS
12760
12761fi
12762fi
12763ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12764if test -n "$ac_ct_OTOOL"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12766$as_echo "$ac_ct_OTOOL" >&6; }
12767else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
12770fi
12771
12772 if test "x$ac_ct_OTOOL" = x; then
12773 OTOOL=":"
12774 else
12775 case $cross_compiling:$ac_tool_warned in
12776yes:)
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12779ac_tool_warned=yes ;;
12780esac
12781 OTOOL=$ac_ct_OTOOL
12782 fi
12783else
12784 OTOOL="$ac_cv_prog_OTOOL"
12785fi
12786
12787 if test -n "$ac_tool_prefix"; then
12788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12789set dummy ${ac_tool_prefix}otool64; ac_word=$2
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012792if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012793 $as_echo_n "(cached) " >&6
12794else
12795 if test -n "$OTOOL64"; then
12796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12797else
12798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799for as_dir in $PATH
12800do
12801 IFS=$as_save_IFS
12802 test -z "$as_dir" && as_dir=.
12803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807 break 2
12808 fi
12809done
12810 done
12811IFS=$as_save_IFS
12812
12813fi
12814fi
12815OTOOL64=$ac_cv_prog_OTOOL64
12816if test -n "$OTOOL64"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12818$as_echo "$OTOOL64" >&6; }
12819else
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821$as_echo "no" >&6; }
12822fi
12823
12824
12825fi
12826if test -z "$ac_cv_prog_OTOOL64"; then
12827 ac_ct_OTOOL64=$OTOOL64
12828 # Extract the first word of "otool64", so it can be a program name with args.
12829set dummy otool64; ac_word=$2
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012832if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012833 $as_echo_n "(cached) " >&6
12834else
12835 if test -n "$ac_ct_OTOOL64"; then
12836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12837else
12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012845 ac_cv_prog_ac_ct_OTOOL64="otool64"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12848 fi
12849done
12850 done
12851IFS=$as_save_IFS
12852
12853fi
12854fi
12855ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12856if test -n "$ac_ct_OTOOL64"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12858$as_echo "$ac_ct_OTOOL64" >&6; }
12859else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
12862fi
12863
12864 if test "x$ac_ct_OTOOL64" = x; then
12865 OTOOL64=":"
12866 else
12867 case $cross_compiling:$ac_tool_warned in
12868yes:)
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12871ac_tool_warned=yes ;;
12872esac
12873 OTOOL64=$ac_ct_OTOOL64
12874 fi
12875else
12876 OTOOL64="$ac_cv_prog_OTOOL64"
12877fi
12878
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12906$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012907if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012908 $as_echo_n "(cached) " >&6
12909else
12910 lt_cv_apple_cc_single_mod=no
12911 if test -z "${LT_MULTI_MODULE}"; then
12912 # By default we will add the -single_module flag. You can override
12913 # by either setting the environment variable LT_MULTI_MODULE
12914 # non-empty at configure time, or by adding -multi_module to the
12915 # link flags.
12916 rm -rf libconftest.dylib*
12917 echo "int foo(void){return 1;}" > conftest.c
12918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12919-dynamiclib -Wl,-single_module conftest.c" >&5
12920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12922 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012923 # If there is a non-empty error log, and "single_module"
12924 # appears in it, assume the flag caused a linker warning
12925 if test -s conftest.err && $GREP single_module conftest.err; then
12926 cat conftest.err >&5
12927 # Otherwise, if the output was created with a 0 exit code from
12928 # the compiler, it worked.
12929 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012930 lt_cv_apple_cc_single_mod=yes
12931 else
12932 cat conftest.err >&5
12933 fi
12934 rm -rf libconftest.dylib*
12935 rm -f conftest.*
12936 fi
12937fi
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12939$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012940
cristy73bd4a52010-10-05 11:24:23 +000012941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12942$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012943if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012944 $as_echo_n "(cached) " >&6
12945else
12946 lt_cv_ld_exported_symbols_list=no
12947 save_LDFLAGS=$LDFLAGS
12948 echo "_main" > conftest.sym
12949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951/* end confdefs.h. */
12952
12953int
12954main ()
12955{
12956
12957 ;
12958 return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_link "$LINENO"; then :
12962 lt_cv_ld_exported_symbols_list=yes
12963else
12964 lt_cv_ld_exported_symbols_list=no
12965fi
12966rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
12968 LDFLAGS="$save_LDFLAGS"
12969
12970fi
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12972$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012973
cristy0c60a692010-11-04 01:09:47 +000012974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12975$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012976if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012977 $as_echo_n "(cached) " >&6
12978else
12979 lt_cv_ld_force_load=no
12980 cat > conftest.c << _LT_EOF
12981int forced_loaded() { return 2;}
12982_LT_EOF
12983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12985 echo "$AR cru libconftest.a conftest.o" >&5
12986 $AR cru libconftest.a conftest.o 2>&5
12987 echo "$RANLIB libconftest.a" >&5
12988 $RANLIB libconftest.a 2>&5
12989 cat > conftest.c << _LT_EOF
12990int main() { return 0;}
12991_LT_EOF
12992 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12993 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12994 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012995 if test -s conftest.err && $GREP force_load conftest.err; then
12996 cat conftest.err >&5
12997 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012998 lt_cv_ld_force_load=yes
12999 else
13000 cat conftest.err >&5
13001 fi
13002 rm -f conftest.err libconftest.a conftest conftest.c
13003 rm -rf conftest.dSYM
13004
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13007$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013008 case $host_os in
13009 rhapsody* | darwin1.[012])
13010 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13011 darwin1.*)
13012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13013 darwin*) # darwin 5.x on
13014 # if running on 10.5 or later, the deployment target defaults
13015 # to the OS version, if on x86, and 10.4, the deployment
13016 # target defaults to 10.4. Don't you love it?
13017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13020 10.[012]*)
13021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13022 10.*)
13023 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13024 esac
13025 ;;
13026 esac
13027 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13028 _lt_dar_single_mod='$single_module'
13029 fi
13030 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13031 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13032 else
13033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13034 fi
cristy0c60a692010-11-04 01:09:47 +000013035 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013036 _lt_dsymutil='~$DSYMUTIL $lib || :'
13037 else
13038 _lt_dsymutil=
13039 fi
13040 ;;
13041 esac
13042
13043for ac_header in dlfcn.h
13044do :
13045 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13046"
cristyda16f162011-02-19 23:52:17 +000013047if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013048 cat >>confdefs.h <<_ACEOF
13049#define HAVE_DLFCN_H 1
13050_ACEOF
13051
13052fi
13053
13054done
13055
13056
13057
cristy73bd4a52010-10-05 11:24:23 +000013058
cristyda16f162011-02-19 23:52:17 +000013059func_stripname_cnf ()
13060{
13061 case ${2} in
13062 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13063 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13064 esac
13065} # func_stripname_cnf
13066
13067
13068
cristy73bd4a52010-10-05 11:24:23 +000013069
13070
13071# Set options
13072enable_win32_dll=yes
13073
13074case $host in
cristy0c60a692010-11-04 01:09:47 +000013075*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013076 if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}as; ac_word=$2
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013081if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013082 $as_echo_n "(cached) " >&6
13083else
13084 if test -n "$AS"; then
13085 ac_cv_prog_AS="$AS" # Let the user override the test.
13086else
13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088for as_dir in $PATH
13089do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013094 ac_cv_prog_AS="${ac_tool_prefix}as"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098done
13099 done
13100IFS=$as_save_IFS
13101
13102fi
13103fi
13104AS=$ac_cv_prog_AS
13105if test -n "$AS"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13107$as_echo "$AS" >&6; }
13108else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110$as_echo "no" >&6; }
13111fi
13112
13113
13114fi
13115if test -z "$ac_cv_prog_AS"; then
13116 ac_ct_AS=$AS
13117 # Extract the first word of "as", so it can be a program name with args.
13118set dummy as; ac_word=$2
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013121if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013122 $as_echo_n "(cached) " >&6
13123else
13124 if test -n "$ac_ct_AS"; then
13125 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013134 ac_cv_prog_ac_ct_AS="as"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138done
13139 done
13140IFS=$as_save_IFS
13141
13142fi
13143fi
13144ac_ct_AS=$ac_cv_prog_ac_ct_AS
13145if test -n "$ac_ct_AS"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13147$as_echo "$ac_ct_AS" >&6; }
13148else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152
13153 if test "x$ac_ct_AS" = x; then
13154 AS="false"
13155 else
13156 case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13160ac_tool_warned=yes ;;
13161esac
13162 AS=$ac_ct_AS
13163 fi
13164else
13165 AS="$ac_cv_prog_AS"
13166fi
13167
13168 if test -n "$ac_tool_prefix"; then
13169 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13170set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013173if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013174 $as_echo_n "(cached) " >&6
13175else
13176 if test -n "$DLLTOOL"; then
13177 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13178else
13179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180for as_dir in $PATH
13181do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013186 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190done
13191 done
13192IFS=$as_save_IFS
13193
13194fi
13195fi
13196DLLTOOL=$ac_cv_prog_DLLTOOL
13197if test -n "$DLLTOOL"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13199$as_echo "$DLLTOOL" >&6; }
13200else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
13203fi
13204
13205
13206fi
13207if test -z "$ac_cv_prog_DLLTOOL"; then
13208 ac_ct_DLLTOOL=$DLLTOOL
13209 # Extract the first word of "dlltool", so it can be a program name with args.
13210set dummy dlltool; ac_word=$2
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013213if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013214 $as_echo_n "(cached) " >&6
13215else
13216 if test -n "$ac_ct_DLLTOOL"; then
13217 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13218else
13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013226 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13229 fi
13230done
13231 done
13232IFS=$as_save_IFS
13233
13234fi
13235fi
13236ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13237if test -n "$ac_ct_DLLTOOL"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13239$as_echo "$ac_ct_DLLTOOL" >&6; }
13240else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242$as_echo "no" >&6; }
13243fi
13244
13245 if test "x$ac_ct_DLLTOOL" = x; then
13246 DLLTOOL="false"
13247 else
13248 case $cross_compiling:$ac_tool_warned in
13249yes:)
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252ac_tool_warned=yes ;;
13253esac
13254 DLLTOOL=$ac_ct_DLLTOOL
13255 fi
13256else
13257 DLLTOOL="$ac_cv_prog_DLLTOOL"
13258fi
13259
13260 if test -n "$ac_tool_prefix"; then
13261 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13262set dummy ${ac_tool_prefix}objdump; ac_word=$2
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013265if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013266 $as_echo_n "(cached) " >&6
13267else
13268 if test -n "$OBJDUMP"; then
13269 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13270else
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013278 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282done
13283 done
13284IFS=$as_save_IFS
13285
13286fi
13287fi
13288OBJDUMP=$ac_cv_prog_OBJDUMP
13289if test -n "$OBJDUMP"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13291$as_echo "$OBJDUMP" >&6; }
13292else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
13295fi
13296
13297
13298fi
13299if test -z "$ac_cv_prog_OBJDUMP"; then
13300 ac_ct_OBJDUMP=$OBJDUMP
13301 # Extract the first word of "objdump", so it can be a program name with args.
13302set dummy objdump; ac_word=$2
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013305if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013306 $as_echo_n "(cached) " >&6
13307else
13308 if test -n "$ac_ct_OBJDUMP"; then
13309 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13310else
13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312for as_dir in $PATH
13313do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013318 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322done
13323 done
13324IFS=$as_save_IFS
13325
13326fi
13327fi
13328ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13329if test -n "$ac_ct_OBJDUMP"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13331$as_echo "$ac_ct_OBJDUMP" >&6; }
13332else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335fi
13336
13337 if test "x$ac_ct_OBJDUMP" = x; then
13338 OBJDUMP="false"
13339 else
13340 case $cross_compiling:$ac_tool_warned in
13341yes:)
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344ac_tool_warned=yes ;;
13345esac
13346 OBJDUMP=$ac_ct_OBJDUMP
13347 fi
13348else
13349 OBJDUMP="$ac_cv_prog_OBJDUMP"
13350fi
13351
13352 ;;
13353esac
13354
13355test -z "$AS" && AS=as
13356
13357
13358
13359
13360
13361test -z "$DLLTOOL" && DLLTOOL=dlltool
13362
13363
13364
13365
13366
13367test -z "$OBJDUMP" && OBJDUMP=objdump
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377 # Check whether --enable-shared was given.
13378if test "${enable_shared+set}" = set; then :
13379 enableval=$enable_shared; p=${PACKAGE-default}
13380 case $enableval in
13381 yes) enable_shared=yes ;;
13382 no) enable_shared=no ;;
13383 *)
13384 enable_shared=no
13385 # Look at the argument we got. We use all the common list separators.
13386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13387 for pkg in $enableval; do
13388 IFS="$lt_save_ifs"
13389 if test "X$pkg" = "X$p"; then
13390 enable_shared=yes
13391 fi
13392 done
13393 IFS="$lt_save_ifs"
13394 ;;
13395 esac
13396else
13397 enable_shared=yes
13398fi
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408 # Check whether --enable-static was given.
13409if test "${enable_static+set}" = set; then :
13410 enableval=$enable_static; p=${PACKAGE-default}
13411 case $enableval in
13412 yes) enable_static=yes ;;
13413 no) enable_static=no ;;
13414 *)
13415 enable_static=no
13416 # Look at the argument we got. We use all the common list separators.
13417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13418 for pkg in $enableval; do
13419 IFS="$lt_save_ifs"
13420 if test "X$pkg" = "X$p"; then
13421 enable_static=yes
13422 fi
13423 done
13424 IFS="$lt_save_ifs"
13425 ;;
13426 esac
13427else
13428 enable_static=yes
13429fi
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440# Check whether --with-pic was given.
13441if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013442 withval=$with_pic; lt_p=${PACKAGE-default}
13443 case $withval in
13444 yes|no) pic_mode=$withval ;;
13445 *)
13446 pic_mode=default
13447 # Look at the argument we got. We use all the common list separators.
13448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13449 for lt_pkg in $withval; do
13450 IFS="$lt_save_ifs"
13451 if test "X$lt_pkg" = "X$lt_p"; then
13452 pic_mode=yes
13453 fi
13454 done
13455 IFS="$lt_save_ifs"
13456 ;;
13457 esac
cristy73bd4a52010-10-05 11:24:23 +000013458else
13459 pic_mode=default
13460fi
13461
13462
13463test -z "$pic_mode" && pic_mode=default
13464
13465
13466
13467
13468
13469
13470
13471 # Check whether --enable-fast-install was given.
13472if test "${enable_fast_install+set}" = set; then :
13473 enableval=$enable_fast_install; p=${PACKAGE-default}
13474 case $enableval in
13475 yes) enable_fast_install=yes ;;
13476 no) enable_fast_install=no ;;
13477 *)
13478 enable_fast_install=no
13479 # Look at the argument we got. We use all the common list separators.
13480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13481 for pkg in $enableval; do
13482 IFS="$lt_save_ifs"
13483 if test "X$pkg" = "X$p"; then
13484 enable_fast_install=yes
13485 fi
13486 done
13487 IFS="$lt_save_ifs"
13488 ;;
13489 esac
13490else
13491 enable_fast_install=yes
13492fi
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504# This can be used to rebuild libtool when needed
13505LIBTOOL_DEPS="$ltmain"
13506
13507# Always use our own libtool.
13508LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
cristy0c60a692010-11-04 01:09:47 +000013534
cristy99bd5232011-12-07 14:38:20 +000013535
13536
13537
13538
cristy73bd4a52010-10-05 11:24:23 +000013539test -z "$LN_S" && LN_S="ln -s"
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554if test -n "${ZSH_VERSION+set}" ; then
13555 setopt NO_GLOB_SUBST
13556fi
13557
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13559$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013560if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013561 $as_echo_n "(cached) " >&6
13562else
13563 rm -f .libs 2>/dev/null
13564mkdir .libs 2>/dev/null
13565if test -d .libs; then
13566 lt_cv_objdir=.libs
13567else
13568 # MS-DOS does not allow filenames that begin with a dot.
13569 lt_cv_objdir=_libs
13570fi
13571rmdir .libs 2>/dev/null
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13574$as_echo "$lt_cv_objdir" >&6; }
13575objdir=$lt_cv_objdir
13576
13577
13578
13579
13580
13581cat >>confdefs.h <<_ACEOF
13582#define LT_OBJDIR "$lt_cv_objdir/"
13583_ACEOF
13584
13585
13586
13587
cristy73bd4a52010-10-05 11:24:23 +000013588case $host_os in
13589aix3*)
13590 # AIX sometimes has problems with the GCC collect2 program. For some
13591 # reason, if we set the COLLECT_NAMES environment variable, the problems
13592 # vanish in a puff of smoke.
13593 if test "X${COLLECT_NAMES+set}" != Xset; then
13594 COLLECT_NAMES=
13595 export COLLECT_NAMES
13596 fi
13597 ;;
13598esac
13599
cristy73bd4a52010-10-05 11:24:23 +000013600# Global variables:
13601ofile=libtool
13602can_build_shared=yes
13603
13604# All known linkers require a `.a' archive for static linking (except MSVC,
13605# which needs '.lib').
13606libext=a
13607
13608with_gnu_ld="$lt_cv_prog_gnu_ld"
13609
13610old_CC="$CC"
13611old_CFLAGS="$CFLAGS"
13612
13613# Set sane defaults for various variables
13614test -z "$CC" && CC=cc
13615test -z "$LTCC" && LTCC=$CC
13616test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13617test -z "$LD" && LD=ld
13618test -z "$ac_objext" && ac_objext=o
13619
13620for cc_temp in $compiler""; do
13621 case $cc_temp in
13622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13624 \-*) ;;
13625 *) break;;
13626 esac
13627done
cristy0c60a692010-11-04 01:09:47 +000013628cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013629
13630
13631# Only perform the check for file, if the check method requires it
13632test -z "$MAGIC_CMD" && MAGIC_CMD=file
13633case $deplibs_check_method in
13634file_magic*)
13635 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13637$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013638if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013639 $as_echo_n "(cached) " >&6
13640else
13641 case $MAGIC_CMD in
13642[\\/*] | ?:[\\/]*)
13643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13644 ;;
13645*)
13646 lt_save_MAGIC_CMD="$MAGIC_CMD"
13647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13649 for ac_dir in $ac_dummy; do
13650 IFS="$lt_save_ifs"
13651 test -z "$ac_dir" && ac_dir=.
13652 if test -f $ac_dir/${ac_tool_prefix}file; then
13653 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13654 if test -n "$file_magic_test_file"; then
13655 case $deplibs_check_method in
13656 "file_magic "*)
13657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13660 $EGREP "$file_magic_regex" > /dev/null; then
13661 :
13662 else
13663 cat <<_LT_EOF 1>&2
13664
13665*** Warning: the command libtool uses to detect shared libraries,
13666*** $file_magic_cmd, produces output that libtool cannot recognize.
13667*** The result is that libtool may fail to recognize shared libraries
13668*** as such. This will affect the creation of libtool libraries that
13669*** depend on shared libraries, but programs linked with such libtool
13670*** libraries will work regardless of this problem. Nevertheless, you
13671*** may want to report the problem to your system manager and/or to
13672*** bug-libtool@gnu.org
13673
13674_LT_EOF
13675 fi ;;
13676 esac
13677 fi
13678 break
13679 fi
13680 done
13681 IFS="$lt_save_ifs"
13682 MAGIC_CMD="$lt_save_MAGIC_CMD"
13683 ;;
13684esac
13685fi
13686
13687MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13688if test -n "$MAGIC_CMD"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13690$as_echo "$MAGIC_CMD" >&6; }
13691else
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693$as_echo "no" >&6; }
13694fi
13695
13696
13697
13698
13699
13700if test -z "$lt_cv_path_MAGIC_CMD"; then
13701 if test -n "$ac_tool_prefix"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13703$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013704if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013705 $as_echo_n "(cached) " >&6
13706else
13707 case $MAGIC_CMD in
13708[\\/*] | ?:[\\/]*)
13709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13710 ;;
13711*)
13712 lt_save_MAGIC_CMD="$MAGIC_CMD"
13713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13715 for ac_dir in $ac_dummy; do
13716 IFS="$lt_save_ifs"
13717 test -z "$ac_dir" && ac_dir=.
13718 if test -f $ac_dir/file; then
13719 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13720 if test -n "$file_magic_test_file"; then
13721 case $deplibs_check_method in
13722 "file_magic "*)
13723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13726 $EGREP "$file_magic_regex" > /dev/null; then
13727 :
13728 else
13729 cat <<_LT_EOF 1>&2
13730
13731*** Warning: the command libtool uses to detect shared libraries,
13732*** $file_magic_cmd, produces output that libtool cannot recognize.
13733*** The result is that libtool may fail to recognize shared libraries
13734*** as such. This will affect the creation of libtool libraries that
13735*** depend on shared libraries, but programs linked with such libtool
13736*** libraries will work regardless of this problem. Nevertheless, you
13737*** may want to report the problem to your system manager and/or to
13738*** bug-libtool@gnu.org
13739
13740_LT_EOF
13741 fi ;;
13742 esac
13743 fi
13744 break
13745 fi
13746 done
13747 IFS="$lt_save_ifs"
13748 MAGIC_CMD="$lt_save_MAGIC_CMD"
13749 ;;
13750esac
13751fi
13752
13753MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13754if test -n "$MAGIC_CMD"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13756$as_echo "$MAGIC_CMD" >&6; }
13757else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759$as_echo "no" >&6; }
13760fi
13761
13762
13763 else
13764 MAGIC_CMD=:
13765 fi
13766fi
13767
13768 fi
13769 ;;
13770esac
13771
13772# Use C for the default configuration in the libtool script
13773
13774lt_save_CC="$CC"
13775ac_ext=c
13776ac_cpp='$CPP $CPPFLAGS'
13777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13779ac_compiler_gnu=$ac_cv_c_compiler_gnu
13780
13781
13782# Source file extension for C test sources.
13783ac_ext=c
13784
13785# Object file extension for compiled C test sources.
13786objext=o
13787objext=$objext
13788
13789# Code to be used in simple compile tests
13790lt_simple_compile_test_code="int some_variable = 0;"
13791
13792# Code to be used in simple link tests
13793lt_simple_link_test_code='int main(){return(0);}'
13794
13795
13796
13797
13798
13799
13800
13801# If no C compiler was specified, use CC.
13802LTCC=${LTCC-"$CC"}
13803
13804# If no C compiler flags were specified, use CFLAGS.
13805LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13806
13807# Allow CC to be a program name with arguments.
13808compiler=$CC
13809
13810# Save the default compiler, since it gets overwritten when the other
13811# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13812compiler_DEFAULT=$CC
13813
13814# save warnings/boilerplate of simple test code
13815ac_outfile=conftest.$ac_objext
13816echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13817eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13818_lt_compiler_boilerplate=`cat conftest.err`
13819$RM conftest*
13820
13821ac_outfile=conftest.$ac_objext
13822echo "$lt_simple_link_test_code" >conftest.$ac_ext
13823eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824_lt_linker_boilerplate=`cat conftest.err`
13825$RM -r conftest*
13826
13827
13828## CAVEAT EMPTOR:
13829## There is no encapsulation within the following macros, do not change
13830## the running order or otherwise move them around unless you know exactly
13831## what you are doing...
13832if test -n "$compiler"; then
13833
13834lt_prog_compiler_no_builtin_flag=
13835
13836if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013837 case $cc_basename in
13838 nvcc*)
13839 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13840 *)
13841 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13842 esac
cristy73bd4a52010-10-05 11:24:23 +000013843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13845$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013846if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013847 $as_echo_n "(cached) " >&6
13848else
13849 lt_cv_prog_compiler_rtti_exceptions=no
13850 ac_outfile=conftest.$ac_objext
13851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13852 lt_compiler_flag="-fno-rtti -fno-exceptions"
13853 # Insert the option either (1) after the last *FLAGS variable, or
13854 # (2) before a word containing "conftest.", or (3) at the end.
13855 # Note that $ac_compile itself does not contain backslashes and begins
13856 # with a dollar sign (not a hyphen), so the echo should work correctly.
13857 # The option is referenced via a variable to avoid confusing sed.
13858 lt_compile=`echo "$ac_compile" | $SED \
13859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13861 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013863 (eval "$lt_compile" 2>conftest.err)
13864 ac_status=$?
13865 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013867 if (exit $ac_status) && test -s "$ac_outfile"; then
13868 # The compiler can only warn and ignore the option if not recognized
13869 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13873 lt_cv_prog_compiler_rtti_exceptions=yes
13874 fi
13875 fi
13876 $RM conftest*
13877
13878fi
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13880$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13881
13882if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13883 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13884else
13885 :
13886fi
13887
13888fi
13889
13890
13891
13892
13893
13894
13895 lt_prog_compiler_wl=
13896lt_prog_compiler_pic=
13897lt_prog_compiler_static=
13898
cristy73bd4a52010-10-05 11:24:23 +000013899
13900 if test "$GCC" = yes; then
13901 lt_prog_compiler_wl='-Wl,'
13902 lt_prog_compiler_static='-static'
13903
13904 case $host_os in
13905 aix*)
13906 # All AIX code is PIC.
13907 if test "$host_cpu" = ia64; then
13908 # AIX 5 now supports IA64 processor
13909 lt_prog_compiler_static='-Bstatic'
13910 fi
13911 ;;
13912
13913 amigaos*)
13914 case $host_cpu in
13915 powerpc)
13916 # see comment about AmigaOS4 .so support
13917 lt_prog_compiler_pic='-fPIC'
13918 ;;
13919 m68k)
13920 # FIXME: we need at least 68020 code to build shared libraries, but
13921 # adding the `-m68020' flag to GCC prevents building anything better,
13922 # like `-m68040'.
13923 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13924 ;;
13925 esac
13926 ;;
13927
13928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929 # PIC is the default for these OSes.
13930 ;;
13931
13932 mingw* | cygwin* | pw32* | os2* | cegcc*)
13933 # This hack is so that the source file can tell whether it is being
13934 # built for inclusion in a dll (and should export symbols for example).
13935 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13936 # (--disable-auto-import) libraries
13937 lt_prog_compiler_pic='-DDLL_EXPORT'
13938 ;;
13939
13940 darwin* | rhapsody*)
13941 # PIC is the default on this platform
13942 # Common symbols not allowed in MH_DYLIB files
13943 lt_prog_compiler_pic='-fno-common'
13944 ;;
13945
cristy0c60a692010-11-04 01:09:47 +000013946 haiku*)
13947 # PIC is the default for Haiku.
13948 # The "-static" flag exists, but is broken.
13949 lt_prog_compiler_static=
13950 ;;
13951
cristy73bd4a52010-10-05 11:24:23 +000013952 hpux*)
13953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13955 # sets the default TLS model and affects inlining.
13956 case $host_cpu in
13957 hppa*64*)
13958 # +Z the default
13959 ;;
13960 *)
13961 lt_prog_compiler_pic='-fPIC'
13962 ;;
13963 esac
13964 ;;
13965
13966 interix[3-9]*)
13967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13968 # Instead, we relocate shared libraries at runtime.
13969 ;;
13970
13971 msdosdjgpp*)
13972 # Just because we use GCC doesn't mean we suddenly get shared libraries
13973 # on systems that don't support them.
13974 lt_prog_compiler_can_build_shared=no
13975 enable_shared=no
13976 ;;
13977
13978 *nto* | *qnx*)
13979 # QNX uses GNU C++, but need to define -shared option too, otherwise
13980 # it will coredump.
13981 lt_prog_compiler_pic='-fPIC -shared'
13982 ;;
13983
13984 sysv4*MP*)
13985 if test -d /usr/nec; then
13986 lt_prog_compiler_pic=-Kconform_pic
13987 fi
13988 ;;
13989
13990 *)
13991 lt_prog_compiler_pic='-fPIC'
13992 ;;
13993 esac
cristy0c60a692010-11-04 01:09:47 +000013994
13995 case $cc_basename in
13996 nvcc*) # Cuda Compiler Driver 2.2
13997 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013998 if test -n "$lt_prog_compiler_pic"; then
13999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14000 fi
cristy0c60a692010-11-04 01:09:47 +000014001 ;;
14002 esac
cristy73bd4a52010-10-05 11:24:23 +000014003 else
14004 # PORTME Check for flag to pass linker flags through the system compiler.
14005 case $host_os in
14006 aix*)
14007 lt_prog_compiler_wl='-Wl,'
14008 if test "$host_cpu" = ia64; then
14009 # AIX 5 now supports IA64 processor
14010 lt_prog_compiler_static='-Bstatic'
14011 else
14012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14013 fi
14014 ;;
14015
14016 mingw* | cygwin* | pw32* | os2* | cegcc*)
14017 # This hack is so that the source file can tell whether it is being
14018 # built for inclusion in a dll (and should export symbols for example).
14019 lt_prog_compiler_pic='-DDLL_EXPORT'
14020 ;;
14021
14022 hpux9* | hpux10* | hpux11*)
14023 lt_prog_compiler_wl='-Wl,'
14024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14025 # not for PA HP-UX.
14026 case $host_cpu in
14027 hppa*64*|ia64*)
14028 # +Z the default
14029 ;;
14030 *)
14031 lt_prog_compiler_pic='+Z'
14032 ;;
14033 esac
14034 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14035 lt_prog_compiler_static='${wl}-a ${wl}archive'
14036 ;;
14037
14038 irix5* | irix6* | nonstopux*)
14039 lt_prog_compiler_wl='-Wl,'
14040 # PIC (with -KPIC) is the default.
14041 lt_prog_compiler_static='-non_shared'
14042 ;;
14043
cristy0c60a692010-11-04 01:09:47 +000014044 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014045 case $cc_basename in
14046 # old Intel for x86_64 which still supported -KPIC.
14047 ecc*)
14048 lt_prog_compiler_wl='-Wl,'
14049 lt_prog_compiler_pic='-KPIC'
14050 lt_prog_compiler_static='-static'
14051 ;;
14052 # icc used to be incompatible with GCC.
14053 # ICC 10 doesn't accept -KPIC any more.
14054 icc* | ifort*)
14055 lt_prog_compiler_wl='-Wl,'
14056 lt_prog_compiler_pic='-fPIC'
14057 lt_prog_compiler_static='-static'
14058 ;;
14059 # Lahey Fortran 8.1.
14060 lf95*)
14061 lt_prog_compiler_wl='-Wl,'
14062 lt_prog_compiler_pic='--shared'
14063 lt_prog_compiler_static='--static'
14064 ;;
cristyda16f162011-02-19 23:52:17 +000014065 nagfor*)
14066 # NAG Fortran compiler
14067 lt_prog_compiler_wl='-Wl,-Wl,,'
14068 lt_prog_compiler_pic='-PIC'
14069 lt_prog_compiler_static='-Bstatic'
14070 ;;
cristy0c60a692010-11-04 01:09:47 +000014071 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014072 # Portland Group compilers (*not* the Pentium gcc compiler,
14073 # which looks to be a dead project)
14074 lt_prog_compiler_wl='-Wl,'
14075 lt_prog_compiler_pic='-fpic'
14076 lt_prog_compiler_static='-Bstatic'
14077 ;;
14078 ccc*)
14079 lt_prog_compiler_wl='-Wl,'
14080 # All Alpha code is PIC.
14081 lt_prog_compiler_static='-non_shared'
14082 ;;
cristy0c60a692010-11-04 01:09:47 +000014083 xl* | bgxl* | bgf* | mpixl*)
14084 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014085 lt_prog_compiler_wl='-Wl,'
14086 lt_prog_compiler_pic='-qpic'
14087 lt_prog_compiler_static='-qstaticlink'
14088 ;;
14089 *)
14090 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014091 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014092 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14093 lt_prog_compiler_pic='-KPIC'
14094 lt_prog_compiler_static='-Bstatic'
14095 lt_prog_compiler_wl=''
14096 ;;
cristy99bd5232011-12-07 14:38:20 +000014097 *Sun\ F* | *Sun*Fortran*)
14098 lt_prog_compiler_pic='-KPIC'
14099 lt_prog_compiler_static='-Bstatic'
14100 lt_prog_compiler_wl='-Qoption ld '
14101 ;;
cristy73bd4a52010-10-05 11:24:23 +000014102 *Sun\ C*)
14103 # Sun C 5.9
14104 lt_prog_compiler_pic='-KPIC'
14105 lt_prog_compiler_static='-Bstatic'
14106 lt_prog_compiler_wl='-Wl,'
14107 ;;
cristy99bd5232011-12-07 14:38:20 +000014108 *Intel*\ [CF]*Compiler*)
14109 lt_prog_compiler_wl='-Wl,'
14110 lt_prog_compiler_pic='-fPIC'
14111 lt_prog_compiler_static='-static'
14112 ;;
14113 *Portland\ Group*)
14114 lt_prog_compiler_wl='-Wl,'
14115 lt_prog_compiler_pic='-fpic'
14116 lt_prog_compiler_static='-Bstatic'
14117 ;;
cristy73bd4a52010-10-05 11:24:23 +000014118 esac
14119 ;;
14120 esac
14121 ;;
14122
14123 newsos6)
14124 lt_prog_compiler_pic='-KPIC'
14125 lt_prog_compiler_static='-Bstatic'
14126 ;;
14127
14128 *nto* | *qnx*)
14129 # QNX uses GNU C++, but need to define -shared option too, otherwise
14130 # it will coredump.
14131 lt_prog_compiler_pic='-fPIC -shared'
14132 ;;
14133
14134 osf3* | osf4* | osf5*)
14135 lt_prog_compiler_wl='-Wl,'
14136 # All OSF/1 code is PIC.
14137 lt_prog_compiler_static='-non_shared'
14138 ;;
14139
14140 rdos*)
14141 lt_prog_compiler_static='-non_shared'
14142 ;;
14143
14144 solaris*)
14145 lt_prog_compiler_pic='-KPIC'
14146 lt_prog_compiler_static='-Bstatic'
14147 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014148 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014149 lt_prog_compiler_wl='-Qoption ld ';;
14150 *)
14151 lt_prog_compiler_wl='-Wl,';;
14152 esac
14153 ;;
14154
14155 sunos4*)
14156 lt_prog_compiler_wl='-Qoption ld '
14157 lt_prog_compiler_pic='-PIC'
14158 lt_prog_compiler_static='-Bstatic'
14159 ;;
14160
14161 sysv4 | sysv4.2uw2* | sysv4.3*)
14162 lt_prog_compiler_wl='-Wl,'
14163 lt_prog_compiler_pic='-KPIC'
14164 lt_prog_compiler_static='-Bstatic'
14165 ;;
14166
14167 sysv4*MP*)
14168 if test -d /usr/nec ;then
14169 lt_prog_compiler_pic='-Kconform_pic'
14170 lt_prog_compiler_static='-Bstatic'
14171 fi
14172 ;;
14173
14174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14175 lt_prog_compiler_wl='-Wl,'
14176 lt_prog_compiler_pic='-KPIC'
14177 lt_prog_compiler_static='-Bstatic'
14178 ;;
14179
14180 unicos*)
14181 lt_prog_compiler_wl='-Wl,'
14182 lt_prog_compiler_can_build_shared=no
14183 ;;
14184
14185 uts4*)
14186 lt_prog_compiler_pic='-pic'
14187 lt_prog_compiler_static='-Bstatic'
14188 ;;
14189
14190 *)
14191 lt_prog_compiler_can_build_shared=no
14192 ;;
14193 esac
14194 fi
14195
14196case $host_os in
14197 # For platforms which do not support PIC, -DPIC is meaningless:
14198 *djgpp*)
14199 lt_prog_compiler_pic=
14200 ;;
14201 *)
14202 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14203 ;;
14204esac
cristy73bd4a52010-10-05 11:24:23 +000014205
cristyda16f162011-02-19 23:52:17 +000014206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14207$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14208if ${lt_cv_prog_compiler_pic+:} false; then :
14209 $as_echo_n "(cached) " >&6
14210else
14211 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14212fi
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14214$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14215lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014216
14217#
14218# Check to make sure the PIC flag actually works.
14219#
14220if test -n "$lt_prog_compiler_pic"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14222$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014223if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014224 $as_echo_n "(cached) " >&6
14225else
14226 lt_cv_prog_compiler_pic_works=no
14227 ac_outfile=conftest.$ac_objext
14228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14229 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14230 # Insert the option either (1) after the last *FLAGS variable, or
14231 # (2) before a word containing "conftest.", or (3) at the end.
14232 # Note that $ac_compile itself does not contain backslashes and begins
14233 # with a dollar sign (not a hyphen), so the echo should work correctly.
14234 # The option is referenced via a variable to avoid confusing sed.
14235 lt_compile=`echo "$ac_compile" | $SED \
14236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14238 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014240 (eval "$lt_compile" 2>conftest.err)
14241 ac_status=$?
14242 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014244 if (exit $ac_status) && test -s "$ac_outfile"; then
14245 # The compiler can only warn and ignore the option if not recognized
14246 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14250 lt_cv_prog_compiler_pic_works=yes
14251 fi
14252 fi
14253 $RM conftest*
14254
14255fi
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14257$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14258
14259if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14260 case $lt_prog_compiler_pic in
14261 "" | " "*) ;;
14262 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14263 esac
14264else
14265 lt_prog_compiler_pic=
14266 lt_prog_compiler_can_build_shared=no
14267fi
14268
14269fi
14270
14271
14272
14273
14274
14275
cristyda16f162011-02-19 23:52:17 +000014276
14277
14278
14279
14280
cristy73bd4a52010-10-05 11:24:23 +000014281#
14282# Check to make sure the static flag actually works.
14283#
14284wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14286$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014287if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014288 $as_echo_n "(cached) " >&6
14289else
14290 lt_cv_prog_compiler_static_works=no
14291 save_LDFLAGS="$LDFLAGS"
14292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14295 # The linker can only warn and ignore the option if not recognized
14296 # So say no if there are warnings
14297 if test -s conftest.err; then
14298 # Append any errors to the config.log.
14299 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14302 if diff conftest.exp conftest.er2 >/dev/null; then
14303 lt_cv_prog_compiler_static_works=yes
14304 fi
14305 else
14306 lt_cv_prog_compiler_static_works=yes
14307 fi
14308 fi
14309 $RM -r conftest*
14310 LDFLAGS="$save_LDFLAGS"
14311
14312fi
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14314$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14315
14316if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14317 :
14318else
14319 lt_prog_compiler_static=
14320fi
14321
14322
14323
14324
14325
14326
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14329$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014330if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014331 $as_echo_n "(cached) " >&6
14332else
14333 lt_cv_prog_compiler_c_o=no
14334 $RM -r conftest 2>/dev/null
14335 mkdir conftest
14336 cd conftest
14337 mkdir out
14338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339
14340 lt_compiler_flag="-o out/conftest2.$ac_objext"
14341 # Insert the option either (1) after the last *FLAGS variable, or
14342 # (2) before a word containing "conftest.", or (3) at the end.
14343 # Note that $ac_compile itself does not contain backslashes and begins
14344 # with a dollar sign (not a hyphen), so the echo should work correctly.
14345 lt_compile=`echo "$ac_compile" | $SED \
14346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014350 (eval "$lt_compile" 2>out/conftest.err)
14351 ac_status=$?
14352 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14355 then
14356 # The compiler can only warn and ignore the option if not recognized
14357 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_c_o=yes
14362 fi
14363 fi
14364 chmod u+w . 2>&5
14365 $RM conftest*
14366 # SGI C++ compiler will create directory out/ii_files/ for
14367 # template instantiation
14368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14369 $RM out/* && rmdir out
14370 cd ..
14371 $RM -r conftest
14372 $RM conftest*
14373
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14376$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14377
14378
14379
14380
14381
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14384$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014385if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014386 $as_echo_n "(cached) " >&6
14387else
14388 lt_cv_prog_compiler_c_o=no
14389 $RM -r conftest 2>/dev/null
14390 mkdir conftest
14391 cd conftest
14392 mkdir out
14393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14394
14395 lt_compiler_flag="-o out/conftest2.$ac_objext"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 lt_compile=`echo "$ac_compile" | $SED \
14401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014405 (eval "$lt_compile" 2>out/conftest.err)
14406 ac_status=$?
14407 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14410 then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_c_o=yes
14417 fi
14418 fi
14419 chmod u+w . 2>&5
14420 $RM conftest*
14421 # SGI C++ compiler will create directory out/ii_files/ for
14422 # template instantiation
14423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14424 $RM out/* && rmdir out
14425 cd ..
14426 $RM -r conftest
14427 $RM conftest*
14428
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14431$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14432
14433
14434
14435
14436hard_links="nottested"
14437if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14438 # do not overwrite the value of need_locks provided by the user
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14440$as_echo_n "checking if we can lock with hard links... " >&6; }
14441 hard_links=yes
14442 $RM conftest*
14443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14444 touch conftest.a
14445 ln conftest.a conftest.b 2>&5 || hard_links=no
14446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14448$as_echo "$hard_links" >&6; }
14449 if test "$hard_links" = no; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14451$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14452 need_locks=warn
14453 fi
14454else
14455 need_locks=no
14456fi
14457
14458
14459
14460
14461
14462
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14464$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14465
14466 runpath_var=
14467 allow_undefined_flag=
14468 always_export_symbols=no
14469 archive_cmds=
14470 archive_expsym_cmds=
14471 compiler_needs_object=no
14472 enable_shared_with_static_runtimes=no
14473 export_dynamic_flag_spec=
14474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14475 hardcode_automatic=no
14476 hardcode_direct=no
14477 hardcode_direct_absolute=no
14478 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014479 hardcode_libdir_separator=
14480 hardcode_minus_L=no
14481 hardcode_shlibpath_var=unsupported
14482 inherit_rpath=no
14483 link_all_deplibs=unknown
14484 module_cmds=
14485 module_expsym_cmds=
14486 old_archive_from_new_cmds=
14487 old_archive_from_expsyms_cmds=
14488 thread_safe_flag_spec=
14489 whole_archive_flag_spec=
14490 # include_expsyms should be a list of space-separated symbols to be *always*
14491 # included in the symbol list
14492 include_expsyms=
14493 # exclude_expsyms can be an extended regexp of symbols to exclude
14494 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14495 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14496 # as well as any symbol that contains `d'.
14497 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14498 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14499 # platforms (ab)use it in PIC code, but their linkers get confused if
14500 # the symbol is explicitly referenced. Since portable code cannot
14501 # rely on this symbol name, it's probably fine to never include it in
14502 # preloaded symbol tables.
14503 # Exclude shared library initialization/finalization symbols.
14504 extract_expsyms_cmds=
14505
14506 case $host_os in
14507 cygwin* | mingw* | pw32* | cegcc*)
14508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14509 # When not using gcc, we currently assume that we are using
14510 # Microsoft Visual C++.
14511 if test "$GCC" != yes; then
14512 with_gnu_ld=no
14513 fi
14514 ;;
14515 interix*)
14516 # we just hope/assume this is gcc and not c89 (= MSVC++)
14517 with_gnu_ld=yes
14518 ;;
14519 openbsd*)
14520 with_gnu_ld=no
14521 ;;
14522 esac
14523
14524 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014525
14526 # On some targets, GNU ld is compatible enough with the native linker
14527 # that we're better off using the native interface for both.
14528 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014529 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014530 case $host_os in
14531 aix*)
14532 # The AIX port of GNU ld has always aspired to compatibility
14533 # with the native linker. However, as the warning in the GNU ld
14534 # block says, versions before 2.19.5* couldn't really create working
14535 # shared libraries, regardless of the interface used.
14536 case `$LD -v 2>&1` in
14537 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14538 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14539 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14540 *)
14541 lt_use_gnu_ld_interface=yes
14542 ;;
14543 esac
14544 ;;
14545 *)
14546 lt_use_gnu_ld_interface=yes
14547 ;;
14548 esac
14549 fi
14550
14551 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014552 # If archive_cmds runs LD, not CC, wlarc should be empty
14553 wlarc='${wl}'
14554
14555 # Set some defaults for GNU ld with shared library support. These
14556 # are reset later if shared libraries are not supported. Putting them
14557 # here allows them to be overridden if necessary.
14558 runpath_var=LD_RUN_PATH
14559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14560 export_dynamic_flag_spec='${wl}--export-dynamic'
14561 # ancient GNU ld didn't support --whole-archive et. al.
14562 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14563 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14564 else
14565 whole_archive_flag_spec=
14566 fi
14567 supports_anon_versioning=no
14568 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014569 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014570 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14571 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14572 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14573 *\ 2.11.*) ;; # other 2.11 versions
14574 *) supports_anon_versioning=yes ;;
14575 esac
14576
14577 # See if GNU ld supports shared libraries.
14578 case $host_os in
14579 aix[3-9]*)
14580 # On AIX/PPC, the GNU linker is very broken
14581 if test "$host_cpu" != ia64; then
14582 ld_shlibs=no
14583 cat <<_LT_EOF 1>&2
14584
cristy0c60a692010-11-04 01:09:47 +000014585*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014586*** to be unable to reliably create shared libraries on AIX.
14587*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014588*** really care for shared libraries, you may want to install binutils
14589*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14590*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014591
14592_LT_EOF
14593 fi
14594 ;;
14595
14596 amigaos*)
14597 case $host_cpu in
14598 powerpc)
14599 # see comment about AmigaOS4 .so support
14600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14601 archive_expsym_cmds=''
14602 ;;
14603 m68k)
14604 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)'
14605 hardcode_libdir_flag_spec='-L$libdir'
14606 hardcode_minus_L=yes
14607 ;;
14608 esac
14609 ;;
14610
14611 beos*)
14612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14613 allow_undefined_flag=unsupported
14614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14615 # support --undefined. This deserves some investigation. FIXME
14616 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14617 else
14618 ld_shlibs=no
14619 fi
14620 ;;
14621
14622 cygwin* | mingw* | pw32* | cegcc*)
14623 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14624 # as there is no search path for DLLs.
14625 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014626 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014627 allow_undefined_flag=unsupported
14628 always_export_symbols=no
14629 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014630 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'
14631 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 +000014632
14633 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14635 # If the export-symbols file already is a .def file (1st line
14636 # is EXPORTS), use it as is; otherwise, prepend...
14637 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14638 cp $export_symbols $output_objdir/$soname.def;
14639 else
14640 echo EXPORTS > $output_objdir/$soname.def;
14641 cat $export_symbols >> $output_objdir/$soname.def;
14642 fi~
14643 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14644 else
14645 ld_shlibs=no
14646 fi
14647 ;;
14648
cristy0c60a692010-11-04 01:09:47 +000014649 haiku*)
14650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14651 link_all_deplibs=yes
14652 ;;
14653
cristy73bd4a52010-10-05 11:24:23 +000014654 interix[3-9]*)
14655 hardcode_direct=no
14656 hardcode_shlibpath_var=no
14657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14658 export_dynamic_flag_spec='${wl}-E'
14659 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14660 # Instead, shared libraries are loaded at an image base (0x10000000 by
14661 # default) and relocated if they conflict, which is a slow very memory
14662 # consuming and fragmenting process. To avoid this, we pick a random,
14663 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14664 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14666 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'
14667 ;;
14668
cristy0c60a692010-11-04 01:09:47 +000014669 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014670 tmp_diet=no
14671 if test "$host_os" = linux-dietlibc; then
14672 case $cc_basename in
14673 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14674 esac
14675 fi
14676 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14677 && test "$tmp_diet" = no
14678 then
cristyda16f162011-02-19 23:52:17 +000014679 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014680 tmp_sharedflag='-shared'
14681 case $cc_basename,$host_cpu in
14682 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014683 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 +000014684 tmp_addflag=' $pic_flag'
14685 ;;
cristy0c60a692010-11-04 01:09:47 +000014686 pgf77* | pgf90* | pgf95* | pgfortran*)
14687 # Portland Group f77 and f90 compilers
14688 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 +000014689 tmp_addflag=' $pic_flag -Mnomain' ;;
14690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14691 tmp_addflag=' -i_dynamic' ;;
14692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14693 tmp_addflag=' -i_dynamic -nofor_main' ;;
14694 ifc* | ifort*) # Intel Fortran compiler
14695 tmp_addflag=' -nofor_main' ;;
14696 lf95*) # Lahey Fortran 8.1
14697 whole_archive_flag_spec=
14698 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014699 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014700 tmp_sharedflag='-qmkshrobj'
14701 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014702 nvcc*) # Cuda Compiler Driver 2.2
14703 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'
14704 compiler_needs_object=yes
14705 ;;
cristy73bd4a52010-10-05 11:24:23 +000014706 esac
14707 case `$CC -V 2>&1 | sed 5q` in
14708 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014709 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 +000014710 compiler_needs_object=yes
14711 tmp_sharedflag='-G' ;;
14712 *Sun\ F*) # Sun Fortran 8.3
14713 tmp_sharedflag='-G' ;;
14714 esac
14715 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14716
14717 if test "x$supports_anon_versioning" = xyes; then
14718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14720 echo "local: *; };" >> $output_objdir/$libname.ver~
14721 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14722 fi
14723
14724 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014725 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014726 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14727 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014729 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014730 if test "x$supports_anon_versioning" = xyes; then
14731 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14733 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014734 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014735 fi
14736 ;;
14737 esac
14738 else
14739 ld_shlibs=no
14740 fi
14741 ;;
14742
14743 netbsd*)
14744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14745 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14746 wlarc=
14747 else
cristyda16f162011-02-19 23:52:17 +000014748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14749 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 +000014750 fi
14751 ;;
14752
14753 solaris*)
14754 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14755 ld_shlibs=no
14756 cat <<_LT_EOF 1>&2
14757
14758*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14759*** create shared libraries on Solaris systems. Therefore, libtool
14760*** is disabling shared libraries support. We urge you to upgrade GNU
14761*** binutils to release 2.9.1 or newer. Another option is to modify
14762*** your PATH or compiler configuration so that the native linker is
14763*** used, and then restart.
14764
14765_LT_EOF
14766 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768 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 +000014769 else
14770 ld_shlibs=no
14771 fi
14772 ;;
14773
14774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14775 case `$LD -v 2>&1` in
14776 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14777 ld_shlibs=no
14778 cat <<_LT_EOF 1>&2
14779
14780*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14781*** reliably create shared libraries on SCO systems. Therefore, libtool
14782*** is disabling shared libraries support. We urge you to upgrade GNU
14783*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14784*** your PATH or compiler configuration so that the native linker is
14785*** used, and then restart.
14786
14787_LT_EOF
14788 ;;
14789 *)
14790 # For security reasons, it is highly recommended that you always
14791 # use absolute paths for naming shared libraries, and exclude the
14792 # DT_RUNPATH tag from executables and libraries. But doing so
14793 # requires that you compile everything twice, which is a pain.
14794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14798 else
14799 ld_shlibs=no
14800 fi
14801 ;;
14802 esac
14803 ;;
14804
14805 sunos4*)
14806 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14807 wlarc=
14808 hardcode_direct=yes
14809 hardcode_shlibpath_var=no
14810 ;;
14811
14812 *)
14813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 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 +000014816 else
14817 ld_shlibs=no
14818 fi
14819 ;;
14820 esac
14821
14822 if test "$ld_shlibs" = no; then
14823 runpath_var=
14824 hardcode_libdir_flag_spec=
14825 export_dynamic_flag_spec=
14826 whole_archive_flag_spec=
14827 fi
14828 else
14829 # PORTME fill in a description of your system's linker (not GNU ld)
14830 case $host_os in
14831 aix3*)
14832 allow_undefined_flag=unsupported
14833 always_export_symbols=yes
14834 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'
14835 # Note: this linker hardcodes the directories in LIBPATH if there
14836 # are no directories specified by -L.
14837 hardcode_minus_L=yes
14838 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14839 # Neither direct hardcoding nor static linking is supported with a
14840 # broken collect2.
14841 hardcode_direct=unsupported
14842 fi
14843 ;;
14844
14845 aix[4-9]*)
14846 if test "$host_cpu" = ia64; then
14847 # On IA64, the linker does run time linking by default, so we don't
14848 # have to do anything special.
14849 aix_use_runtimelinking=no
14850 exp_sym_flag='-Bexport'
14851 no_entry_flag=""
14852 else
14853 # If we're using GNU nm, then we don't want the "-C" option.
14854 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014855 # Also, AIX nm treats weak defined symbols like other global
14856 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014857 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014858 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 +000014859 else
14860 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'
14861 fi
14862 aix_use_runtimelinking=no
14863
14864 # Test if we are trying to use run time linking or normal
14865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14866 # need to do runtime linking.
14867 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14868 for ld_flag in $LDFLAGS; do
14869 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14870 aix_use_runtimelinking=yes
14871 break
14872 fi
14873 done
14874 ;;
14875 esac
14876
14877 exp_sym_flag='-bexport'
14878 no_entry_flag='-bnoentry'
14879 fi
14880
14881 # When large executables or shared objects are built, AIX ld can
14882 # have problems creating the table of contents. If linking a library
14883 # or program results in "error TOC overflow" add -mminimal-toc to
14884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14886
14887 archive_cmds=''
14888 hardcode_direct=yes
14889 hardcode_direct_absolute=yes
14890 hardcode_libdir_separator=':'
14891 link_all_deplibs=yes
14892 file_list_spec='${wl}-f,'
14893
14894 if test "$GCC" = yes; then
14895 case $host_os in aix4.[012]|aix4.[012].*)
14896 # We only want to do this on AIX 4.2 and lower, the check
14897 # below for broken collect2 doesn't work under 4.3+
14898 collect2name=`${CC} -print-prog-name=collect2`
14899 if test -f "$collect2name" &&
14900 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14901 then
14902 # We have reworked collect2
14903 :
14904 else
14905 # We have old collect2
14906 hardcode_direct=unsupported
14907 # It fails to find uninstalled libraries when the uninstalled
14908 # path is not listed in the libpath. Setting hardcode_minus_L
14909 # to unsupported forces relinking
14910 hardcode_minus_L=yes
14911 hardcode_libdir_flag_spec='-L$libdir'
14912 hardcode_libdir_separator=
14913 fi
14914 ;;
14915 esac
14916 shared_flag='-shared'
14917 if test "$aix_use_runtimelinking" = yes; then
14918 shared_flag="$shared_flag "'${wl}-G'
14919 fi
14920 else
14921 # not using gcc
14922 if test "$host_cpu" = ia64; then
14923 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14924 # chokes on -Wl,-G. The following line is correct:
14925 shared_flag='-G'
14926 else
14927 if test "$aix_use_runtimelinking" = yes; then
14928 shared_flag='${wl}-G'
14929 else
14930 shared_flag='${wl}-bM:SRE'
14931 fi
14932 fi
14933 fi
14934
14935 export_dynamic_flag_spec='${wl}-bexpall'
14936 # It seems that -bexpall does not export symbols beginning with
14937 # underscore (_), so it is better to generate a list of symbols to export.
14938 always_export_symbols=yes
14939 if test "$aix_use_runtimelinking" = yes; then
14940 # Warning - without using the other runtime loading flags (-brtl),
14941 # -berok will link without error, but may produce a broken library.
14942 allow_undefined_flag='-berok'
14943 # Determine the default libpath from the value encoded in an
14944 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014945 if test "${lt_cv_aix_libpath+set}" = set; then
14946 aix_libpath=$lt_cv_aix_libpath
14947else
14948 if ${lt_cv_aix_libpath_+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950else
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014952/* end confdefs.h. */
14953
14954int
14955main ()
14956{
14957
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962if ac_fn_c_try_link "$LINENO"; then :
14963
cristyda16f162011-02-19 23:52:17 +000014964 lt_aix_libpath_sed='
14965 /Import File Strings/,/^$/ {
14966 /^0/ {
14967 s/^0 *\([^ ]*\) *$/\1/
14968 p
14969 }
14970 }'
14971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14972 # Check for a 64-bit object if we didn't find anything.
14973 if test -z "$lt_cv_aix_libpath_"; then
14974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14975 fi
cristy73bd4a52010-10-05 11:24:23 +000014976fi
14977rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014979 if test -z "$lt_cv_aix_libpath_"; then
14980 lt_cv_aix_libpath_="/usr/lib:/lib"
14981 fi
14982
14983fi
14984
14985 aix_libpath=$lt_cv_aix_libpath_
14986fi
cristy73bd4a52010-10-05 11:24:23 +000014987
14988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014989 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 +000014990 else
14991 if test "$host_cpu" = ia64; then
14992 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14993 allow_undefined_flag="-z nodefs"
14994 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"
14995 else
14996 # Determine the default libpath from the value encoded in an
14997 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014998 if test "${lt_cv_aix_libpath+set}" = set; then
14999 aix_libpath=$lt_cv_aix_libpath
15000else
15001 if ${lt_cv_aix_libpath_+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015005/* end confdefs.h. */
15006
15007int
15008main ()
15009{
15010
15011 ;
15012 return 0;
15013}
15014_ACEOF
15015if ac_fn_c_try_link "$LINENO"; then :
15016
cristyda16f162011-02-19 23:52:17 +000015017 lt_aix_libpath_sed='
15018 /Import File Strings/,/^$/ {
15019 /^0/ {
15020 s/^0 *\([^ ]*\) *$/\1/
15021 p
15022 }
15023 }'
15024 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025 # Check for a 64-bit object if we didn't find anything.
15026 if test -z "$lt_cv_aix_libpath_"; then
15027 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15028 fi
cristy73bd4a52010-10-05 11:24:23 +000015029fi
15030rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015032 if test -z "$lt_cv_aix_libpath_"; then
15033 lt_cv_aix_libpath_="/usr/lib:/lib"
15034 fi
15035
15036fi
15037
15038 aix_libpath=$lt_cv_aix_libpath_
15039fi
cristy73bd4a52010-10-05 11:24:23 +000015040
15041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15042 # Warning - without using the other run time loading flags,
15043 # -berok will link without error, but may produce a broken library.
15044 no_undefined_flag=' ${wl}-bernotok'
15045 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015046 if test "$with_gnu_ld" = yes; then
15047 # We only use this code for GNU lds that support --whole-archive.
15048 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15049 else
15050 # Exported symbols can be pulled into shared objects from archives
15051 whole_archive_flag_spec='$convenience'
15052 fi
cristy73bd4a52010-10-05 11:24:23 +000015053 archive_cmds_need_lc=yes
15054 # This is similar to how AIX traditionally builds its shared libraries.
15055 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'
15056 fi
15057 fi
15058 ;;
15059
15060 amigaos*)
15061 case $host_cpu in
15062 powerpc)
15063 # see comment about AmigaOS4 .so support
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds=''
15066 ;;
15067 m68k)
15068 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)'
15069 hardcode_libdir_flag_spec='-L$libdir'
15070 hardcode_minus_L=yes
15071 ;;
15072 esac
15073 ;;
15074
15075 bsdi[45]*)
15076 export_dynamic_flag_spec=-rdynamic
15077 ;;
15078
15079 cygwin* | mingw* | pw32* | cegcc*)
15080 # When not using gcc, we currently assume that we are using
15081 # Microsoft Visual C++.
15082 # hardcode_libdir_flag_spec is actually meaningless, as there is
15083 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015084 case $cc_basename in
15085 cl*)
15086 # Native MSVC
15087 hardcode_libdir_flag_spec=' '
15088 allow_undefined_flag=unsupported
15089 always_export_symbols=yes
15090 file_list_spec='@'
15091 # Tell ltmain to make .lib files, not .a files.
15092 libext=lib
15093 # Tell ltmain to make .dll files, not .so files.
15094 shrext_cmds=".dll"
15095 # FIXME: Setting linknames here is a bad hack.
15096 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15097 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15098 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15099 else
15100 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15101 fi~
15102 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15103 linknames='
15104 # The linker will not automatically build a static lib if we build a DLL.
15105 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15106 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015107 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15109 # Don't use ranlib
15110 old_postinstall_cmds='chmod 644 $oldlib'
15111 postlink_cmds='lt_outputfile="@OUTPUT@"~
15112 lt_tool_outputfile="@TOOL_OUTPUT@"~
15113 case $lt_outputfile in
15114 *.exe|*.EXE) ;;
15115 *)
15116 lt_outputfile="$lt_outputfile.exe"
15117 lt_tool_outputfile="$lt_tool_outputfile.exe"
15118 ;;
15119 esac~
15120 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15121 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15122 $RM "$lt_outputfile.manifest";
15123 fi'
15124 ;;
15125 *)
15126 # Assume MSVC wrapper
15127 hardcode_libdir_flag_spec=' '
15128 allow_undefined_flag=unsupported
15129 # Tell ltmain to make .lib files, not .a files.
15130 libext=lib
15131 # Tell ltmain to make .dll files, not .so files.
15132 shrext_cmds=".dll"
15133 # FIXME: Setting linknames here is a bad hack.
15134 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15135 # The linker will automatically build a .lib file if we build a DLL.
15136 old_archive_from_new_cmds='true'
15137 # FIXME: Should let the user specify the lib program.
15138 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15139 enable_shared_with_static_runtimes=yes
15140 ;;
15141 esac
cristy73bd4a52010-10-05 11:24:23 +000015142 ;;
15143
15144 darwin* | rhapsody*)
15145
15146
15147 archive_cmds_need_lc=no
15148 hardcode_direct=no
15149 hardcode_automatic=yes
15150 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015151 if test "$lt_cv_ld_force_load" = "yes"; then
15152 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 +000015153
cristy0c60a692010-11-04 01:09:47 +000015154 else
15155 whole_archive_flag_spec=''
15156 fi
cristy73bd4a52010-10-05 11:24:23 +000015157 link_all_deplibs=yes
15158 allow_undefined_flag="$_lt_dar_allow_undefined"
15159 case $cc_basename in
15160 ifort*) _lt_dar_can_shared=yes ;;
15161 *) _lt_dar_can_shared=$GCC ;;
15162 esac
15163 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015164 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015165 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15166 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15167 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}"
15168 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}"
15169
15170 else
15171 ld_shlibs=no
15172 fi
15173
15174 ;;
15175
15176 dgux*)
15177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_libdir_flag_spec='-L$libdir'
15179 hardcode_shlibpath_var=no
15180 ;;
15181
cristy73bd4a52010-10-05 11:24:23 +000015182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183 # support. Future versions do this automatically, but an explicit c++rt0.o
15184 # does not break anything, and helps significantly (at the cost of a little
15185 # extra space).
15186 freebsd2.2*)
15187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188 hardcode_libdir_flag_spec='-R$libdir'
15189 hardcode_direct=yes
15190 hardcode_shlibpath_var=no
15191 ;;
15192
15193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015194 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196 hardcode_direct=yes
15197 hardcode_minus_L=yes
15198 hardcode_shlibpath_var=no
15199 ;;
15200
15201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015204 hardcode_libdir_flag_spec='-R$libdir'
15205 hardcode_direct=yes
15206 hardcode_shlibpath_var=no
15207 ;;
15208
15209 hpux9*)
15210 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015211 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 +000015212 else
15213 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'
15214 fi
15215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15216 hardcode_libdir_separator=:
15217 hardcode_direct=yes
15218
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L=yes
15222 export_dynamic_flag_spec='${wl}-E'
15223 ;;
15224
15225 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015227 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 +000015228 else
15229 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15230 fi
15231 if test "$with_gnu_ld" = no; then
15232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015233 hardcode_libdir_separator=:
15234 hardcode_direct=yes
15235 hardcode_direct_absolute=yes
15236 export_dynamic_flag_spec='${wl}-E'
15237 # hardcode_minus_L: Not really in the search PATH,
15238 # but as the default location of the library.
15239 hardcode_minus_L=yes
15240 fi
15241 ;;
15242
15243 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015245 case $host_cpu in
15246 hppa*64*)
15247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 ;;
15249 ia64*)
cristyda16f162011-02-19 23:52:17 +000015250 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015251 ;;
15252 *)
cristyda16f162011-02-19 23:52:17 +000015253 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 +000015254 ;;
15255 esac
15256 else
15257 case $host_cpu in
15258 hppa*64*)
15259 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15260 ;;
15261 ia64*)
15262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15263 ;;
15264 *)
cristy0c60a692010-11-04 01:09:47 +000015265
15266 # Older versions of the 11.00 compiler do not understand -b yet
15267 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15269$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015270if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015271 $as_echo_n "(cached) " >&6
15272else
15273 lt_cv_prog_compiler__b=no
15274 save_LDFLAGS="$LDFLAGS"
15275 LDFLAGS="$LDFLAGS -b"
15276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15278 # The linker can only warn and ignore the option if not recognized
15279 # So say no if there are warnings
15280 if test -s conftest.err; then
15281 # Append any errors to the config.log.
15282 cat conftest.err 1>&5
15283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15285 if diff conftest.exp conftest.er2 >/dev/null; then
15286 lt_cv_prog_compiler__b=yes
15287 fi
15288 else
15289 lt_cv_prog_compiler__b=yes
15290 fi
15291 fi
15292 $RM -r conftest*
15293 LDFLAGS="$save_LDFLAGS"
15294
15295fi
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15297$as_echo "$lt_cv_prog_compiler__b" >&6; }
15298
15299if test x"$lt_cv_prog_compiler__b" = xyes; then
15300 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15301else
15302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15303fi
15304
cristy73bd4a52010-10-05 11:24:23 +000015305 ;;
15306 esac
15307 fi
15308 if test "$with_gnu_ld" = no; then
15309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15310 hardcode_libdir_separator=:
15311
15312 case $host_cpu in
15313 hppa*64*|ia64*)
15314 hardcode_direct=no
15315 hardcode_shlibpath_var=no
15316 ;;
15317 *)
15318 hardcode_direct=yes
15319 hardcode_direct_absolute=yes
15320 export_dynamic_flag_spec='${wl}-E'
15321
15322 # hardcode_minus_L: Not really in the search PATH,
15323 # but as the default location of the library.
15324 hardcode_minus_L=yes
15325 ;;
15326 esac
15327 fi
15328 ;;
15329
15330 irix5* | irix6* | nonstopux*)
15331 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015332 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 +000015333 # Try to use the -exported_symbol ld option, if it does not
15334 # work, assume that -exports_file does not work either and
15335 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015336 # This should be the same for all languages, so no per-tag cache variable.
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15338$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15339if ${lt_cv_irix_exported_symbol+:} false; then :
15340 $as_echo_n "(cached) " >&6
15341else
15342 save_LDFLAGS="$LDFLAGS"
15343 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015345/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015346int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015347_ACEOF
15348if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015349 lt_cv_irix_exported_symbol=yes
15350else
15351 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015352fi
15353rm -f core conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015355 LDFLAGS="$save_LDFLAGS"
15356fi
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15358$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15359 if test "$lt_cv_irix_exported_symbol" = yes; then
15360 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'
15361 fi
cristy73bd4a52010-10-05 11:24:23 +000015362 else
cristy0c60a692010-11-04 01:09:47 +000015363 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'
15364 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 +000015365 fi
15366 archive_cmds_need_lc='no'
15367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15368 hardcode_libdir_separator=:
15369 inherit_rpath=yes
15370 link_all_deplibs=yes
15371 ;;
15372
15373 netbsd*)
15374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15376 else
15377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15378 fi
15379 hardcode_libdir_flag_spec='-R$libdir'
15380 hardcode_direct=yes
15381 hardcode_shlibpath_var=no
15382 ;;
15383
15384 newsos6)
15385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386 hardcode_direct=yes
15387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15388 hardcode_libdir_separator=:
15389 hardcode_shlibpath_var=no
15390 ;;
15391
15392 *nto* | *qnx*)
15393 ;;
15394
15395 openbsd*)
15396 if test -f /usr/libexec/ld.so; then
15397 hardcode_direct=yes
15398 hardcode_shlibpath_var=no
15399 hardcode_direct_absolute=yes
15400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15404 export_dynamic_flag_spec='${wl}-E'
15405 else
15406 case $host_os in
15407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_libdir_flag_spec='-R$libdir'
15410 ;;
15411 *)
15412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15414 ;;
15415 esac
15416 fi
15417 else
15418 ld_shlibs=no
15419 fi
15420 ;;
15421
15422 os2*)
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 hardcode_minus_L=yes
15425 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015426 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 +000015427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15428 ;;
15429
15430 osf3*)
15431 if test "$GCC" = yes; then
15432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015433 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 +000015434 else
15435 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015436 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 +000015437 fi
15438 archive_cmds_need_lc='no'
15439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15440 hardcode_libdir_separator=:
15441 ;;
15442
15443 osf4* | osf5*) # as osf3* with the addition of -msym flag
15444 if test "$GCC" = yes; then
15445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015446 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 +000015447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15448 else
15449 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015450 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 +000015451 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 +000015452 $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 +000015453
15454 # Both c and cxx compiler support -rpath directly
15455 hardcode_libdir_flag_spec='-rpath $libdir'
15456 fi
15457 archive_cmds_need_lc='no'
15458 hardcode_libdir_separator=:
15459 ;;
15460
15461 solaris*)
15462 no_undefined_flag=' -z defs'
15463 if test "$GCC" = yes; then
15464 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015465 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 +000015466 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 +000015467 $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 +000015468 else
15469 case `$CC -V 2>&1` in
15470 *"Compilers 5.0"*)
15471 wlarc=''
15472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15475 ;;
15476 *)
15477 wlarc='${wl}'
15478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15481 ;;
15482 esac
15483 fi
15484 hardcode_libdir_flag_spec='-R$libdir'
15485 hardcode_shlibpath_var=no
15486 case $host_os in
15487 solaris2.[0-5] | solaris2.[0-5].*) ;;
15488 *)
15489 # The compiler driver will combine and reorder linker options,
15490 # but understands `-z linker_flag'. GCC discards it without `$wl',
15491 # but is careful enough not to reorder.
15492 # Supported since Solaris 2.6 (maybe 2.5.1?)
15493 if test "$GCC" = yes; then
15494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15495 else
15496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15497 fi
15498 ;;
15499 esac
15500 link_all_deplibs=yes
15501 ;;
15502
15503 sunos4*)
15504 if test "x$host_vendor" = xsequent; then
15505 # Use $CC to link under sequent, because it throws in some extra .o
15506 # files that make .init and .fini sections work.
15507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15508 else
15509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15510 fi
15511 hardcode_libdir_flag_spec='-L$libdir'
15512 hardcode_direct=yes
15513 hardcode_minus_L=yes
15514 hardcode_shlibpath_var=no
15515 ;;
15516
15517 sysv4)
15518 case $host_vendor in
15519 sni)
15520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes # is this really true???
15522 ;;
15523 siemens)
15524 ## LD is ld it makes a PLAMLIB
15525 ## CC just makes a GrossModule.
15526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15527 reload_cmds='$CC -r -o $output$reload_objs'
15528 hardcode_direct=no
15529 ;;
15530 motorola)
15531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15533 ;;
15534 esac
15535 runpath_var='LD_RUN_PATH'
15536 hardcode_shlibpath_var=no
15537 ;;
15538
15539 sysv4.3*)
15540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_shlibpath_var=no
15542 export_dynamic_flag_spec='-Bexport'
15543 ;;
15544
15545 sysv4*MP*)
15546 if test -d /usr/nec; then
15547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_shlibpath_var=no
15549 runpath_var=LD_RUN_PATH
15550 hardcode_runpath_var=yes
15551 ld_shlibs=yes
15552 fi
15553 ;;
15554
15555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15556 no_undefined_flag='${wl}-z,text'
15557 archive_cmds_need_lc=no
15558 hardcode_shlibpath_var=no
15559 runpath_var='LD_RUN_PATH'
15560
15561 if test "$GCC" = yes; then
15562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 else
15565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 fi
15568 ;;
15569
15570 sysv5* | sco3.2v5* | sco5v6*)
15571 # Note: We can NOT use -z defs as we might desire, because we do not
15572 # link with -lc, and that would cause any symbols used from libc to
15573 # always be unresolved, which means just about no library would
15574 # ever link correctly. If we're not using GNU ld we use -z text
15575 # though, which does catch some bad symbols but isn't as heavy-handed
15576 # as -z defs.
15577 no_undefined_flag='${wl}-z,text'
15578 allow_undefined_flag='${wl}-z,nodefs'
15579 archive_cmds_need_lc=no
15580 hardcode_shlibpath_var=no
15581 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15582 hardcode_libdir_separator=':'
15583 link_all_deplibs=yes
15584 export_dynamic_flag_spec='${wl}-Bexport'
15585 runpath_var='LD_RUN_PATH'
15586
15587 if test "$GCC" = yes; then
15588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 else
15591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 fi
15594 ;;
15595
15596 uts4*)
15597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15598 hardcode_libdir_flag_spec='-L$libdir'
15599 hardcode_shlibpath_var=no
15600 ;;
15601
15602 *)
15603 ld_shlibs=no
15604 ;;
15605 esac
15606
15607 if test x$host_vendor = xsni; then
15608 case $host in
15609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15610 export_dynamic_flag_spec='${wl}-Blargedynsym'
15611 ;;
15612 esac
15613 fi
15614 fi
15615
15616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15617$as_echo "$ld_shlibs" >&6; }
15618test "$ld_shlibs" = no && can_build_shared=no
15619
15620with_gnu_ld=$with_gnu_ld
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636#
15637# Do we need to explicitly link libc?
15638#
15639case "x$archive_cmds_need_lc" in
15640x|xyes)
15641 # Assume -lc should be added
15642 archive_cmds_need_lc=yes
15643
15644 if test "$enable_shared" = yes && test "$GCC" = yes; then
15645 case $archive_cmds in
15646 *'~'*)
15647 # FIXME: we may have to deal with multi-command sequences.
15648 ;;
15649 '$CC '*)
15650 # Test whether the compiler implicitly links with -lc since on some
15651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15652 # to ld, don't add -lc before -lgcc.
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15654$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015655if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015656 $as_echo_n "(cached) " >&6
15657else
15658 $RM conftest*
15659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015660
cristy0c60a692010-11-04 01:09:47 +000015661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015662 (eval $ac_compile) 2>&5
15663 ac_status=$?
15664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15665 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015666 soname=conftest
15667 lib=conftest
15668 libobjs=conftest.$ac_objext
15669 deplibs=
15670 wl=$lt_prog_compiler_wl
15671 pic_flag=$lt_prog_compiler_pic
15672 compiler_flags=-v
15673 linker_flags=-v
15674 verstring=
15675 output_objdir=.
15676 libname=conftest
15677 lt_save_allow_undefined_flag=$allow_undefined_flag
15678 allow_undefined_flag=
15679 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 +000015680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15681 ac_status=$?
15682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15683 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015684 then
15685 lt_cv_archive_cmds_need_lc=no
15686 else
15687 lt_cv_archive_cmds_need_lc=yes
15688 fi
15689 allow_undefined_flag=$lt_save_allow_undefined_flag
15690 else
15691 cat conftest.err 1>&5
15692 fi
15693 $RM conftest*
15694
15695fi
15696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15697$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015699 ;;
15700 esac
15701 fi
15702 ;;
15703esac
15704
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
cristy73bd4a52010-10-05 11:24:23 +000015856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15857$as_echo_n "checking dynamic linker characteristics... " >&6; }
15858
15859if test "$GCC" = yes; then
15860 case $host_os in
15861 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15862 *) lt_awk_arg="/^libraries:/" ;;
15863 esac
cristy0c60a692010-11-04 01:09:47 +000015864 case $host_os in
15865 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15866 *) lt_sed_strip_eq="s,=/,/,g" ;;
15867 esac
15868 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15869 case $lt_search_path_spec in
15870 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015871 # if the path contains ";" then we assume it to be the separator
15872 # otherwise default to the standard path separator (i.e. ":") - it is
15873 # assumed that no part of a normal pathname contains ";" but that should
15874 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015875 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15876 ;;
15877 *)
15878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15879 ;;
15880 esac
cristy73bd4a52010-10-05 11:24:23 +000015881 # Ok, now we have the path, separated by spaces, we can step through it
15882 # and add multilib dir if necessary.
15883 lt_tmp_lt_search_path_spec=
15884 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15885 for lt_sys_path in $lt_search_path_spec; do
15886 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15887 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15888 else
15889 test -d "$lt_sys_path" && \
15890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15891 fi
15892 done
cristy0c60a692010-11-04 01:09:47 +000015893 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015894BEGIN {RS=" "; FS="/|\n";} {
15895 lt_foo="";
15896 lt_count=0;
15897 for (lt_i = NF; lt_i > 0; lt_i--) {
15898 if ($lt_i != "" && $lt_i != ".") {
15899 if ($lt_i == "..") {
15900 lt_count++;
15901 } else {
15902 if (lt_count == 0) {
15903 lt_foo="/" $lt_i lt_foo;
15904 } else {
15905 lt_count--;
15906 }
15907 }
15908 }
15909 }
15910 if (lt_foo != "") { lt_freq[lt_foo]++; }
15911 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15912}'`
cristy0c60a692010-11-04 01:09:47 +000015913 # AWK program above erroneously prepends '/' to C:/dos/paths
15914 # for these hosts.
15915 case $host_os in
15916 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15917 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15918 esac
15919 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015920else
15921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15922fi
15923library_names_spec=
15924libname_spec='lib$name'
15925soname_spec=
15926shrext_cmds=".so"
15927postinstall_cmds=
15928postuninstall_cmds=
15929finish_cmds=
15930finish_eval=
15931shlibpath_var=
15932shlibpath_overrides_runpath=unknown
15933version_type=none
15934dynamic_linker="$host_os ld.so"
15935sys_lib_dlsearch_path_spec="/lib /usr/lib"
15936need_lib_prefix=unknown
15937hardcode_into_libs=no
15938
15939# when you set need_version to no, make sure it does not cause -set_version
15940# flags to be left without arguments
15941need_version=unknown
15942
15943case $host_os in
15944aix3*)
cristy99bd5232011-12-07 14:38:20 +000015945 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15947 shlibpath_var=LIBPATH
15948
15949 # AIX 3 has no versioning support, so we append a major version to the name.
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 ;;
15952
15953aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015954 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015955 need_lib_prefix=no
15956 need_version=no
15957 hardcode_into_libs=yes
15958 if test "$host_cpu" = ia64; then
15959 # AIX 5 supports IA64
15960 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15961 shlibpath_var=LD_LIBRARY_PATH
15962 else
15963 # With GCC up to 2.95.x, collect2 would create an import file
15964 # for dependence libraries. The import file would start with
15965 # the line `#! .'. This would cause the generated library to
15966 # depend on `.', always an invalid library. This was fixed in
15967 # development snapshots of GCC prior to 3.0.
15968 case $host_os in
15969 aix4 | aix4.[01] | aix4.[01].*)
15970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15971 echo ' yes '
15972 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15973 :
15974 else
15975 can_build_shared=no
15976 fi
15977 ;;
15978 esac
15979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15980 # soname into executable. Probably we can add versioning support to
15981 # collect2, so additional links can be useful in future.
15982 if test "$aix_use_runtimelinking" = yes; then
15983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15984 # instead of lib<name>.a to let people know that these are not
15985 # typical AIX shared libraries.
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 else
15988 # We preserve .a as extension for shared libraries through AIX4.2
15989 # and later when we are not doing run time linking.
15990 library_names_spec='${libname}${release}.a $libname.a'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 fi
15993 shlibpath_var=LIBPATH
15994 fi
15995 ;;
15996
15997amigaos*)
15998 case $host_cpu in
15999 powerpc)
16000 # Since July 2007 AmigaOS4 officially supports .so libraries.
16001 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 ;;
16004 m68k)
16005 library_names_spec='$libname.ixlibrary $libname.a'
16006 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016007 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 +000016008 ;;
16009 esac
16010 ;;
16011
16012beos*)
16013 library_names_spec='${libname}${shared_ext}'
16014 dynamic_linker="$host_os ld.so"
16015 shlibpath_var=LIBRARY_PATH
16016 ;;
16017
16018bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016020 need_version=no
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 soname_spec='${libname}${release}${shared_ext}$major'
16023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16027 # the default ld.so.conf also contains /usr/contrib/lib and
16028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16029 # libtool to hard-code these into programs
16030 ;;
16031
16032cygwin* | mingw* | pw32* | cegcc*)
16033 version_type=windows
16034 shrext_cmds=".dll"
16035 need_version=no
16036 need_lib_prefix=no
16037
cristyda16f162011-02-19 23:52:17 +000016038 case $GCC,$cc_basename in
16039 yes,*)
16040 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016041 library_names_spec='$libname.dll.a'
16042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16043 postinstall_cmds='base_file=`basename \${file}`~
16044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16045 dldir=$destdir/`dirname \$dlpath`~
16046 test -d \$dldir || mkdir -p \$dldir~
16047 $install_prog $dir/$dlname \$dldir/$dlname~
16048 chmod a+x \$dldir/$dlname~
16049 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16050 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16051 fi'
16052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16053 dlpath=$dir/\$dldll~
16054 $RM \$dlpath'
16055 shlibpath_overrides_runpath=yes
16056
16057 case $host_os in
16058 cygwin*)
16059 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16060 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016061
16062 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016063 ;;
16064 mingw* | cegcc*)
16065 # MinGW DLLs use traditional 'lib' prefix
16066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016067 ;;
16068 pw32*)
16069 # pw32 DLLs use 'pw' prefix rather than 'lib'
16070 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16071 ;;
16072 esac
cristyda16f162011-02-19 23:52:17 +000016073 dynamic_linker='Win32 ld.exe'
16074 ;;
16075
16076 *,cl*)
16077 # Native MSVC
16078 libname_spec='$name'
16079 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080 library_names_spec='${libname}.dll.lib'
16081
16082 case $build_os in
16083 mingw*)
16084 sys_lib_search_path_spec=
16085 lt_save_ifs=$IFS
16086 IFS=';'
16087 for lt_path in $LIB
16088 do
16089 IFS=$lt_save_ifs
16090 # Let DOS variable expansion print the short 8.3 style file name.
16091 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16092 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16093 done
16094 IFS=$lt_save_ifs
16095 # Convert to MSYS style.
16096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16097 ;;
16098 cygwin*)
16099 # Convert to unix form, then to dos form, then back to unix form
16100 # but this time dos style (no spaces!) so that the unix form looks
16101 # like /cygdrive/c/PROGRA~1:/cygdr...
16102 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16103 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16104 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16105 ;;
16106 *)
16107 sys_lib_search_path_spec="$LIB"
16108 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16109 # It is most probably a Windows format PATH.
16110 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16111 else
16112 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16113 fi
16114 # FIXME: find the short name or the path components, as spaces are
16115 # common. (e.g. "Program Files" -> "PROGRA~1")
16116 ;;
16117 esac
16118
16119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16120 postinstall_cmds='base_file=`basename \${file}`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname'
16125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16126 dlpath=$dir/\$dldll~
16127 $RM \$dlpath'
16128 shlibpath_overrides_runpath=yes
16129 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016130 ;;
16131
16132 *)
cristyda16f162011-02-19 23:52:17 +000016133 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016135 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016136 ;;
16137 esac
cristy73bd4a52010-10-05 11:24:23 +000016138 # FIXME: first we should search . and the directory the executable is in
16139 shlibpath_var=PATH
16140 ;;
16141
16142darwin* | rhapsody*)
16143 dynamic_linker="$host_os dyld"
16144 version_type=darwin
16145 need_lib_prefix=no
16146 need_version=no
16147 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16148 soname_spec='${libname}${release}${major}$shared_ext'
16149 shlibpath_overrides_runpath=yes
16150 shlibpath_var=DYLD_LIBRARY_PATH
16151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16152
16153 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16155 ;;
16156
16157dgux*)
cristy99bd5232011-12-07 14:38:20 +000016158 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016159 need_lib_prefix=no
16160 need_version=no
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 ;;
16165
cristy73bd4a52010-10-05 11:24:23 +000016166freebsd* | dragonfly*)
16167 # DragonFly does not have aout. When/if they implement a new
16168 # versioning mechanism, adjust this.
16169 if test -x /usr/bin/objformat; then
16170 objformat=`/usr/bin/objformat`
16171 else
16172 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016173 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016174 *) objformat=elf ;;
16175 esac
16176 fi
16177 version_type=freebsd-$objformat
16178 case $version_type in
16179 freebsd-elf*)
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16181 need_version=no
16182 need_lib_prefix=no
16183 ;;
16184 freebsd-*)
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16186 need_version=yes
16187 ;;
16188 esac
16189 shlibpath_var=LD_LIBRARY_PATH
16190 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016191 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016192 shlibpath_overrides_runpath=yes
16193 ;;
16194 freebsd3.[01]* | freebsdelf3.[01]*)
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
16197 ;;
16198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16200 shlibpath_overrides_runpath=no
16201 hardcode_into_libs=yes
16202 ;;
16203 *) # from 4.6 on, and DragonFly
16204 shlibpath_overrides_runpath=yes
16205 hardcode_into_libs=yes
16206 ;;
16207 esac
16208 ;;
16209
16210gnu*)
cristy99bd5232011-12-07 14:38:20 +000016211 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016212 need_lib_prefix=no
16213 need_version=no
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016217 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016218 hardcode_into_libs=yes
16219 ;;
16220
cristy0c60a692010-11-04 01:09:47 +000016221haiku*)
cristy99bd5232011-12-07 14:38:20 +000016222 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016223 need_lib_prefix=no
16224 need_version=no
16225 dynamic_linker="$host_os runtime_loader"
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16231 hardcode_into_libs=yes
16232 ;;
16233
cristy73bd4a52010-10-05 11:24:23 +000016234hpux9* | hpux10* | hpux11*)
16235 # Give a soname corresponding to the major version so that dld.sl refuses to
16236 # link against other versions.
16237 version_type=sunos
16238 need_lib_prefix=no
16239 need_version=no
16240 case $host_cpu in
16241 ia64*)
16242 shrext_cmds='.so'
16243 hardcode_into_libs=yes
16244 dynamic_linker="$host_os dld.so"
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 if test "X$HPUX_IA64_MODE" = X32; then
16250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251 else
16252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16253 fi
16254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16255 ;;
16256 hppa*64*)
16257 shrext_cmds='.sl'
16258 hardcode_into_libs=yes
16259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16266 ;;
16267 *)
16268 shrext_cmds='.sl'
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=SHLIB_PATH
16271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 ;;
16275 esac
cristy0c60a692010-11-04 01:09:47 +000016276 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016277 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016278 # or fails outright, so override atomically:
16279 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016280 ;;
16281
16282interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016283 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=no
16291 hardcode_into_libs=yes
16292 ;;
16293
16294irix5* | irix6* | nonstopux*)
16295 case $host_os in
16296 nonstopux*) version_type=nonstopux ;;
16297 *)
16298 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016300 else
16301 version_type=irix
16302 fi ;;
16303 esac
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308 case $host_os in
16309 irix5* | nonstopux*)
16310 libsuff= shlibsuff=
16311 ;;
16312 *)
16313 case $LD in # libtool.m4 will add one of these switches to LD
16314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315 libsuff= shlibsuff= libmagic=32-bit;;
16316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317 libsuff=32 shlibsuff=N32 libmagic=N32;;
16318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320 *) libsuff= shlibsuff= libmagic=never-match;;
16321 esac
16322 ;;
16323 esac
16324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325 shlibpath_overrides_runpath=no
16326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328 hardcode_into_libs=yes
16329 ;;
16330
16331# No shared lib support for Linux oldld, aout, or coff.
16332linux*oldld* | linux*aout* | linux*coff*)
16333 dynamic_linker=no
16334 ;;
16335
cristy99bd5232011-12-07 14:38:20 +000016336# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016337linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016338 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016339 need_lib_prefix=no
16340 need_version=no
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016346
cristy73bd4a52010-10-05 11:24:23 +000016347 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016348 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016349 $as_echo_n "(cached) " >&6
16350else
16351 lt_cv_shlibpath_overrides_runpath=no
16352 save_LDFLAGS=$LDFLAGS
16353 save_libdir=$libdir
16354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016357/* end confdefs.h. */
16358
16359int
16360main ()
16361{
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367if ac_fn_c_try_link "$LINENO"; then :
16368 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016369 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016370fi
16371fi
16372rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016374 LDFLAGS=$save_LDFLAGS
16375 libdir=$save_libdir
16376
16377fi
16378
16379 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016380
16381 # This implies no fast_install, which is unacceptable.
16382 # Some rework will be needed to allow for fast_install
16383 # before this can be enabled.
16384 hardcode_into_libs=yes
16385
16386 # Add ABI-specific directories to the system library path.
16387 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16388
16389 # Append ld.so.conf contents to the search path
16390 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016391 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 +000016392 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016393
cristy73bd4a52010-10-05 11:24:23 +000016394 fi
16395
16396 # We used to test for /lib/ld.so.1 and disable shared libraries on
16397 # powerpc, because MkLinux only supported shared libraries with the
16398 # GNU dynamic linker. Since this was broken with cross compilers,
16399 # most powerpc-linux boxes support dynamic linking these days and
16400 # people can always --disable-shared, the test was removed, and we
16401 # assume the GNU/Linux dynamic linker is in use.
16402 dynamic_linker='GNU/Linux ld.so'
16403 ;;
16404
16405netbsd*)
16406 version_type=sunos
16407 need_lib_prefix=no
16408 need_version=no
16409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412 dynamic_linker='NetBSD (a.out) ld.so'
16413 else
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 dynamic_linker='NetBSD ld.elf_so'
16417 fi
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16420 hardcode_into_libs=yes
16421 ;;
16422
16423newsos6)
cristy99bd5232011-12-07 14:38:20 +000016424 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 shlibpath_overrides_runpath=yes
16428 ;;
16429
16430*nto* | *qnx*)
16431 version_type=qnx
16432 need_lib_prefix=no
16433 need_version=no
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 shlibpath_overrides_runpath=no
16438 hardcode_into_libs=yes
16439 dynamic_linker='ldqnx.so'
16440 ;;
16441
16442openbsd*)
16443 version_type=sunos
16444 sys_lib_dlsearch_path_spec="/usr/lib"
16445 need_lib_prefix=no
16446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16447 case $host_os in
16448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16449 *) need_version=no ;;
16450 esac
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16455 case $host_os in
16456 openbsd2.[89] | openbsd2.[89].*)
16457 shlibpath_overrides_runpath=no
16458 ;;
16459 *)
16460 shlibpath_overrides_runpath=yes
16461 ;;
16462 esac
16463 else
16464 shlibpath_overrides_runpath=yes
16465 fi
16466 ;;
16467
16468os2*)
16469 libname_spec='$name'
16470 shrext_cmds=".dll"
16471 need_lib_prefix=no
16472 library_names_spec='$libname${shared_ext} $libname.a'
16473 dynamic_linker='OS/2 ld.exe'
16474 shlibpath_var=LIBPATH
16475 ;;
16476
16477osf3* | osf4* | osf5*)
16478 version_type=osf
16479 need_lib_prefix=no
16480 need_version=no
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16486 ;;
16487
16488rdos*)
16489 dynamic_linker=no
16490 ;;
16491
16492solaris*)
cristy99bd5232011-12-07 14:38:20 +000016493 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016494 need_lib_prefix=no
16495 need_version=no
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16501 # ldd complains unless libraries are executable
16502 postinstall_cmds='chmod +x $lib'
16503 ;;
16504
16505sunos4*)
16506 version_type=sunos
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16509 shlibpath_var=LD_LIBRARY_PATH
16510 shlibpath_overrides_runpath=yes
16511 if test "$with_gnu_ld" = yes; then
16512 need_lib_prefix=no
16513 fi
16514 need_version=yes
16515 ;;
16516
16517sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016518 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 case $host_vendor in
16523 sni)
16524 shlibpath_overrides_runpath=no
16525 need_lib_prefix=no
16526 runpath_var=LD_RUN_PATH
16527 ;;
16528 siemens)
16529 need_lib_prefix=no
16530 ;;
16531 motorola)
16532 need_lib_prefix=no
16533 need_version=no
16534 shlibpath_overrides_runpath=no
16535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16536 ;;
16537 esac
16538 ;;
16539
16540sysv4*MP*)
16541 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016542 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016543 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16544 soname_spec='$libname${shared_ext}.$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 fi
16547 ;;
16548
16549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16550 version_type=freebsd-elf
16551 need_lib_prefix=no
16552 need_version=no
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=yes
16557 hardcode_into_libs=yes
16558 if test "$with_gnu_ld" = yes; then
16559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16560 else
16561 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16562 case $host_os in
16563 sco3.2v5*)
16564 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16565 ;;
16566 esac
16567 fi
16568 sys_lib_dlsearch_path_spec='/usr/lib'
16569 ;;
16570
16571tpf*)
16572 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016573 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 shlibpath_var=LD_LIBRARY_PATH
16578 shlibpath_overrides_runpath=no
16579 hardcode_into_libs=yes
16580 ;;
16581
16582uts4*)
cristy99bd5232011-12-07 14:38:20 +000016583 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 ;;
16588
16589*)
16590 dynamic_linker=no
16591 ;;
16592esac
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16594$as_echo "$dynamic_linker" >&6; }
16595test "$dynamic_linker" = no && can_build_shared=no
16596
16597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16598if test "$GCC" = yes; then
16599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16600fi
16601
16602if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16603 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16604fi
16605if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16606 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16607fi
16608
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
cristy0c60a692010-11-04 01:09:47 +000016695
16696
16697
16698
16699
cristy73bd4a52010-10-05 11:24:23 +000016700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16701$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16702hardcode_action=
16703if test -n "$hardcode_libdir_flag_spec" ||
16704 test -n "$runpath_var" ||
16705 test "X$hardcode_automatic" = "Xyes" ; then
16706
16707 # We can hardcode non-existent directories.
16708 if test "$hardcode_direct" != no &&
16709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16710 # have to relink, otherwise we might link with an installed library
16711 # when we should be linking with a yet-to-be-installed one
16712 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16713 test "$hardcode_minus_L" != no; then
16714 # Linking always hardcodes the temporary library directory.
16715 hardcode_action=relink
16716 else
16717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16718 hardcode_action=immediate
16719 fi
16720else
16721 # We cannot hardcode anything, or else we can only hardcode existing
16722 # directories.
16723 hardcode_action=unsupported
16724fi
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16726$as_echo "$hardcode_action" >&6; }
16727
16728if test "$hardcode_action" = relink ||
16729 test "$inherit_rpath" = yes; then
16730 # Fast installation is not supported
16731 enable_fast_install=no
16732elif test "$shlibpath_overrides_runpath" = yes ||
16733 test "$enable_shared" = no; then
16734 # Fast installation is not necessary
16735 enable_fast_install=needless
16736fi
16737
16738
16739
16740
16741
16742
16743 if test "x$enable_dlopen" != xyes; then
16744 enable_dlopen=unknown
16745 enable_dlopen_self=unknown
16746 enable_dlopen_self_static=unknown
16747else
16748 lt_cv_dlopen=no
16749 lt_cv_dlopen_libs=
16750
16751 case $host_os in
16752 beos*)
16753 lt_cv_dlopen="load_add_on"
16754 lt_cv_dlopen_libs=
16755 lt_cv_dlopen_self=yes
16756 ;;
16757
16758 mingw* | pw32* | cegcc*)
16759 lt_cv_dlopen="LoadLibrary"
16760 lt_cv_dlopen_libs=
16761 ;;
16762
16763 cygwin*)
16764 lt_cv_dlopen="dlopen"
16765 lt_cv_dlopen_libs=
16766 ;;
16767
16768 darwin*)
16769 # if libdl is installed we need to link against it
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16771$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016772if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016773 $as_echo_n "(cached) " >&6
16774else
16775 ac_check_lib_save_LIBS=$LIBS
16776LIBS="-ldl $LIBS"
16777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16778/* end confdefs.h. */
16779
16780/* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783#ifdef __cplusplus
16784extern "C"
16785#endif
16786char dlopen ();
16787int
16788main ()
16789{
16790return dlopen ();
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795if ac_fn_c_try_link "$LINENO"; then :
16796 ac_cv_lib_dl_dlopen=yes
16797else
16798 ac_cv_lib_dl_dlopen=no
16799fi
16800rm -f core conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16802LIBS=$ac_check_lib_save_LIBS
16803fi
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16805$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016806if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16808else
16809
16810 lt_cv_dlopen="dyld"
16811 lt_cv_dlopen_libs=
16812 lt_cv_dlopen_self=yes
16813
16814fi
16815
16816 ;;
16817
16818 *)
16819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016820if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016821 lt_cv_dlopen="shl_load"
16822else
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16824$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016825if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016826 $as_echo_n "(cached) " >&6
16827else
16828 ac_check_lib_save_LIBS=$LIBS
16829LIBS="-ldld $LIBS"
16830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831/* end confdefs.h. */
16832
16833/* Override any GCC internal prototype to avoid an error.
16834 Use char because int might match the return type of a GCC
16835 builtin and then its argument prototype would still apply. */
16836#ifdef __cplusplus
16837extern "C"
16838#endif
16839char shl_load ();
16840int
16841main ()
16842{
16843return shl_load ();
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848if ac_fn_c_try_link "$LINENO"; then :
16849 ac_cv_lib_dld_shl_load=yes
16850else
16851 ac_cv_lib_dld_shl_load=no
16852fi
16853rm -f core conftest.err conftest.$ac_objext \
16854 conftest$ac_exeext conftest.$ac_ext
16855LIBS=$ac_check_lib_save_LIBS
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16858$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016859if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16861else
16862 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016863if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016864 lt_cv_dlopen="dlopen"
16865else
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16867$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016868if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016869 $as_echo_n "(cached) " >&6
16870else
16871 ac_check_lib_save_LIBS=$LIBS
16872LIBS="-ldl $LIBS"
16873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874/* end confdefs.h. */
16875
16876/* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16879#ifdef __cplusplus
16880extern "C"
16881#endif
16882char dlopen ();
16883int
16884main ()
16885{
16886return dlopen ();
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"; then :
16892 ac_cv_lib_dl_dlopen=yes
16893else
16894 ac_cv_lib_dl_dlopen=no
16895fi
16896rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16898LIBS=$ac_check_lib_save_LIBS
16899fi
16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16901$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016902if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16904else
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16906$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016907if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016908 $as_echo_n "(cached) " >&6
16909else
16910 ac_check_lib_save_LIBS=$LIBS
16911LIBS="-lsvld $LIBS"
16912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913/* end confdefs.h. */
16914
16915/* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16918#ifdef __cplusplus
16919extern "C"
16920#endif
16921char dlopen ();
16922int
16923main ()
16924{
16925return dlopen ();
16926 ;
16927 return 0;
16928}
16929_ACEOF
16930if ac_fn_c_try_link "$LINENO"; then :
16931 ac_cv_lib_svld_dlopen=yes
16932else
16933 ac_cv_lib_svld_dlopen=no
16934fi
16935rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937LIBS=$ac_check_lib_save_LIBS
16938fi
16939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16940$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016941if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16943else
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16945$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016946if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016947 $as_echo_n "(cached) " >&6
16948else
16949 ac_check_lib_save_LIBS=$LIBS
16950LIBS="-ldld $LIBS"
16951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952/* end confdefs.h. */
16953
16954/* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16957#ifdef __cplusplus
16958extern "C"
16959#endif
16960char dld_link ();
16961int
16962main ()
16963{
16964return dld_link ();
16965 ;
16966 return 0;
16967}
16968_ACEOF
16969if ac_fn_c_try_link "$LINENO"; then :
16970 ac_cv_lib_dld_dld_link=yes
16971else
16972 ac_cv_lib_dld_dld_link=no
16973fi
16974rm -f core conftest.err conftest.$ac_objext \
16975 conftest$ac_exeext conftest.$ac_ext
16976LIBS=$ac_check_lib_save_LIBS
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16979$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016980if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16982fi
16983
16984
16985fi
16986
16987
16988fi
16989
16990
16991fi
16992
16993
16994fi
16995
16996
16997fi
16998
16999 ;;
17000 esac
17001
17002 if test "x$lt_cv_dlopen" != xno; then
17003 enable_dlopen=yes
17004 else
17005 enable_dlopen=no
17006 fi
17007
17008 case $lt_cv_dlopen in
17009 dlopen)
17010 save_CPPFLAGS="$CPPFLAGS"
17011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17012
17013 save_LDFLAGS="$LDFLAGS"
17014 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17015
17016 save_LIBS="$LIBS"
17017 LIBS="$lt_cv_dlopen_libs $LIBS"
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17020$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017021if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017022 $as_echo_n "(cached) " >&6
17023else
17024 if test "$cross_compiling" = yes; then :
17025 lt_cv_dlopen_self=cross
17026else
17027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17028 lt_status=$lt_dlunknown
17029 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017030#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017031#include "confdefs.h"
17032
17033#if HAVE_DLFCN_H
17034#include <dlfcn.h>
17035#endif
17036
17037#include <stdio.h>
17038
17039#ifdef RTLD_GLOBAL
17040# define LT_DLGLOBAL RTLD_GLOBAL
17041#else
17042# ifdef DL_GLOBAL
17043# define LT_DLGLOBAL DL_GLOBAL
17044# else
17045# define LT_DLGLOBAL 0
17046# endif
17047#endif
17048
17049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17050 find out it does not work in some platform. */
17051#ifndef LT_DLLAZY_OR_NOW
17052# ifdef RTLD_LAZY
17053# define LT_DLLAZY_OR_NOW RTLD_LAZY
17054# else
17055# ifdef DL_LAZY
17056# define LT_DLLAZY_OR_NOW DL_LAZY
17057# else
17058# ifdef RTLD_NOW
17059# define LT_DLLAZY_OR_NOW RTLD_NOW
17060# else
17061# ifdef DL_NOW
17062# define LT_DLLAZY_OR_NOW DL_NOW
17063# else
17064# define LT_DLLAZY_OR_NOW 0
17065# endif
17066# endif
17067# endif
17068# endif
17069#endif
17070
cristy0c60a692010-11-04 01:09:47 +000017071/* When -fvisbility=hidden is used, assume the code has been annotated
17072 correspondingly for the symbols needed. */
17073#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017074int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017075#endif
17076
cristyda16f162011-02-19 23:52:17 +000017077int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017078int main ()
17079{
17080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17081 int status = $lt_dlunknown;
17082
17083 if (self)
17084 {
17085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017086 else
17087 {
17088 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17089 else puts (dlerror ());
17090 }
cristy73bd4a52010-10-05 11:24:23 +000017091 /* dlclose (self); */
17092 }
17093 else
17094 puts (dlerror ());
17095
17096 return status;
17097}
17098_LT_EOF
17099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17100 (eval $ac_link) 2>&5
17101 ac_status=$?
17102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17103 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17104 (./conftest; exit; ) >&5 2>/dev/null
17105 lt_status=$?
17106 case x$lt_status in
17107 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17108 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17109 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17110 esac
17111 else :
17112 # compilation failed
17113 lt_cv_dlopen_self=no
17114 fi
17115fi
17116rm -fr conftest*
17117
17118
17119fi
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17121$as_echo "$lt_cv_dlopen_self" >&6; }
17122
17123 if test "x$lt_cv_dlopen_self" = xyes; then
17124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17126$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017127if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017128 $as_echo_n "(cached) " >&6
17129else
17130 if test "$cross_compiling" = yes; then :
17131 lt_cv_dlopen_self_static=cross
17132else
17133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17134 lt_status=$lt_dlunknown
17135 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017136#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017137#include "confdefs.h"
17138
17139#if HAVE_DLFCN_H
17140#include <dlfcn.h>
17141#endif
17142
17143#include <stdio.h>
17144
17145#ifdef RTLD_GLOBAL
17146# define LT_DLGLOBAL RTLD_GLOBAL
17147#else
17148# ifdef DL_GLOBAL
17149# define LT_DLGLOBAL DL_GLOBAL
17150# else
17151# define LT_DLGLOBAL 0
17152# endif
17153#endif
17154
17155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17156 find out it does not work in some platform. */
17157#ifndef LT_DLLAZY_OR_NOW
17158# ifdef RTLD_LAZY
17159# define LT_DLLAZY_OR_NOW RTLD_LAZY
17160# else
17161# ifdef DL_LAZY
17162# define LT_DLLAZY_OR_NOW DL_LAZY
17163# else
17164# ifdef RTLD_NOW
17165# define LT_DLLAZY_OR_NOW RTLD_NOW
17166# else
17167# ifdef DL_NOW
17168# define LT_DLLAZY_OR_NOW DL_NOW
17169# else
17170# define LT_DLLAZY_OR_NOW 0
17171# endif
17172# endif
17173# endif
17174# endif
17175#endif
17176
cristy0c60a692010-11-04 01:09:47 +000017177/* When -fvisbility=hidden is used, assume the code has been annotated
17178 correspondingly for the symbols needed. */
17179#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017180int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017181#endif
17182
cristyda16f162011-02-19 23:52:17 +000017183int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017184int main ()
17185{
17186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17187 int status = $lt_dlunknown;
17188
17189 if (self)
17190 {
17191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017192 else
17193 {
17194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17195 else puts (dlerror ());
17196 }
cristy73bd4a52010-10-05 11:24:23 +000017197 /* dlclose (self); */
17198 }
17199 else
17200 puts (dlerror ());
17201
17202 return status;
17203}
17204_LT_EOF
17205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17206 (eval $ac_link) 2>&5
17207 ac_status=$?
17208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17209 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17210 (./conftest; exit; ) >&5 2>/dev/null
17211 lt_status=$?
17212 case x$lt_status in
17213 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17214 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17215 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17216 esac
17217 else :
17218 # compilation failed
17219 lt_cv_dlopen_self_static=no
17220 fi
17221fi
17222rm -fr conftest*
17223
17224
17225fi
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17227$as_echo "$lt_cv_dlopen_self_static" >&6; }
17228 fi
17229
17230 CPPFLAGS="$save_CPPFLAGS"
17231 LDFLAGS="$save_LDFLAGS"
17232 LIBS="$save_LIBS"
17233 ;;
17234 esac
17235
17236 case $lt_cv_dlopen_self in
17237 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17238 *) enable_dlopen_self=unknown ;;
17239 esac
17240
17241 case $lt_cv_dlopen_self_static in
17242 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17243 *) enable_dlopen_self_static=unknown ;;
17244 esac
17245fi
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263striplib=
17264old_striplib=
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17266$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17267if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17269 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17271$as_echo "yes" >&6; }
17272else
17273# FIXME - insert some real tests, host_os isn't really good enough
17274 case $host_os in
17275 darwin*)
17276 if test -n "$STRIP" ; then
17277 striplib="$STRIP -x"
17278 old_striplib="$STRIP -S"
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17280$as_echo "yes" >&6; }
17281 else
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17283$as_echo "no" >&6; }
17284 fi
17285 ;;
17286 *)
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17288$as_echo "no" >&6; }
17289 ;;
17290 esac
17291fi
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304 # Report which library types will actually be built
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17306$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17308$as_echo "$can_build_shared" >&6; }
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17311$as_echo_n "checking whether to build shared libraries... " >&6; }
17312 test "$can_build_shared" = "no" && enable_shared=no
17313
17314 # On AIX, shared libraries and static libraries use the same namespace, and
17315 # are all built from PIC.
17316 case $host_os in
17317 aix3*)
17318 test "$enable_shared" = yes && enable_static=no
17319 if test -n "$RANLIB"; then
17320 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17321 postinstall_cmds='$RANLIB $lib'
17322 fi
17323 ;;
17324
17325 aix[4-9]*)
17326 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17327 test "$enable_shared" = yes && enable_static=no
17328 fi
17329 ;;
17330 esac
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17332$as_echo "$enable_shared" >&6; }
17333
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17335$as_echo_n "checking whether to build static libraries... " >&6; }
17336 # Make sure either enable_shared or enable_static is yes.
17337 test "$enable_shared" = yes || enable_static=yes
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17339$as_echo "$enable_static" >&6; }
17340
17341
17342
17343
17344fi
17345ac_ext=c
17346ac_cpp='$CPP $CPPFLAGS'
17347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349ac_compiler_gnu=$ac_cv_c_compiler_gnu
17350
17351CC="$lt_save_CC"
17352
cristy0c60a692010-11-04 01:09:47 +000017353 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17354 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17355 (test "X$CXX" != "Xg++"))) ; then
17356 ac_ext=cpp
17357ac_cpp='$CXXCPP $CPPFLAGS'
17358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17362$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17363if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017364 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017365 $as_echo_n "(cached) " >&6
17366else
17367 # Double quotes because CXXCPP needs to be expanded
17368 for CXXCPP in "$CXX -E" "/lib/cpp"
17369 do
17370 ac_preproc_ok=false
17371for ac_cxx_preproc_warn_flag in '' yes
17372do
17373 # Use a header file that comes with gcc, so configuring glibc
17374 # with a fresh cross-compiler works.
17375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17376 # <limits.h> exists even on freestanding compilers.
17377 # On the NeXT, cc -E runs the code through the compiler's parser,
17378 # not just through cpp. "Syntax error" is here to catch this case.
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380/* end confdefs.h. */
17381#ifdef __STDC__
17382# include <limits.h>
17383#else
17384# include <assert.h>
17385#endif
17386 Syntax error
17387_ACEOF
17388if ac_fn_cxx_try_cpp "$LINENO"; then :
17389
17390else
17391 # Broken: fails on valid input.
17392continue
17393fi
cristyda16f162011-02-19 23:52:17 +000017394rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017395
17396 # OK, works on sane cases. Now check whether nonexistent headers
17397 # can be detected and how.
17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399/* end confdefs.h. */
17400#include <ac_nonexistent.h>
17401_ACEOF
17402if ac_fn_cxx_try_cpp "$LINENO"; then :
17403 # Broken: success on invalid input.
17404continue
17405else
17406 # Passes both tests.
17407ac_preproc_ok=:
17408break
17409fi
cristyda16f162011-02-19 23:52:17 +000017410rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017411
17412done
17413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017414rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017415if $ac_preproc_ok; then :
17416 break
17417fi
17418
17419 done
17420 ac_cv_prog_CXXCPP=$CXXCPP
17421
17422fi
17423 CXXCPP=$ac_cv_prog_CXXCPP
17424else
17425 ac_cv_prog_CXXCPP=$CXXCPP
17426fi
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17428$as_echo "$CXXCPP" >&6; }
17429ac_preproc_ok=false
17430for ac_cxx_preproc_warn_flag in '' yes
17431do
17432 # Use a header file that comes with gcc, so configuring glibc
17433 # with a fresh cross-compiler works.
17434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17435 # <limits.h> exists even on freestanding compilers.
17436 # On the NeXT, cc -E runs the code through the compiler's parser,
17437 # not just through cpp. "Syntax error" is here to catch this case.
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439/* end confdefs.h. */
17440#ifdef __STDC__
17441# include <limits.h>
17442#else
17443# include <assert.h>
17444#endif
17445 Syntax error
17446_ACEOF
17447if ac_fn_cxx_try_cpp "$LINENO"; then :
17448
17449else
17450 # Broken: fails on valid input.
17451continue
17452fi
cristyda16f162011-02-19 23:52:17 +000017453rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017454
17455 # OK, works on sane cases. Now check whether nonexistent headers
17456 # can be detected and how.
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458/* end confdefs.h. */
17459#include <ac_nonexistent.h>
17460_ACEOF
17461if ac_fn_cxx_try_cpp "$LINENO"; then :
17462 # Broken: success on invalid input.
17463continue
17464else
17465 # Passes both tests.
17466ac_preproc_ok=:
17467break
17468fi
cristyda16f162011-02-19 23:52:17 +000017469rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017470
17471done
17472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017473rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017474if $ac_preproc_ok; then :
17475
17476else
17477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17479as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17480See \`config.log' for more details" "$LINENO" 5; }
17481fi
17482
17483ac_ext=c
17484ac_cpp='$CPP $CPPFLAGS'
17485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17487ac_compiler_gnu=$ac_cv_c_compiler_gnu
17488
17489else
17490 _lt_caught_CXX_error=yes
17491fi
cristy73bd4a52010-10-05 11:24:23 +000017492
17493ac_ext=cpp
17494ac_cpp='$CXXCPP $CPPFLAGS'
17495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17498
17499archive_cmds_need_lc_CXX=no
17500allow_undefined_flag_CXX=
17501always_export_symbols_CXX=no
17502archive_expsym_cmds_CXX=
17503compiler_needs_object_CXX=no
17504export_dynamic_flag_spec_CXX=
17505hardcode_direct_CXX=no
17506hardcode_direct_absolute_CXX=no
17507hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017508hardcode_libdir_separator_CXX=
17509hardcode_minus_L_CXX=no
17510hardcode_shlibpath_var_CXX=unsupported
17511hardcode_automatic_CXX=no
17512inherit_rpath_CXX=no
17513module_cmds_CXX=
17514module_expsym_cmds_CXX=
17515link_all_deplibs_CXX=unknown
17516old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017517reload_flag_CXX=$reload_flag
17518reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017519no_undefined_flag_CXX=
17520whole_archive_flag_spec_CXX=
17521enable_shared_with_static_runtimes_CXX=no
17522
17523# Source file extension for C++ test sources.
17524ac_ext=cpp
17525
17526# Object file extension for compiled C++ test sources.
17527objext=o
17528objext_CXX=$objext
17529
17530# No sense in running all these tests if we already determined that
17531# the CXX compiler isn't working. Some variables (like enable_shared)
17532# are currently assumed to apply to all compilers on this platform,
17533# and will be corrupted by setting them based on a non-working compiler.
17534if test "$_lt_caught_CXX_error" != yes; then
17535 # Code to be used in simple compile tests
17536 lt_simple_compile_test_code="int some_variable = 0;"
17537
17538 # Code to be used in simple link tests
17539 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17540
17541 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17542
17543
17544
17545
17546
17547
17548# If no C compiler was specified, use CC.
17549LTCC=${LTCC-"$CC"}
17550
17551# If no C compiler flags were specified, use CFLAGS.
17552LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17553
17554# Allow CC to be a program name with arguments.
17555compiler=$CC
17556
17557
17558 # save warnings/boilerplate of simple test code
17559 ac_outfile=conftest.$ac_objext
17560echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17562_lt_compiler_boilerplate=`cat conftest.err`
17563$RM conftest*
17564
17565 ac_outfile=conftest.$ac_objext
17566echo "$lt_simple_link_test_code" >conftest.$ac_ext
17567eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17568_lt_linker_boilerplate=`cat conftest.err`
17569$RM -r conftest*
17570
17571
17572 # Allow CC to be a program name with arguments.
17573 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017574 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017575 lt_save_LD=$LD
17576 lt_save_GCC=$GCC
17577 GCC=$GXX
17578 lt_save_with_gnu_ld=$with_gnu_ld
17579 lt_save_path_LD=$lt_cv_path_LD
17580 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17581 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17582 else
17583 $as_unset lt_cv_prog_gnu_ld
17584 fi
17585 if test -n "${lt_cv_path_LDCXX+set}"; then
17586 lt_cv_path_LD=$lt_cv_path_LDCXX
17587 else
17588 $as_unset lt_cv_path_LD
17589 fi
17590 test -z "${LDCXX+set}" || LD=$LDCXX
17591 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017592 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017593 compiler=$CC
17594 compiler_CXX=$CC
17595 for cc_temp in $compiler""; do
17596 case $cc_temp in
17597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17599 \-*) ;;
17600 *) break;;
17601 esac
17602done
cristy0c60a692010-11-04 01:09:47 +000017603cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017604
17605
17606 if test -n "$compiler"; then
17607 # We don't want -fno-exception when compiling C++ code, so set the
17608 # no_builtin_flag separately
17609 if test "$GXX" = yes; then
17610 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17611 else
17612 lt_prog_compiler_no_builtin_flag_CXX=
17613 fi
17614
17615 if test "$GXX" = yes; then
17616 # Set up default GNU C++ configuration
17617
17618
17619
17620# Check whether --with-gnu-ld was given.
17621if test "${with_gnu_ld+set}" = set; then :
17622 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17623else
17624 with_gnu_ld=no
17625fi
17626
17627ac_prog=ld
17628if test "$GCC" = yes; then
17629 # Check if gcc -print-prog-name=ld gives a path.
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17631$as_echo_n "checking for ld used by $CC... " >&6; }
17632 case $host in
17633 *-*-mingw*)
17634 # gcc leaves a trailing carriage return which upsets mingw
17635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17636 *)
17637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17638 esac
17639 case $ac_prog in
17640 # Accept absolute paths.
17641 [\\/]* | ?:[\\/]*)
17642 re_direlt='/[^/][^/]*/\.\./'
17643 # Canonicalize the pathname of ld
17644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17647 done
17648 test -z "$LD" && LD="$ac_prog"
17649 ;;
17650 "")
17651 # If it fails, then pretend we aren't using GCC.
17652 ac_prog=ld
17653 ;;
17654 *)
17655 # If it is relative, then search for the first ld in PATH.
17656 with_gnu_ld=unknown
17657 ;;
17658 esac
17659elif test "$with_gnu_ld" = yes; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17661$as_echo_n "checking for GNU ld... " >&6; }
17662else
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17664$as_echo_n "checking for non-GNU ld... " >&6; }
17665fi
cristyda16f162011-02-19 23:52:17 +000017666if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017667 $as_echo_n "(cached) " >&6
17668else
17669 if test -z "$LD"; then
17670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17671 for ac_dir in $PATH; do
17672 IFS="$lt_save_ifs"
17673 test -z "$ac_dir" && ac_dir=.
17674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17675 lt_cv_path_LD="$ac_dir/$ac_prog"
17676 # Check to see if the program is GNU ld. I'd rather use --version,
17677 # but apparently some variants of GNU ld only accept -v.
17678 # Break only if it was the GNU/non-GNU ld that we prefer.
17679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17680 *GNU* | *'with BFD'*)
17681 test "$with_gnu_ld" != no && break
17682 ;;
17683 *)
17684 test "$with_gnu_ld" != yes && break
17685 ;;
17686 esac
17687 fi
17688 done
17689 IFS="$lt_save_ifs"
17690else
17691 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17692fi
17693fi
17694
17695LD="$lt_cv_path_LD"
17696if test -n "$LD"; then
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17698$as_echo "$LD" >&6; }
17699else
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17701$as_echo "no" >&6; }
17702fi
cristy98dddb52010-11-04 00:30:15 +000017703test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017706if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017707 $as_echo_n "(cached) " >&6
17708else
17709 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17710case `$LD -v 2>&1 </dev/null` in
17711*GNU* | *'with BFD'*)
17712 lt_cv_prog_gnu_ld=yes
17713 ;;
17714*)
17715 lt_cv_prog_gnu_ld=no
17716 ;;
17717esac
17718fi
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17720$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17721with_gnu_ld=$lt_cv_prog_gnu_ld
17722
17723
17724
17725
17726
17727
17728
17729 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17730 # archiving commands below assume that GNU ld is being used.
17731 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017732 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733 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 +000017734
17735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17737
17738 # If archive_cmds runs LD, not CC, wlarc should be empty
17739 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17740 # investigate it a little bit more. (MM)
17741 wlarc='${wl}'
17742
17743 # ancient GNU ld didn't support --whole-archive et. al.
17744 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17745 $GREP 'no-whole-archive' > /dev/null; then
17746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17747 else
17748 whole_archive_flag_spec_CXX=
17749 fi
17750 else
17751 with_gnu_ld=no
17752 wlarc=
17753
17754 # A generic and very simple default shared library creation
17755 # command for GNU C++ for the case where it uses the native
17756 # linker, instead of GNU ld. If possible, this setting should
17757 # overridden to take advantage of the native linker features on
17758 # the platform it is being used on.
17759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17760 fi
17761
17762 # Commands to make compiler produce verbose output that lists
17763 # what "hidden" libraries, object files and flags are used when
17764 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017766
17767 else
17768 GXX=no
17769 with_gnu_ld=no
17770 wlarc=
17771 fi
17772
17773 # PORTME: fill in a description of your system's C++ link characteristics
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17776 ld_shlibs_CXX=yes
17777 case $host_os in
17778 aix3*)
17779 # FIXME: insert proper C++ library support
17780 ld_shlibs_CXX=no
17781 ;;
17782 aix[4-9]*)
17783 if test "$host_cpu" = ia64; then
17784 # On IA64, the linker does run time linking by default, so we don't
17785 # have to do anything special.
17786 aix_use_runtimelinking=no
17787 exp_sym_flag='-Bexport'
17788 no_entry_flag=""
17789 else
17790 aix_use_runtimelinking=no
17791
17792 # Test if we are trying to use run time linking or normal
17793 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17794 # need to do runtime linking.
17795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17796 for ld_flag in $LDFLAGS; do
17797 case $ld_flag in
17798 *-brtl*)
17799 aix_use_runtimelinking=yes
17800 break
17801 ;;
17802 esac
17803 done
17804 ;;
17805 esac
17806
17807 exp_sym_flag='-bexport'
17808 no_entry_flag='-bnoentry'
17809 fi
17810
17811 # When large executables or shared objects are built, AIX ld can
17812 # have problems creating the table of contents. If linking a library
17813 # or program results in "error TOC overflow" add -mminimal-toc to
17814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17816
17817 archive_cmds_CXX=''
17818 hardcode_direct_CXX=yes
17819 hardcode_direct_absolute_CXX=yes
17820 hardcode_libdir_separator_CXX=':'
17821 link_all_deplibs_CXX=yes
17822 file_list_spec_CXX='${wl}-f,'
17823
17824 if test "$GXX" = yes; then
17825 case $host_os in aix4.[012]|aix4.[012].*)
17826 # We only want to do this on AIX 4.2 and lower, the check
17827 # below for broken collect2 doesn't work under 4.3+
17828 collect2name=`${CC} -print-prog-name=collect2`
17829 if test -f "$collect2name" &&
17830 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17831 then
17832 # We have reworked collect2
17833 :
17834 else
17835 # We have old collect2
17836 hardcode_direct_CXX=unsupported
17837 # It fails to find uninstalled libraries when the uninstalled
17838 # path is not listed in the libpath. Setting hardcode_minus_L
17839 # to unsupported forces relinking
17840 hardcode_minus_L_CXX=yes
17841 hardcode_libdir_flag_spec_CXX='-L$libdir'
17842 hardcode_libdir_separator_CXX=
17843 fi
17844 esac
17845 shared_flag='-shared'
17846 if test "$aix_use_runtimelinking" = yes; then
17847 shared_flag="$shared_flag "'${wl}-G'
17848 fi
17849 else
17850 # not using gcc
17851 if test "$host_cpu" = ia64; then
17852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17853 # chokes on -Wl,-G. The following line is correct:
17854 shared_flag='-G'
17855 else
17856 if test "$aix_use_runtimelinking" = yes; then
17857 shared_flag='${wl}-G'
17858 else
17859 shared_flag='${wl}-bM:SRE'
17860 fi
17861 fi
17862 fi
17863
17864 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17865 # It seems that -bexpall does not export symbols beginning with
17866 # underscore (_), so it is better to generate a list of symbols to
17867 # export.
17868 always_export_symbols_CXX=yes
17869 if test "$aix_use_runtimelinking" = yes; then
17870 # Warning - without using the other runtime loading flags (-brtl),
17871 # -berok will link without error, but may produce a broken library.
17872 allow_undefined_flag_CXX='-berok'
17873 # Determine the default libpath from the value encoded in an empty
17874 # executable.
cristyda16f162011-02-19 23:52:17 +000017875 if test "${lt_cv_aix_libpath+set}" = set; then
17876 aix_libpath=$lt_cv_aix_libpath
17877else
17878 if ${lt_cv_aix_libpath__CXX+:} false; then :
17879 $as_echo_n "(cached) " >&6
17880else
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017882/* end confdefs.h. */
17883
17884int
17885main ()
17886{
17887
17888 ;
17889 return 0;
17890}
17891_ACEOF
17892if ac_fn_cxx_try_link "$LINENO"; then :
17893
cristyda16f162011-02-19 23:52:17 +000017894 lt_aix_libpath_sed='
17895 /Import File Strings/,/^$/ {
17896 /^0/ {
17897 s/^0 *\([^ ]*\) *$/\1/
17898 p
17899 }
17900 }'
17901 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17902 # Check for a 64-bit object if we didn't find anything.
17903 if test -z "$lt_cv_aix_libpath__CXX"; then
17904 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17905 fi
cristy73bd4a52010-10-05 11:24:23 +000017906fi
17907rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017909 if test -z "$lt_cv_aix_libpath__CXX"; then
17910 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17911 fi
17912
17913fi
17914
17915 aix_libpath=$lt_cv_aix_libpath__CXX
17916fi
cristy73bd4a52010-10-05 11:24:23 +000017917
17918 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17919
cristy0c60a692010-11-04 01:09:47 +000017920 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 +000017921 else
17922 if test "$host_cpu" = ia64; then
17923 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17924 allow_undefined_flag_CXX="-z nodefs"
17925 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"
17926 else
17927 # Determine the default libpath from the value encoded in an
17928 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017929 if test "${lt_cv_aix_libpath+set}" = set; then
17930 aix_libpath=$lt_cv_aix_libpath
17931else
17932 if ${lt_cv_aix_libpath__CXX+:} false; then :
17933 $as_echo_n "(cached) " >&6
17934else
17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017936/* end confdefs.h. */
17937
17938int
17939main ()
17940{
17941
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946if ac_fn_cxx_try_link "$LINENO"; then :
17947
cristyda16f162011-02-19 23:52:17 +000017948 lt_aix_libpath_sed='
17949 /Import File Strings/,/^$/ {
17950 /^0/ {
17951 s/^0 *\([^ ]*\) *$/\1/
17952 p
17953 }
17954 }'
17955 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17956 # Check for a 64-bit object if we didn't find anything.
17957 if test -z "$lt_cv_aix_libpath__CXX"; then
17958 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17959 fi
cristy73bd4a52010-10-05 11:24:23 +000017960fi
17961rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017963 if test -z "$lt_cv_aix_libpath__CXX"; then
17964 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17965 fi
17966
17967fi
17968
17969 aix_libpath=$lt_cv_aix_libpath__CXX
17970fi
cristy73bd4a52010-10-05 11:24:23 +000017971
17972 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17973 # Warning - without using the other run time loading flags,
17974 # -berok will link without error, but may produce a broken library.
17975 no_undefined_flag_CXX=' ${wl}-bernotok'
17976 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017977 if test "$with_gnu_ld" = yes; then
17978 # We only use this code for GNU lds that support --whole-archive.
17979 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17980 else
17981 # Exported symbols can be pulled into shared objects from archives
17982 whole_archive_flag_spec_CXX='$convenience'
17983 fi
cristy73bd4a52010-10-05 11:24:23 +000017984 archive_cmds_need_lc_CXX=yes
17985 # This is similar to how AIX traditionally builds its shared
17986 # libraries.
17987 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'
17988 fi
17989 fi
17990 ;;
17991
17992 beos*)
17993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17994 allow_undefined_flag_CXX=unsupported
17995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17996 # support --undefined. This deserves some investigation. FIXME
17997 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17998 else
17999 ld_shlibs_CXX=no
18000 fi
18001 ;;
18002
18003 chorus*)
18004 case $cc_basename in
18005 *)
18006 # FIXME: insert proper C++ library support
18007 ld_shlibs_CXX=no
18008 ;;
18009 esac
18010 ;;
18011
18012 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018013 case $GXX,$cc_basename in
18014 ,cl* | no,cl*)
18015 # Native MSVC
18016 # hardcode_libdir_flag_spec is actually meaningless, as there is
18017 # no search path for DLLs.
18018 hardcode_libdir_flag_spec_CXX=' '
18019 allow_undefined_flag_CXX=unsupported
18020 always_export_symbols_CXX=yes
18021 file_list_spec_CXX='@'
18022 # Tell ltmain to make .lib files, not .a files.
18023 libext=lib
18024 # Tell ltmain to make .dll files, not .so files.
18025 shrext_cmds=".dll"
18026 # FIXME: Setting linknames here is a bad hack.
18027 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18028 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18029 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18030 else
18031 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18032 fi~
18033 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18034 linknames='
18035 # The linker will not automatically build a static lib if we build a DLL.
18036 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18037 enable_shared_with_static_runtimes_CXX=yes
18038 # Don't use ranlib
18039 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18040 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18041 lt_tool_outputfile="@TOOL_OUTPUT@"~
18042 case $lt_outputfile in
18043 *.exe|*.EXE) ;;
18044 *)
18045 lt_outputfile="$lt_outputfile.exe"
18046 lt_tool_outputfile="$lt_tool_outputfile.exe"
18047 ;;
18048 esac~
18049 func_to_tool_file "$lt_outputfile"~
18050 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18051 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18052 $RM "$lt_outputfile.manifest";
18053 fi'
18054 ;;
18055 *)
18056 # g++
18057 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18058 # as there is no search path for DLLs.
18059 hardcode_libdir_flag_spec_CXX='-L$libdir'
18060 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18061 allow_undefined_flag_CXX=unsupported
18062 always_export_symbols_CXX=no
18063 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018064
cristyda16f162011-02-19 23:52:17 +000018065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18066 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'
18067 # If the export-symbols file already is a .def file (1st line
18068 # is EXPORTS), use it as is; otherwise, prepend...
18069 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18070 cp $export_symbols $output_objdir/$soname.def;
18071 else
18072 echo EXPORTS > $output_objdir/$soname.def;
18073 cat $export_symbols >> $output_objdir/$soname.def;
18074 fi~
18075 $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'
18076 else
18077 ld_shlibs_CXX=no
18078 fi
18079 ;;
18080 esac
18081 ;;
cristy73bd4a52010-10-05 11:24:23 +000018082 darwin* | rhapsody*)
18083
18084
18085 archive_cmds_need_lc_CXX=no
18086 hardcode_direct_CXX=no
18087 hardcode_automatic_CXX=yes
18088 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018089 if test "$lt_cv_ld_force_load" = "yes"; then
18090 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 +000018091
cristy0c60a692010-11-04 01:09:47 +000018092 else
18093 whole_archive_flag_spec_CXX=''
18094 fi
cristy73bd4a52010-10-05 11:24:23 +000018095 link_all_deplibs_CXX=yes
18096 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18097 case $cc_basename in
18098 ifort*) _lt_dar_can_shared=yes ;;
18099 *) _lt_dar_can_shared=$GCC ;;
18100 esac
18101 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018102 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018103 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}"
18104 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18105 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}"
18106 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}"
18107 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18108 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}"
18109 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}"
18110 fi
18111
18112 else
18113 ld_shlibs_CXX=no
18114 fi
18115
18116 ;;
18117
18118 dgux*)
18119 case $cc_basename in
18120 ec++*)
18121 # FIXME: insert proper C++ library support
18122 ld_shlibs_CXX=no
18123 ;;
18124 ghcx*)
18125 # Green Hills C++ Compiler
18126 # FIXME: insert proper C++ library support
18127 ld_shlibs_CXX=no
18128 ;;
18129 *)
18130 # FIXME: insert proper C++ library support
18131 ld_shlibs_CXX=no
18132 ;;
18133 esac
18134 ;;
18135
cristy99bd5232011-12-07 14:38:20 +000018136 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018137 # C++ shared libraries reported to be fairly broken before
18138 # switch to ELF
18139 ld_shlibs_CXX=no
18140 ;;
18141
18142 freebsd-elf*)
18143 archive_cmds_need_lc_CXX=no
18144 ;;
18145
18146 freebsd* | dragonfly*)
18147 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18148 # conventions
18149 ld_shlibs_CXX=yes
18150 ;;
18151
18152 gnu*)
18153 ;;
18154
cristy0c60a692010-11-04 01:09:47 +000018155 haiku*)
18156 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18157 link_all_deplibs_CXX=yes
18158 ;;
18159
cristy73bd4a52010-10-05 11:24:23 +000018160 hpux9*)
18161 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18162 hardcode_libdir_separator_CXX=:
18163 export_dynamic_flag_spec_CXX='${wl}-E'
18164 hardcode_direct_CXX=yes
18165 hardcode_minus_L_CXX=yes # Not in the search PATH,
18166 # but as the default
18167 # location of the library.
18168
18169 case $cc_basename in
18170 CC*)
18171 # FIXME: insert proper C++ library support
18172 ld_shlibs_CXX=no
18173 ;;
18174 aCC*)
18175 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'
18176 # Commands to make compiler produce verbose output that lists
18177 # what "hidden" libraries, object files and flags are used when
18178 # linking a shared library.
18179 #
18180 # There doesn't appear to be a way to prevent this compiler from
18181 # explicitly linking system object files so we need to strip them
18182 # from the output so that they don't get included in the library
18183 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018184 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 +000018185 ;;
18186 *)
18187 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018188 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 +000018189 else
18190 # FIXME: insert proper C++ library support
18191 ld_shlibs_CXX=no
18192 fi
18193 ;;
18194 esac
18195 ;;
18196
18197 hpux10*|hpux11*)
18198 if test $with_gnu_ld = no; then
18199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18200 hardcode_libdir_separator_CXX=:
18201
18202 case $host_cpu in
18203 hppa*64*|ia64*)
18204 ;;
18205 *)
18206 export_dynamic_flag_spec_CXX='${wl}-E'
18207 ;;
18208 esac
18209 fi
18210 case $host_cpu in
18211 hppa*64*|ia64*)
18212 hardcode_direct_CXX=no
18213 hardcode_shlibpath_var_CXX=no
18214 ;;
18215 *)
18216 hardcode_direct_CXX=yes
18217 hardcode_direct_absolute_CXX=yes
18218 hardcode_minus_L_CXX=yes # Not in the search PATH,
18219 # but as the default
18220 # location of the library.
18221 ;;
18222 esac
18223
18224 case $cc_basename in
18225 CC*)
18226 # FIXME: insert proper C++ library support
18227 ld_shlibs_CXX=no
18228 ;;
18229 aCC*)
18230 case $host_cpu in
18231 hppa*64*)
18232 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18233 ;;
18234 ia64*)
18235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18236 ;;
18237 *)
18238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18239 ;;
18240 esac
18241 # Commands to make compiler produce verbose output that lists
18242 # what "hidden" libraries, object files and flags are used when
18243 # linking a shared library.
18244 #
18245 # There doesn't appear to be a way to prevent this compiler from
18246 # explicitly linking system object files so we need to strip them
18247 # from the output so that they don't get included in the library
18248 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018249 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 +000018250 ;;
18251 *)
18252 if test "$GXX" = yes; then
18253 if test $with_gnu_ld = no; then
18254 case $host_cpu in
18255 hppa*64*)
18256 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18257 ;;
18258 ia64*)
cristyda16f162011-02-19 23:52:17 +000018259 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 +000018260 ;;
18261 *)
cristyda16f162011-02-19 23:52:17 +000018262 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 +000018263 ;;
18264 esac
18265 fi
18266 else
18267 # FIXME: insert proper C++ library support
18268 ld_shlibs_CXX=no
18269 fi
18270 ;;
18271 esac
18272 ;;
18273
18274 interix[3-9]*)
18275 hardcode_direct_CXX=no
18276 hardcode_shlibpath_var_CXX=no
18277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18278 export_dynamic_flag_spec_CXX='${wl}-E'
18279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18280 # Instead, shared libraries are loaded at an image base (0x10000000 by
18281 # default) and relocated if they conflict, which is a slow very memory
18282 # consuming and fragmenting process. To avoid this, we pick a random,
18283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18284 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18285 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'
18286 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'
18287 ;;
18288 irix5* | irix6*)
18289 case $cc_basename in
18290 CC*)
18291 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018292 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 +000018293
18294 # Archives containing C++ object files must be created using
18295 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18296 # necessary to make sure instantiated templates are included
18297 # in the archive.
18298 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18299 ;;
18300 *)
18301 if test "$GXX" = yes; then
18302 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018303 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 +000018304 else
cristyda16f162011-02-19 23:52:17 +000018305 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 +000018306 fi
18307 fi
18308 link_all_deplibs_CXX=yes
18309 ;;
18310 esac
18311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18312 hardcode_libdir_separator_CXX=:
18313 inherit_rpath_CXX=yes
18314 ;;
18315
cristy0c60a692010-11-04 01:09:47 +000018316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018317 case $cc_basename in
18318 KCC*)
18319 # Kuck and Associates, Inc. (KAI) C++ Compiler
18320
18321 # KCC will only create a shared library if the output file
18322 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18323 # to its proper name (with version) after linking.
18324 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'
18325 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'
18326 # Commands to make compiler produce verbose output that lists
18327 # what "hidden" libraries, object files and flags are used when
18328 # linking a shared library.
18329 #
18330 # There doesn't appear to be a way to prevent this compiler from
18331 # explicitly linking system object files so we need to strip them
18332 # from the output so that they don't get included in the library
18333 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018334 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 +000018335
18336 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18337 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18338
18339 # Archives containing C++ object files must be created using
18340 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18341 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18342 ;;
18343 icpc* | ecpc* )
18344 # Intel C++
18345 with_gnu_ld=yes
18346 # version 8.0 and above of icpc choke on multiply defined symbols
18347 # if we add $predep_objects and $postdep_objects, however 7.1 and
18348 # earlier do not add the objects themselves.
18349 case `$CC -V 2>&1` in
18350 *"Version 7."*)
18351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18352 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'
18353 ;;
18354 *) # Version 8.0 or newer
18355 tmp_idyn=
18356 case $host_cpu in
18357 ia64*) tmp_idyn=' -i_dynamic';;
18358 esac
18359 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360 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'
18361 ;;
18362 esac
18363 archive_cmds_need_lc_CXX=no
18364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18366 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18367 ;;
18368 pgCC* | pgcpp*)
18369 # Portland Group C++ compiler
18370 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018371 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018372 prelink_cmds_CXX='tpldir=Template.dir~
18373 rm -rf $tpldir~
18374 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018375 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018376 old_archive_cmds_CXX='tpldir=Template.dir~
18377 rm -rf $tpldir~
18378 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018379 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018380 $RANLIB $oldlib'
18381 archive_cmds_CXX='tpldir=Template.dir~
18382 rm -rf $tpldir~
18383 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018384 $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 +000018385 archive_expsym_cmds_CXX='tpldir=Template.dir~
18386 rm -rf $tpldir~
18387 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018388 $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 +000018389 ;;
cristy0c60a692010-11-04 01:09:47 +000018390 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018391 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18392 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'
18393 ;;
18394 esac
18395
18396 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018398 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 +000018399 ;;
18400 cxx*)
18401 # Compaq C++
18402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18403 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'
18404
18405 runpath_var=LD_RUN_PATH
18406 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18407 hardcode_libdir_separator_CXX=:
18408
18409 # Commands to make compiler produce verbose output that lists
18410 # what "hidden" libraries, object files and flags are used when
18411 # linking a shared library.
18412 #
18413 # There doesn't appear to be a way to prevent this compiler from
18414 # explicitly linking system object files so we need to strip them
18415 # from the output so that they don't get included in the library
18416 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018417 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 +000018418 ;;
cristy0c60a692010-11-04 01:09:47 +000018419 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018420 # IBM XL 8.0 on PPC, with GNU ld
18421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18423 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18424 if test "x$supports_anon_versioning" = xyes; then
18425 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18427 echo "local: *; };" >> $output_objdir/$libname.ver~
18428 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18429 fi
18430 ;;
18431 *)
18432 case `$CC -V 2>&1 | sed 5q` in
18433 *Sun\ C*)
18434 # Sun C++ 5.9
18435 no_undefined_flag_CXX=' -zdefs'
18436 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18437 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'
18438 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018439 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 +000018440 compiler_needs_object_CXX=yes
18441
18442 # Not sure whether something based on
18443 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18444 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018445 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018446
18447 # Archives containing C++ object files must be created using
18448 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18449 # necessary to make sure instantiated templates are included
18450 # in the archive.
18451 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18452 ;;
18453 esac
18454 ;;
18455 esac
18456 ;;
18457
18458 lynxos*)
18459 # FIXME: insert proper C++ library support
18460 ld_shlibs_CXX=no
18461 ;;
18462
18463 m88k*)
18464 # FIXME: insert proper C++ library support
18465 ld_shlibs_CXX=no
18466 ;;
18467
18468 mvs*)
18469 case $cc_basename in
18470 cxx*)
18471 # FIXME: insert proper C++ library support
18472 ld_shlibs_CXX=no
18473 ;;
18474 *)
18475 # FIXME: insert proper C++ library support
18476 ld_shlibs_CXX=no
18477 ;;
18478 esac
18479 ;;
18480
18481 netbsd*)
18482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18483 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18484 wlarc=
18485 hardcode_libdir_flag_spec_CXX='-R$libdir'
18486 hardcode_direct_CXX=yes
18487 hardcode_shlibpath_var_CXX=no
18488 fi
18489 # Workaround some broken pre-1.5 toolchains
18490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18491 ;;
18492
18493 *nto* | *qnx*)
18494 ld_shlibs_CXX=yes
18495 ;;
18496
18497 openbsd2*)
18498 # C++ shared libraries are fairly broken
18499 ld_shlibs_CXX=no
18500 ;;
18501
18502 openbsd*)
18503 if test -f /usr/libexec/ld.so; then
18504 hardcode_direct_CXX=yes
18505 hardcode_shlibpath_var_CXX=no
18506 hardcode_direct_absolute_CXX=yes
18507 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18508 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18510 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18511 export_dynamic_flag_spec_CXX='${wl}-E'
18512 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18513 fi
cristy0c60a692010-11-04 01:09:47 +000018514 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018515 else
18516 ld_shlibs_CXX=no
18517 fi
18518 ;;
18519
18520 osf3* | osf4* | osf5*)
18521 case $cc_basename in
18522 KCC*)
18523 # Kuck and Associates, Inc. (KAI) C++ Compiler
18524
18525 # KCC will only create a shared library if the output file
18526 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18527 # to its proper name (with version) after linking.
18528 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'
18529
18530 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18531 hardcode_libdir_separator_CXX=:
18532
18533 # Archives containing C++ object files must be created using
18534 # the KAI C++ compiler.
18535 case $host in
18536 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18537 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18538 esac
18539 ;;
18540 RCC*)
18541 # Rational C++ 2.4.1
18542 # FIXME: insert proper C++ library support
18543 ld_shlibs_CXX=no
18544 ;;
18545 cxx*)
18546 case $host in
18547 osf3*)
18548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018549 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 +000018550 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18551 ;;
18552 *)
18553 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018554 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 +000018555 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18556 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018557 $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 +000018558 $RM $lib.exp'
18559 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18560 ;;
18561 esac
18562
18563 hardcode_libdir_separator_CXX=:
18564
18565 # Commands to make compiler produce verbose output that lists
18566 # what "hidden" libraries, object files and flags are used when
18567 # linking a shared library.
18568 #
18569 # There doesn't appear to be a way to prevent this compiler from
18570 # explicitly linking system object files so we need to strip them
18571 # from the output so that they don't get included in the library
18572 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018573 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 +000018574 ;;
18575 *)
18576 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18578 case $host in
18579 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018580 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 +000018581 ;;
18582 *)
cristyda16f162011-02-19 23:52:17 +000018583 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 +000018584 ;;
18585 esac
18586
18587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18588 hardcode_libdir_separator_CXX=:
18589
18590 # Commands to make compiler produce verbose output that lists
18591 # what "hidden" libraries, object files and flags are used when
18592 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018594
18595 else
18596 # FIXME: insert proper C++ library support
18597 ld_shlibs_CXX=no
18598 fi
18599 ;;
18600 esac
18601 ;;
18602
18603 psos*)
18604 # FIXME: insert proper C++ library support
18605 ld_shlibs_CXX=no
18606 ;;
18607
18608 sunos4*)
18609 case $cc_basename in
18610 CC*)
18611 # Sun C++ 4.x
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18614 ;;
18615 lcc*)
18616 # Lucid
18617 # FIXME: insert proper C++ library support
18618 ld_shlibs_CXX=no
18619 ;;
18620 *)
18621 # FIXME: insert proper C++ library support
18622 ld_shlibs_CXX=no
18623 ;;
18624 esac
18625 ;;
18626
18627 solaris*)
18628 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018629 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018630 # Sun C++ 4.2, 5.x and Centerline C++
18631 archive_cmds_need_lc_CXX=yes
18632 no_undefined_flag_CXX=' -zdefs'
18633 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18634 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18635 $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'
18636
18637 hardcode_libdir_flag_spec_CXX='-R$libdir'
18638 hardcode_shlibpath_var_CXX=no
18639 case $host_os in
18640 solaris2.[0-5] | solaris2.[0-5].*) ;;
18641 *)
18642 # The compiler driver will combine and reorder linker options,
18643 # but understands `-z linker_flag'.
18644 # Supported since Solaris 2.6 (maybe 2.5.1?)
18645 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18646 ;;
18647 esac
18648 link_all_deplibs_CXX=yes
18649
cristy0c60a692010-11-04 01:09:47 +000018650 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018651
18652 # Archives containing C++ object files must be created using
18653 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18654 # necessary to make sure instantiated templates are included
18655 # in the archive.
18656 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18657 ;;
18658 gcx*)
18659 # Green Hills C++ Compiler
18660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18661
18662 # The C++ compiler must be used to create the archive.
18663 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18664 ;;
18665 *)
18666 # GNU C++ compiler with Solaris linker
18667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18668 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18669 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018670 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 +000018671 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 +000018672 $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 +000018673
18674 # Commands to make compiler produce verbose output that lists
18675 # what "hidden" libraries, object files and flags are used when
18676 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018678 else
18679 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18680 # platform.
18681 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18682 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18684
18685 # Commands to make compiler produce verbose output that lists
18686 # what "hidden" libraries, object files and flags are used when
18687 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018688 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018689 fi
18690
18691 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18692 case $host_os in
18693 solaris2.[0-5] | solaris2.[0-5].*) ;;
18694 *)
18695 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18696 ;;
18697 esac
18698 fi
18699 ;;
18700 esac
18701 ;;
18702
18703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18704 no_undefined_flag_CXX='${wl}-z,text'
18705 archive_cmds_need_lc_CXX=no
18706 hardcode_shlibpath_var_CXX=no
18707 runpath_var='LD_RUN_PATH'
18708
18709 case $cc_basename in
18710 CC*)
18711 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18712 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18713 ;;
18714 *)
18715 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18716 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18717 ;;
18718 esac
18719 ;;
18720
18721 sysv5* | sco3.2v5* | sco5v6*)
18722 # Note: We can NOT use -z defs as we might desire, because we do not
18723 # link with -lc, and that would cause any symbols used from libc to
18724 # always be unresolved, which means just about no library would
18725 # ever link correctly. If we're not using GNU ld we use -z text
18726 # though, which does catch some bad symbols but isn't as heavy-handed
18727 # as -z defs.
18728 no_undefined_flag_CXX='${wl}-z,text'
18729 allow_undefined_flag_CXX='${wl}-z,nodefs'
18730 archive_cmds_need_lc_CXX=no
18731 hardcode_shlibpath_var_CXX=no
18732 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18733 hardcode_libdir_separator_CXX=':'
18734 link_all_deplibs_CXX=yes
18735 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18736 runpath_var='LD_RUN_PATH'
18737
18738 case $cc_basename in
18739 CC*)
18740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18741 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 +000018742 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18743 '"$old_archive_cmds_CXX"
18744 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18745 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018746 ;;
18747 *)
18748 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 ;;
18751 esac
18752 ;;
18753
18754 tandem*)
18755 case $cc_basename in
18756 NCC*)
18757 # NonStop-UX NCC 3.20
18758 # FIXME: insert proper C++ library support
18759 ld_shlibs_CXX=no
18760 ;;
18761 *)
18762 # FIXME: insert proper C++ library support
18763 ld_shlibs_CXX=no
18764 ;;
18765 esac
18766 ;;
18767
18768 vxworks*)
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 ;;
18772
18773 *)
18774 # FIXME: insert proper C++ library support
18775 ld_shlibs_CXX=no
18776 ;;
18777 esac
18778
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18780$as_echo "$ld_shlibs_CXX" >&6; }
18781 test "$ld_shlibs_CXX" = no && can_build_shared=no
18782
18783 GCC_CXX="$GXX"
18784 LD_CXX="$LD"
18785
18786 ## CAVEAT EMPTOR:
18787 ## There is no encapsulation within the following macros, do not change
18788 ## the running order or otherwise move them around unless you know exactly
18789 ## what you are doing...
18790 # Dependencies to place before and after the object being linked:
18791predep_objects_CXX=
18792postdep_objects_CXX=
18793predeps_CXX=
18794postdeps_CXX=
18795compiler_lib_search_path_CXX=
18796
18797cat > conftest.$ac_ext <<_LT_EOF
18798class Foo
18799{
18800public:
18801 Foo (void) { a = 0; }
18802private:
18803 int a;
18804};
18805_LT_EOF
18806
cristyda16f162011-02-19 23:52:17 +000018807
18808_lt_libdeps_save_CFLAGS=$CFLAGS
18809case "$CC $CFLAGS " in #(
18810*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18811*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018812*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018813esac
18814
cristy73bd4a52010-10-05 11:24:23 +000018815if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18816 (eval $ac_compile) 2>&5
18817 ac_status=$?
18818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18819 test $ac_status = 0; }; then
18820 # Parse the compiler output and extract the necessary
18821 # objects, libraries and library flags.
18822
18823 # Sentinel used to keep track of whether or not we are before
18824 # the conftest object file.
18825 pre_test_object_deps_done=no
18826
18827 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018828 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018829
18830 -L* | -R* | -l*)
18831 # Some compilers place space between "-{L,R}" and the path.
18832 # Remove the space.
18833 if test $p = "-L" ||
18834 test $p = "-R"; then
18835 prev=$p
18836 continue
cristy73bd4a52010-10-05 11:24:23 +000018837 fi
18838
cristyda16f162011-02-19 23:52:17 +000018839 # Expand the sysroot to ease extracting the directories later.
18840 if test -z "$prev"; then
18841 case $p in
18842 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18843 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18844 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18845 esac
18846 fi
18847 case $p in
18848 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18849 esac
cristy73bd4a52010-10-05 11:24:23 +000018850 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018851 case ${prev} in
18852 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018853 # Internal compiler library paths should come after those
18854 # provided the user. The postdeps already come after the
18855 # user supplied libs so there is no need to process them.
18856 if test -z "$compiler_lib_search_path_CXX"; then
18857 compiler_lib_search_path_CXX="${prev}${p}"
18858 else
18859 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18860 fi
18861 ;;
18862 # The "-l" case would never come before the object being
18863 # linked, so don't bother handling this case.
18864 esac
18865 else
18866 if test -z "$postdeps_CXX"; then
18867 postdeps_CXX="${prev}${p}"
18868 else
18869 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18870 fi
18871 fi
cristyda16f162011-02-19 23:52:17 +000018872 prev=
cristy73bd4a52010-10-05 11:24:23 +000018873 ;;
18874
cristyda16f162011-02-19 23:52:17 +000018875 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018876 *.$objext)
18877 # This assumes that the test object file only shows up
18878 # once in the compiler output.
18879 if test "$p" = "conftest.$objext"; then
18880 pre_test_object_deps_done=yes
18881 continue
18882 fi
18883
18884 if test "$pre_test_object_deps_done" = no; then
18885 if test -z "$predep_objects_CXX"; then
18886 predep_objects_CXX="$p"
18887 else
18888 predep_objects_CXX="$predep_objects_CXX $p"
18889 fi
18890 else
18891 if test -z "$postdep_objects_CXX"; then
18892 postdep_objects_CXX="$p"
18893 else
18894 postdep_objects_CXX="$postdep_objects_CXX $p"
18895 fi
18896 fi
18897 ;;
18898
18899 *) ;; # Ignore the rest.
18900
18901 esac
18902 done
18903
18904 # Clean up.
18905 rm -f a.out a.exe
18906else
18907 echo "libtool.m4: error: problem compiling CXX test program"
18908fi
18909
18910$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018911CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018912
18913# PORTME: override above test on systems where it is broken
18914case $host_os in
18915interix[3-9]*)
18916 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18917 # hack all around it, let's just trust "g++" to DTRT.
18918 predep_objects_CXX=
18919 postdep_objects_CXX=
18920 postdeps_CXX=
18921 ;;
18922
18923linux*)
18924 case `$CC -V 2>&1 | sed 5q` in
18925 *Sun\ C*)
18926 # Sun C++ 5.9
18927
18928 # The more standards-conforming stlport4 library is
18929 # incompatible with the Cstd library. Avoid specifying
18930 # it if it's in CXXFLAGS. Ignore libCrun as
18931 # -library=stlport4 depends on it.
18932 case " $CXX $CXXFLAGS " in
18933 *" -library=stlport4 "*)
18934 solaris_use_stlport4=yes
18935 ;;
18936 esac
18937
18938 if test "$solaris_use_stlport4" != yes; then
18939 postdeps_CXX='-library=Cstd -library=Crun'
18940 fi
18941 ;;
18942 esac
18943 ;;
18944
18945solaris*)
18946 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018947 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018948 # The more standards-conforming stlport4 library is
18949 # incompatible with the Cstd library. Avoid specifying
18950 # it if it's in CXXFLAGS. Ignore libCrun as
18951 # -library=stlport4 depends on it.
18952 case " $CXX $CXXFLAGS " in
18953 *" -library=stlport4 "*)
18954 solaris_use_stlport4=yes
18955 ;;
18956 esac
18957
18958 # Adding this requires a known-good setup of shared libraries for
18959 # Sun compiler versions before 5.6, else PIC objects from an old
18960 # archive will be linked into the output, leading to subtle bugs.
18961 if test "$solaris_use_stlport4" != yes; then
18962 postdeps_CXX='-library=Cstd -library=Crun'
18963 fi
18964 ;;
18965 esac
18966 ;;
18967esac
18968
18969
18970case " $postdeps_CXX " in
18971*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18972esac
18973 compiler_lib_search_dirs_CXX=
18974if test -n "${compiler_lib_search_path_CXX}"; then
18975 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18976fi
18977
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 lt_prog_compiler_wl_CXX=
19009lt_prog_compiler_pic_CXX=
19010lt_prog_compiler_static_CXX=
19011
cristy73bd4a52010-10-05 11:24:23 +000019012
19013 # C++ specific cases for pic, static, wl, etc.
19014 if test "$GXX" = yes; then
19015 lt_prog_compiler_wl_CXX='-Wl,'
19016 lt_prog_compiler_static_CXX='-static'
19017
19018 case $host_os in
19019 aix*)
19020 # All AIX code is PIC.
19021 if test "$host_cpu" = ia64; then
19022 # AIX 5 now supports IA64 processor
19023 lt_prog_compiler_static_CXX='-Bstatic'
19024 fi
19025 ;;
19026
19027 amigaos*)
19028 case $host_cpu in
19029 powerpc)
19030 # see comment about AmigaOS4 .so support
19031 lt_prog_compiler_pic_CXX='-fPIC'
19032 ;;
19033 m68k)
19034 # FIXME: we need at least 68020 code to build shared libraries, but
19035 # adding the `-m68020' flag to GCC prevents building anything better,
19036 # like `-m68040'.
19037 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19038 ;;
19039 esac
19040 ;;
19041
19042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19043 # PIC is the default for these OSes.
19044 ;;
19045 mingw* | cygwin* | os2* | pw32* | cegcc*)
19046 # This hack is so that the source file can tell whether it is being
19047 # built for inclusion in a dll (and should export symbols for example).
19048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19049 # (--disable-auto-import) libraries
19050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19051 ;;
19052 darwin* | rhapsody*)
19053 # PIC is the default on this platform
19054 # Common symbols not allowed in MH_DYLIB files
19055 lt_prog_compiler_pic_CXX='-fno-common'
19056 ;;
19057 *djgpp*)
19058 # DJGPP does not support shared libraries at all
19059 lt_prog_compiler_pic_CXX=
19060 ;;
cristy0c60a692010-11-04 01:09:47 +000019061 haiku*)
19062 # PIC is the default for Haiku.
19063 # The "-static" flag exists, but is broken.
19064 lt_prog_compiler_static_CXX=
19065 ;;
cristy73bd4a52010-10-05 11:24:23 +000019066 interix[3-9]*)
19067 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19068 # Instead, we relocate shared libraries at runtime.
19069 ;;
19070 sysv4*MP*)
19071 if test -d /usr/nec; then
19072 lt_prog_compiler_pic_CXX=-Kconform_pic
19073 fi
19074 ;;
19075 hpux*)
19076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19078 # sets the default TLS model and affects inlining.
19079 case $host_cpu in
19080 hppa*64*)
19081 ;;
19082 *)
19083 lt_prog_compiler_pic_CXX='-fPIC'
19084 ;;
19085 esac
19086 ;;
19087 *qnx* | *nto*)
19088 # QNX uses GNU C++, but need to define -shared option too, otherwise
19089 # it will coredump.
19090 lt_prog_compiler_pic_CXX='-fPIC -shared'
19091 ;;
19092 *)
19093 lt_prog_compiler_pic_CXX='-fPIC'
19094 ;;
19095 esac
19096 else
19097 case $host_os in
19098 aix[4-9]*)
19099 # All AIX code is PIC.
19100 if test "$host_cpu" = ia64; then
19101 # AIX 5 now supports IA64 processor
19102 lt_prog_compiler_static_CXX='-Bstatic'
19103 else
19104 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19105 fi
19106 ;;
19107 chorus*)
19108 case $cc_basename in
19109 cxch68*)
19110 # Green Hills C++ Compiler
19111 # _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"
19112 ;;
19113 esac
19114 ;;
cristyda16f162011-02-19 23:52:17 +000019115 mingw* | cygwin* | os2* | pw32* | cegcc*)
19116 # This hack is so that the source file can tell whether it is being
19117 # built for inclusion in a dll (and should export symbols for example).
19118 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19119 ;;
cristy73bd4a52010-10-05 11:24:23 +000019120 dgux*)
19121 case $cc_basename in
19122 ec++*)
19123 lt_prog_compiler_pic_CXX='-KPIC'
19124 ;;
19125 ghcx*)
19126 # Green Hills C++ Compiler
19127 lt_prog_compiler_pic_CXX='-pic'
19128 ;;
19129 *)
19130 ;;
19131 esac
19132 ;;
19133 freebsd* | dragonfly*)
19134 # FreeBSD uses GNU C++
19135 ;;
19136 hpux9* | hpux10* | hpux11*)
19137 case $cc_basename in
19138 CC*)
19139 lt_prog_compiler_wl_CXX='-Wl,'
19140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19141 if test "$host_cpu" != ia64; then
19142 lt_prog_compiler_pic_CXX='+Z'
19143 fi
19144 ;;
19145 aCC*)
19146 lt_prog_compiler_wl_CXX='-Wl,'
19147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19148 case $host_cpu in
19149 hppa*64*|ia64*)
19150 # +Z the default
19151 ;;
19152 *)
19153 lt_prog_compiler_pic_CXX='+Z'
19154 ;;
19155 esac
19156 ;;
19157 *)
19158 ;;
19159 esac
19160 ;;
19161 interix*)
19162 # This is c89, which is MS Visual C++ (no shared libs)
19163 # Anyone wants to do a port?
19164 ;;
19165 irix5* | irix6* | nonstopux*)
19166 case $cc_basename in
19167 CC*)
19168 lt_prog_compiler_wl_CXX='-Wl,'
19169 lt_prog_compiler_static_CXX='-non_shared'
19170 # CC pic flag -KPIC is the default.
19171 ;;
19172 *)
19173 ;;
19174 esac
19175 ;;
cristy0c60a692010-11-04 01:09:47 +000019176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019177 case $cc_basename in
19178 KCC*)
19179 # KAI C++ Compiler
19180 lt_prog_compiler_wl_CXX='--backend -Wl,'
19181 lt_prog_compiler_pic_CXX='-fPIC'
19182 ;;
19183 ecpc* )
19184 # old Intel C++ for x86_64 which still supported -KPIC.
19185 lt_prog_compiler_wl_CXX='-Wl,'
19186 lt_prog_compiler_pic_CXX='-KPIC'
19187 lt_prog_compiler_static_CXX='-static'
19188 ;;
19189 icpc* )
19190 # Intel C++, used to be incompatible with GCC.
19191 # ICC 10 doesn't accept -KPIC any more.
19192 lt_prog_compiler_wl_CXX='-Wl,'
19193 lt_prog_compiler_pic_CXX='-fPIC'
19194 lt_prog_compiler_static_CXX='-static'
19195 ;;
19196 pgCC* | pgcpp*)
19197 # Portland Group C++ compiler
19198 lt_prog_compiler_wl_CXX='-Wl,'
19199 lt_prog_compiler_pic_CXX='-fpic'
19200 lt_prog_compiler_static_CXX='-Bstatic'
19201 ;;
19202 cxx*)
19203 # Compaq C++
19204 # Make sure the PIC flag is empty. It appears that all Alpha
19205 # Linux and Compaq Tru64 Unix objects are PIC.
19206 lt_prog_compiler_pic_CXX=
19207 lt_prog_compiler_static_CXX='-non_shared'
19208 ;;
cristy0c60a692010-11-04 01:09:47 +000019209 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19210 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019211 lt_prog_compiler_wl_CXX='-Wl,'
19212 lt_prog_compiler_pic_CXX='-qpic'
19213 lt_prog_compiler_static_CXX='-qstaticlink'
19214 ;;
19215 *)
19216 case `$CC -V 2>&1 | sed 5q` in
19217 *Sun\ C*)
19218 # Sun C++ 5.9
19219 lt_prog_compiler_pic_CXX='-KPIC'
19220 lt_prog_compiler_static_CXX='-Bstatic'
19221 lt_prog_compiler_wl_CXX='-Qoption ld '
19222 ;;
19223 esac
19224 ;;
19225 esac
19226 ;;
19227 lynxos*)
19228 ;;
19229 m88k*)
19230 ;;
19231 mvs*)
19232 case $cc_basename in
19233 cxx*)
19234 lt_prog_compiler_pic_CXX='-W c,exportall'
19235 ;;
19236 *)
19237 ;;
19238 esac
19239 ;;
19240 netbsd*)
19241 ;;
19242 *qnx* | *nto*)
19243 # QNX uses GNU C++, but need to define -shared option too, otherwise
19244 # it will coredump.
19245 lt_prog_compiler_pic_CXX='-fPIC -shared'
19246 ;;
19247 osf3* | osf4* | osf5*)
19248 case $cc_basename in
19249 KCC*)
19250 lt_prog_compiler_wl_CXX='--backend -Wl,'
19251 ;;
19252 RCC*)
19253 # Rational C++ 2.4.1
19254 lt_prog_compiler_pic_CXX='-pic'
19255 ;;
19256 cxx*)
19257 # Digital/Compaq C++
19258 lt_prog_compiler_wl_CXX='-Wl,'
19259 # Make sure the PIC flag is empty. It appears that all Alpha
19260 # Linux and Compaq Tru64 Unix objects are PIC.
19261 lt_prog_compiler_pic_CXX=
19262 lt_prog_compiler_static_CXX='-non_shared'
19263 ;;
19264 *)
19265 ;;
19266 esac
19267 ;;
19268 psos*)
19269 ;;
19270 solaris*)
19271 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019272 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019273 # Sun C++ 4.2, 5.x and Centerline C++
19274 lt_prog_compiler_pic_CXX='-KPIC'
19275 lt_prog_compiler_static_CXX='-Bstatic'
19276 lt_prog_compiler_wl_CXX='-Qoption ld '
19277 ;;
19278 gcx*)
19279 # Green Hills C++ Compiler
19280 lt_prog_compiler_pic_CXX='-PIC'
19281 ;;
19282 *)
19283 ;;
19284 esac
19285 ;;
19286 sunos4*)
19287 case $cc_basename in
19288 CC*)
19289 # Sun C++ 4.x
19290 lt_prog_compiler_pic_CXX='-pic'
19291 lt_prog_compiler_static_CXX='-Bstatic'
19292 ;;
19293 lcc*)
19294 # Lucid
19295 lt_prog_compiler_pic_CXX='-pic'
19296 ;;
19297 *)
19298 ;;
19299 esac
19300 ;;
19301 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19302 case $cc_basename in
19303 CC*)
19304 lt_prog_compiler_wl_CXX='-Wl,'
19305 lt_prog_compiler_pic_CXX='-KPIC'
19306 lt_prog_compiler_static_CXX='-Bstatic'
19307 ;;
19308 esac
19309 ;;
19310 tandem*)
19311 case $cc_basename in
19312 NCC*)
19313 # NonStop-UX NCC 3.20
19314 lt_prog_compiler_pic_CXX='-KPIC'
19315 ;;
19316 *)
19317 ;;
19318 esac
19319 ;;
19320 vxworks*)
19321 ;;
19322 *)
19323 lt_prog_compiler_can_build_shared_CXX=no
19324 ;;
19325 esac
19326 fi
19327
19328case $host_os in
19329 # For platforms which do not support PIC, -DPIC is meaningless:
19330 *djgpp*)
19331 lt_prog_compiler_pic_CXX=
19332 ;;
19333 *)
19334 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19335 ;;
19336esac
cristy73bd4a52010-10-05 11:24:23 +000019337
cristyda16f162011-02-19 23:52:17 +000019338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19339$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19340if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19341 $as_echo_n "(cached) " >&6
19342else
19343 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19344fi
19345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19346$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19347lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019348
19349#
19350# Check to make sure the PIC flag actually works.
19351#
19352if test -n "$lt_prog_compiler_pic_CXX"; then
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19354$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019355if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019356 $as_echo_n "(cached) " >&6
19357else
19358 lt_cv_prog_compiler_pic_works_CXX=no
19359 ac_outfile=conftest.$ac_objext
19360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19361 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19362 # Insert the option either (1) after the last *FLAGS variable, or
19363 # (2) before a word containing "conftest.", or (3) at the end.
19364 # Note that $ac_compile itself does not contain backslashes and begins
19365 # with a dollar sign (not a hyphen), so the echo should work correctly.
19366 # The option is referenced via a variable to avoid confusing sed.
19367 lt_compile=`echo "$ac_compile" | $SED \
19368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19370 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019372 (eval "$lt_compile" 2>conftest.err)
19373 ac_status=$?
19374 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019376 if (exit $ac_status) && test -s "$ac_outfile"; then
19377 # The compiler can only warn and ignore the option if not recognized
19378 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19382 lt_cv_prog_compiler_pic_works_CXX=yes
19383 fi
19384 fi
19385 $RM conftest*
19386
19387fi
19388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19389$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19390
19391if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19392 case $lt_prog_compiler_pic_CXX in
19393 "" | " "*) ;;
19394 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19395 esac
19396else
19397 lt_prog_compiler_pic_CXX=
19398 lt_prog_compiler_can_build_shared_CXX=no
19399fi
19400
19401fi
19402
19403
19404
cristyda16f162011-02-19 23:52:17 +000019405
19406
cristy73bd4a52010-10-05 11:24:23 +000019407#
19408# Check to make sure the static flag actually works.
19409#
19410wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19412$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019413if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019414 $as_echo_n "(cached) " >&6
19415else
19416 lt_cv_prog_compiler_static_works_CXX=no
19417 save_LDFLAGS="$LDFLAGS"
19418 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19419 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19421 # The linker can only warn and ignore the option if not recognized
19422 # So say no if there are warnings
19423 if test -s conftest.err; then
19424 # Append any errors to the config.log.
19425 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19428 if diff conftest.exp conftest.er2 >/dev/null; then
19429 lt_cv_prog_compiler_static_works_CXX=yes
19430 fi
19431 else
19432 lt_cv_prog_compiler_static_works_CXX=yes
19433 fi
19434 fi
19435 $RM -r conftest*
19436 LDFLAGS="$save_LDFLAGS"
19437
19438fi
19439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19440$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19441
19442if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19443 :
19444else
19445 lt_prog_compiler_static_CXX=
19446fi
19447
19448
19449
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19452$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019453if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019454 $as_echo_n "(cached) " >&6
19455else
19456 lt_cv_prog_compiler_c_o_CXX=no
19457 $RM -r conftest 2>/dev/null
19458 mkdir conftest
19459 cd conftest
19460 mkdir out
19461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19462
19463 lt_compiler_flag="-o out/conftest2.$ac_objext"
19464 # Insert the option either (1) after the last *FLAGS variable, or
19465 # (2) before a word containing "conftest.", or (3) at the end.
19466 # Note that $ac_compile itself does not contain backslashes and begins
19467 # with a dollar sign (not a hyphen), so the echo should work correctly.
19468 lt_compile=`echo "$ac_compile" | $SED \
19469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19471 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019473 (eval "$lt_compile" 2>out/conftest.err)
19474 ac_status=$?
19475 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19478 then
19479 # The compiler can only warn and ignore the option if not recognized
19480 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19484 lt_cv_prog_compiler_c_o_CXX=yes
19485 fi
19486 fi
19487 chmod u+w . 2>&5
19488 $RM conftest*
19489 # SGI C++ compiler will create directory out/ii_files/ for
19490 # template instantiation
19491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19492 $RM out/* && rmdir out
19493 cd ..
19494 $RM -r conftest
19495 $RM conftest*
19496
19497fi
19498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19499$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19500
19501
19502
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19504$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019505if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019506 $as_echo_n "(cached) " >&6
19507else
19508 lt_cv_prog_compiler_c_o_CXX=no
19509 $RM -r conftest 2>/dev/null
19510 mkdir conftest
19511 cd conftest
19512 mkdir out
19513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19514
19515 lt_compiler_flag="-o out/conftest2.$ac_objext"
19516 # Insert the option either (1) after the last *FLAGS variable, or
19517 # (2) before a word containing "conftest.", or (3) at the end.
19518 # Note that $ac_compile itself does not contain backslashes and begins
19519 # with a dollar sign (not a hyphen), so the echo should work correctly.
19520 lt_compile=`echo "$ac_compile" | $SED \
19521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19523 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019525 (eval "$lt_compile" 2>out/conftest.err)
19526 ac_status=$?
19527 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19530 then
19531 # The compiler can only warn and ignore the option if not recognized
19532 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19536 lt_cv_prog_compiler_c_o_CXX=yes
19537 fi
19538 fi
19539 chmod u+w . 2>&5
19540 $RM conftest*
19541 # SGI C++ compiler will create directory out/ii_files/ for
19542 # template instantiation
19543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19544 $RM out/* && rmdir out
19545 cd ..
19546 $RM -r conftest
19547 $RM conftest*
19548
19549fi
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19551$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19552
19553
19554
19555
19556hard_links="nottested"
19557if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19558 # do not overwrite the value of need_locks provided by the user
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19560$as_echo_n "checking if we can lock with hard links... " >&6; }
19561 hard_links=yes
19562 $RM conftest*
19563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564 touch conftest.a
19565 ln conftest.a conftest.b 2>&5 || hard_links=no
19566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19568$as_echo "$hard_links" >&6; }
19569 if test "$hard_links" = no; then
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19571$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19572 need_locks=warn
19573 fi
19574else
19575 need_locks=no
19576fi
19577
19578
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19581$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19582
19583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019584 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019585 case $host_os in
19586 aix[4-9]*)
19587 # If we're using GNU nm, then we don't want the "-C" option.
19588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019589 # Also, AIX nm treats weak defined symbols like other global defined
19590 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019592 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 +000019593 else
19594 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'
19595 fi
19596 ;;
19597 pw32*)
19598 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019599 ;;
cristy73bd4a52010-10-05 11:24:23 +000019600 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019601 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019602 cl*)
19603 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19604 ;;
cristyda16f162011-02-19 23:52:17 +000019605 *)
19606 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'
19607 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19608 ;;
19609 esac
19610 ;;
cristy73bd4a52010-10-05 11:24:23 +000019611 *)
19612 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019613 ;;
cristy73bd4a52010-10-05 11:24:23 +000019614 esac
cristy73bd4a52010-10-05 11:24:23 +000019615
19616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19617$as_echo "$ld_shlibs_CXX" >&6; }
19618test "$ld_shlibs_CXX" = no && can_build_shared=no
19619
19620with_gnu_ld_CXX=$with_gnu_ld
19621
19622
19623
19624
19625
19626
19627#
19628# Do we need to explicitly link libc?
19629#
19630case "x$archive_cmds_need_lc_CXX" in
19631x|xyes)
19632 # Assume -lc should be added
19633 archive_cmds_need_lc_CXX=yes
19634
19635 if test "$enable_shared" = yes && test "$GCC" = yes; then
19636 case $archive_cmds_CXX in
19637 *'~'*)
19638 # FIXME: we may have to deal with multi-command sequences.
19639 ;;
19640 '$CC '*)
19641 # Test whether the compiler implicitly links with -lc since on some
19642 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19643 # to ld, don't add -lc before -lgcc.
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19645$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019646if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019647 $as_echo_n "(cached) " >&6
19648else
19649 $RM conftest*
19650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019651
cristy0c60a692010-11-04 01:09:47 +000019652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019653 (eval $ac_compile) 2>&5
19654 ac_status=$?
19655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19656 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019657 soname=conftest
19658 lib=conftest
19659 libobjs=conftest.$ac_objext
19660 deplibs=
19661 wl=$lt_prog_compiler_wl_CXX
19662 pic_flag=$lt_prog_compiler_pic_CXX
19663 compiler_flags=-v
19664 linker_flags=-v
19665 verstring=
19666 output_objdir=.
19667 libname=conftest
19668 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19669 allow_undefined_flag_CXX=
19670 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 +000019671 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19672 ac_status=$?
19673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19674 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019675 then
19676 lt_cv_archive_cmds_need_lc_CXX=no
19677 else
19678 lt_cv_archive_cmds_need_lc_CXX=yes
19679 fi
19680 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19681 else
19682 cat conftest.err 1>&5
19683 fi
19684 $RM conftest*
19685
19686fi
19687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19688$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19689 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019690 ;;
19691 esac
19692 fi
19693 ;;
19694esac
19695
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
cristy73bd4a52010-10-05 11:24:23 +000019757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19758$as_echo_n "checking dynamic linker characteristics... " >&6; }
19759
19760library_names_spec=
19761libname_spec='lib$name'
19762soname_spec=
19763shrext_cmds=".so"
19764postinstall_cmds=
19765postuninstall_cmds=
19766finish_cmds=
19767finish_eval=
19768shlibpath_var=
19769shlibpath_overrides_runpath=unknown
19770version_type=none
19771dynamic_linker="$host_os ld.so"
19772sys_lib_dlsearch_path_spec="/lib /usr/lib"
19773need_lib_prefix=unknown
19774hardcode_into_libs=no
19775
19776# when you set need_version to no, make sure it does not cause -set_version
19777# flags to be left without arguments
19778need_version=unknown
19779
19780case $host_os in
19781aix3*)
cristy99bd5232011-12-07 14:38:20 +000019782 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19784 shlibpath_var=LIBPATH
19785
19786 # AIX 3 has no versioning support, so we append a major version to the name.
19787 soname_spec='${libname}${release}${shared_ext}$major'
19788 ;;
19789
19790aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019791 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019792 need_lib_prefix=no
19793 need_version=no
19794 hardcode_into_libs=yes
19795 if test "$host_cpu" = ia64; then
19796 # AIX 5 supports IA64
19797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19798 shlibpath_var=LD_LIBRARY_PATH
19799 else
19800 # With GCC up to 2.95.x, collect2 would create an import file
19801 # for dependence libraries. The import file would start with
19802 # the line `#! .'. This would cause the generated library to
19803 # depend on `.', always an invalid library. This was fixed in
19804 # development snapshots of GCC prior to 3.0.
19805 case $host_os in
19806 aix4 | aix4.[01] | aix4.[01].*)
19807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19808 echo ' yes '
19809 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19810 :
19811 else
19812 can_build_shared=no
19813 fi
19814 ;;
19815 esac
19816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19817 # soname into executable. Probably we can add versioning support to
19818 # collect2, so additional links can be useful in future.
19819 if test "$aix_use_runtimelinking" = yes; then
19820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19821 # instead of lib<name>.a to let people know that these are not
19822 # typical AIX shared libraries.
19823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19824 else
19825 # We preserve .a as extension for shared libraries through AIX4.2
19826 # and later when we are not doing run time linking.
19827 library_names_spec='${libname}${release}.a $libname.a'
19828 soname_spec='${libname}${release}${shared_ext}$major'
19829 fi
19830 shlibpath_var=LIBPATH
19831 fi
19832 ;;
19833
19834amigaos*)
19835 case $host_cpu in
19836 powerpc)
19837 # Since July 2007 AmigaOS4 officially supports .so libraries.
19838 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 ;;
19841 m68k)
19842 library_names_spec='$libname.ixlibrary $libname.a'
19843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019844 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 +000019845 ;;
19846 esac
19847 ;;
19848
19849beos*)
19850 library_names_spec='${libname}${shared_ext}'
19851 dynamic_linker="$host_os ld.so"
19852 shlibpath_var=LIBRARY_PATH
19853 ;;
19854
19855bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019856 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019857 need_version=no
19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859 soname_spec='${libname}${release}${shared_ext}$major'
19860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19861 shlibpath_var=LD_LIBRARY_PATH
19862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19864 # the default ld.so.conf also contains /usr/contrib/lib and
19865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19866 # libtool to hard-code these into programs
19867 ;;
19868
19869cygwin* | mingw* | pw32* | cegcc*)
19870 version_type=windows
19871 shrext_cmds=".dll"
19872 need_version=no
19873 need_lib_prefix=no
19874
cristyda16f162011-02-19 23:52:17 +000019875 case $GCC,$cc_basename in
19876 yes,*)
19877 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019878 library_names_spec='$libname.dll.a'
19879 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19880 postinstall_cmds='base_file=`basename \${file}`~
19881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19882 dldir=$destdir/`dirname \$dlpath`~
19883 test -d \$dldir || mkdir -p \$dldir~
19884 $install_prog $dir/$dlname \$dldir/$dlname~
19885 chmod a+x \$dldir/$dlname~
19886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19888 fi'
19889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19890 dlpath=$dir/\$dldll~
19891 $RM \$dlpath'
19892 shlibpath_overrides_runpath=yes
19893
19894 case $host_os in
19895 cygwin*)
19896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019898
cristy73bd4a52010-10-05 11:24:23 +000019899 ;;
19900 mingw* | cegcc*)
19901 # MinGW DLLs use traditional 'lib' prefix
19902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019903 ;;
19904 pw32*)
19905 # pw32 DLLs use 'pw' prefix rather than 'lib'
19906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19907 ;;
19908 esac
cristyda16f162011-02-19 23:52:17 +000019909 dynamic_linker='Win32 ld.exe'
19910 ;;
19911
19912 *,cl*)
19913 # Native MSVC
19914 libname_spec='$name'
19915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19916 library_names_spec='${libname}.dll.lib'
19917
19918 case $build_os in
19919 mingw*)
19920 sys_lib_search_path_spec=
19921 lt_save_ifs=$IFS
19922 IFS=';'
19923 for lt_path in $LIB
19924 do
19925 IFS=$lt_save_ifs
19926 # Let DOS variable expansion print the short 8.3 style file name.
19927 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19928 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19929 done
19930 IFS=$lt_save_ifs
19931 # Convert to MSYS style.
19932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19933 ;;
19934 cygwin*)
19935 # Convert to unix form, then to dos form, then back to unix form
19936 # but this time dos style (no spaces!) so that the unix form looks
19937 # like /cygdrive/c/PROGRA~1:/cygdr...
19938 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19939 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19940 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19941 ;;
19942 *)
19943 sys_lib_search_path_spec="$LIB"
19944 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19945 # It is most probably a Windows format PATH.
19946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19947 else
19948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19949 fi
19950 # FIXME: find the short name or the path components, as spaces are
19951 # common. (e.g. "Program Files" -> "PROGRA~1")
19952 ;;
19953 esac
19954
19955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19956 postinstall_cmds='base_file=`basename \${file}`~
19957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19958 dldir=$destdir/`dirname \$dlpath`~
19959 test -d \$dldir || mkdir -p \$dldir~
19960 $install_prog $dir/$dlname \$dldir/$dlname'
19961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19962 dlpath=$dir/\$dldll~
19963 $RM \$dlpath'
19964 shlibpath_overrides_runpath=yes
19965 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019966 ;;
19967
19968 *)
cristyda16f162011-02-19 23:52:17 +000019969 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019971 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019972 ;;
19973 esac
cristy73bd4a52010-10-05 11:24:23 +000019974 # FIXME: first we should search . and the directory the executable is in
19975 shlibpath_var=PATH
19976 ;;
19977
19978darwin* | rhapsody*)
19979 dynamic_linker="$host_os dyld"
19980 version_type=darwin
19981 need_lib_prefix=no
19982 need_version=no
19983 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19984 soname_spec='${libname}${release}${major}$shared_ext'
19985 shlibpath_overrides_runpath=yes
19986 shlibpath_var=DYLD_LIBRARY_PATH
19987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19988
19989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19990 ;;
19991
19992dgux*)
cristy99bd5232011-12-07 14:38:20 +000019993 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019994 need_lib_prefix=no
19995 need_version=no
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 shlibpath_var=LD_LIBRARY_PATH
19999 ;;
20000
cristy73bd4a52010-10-05 11:24:23 +000020001freebsd* | dragonfly*)
20002 # DragonFly does not have aout. When/if they implement a new
20003 # versioning mechanism, adjust this.
20004 if test -x /usr/bin/objformat; then
20005 objformat=`/usr/bin/objformat`
20006 else
20007 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020008 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020009 *) objformat=elf ;;
20010 esac
20011 fi
20012 version_type=freebsd-$objformat
20013 case $version_type in
20014 freebsd-elf*)
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20016 need_version=no
20017 need_lib_prefix=no
20018 ;;
20019 freebsd-*)
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20021 need_version=yes
20022 ;;
20023 esac
20024 shlibpath_var=LD_LIBRARY_PATH
20025 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020026 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020027 shlibpath_overrides_runpath=yes
20028 ;;
20029 freebsd3.[01]* | freebsdelf3.[01]*)
20030 shlibpath_overrides_runpath=yes
20031 hardcode_into_libs=yes
20032 ;;
20033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20035 shlibpath_overrides_runpath=no
20036 hardcode_into_libs=yes
20037 ;;
20038 *) # from 4.6 on, and DragonFly
20039 shlibpath_overrides_runpath=yes
20040 hardcode_into_libs=yes
20041 ;;
20042 esac
20043 ;;
20044
20045gnu*)
cristy99bd5232011-12-07 14:38:20 +000020046 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020047 need_lib_prefix=no
20048 need_version=no
20049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20050 soname_spec='${libname}${release}${shared_ext}$major'
20051 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020052 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020053 hardcode_into_libs=yes
20054 ;;
20055
cristy0c60a692010-11-04 01:09:47 +000020056haiku*)
cristy99bd5232011-12-07 14:38:20 +000020057 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020058 need_lib_prefix=no
20059 need_version=no
20060 dynamic_linker="$host_os runtime_loader"
20061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20062 soname_spec='${libname}${release}${shared_ext}$major'
20063 shlibpath_var=LIBRARY_PATH
20064 shlibpath_overrides_runpath=yes
20065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20066 hardcode_into_libs=yes
20067 ;;
20068
cristy73bd4a52010-10-05 11:24:23 +000020069hpux9* | hpux10* | hpux11*)
20070 # Give a soname corresponding to the major version so that dld.sl refuses to
20071 # link against other versions.
20072 version_type=sunos
20073 need_lib_prefix=no
20074 need_version=no
20075 case $host_cpu in
20076 ia64*)
20077 shrext_cmds='.so'
20078 hardcode_into_libs=yes
20079 dynamic_linker="$host_os dld.so"
20080 shlibpath_var=LD_LIBRARY_PATH
20081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 if test "X$HPUX_IA64_MODE" = X32; then
20085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20086 else
20087 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20088 fi
20089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20090 ;;
20091 hppa*64*)
20092 shrext_cmds='.sl'
20093 hardcode_into_libs=yes
20094 dynamic_linker="$host_os dld.sl"
20095 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20101 ;;
20102 *)
20103 shrext_cmds='.sl'
20104 dynamic_linker="$host_os dld.sl"
20105 shlibpath_var=SHLIB_PATH
20106 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 ;;
20110 esac
cristy0c60a692010-11-04 01:09:47 +000020111 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020112 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020113 # or fails outright, so override atomically:
20114 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020115 ;;
20116
20117interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020118 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020119 need_lib_prefix=no
20120 need_version=no
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20124 shlibpath_var=LD_LIBRARY_PATH
20125 shlibpath_overrides_runpath=no
20126 hardcode_into_libs=yes
20127 ;;
20128
20129irix5* | irix6* | nonstopux*)
20130 case $host_os in
20131 nonstopux*) version_type=nonstopux ;;
20132 *)
20133 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020134 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020135 else
20136 version_type=irix
20137 fi ;;
20138 esac
20139 need_lib_prefix=no
20140 need_version=no
20141 soname_spec='${libname}${release}${shared_ext}$major'
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20143 case $host_os in
20144 irix5* | nonstopux*)
20145 libsuff= shlibsuff=
20146 ;;
20147 *)
20148 case $LD in # libtool.m4 will add one of these switches to LD
20149 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20150 libsuff= shlibsuff= libmagic=32-bit;;
20151 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20152 libsuff=32 shlibsuff=N32 libmagic=N32;;
20153 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20154 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20155 *) libsuff= shlibsuff= libmagic=never-match;;
20156 esac
20157 ;;
20158 esac
20159 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20160 shlibpath_overrides_runpath=no
20161 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20162 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20163 hardcode_into_libs=yes
20164 ;;
20165
20166# No shared lib support for Linux oldld, aout, or coff.
20167linux*oldld* | linux*aout* | linux*coff*)
20168 dynamic_linker=no
20169 ;;
20170
cristy99bd5232011-12-07 14:38:20 +000020171# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020172linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020173 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020174 need_lib_prefix=no
20175 need_version=no
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177 soname_spec='${libname}${release}${shared_ext}$major'
20178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20179 shlibpath_var=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020181
cristy73bd4a52010-10-05 11:24:23 +000020182 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020183 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020184 $as_echo_n "(cached) " >&6
20185else
20186 lt_cv_shlibpath_overrides_runpath=no
20187 save_LDFLAGS=$LDFLAGS
20188 save_libdir=$libdir
20189 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20190 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020192/* end confdefs.h. */
20193
20194int
20195main ()
20196{
20197
20198 ;
20199 return 0;
20200}
20201_ACEOF
20202if ac_fn_cxx_try_link "$LINENO"; then :
20203 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020204 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020205fi
20206fi
20207rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020209 LDFLAGS=$save_LDFLAGS
20210 libdir=$save_libdir
20211
20212fi
20213
20214 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020215
20216 # This implies no fast_install, which is unacceptable.
20217 # Some rework will be needed to allow for fast_install
20218 # before this can be enabled.
20219 hardcode_into_libs=yes
20220
20221 # Add ABI-specific directories to the system library path.
20222 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20223
20224 # Append ld.so.conf contents to the search path
20225 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020226 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 +000020227 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020228
cristy73bd4a52010-10-05 11:24:23 +000020229 fi
20230
20231 # We used to test for /lib/ld.so.1 and disable shared libraries on
20232 # powerpc, because MkLinux only supported shared libraries with the
20233 # GNU dynamic linker. Since this was broken with cross compilers,
20234 # most powerpc-linux boxes support dynamic linking these days and
20235 # people can always --disable-shared, the test was removed, and we
20236 # assume the GNU/Linux dynamic linker is in use.
20237 dynamic_linker='GNU/Linux ld.so'
20238 ;;
20239
20240netbsd*)
20241 version_type=sunos
20242 need_lib_prefix=no
20243 need_version=no
20244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20247 dynamic_linker='NetBSD (a.out) ld.so'
20248 else
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 dynamic_linker='NetBSD ld.elf_so'
20252 fi
20253 shlibpath_var=LD_LIBRARY_PATH
20254 shlibpath_overrides_runpath=yes
20255 hardcode_into_libs=yes
20256 ;;
20257
20258newsos6)
cristy99bd5232011-12-07 14:38:20 +000020259 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 shlibpath_overrides_runpath=yes
20263 ;;
20264
20265*nto* | *qnx*)
20266 version_type=qnx
20267 need_lib_prefix=no
20268 need_version=no
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=no
20273 hardcode_into_libs=yes
20274 dynamic_linker='ldqnx.so'
20275 ;;
20276
20277openbsd*)
20278 version_type=sunos
20279 sys_lib_dlsearch_path_spec="/usr/lib"
20280 need_lib_prefix=no
20281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20282 case $host_os in
20283 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20284 *) need_version=no ;;
20285 esac
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20290 case $host_os in
20291 openbsd2.[89] | openbsd2.[89].*)
20292 shlibpath_overrides_runpath=no
20293 ;;
20294 *)
20295 shlibpath_overrides_runpath=yes
20296 ;;
20297 esac
20298 else
20299 shlibpath_overrides_runpath=yes
20300 fi
20301 ;;
20302
20303os2*)
20304 libname_spec='$name'
20305 shrext_cmds=".dll"
20306 need_lib_prefix=no
20307 library_names_spec='$libname${shared_ext} $libname.a'
20308 dynamic_linker='OS/2 ld.exe'
20309 shlibpath_var=LIBPATH
20310 ;;
20311
20312osf3* | osf4* | osf5*)
20313 version_type=osf
20314 need_lib_prefix=no
20315 need_version=no
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20321 ;;
20322
20323rdos*)
20324 dynamic_linker=no
20325 ;;
20326
20327solaris*)
cristy99bd5232011-12-07 14:38:20 +000020328 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020329 need_lib_prefix=no
20330 need_version=no
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332 soname_spec='${libname}${release}${shared_ext}$major'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 hardcode_into_libs=yes
20336 # ldd complains unless libraries are executable
20337 postinstall_cmds='chmod +x $lib'
20338 ;;
20339
20340sunos4*)
20341 version_type=sunos
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20344 shlibpath_var=LD_LIBRARY_PATH
20345 shlibpath_overrides_runpath=yes
20346 if test "$with_gnu_ld" = yes; then
20347 need_lib_prefix=no
20348 fi
20349 need_version=yes
20350 ;;
20351
20352sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020353 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 case $host_vendor in
20358 sni)
20359 shlibpath_overrides_runpath=no
20360 need_lib_prefix=no
20361 runpath_var=LD_RUN_PATH
20362 ;;
20363 siemens)
20364 need_lib_prefix=no
20365 ;;
20366 motorola)
20367 need_lib_prefix=no
20368 need_version=no
20369 shlibpath_overrides_runpath=no
20370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20371 ;;
20372 esac
20373 ;;
20374
20375sysv4*MP*)
20376 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020377 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20379 soname_spec='$libname${shared_ext}.$major'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 fi
20382 ;;
20383
20384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20385 version_type=freebsd-elf
20386 need_lib_prefix=no
20387 need_version=no
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 shlibpath_overrides_runpath=yes
20392 hardcode_into_libs=yes
20393 if test "$with_gnu_ld" = yes; then
20394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20395 else
20396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20397 case $host_os in
20398 sco3.2v5*)
20399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20400 ;;
20401 esac
20402 fi
20403 sys_lib_dlsearch_path_spec='/usr/lib'
20404 ;;
20405
20406tpf*)
20407 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020408 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020409 need_lib_prefix=no
20410 need_version=no
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 shlibpath_var=LD_LIBRARY_PATH
20413 shlibpath_overrides_runpath=no
20414 hardcode_into_libs=yes
20415 ;;
20416
20417uts4*)
cristy99bd5232011-12-07 14:38:20 +000020418 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 ;;
20423
20424*)
20425 dynamic_linker=no
20426 ;;
20427esac
20428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20429$as_echo "$dynamic_linker" >&6; }
20430test "$dynamic_linker" = no && can_build_shared=no
20431
20432variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20433if test "$GCC" = yes; then
20434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20435fi
20436
20437if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20438 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20439fi
20440if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20441 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20442fi
20443
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
cristy0c60a692010-11-04 01:09:47 +000020479
20480
cristy73bd4a52010-10-05 11:24:23 +000020481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20482$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20483hardcode_action_CXX=
20484if test -n "$hardcode_libdir_flag_spec_CXX" ||
20485 test -n "$runpath_var_CXX" ||
20486 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20487
20488 # We can hardcode non-existent directories.
20489 if test "$hardcode_direct_CXX" != no &&
20490 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20491 # have to relink, otherwise we might link with an installed library
20492 # when we should be linking with a yet-to-be-installed one
20493 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20494 test "$hardcode_minus_L_CXX" != no; then
20495 # Linking always hardcodes the temporary library directory.
20496 hardcode_action_CXX=relink
20497 else
20498 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20499 hardcode_action_CXX=immediate
20500 fi
20501else
20502 # We cannot hardcode anything, or else we can only hardcode existing
20503 # directories.
20504 hardcode_action_CXX=unsupported
20505fi
20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20507$as_echo "$hardcode_action_CXX" >&6; }
20508
20509if test "$hardcode_action_CXX" = relink ||
20510 test "$inherit_rpath_CXX" = yes; then
20511 # Fast installation is not supported
20512 enable_fast_install=no
20513elif test "$shlibpath_overrides_runpath" = yes ||
20514 test "$enable_shared" = no; then
20515 # Fast installation is not necessary
20516 enable_fast_install=needless
20517fi
20518
20519
20520
20521
20522
20523
20524
20525 fi # test -n "$compiler"
20526
20527 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020528 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020529 LDCXX=$LD
20530 LD=$lt_save_LD
20531 GCC=$lt_save_GCC
20532 with_gnu_ld=$lt_save_with_gnu_ld
20533 lt_cv_path_LDCXX=$lt_cv_path_LD
20534 lt_cv_path_LD=$lt_save_path_LD
20535 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20536 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20537fi # test "$_lt_caught_CXX_error" != yes
20538
20539ac_ext=c
20540ac_cpp='$CPP $CPPFLAGS'
20541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20543ac_compiler_gnu=$ac_cv_c_compiler_gnu
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
cristy99bd5232011-12-07 14:38:20 +000020557
20558
cristy73bd4a52010-10-05 11:24:23 +000020559 ac_config_commands="$ac_config_commands libtool"
20560
20561
20562
20563
20564# Only expand once:
20565
20566
20567
cristy3ed852e2009-09-05 21:47:34 +000020568
20569
20570# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020571
20572
20573
20574
20575
20576
20577
cristy73bd4a52010-10-05 11:24:23 +000020578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20579$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020580if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020581 $as_echo_n "(cached) " >&6
20582else
20583
20584module=yes
20585eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020586module=no
20587eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020588
20589fi
20590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20591$as_echo "$libltdl_cv_shlibext" >&6; }
20592if test -n "$libltdl_cv_shlibext"; then
20593
20594cat >>confdefs.h <<_ACEOF
20595#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20596_ACEOF
20597
20598fi
cristy99bd5232011-12-07 14:38:20 +000020599if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20600
20601cat >>confdefs.h <<_ACEOF
20602#define LT_SHARED_EXT "$libltdl_cv_shrext"
20603_ACEOF
20604
20605fi
cristy73bd4a52010-10-05 11:24:23 +000020606
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20608$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020609if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020610 $as_echo_n "(cached) " >&6
20611else
20612 lt_cv_module_path_var="$shlibpath_var"
20613fi
20614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20615$as_echo "$lt_cv_module_path_var" >&6; }
20616if test -n "$lt_cv_module_path_var"; then
20617
20618cat >>confdefs.h <<_ACEOF
20619#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20620_ACEOF
20621
20622fi
20623
20624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20625$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020626if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020627 $as_echo_n "(cached) " >&6
20628else
20629 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20630fi
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20632$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20633if test -n "$lt_cv_sys_dlsearch_path"; then
20634 sys_dlsearch_path=
20635 for dir in $lt_cv_sys_dlsearch_path; do
20636 if test -z "$sys_dlsearch_path"; then
20637 sys_dlsearch_path="$dir"
20638 else
20639 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20640 fi
20641 done
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20645_ACEOF
20646
20647fi
20648
20649
20650LT_DLLOADERS=
20651
20652
20653ac_ext=c
20654ac_cpp='$CPP $CPPFLAGS'
20655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657ac_compiler_gnu=$ac_cv_c_compiler_gnu
20658
20659
20660LIBADD_DLOPEN=
20661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20662$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020663if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020664 $as_echo_n "(cached) " >&6
20665else
20666 ac_func_search_save_LIBS=$LIBS
20667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668/* end confdefs.h. */
20669
20670/* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20673#ifdef __cplusplus
20674extern "C"
20675#endif
20676char dlopen ();
20677int
20678main ()
20679{
20680return dlopen ();
20681 ;
20682 return 0;
20683}
20684_ACEOF
20685for ac_lib in '' dl; do
20686 if test -z "$ac_lib"; then
20687 ac_res="none required"
20688 else
20689 ac_res=-l$ac_lib
20690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20691 fi
20692 if ac_fn_c_try_link "$LINENO"; then :
20693 ac_cv_search_dlopen=$ac_res
20694fi
20695rm -f core conftest.err conftest.$ac_objext \
20696 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020697 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020698 break
20699fi
20700done
cristyda16f162011-02-19 23:52:17 +000020701if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020702
20703else
20704 ac_cv_search_dlopen=no
20705fi
20706rm conftest.$ac_ext
20707LIBS=$ac_func_search_save_LIBS
20708fi
20709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20710$as_echo "$ac_cv_search_dlopen" >&6; }
20711ac_res=$ac_cv_search_dlopen
20712if test "$ac_res" != no; then :
20713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20714
20715$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20716
20717 if test "$ac_cv_search_dlopen" != "none required" ; then
20718 LIBADD_DLOPEN="-ldl"
20719 fi
20720 libltdl_cv_lib_dl_dlopen="yes"
20721 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20722else
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724/* end confdefs.h. */
20725#if HAVE_DLFCN_H
20726# include <dlfcn.h>
20727#endif
20728
20729int
20730main ()
20731{
20732dlopen(0, 0);
20733 ;
20734 return 0;
20735}
20736_ACEOF
20737if ac_fn_c_try_link "$LINENO"; then :
20738
20739$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20740
20741 libltdl_cv_func_dlopen="yes"
20742 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20743else
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20745$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020746if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020747 $as_echo_n "(cached) " >&6
20748else
20749 ac_check_lib_save_LIBS=$LIBS
20750LIBS="-lsvld $LIBS"
20751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h. */
20753
20754/* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char dlopen ();
20761int
20762main ()
20763{
20764return dlopen ();
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769if ac_fn_c_try_link "$LINENO"; then :
20770 ac_cv_lib_svld_dlopen=yes
20771else
20772 ac_cv_lib_svld_dlopen=no
20773fi
20774rm -f core conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext conftest.$ac_ext
20776LIBS=$ac_check_lib_save_LIBS
20777fi
20778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20779$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020780if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020781
20782$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20783
20784 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20785 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20786fi
20787
20788fi
20789rm -f core conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791fi
20792
20793if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20794then
20795 lt_save_LIBS="$LIBS"
20796 LIBS="$LIBS $LIBADD_DLOPEN"
20797 for ac_func in dlerror
20798do :
20799 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020800if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020801 cat >>confdefs.h <<_ACEOF
20802#define HAVE_DLERROR 1
20803_ACEOF
20804
20805fi
20806done
20807
20808 LIBS="$lt_save_LIBS"
20809fi
20810
20811
20812LIBADD_SHL_LOAD=
20813ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020814if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020815
20816$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20817
20818 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20819else
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20821$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020822if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020823 $as_echo_n "(cached) " >&6
20824else
20825 ac_check_lib_save_LIBS=$LIBS
20826LIBS="-ldld $LIBS"
20827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828/* end confdefs.h. */
20829
20830/* Override any GCC internal prototype to avoid an error.
20831 Use char because int might match the return type of a GCC
20832 builtin and then its argument prototype would still apply. */
20833#ifdef __cplusplus
20834extern "C"
20835#endif
20836char shl_load ();
20837int
20838main ()
20839{
20840return shl_load ();
20841 ;
20842 return 0;
20843}
20844_ACEOF
20845if ac_fn_c_try_link "$LINENO"; then :
20846 ac_cv_lib_dld_shl_load=yes
20847else
20848 ac_cv_lib_dld_shl_load=no
20849fi
20850rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852LIBS=$ac_check_lib_save_LIBS
20853fi
20854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20855$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020856if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020857
20858$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20859
20860 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20861 LIBADD_SHL_LOAD="-ldld"
20862fi
20863
20864fi
20865
20866
20867
20868case $host_os in
20869darwin[1567].*)
20870# We only want this for pre-Mac OS X 10.4.
20871 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020872if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020873
20874$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20875
20876 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20877fi
20878
20879 ;;
20880beos*)
20881 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20882 ;;
20883cygwin* | mingw* | os2* | pw32*)
20884 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20885"
cristyda16f162011-02-19 23:52:17 +000020886if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020887 ac_have_decl=1
20888else
20889 ac_have_decl=0
20890fi
20891
20892cat >>confdefs.h <<_ACEOF
20893#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20894_ACEOF
20895
20896 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20897 ;;
20898esac
20899
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20901$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020902if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020903 $as_echo_n "(cached) " >&6
20904else
20905 ac_check_lib_save_LIBS=$LIBS
20906LIBS="-ldld $LIBS"
20907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908/* end confdefs.h. */
20909
20910/* Override any GCC internal prototype to avoid an error.
20911 Use char because int might match the return type of a GCC
20912 builtin and then its argument prototype would still apply. */
20913#ifdef __cplusplus
20914extern "C"
20915#endif
20916char dld_link ();
20917int
20918main ()
20919{
20920return dld_link ();
20921 ;
20922 return 0;
20923}
20924_ACEOF
20925if ac_fn_c_try_link "$LINENO"; then :
20926 ac_cv_lib_dld_dld_link=yes
20927else
20928 ac_cv_lib_dld_dld_link=no
20929fi
20930rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
20932LIBS=$ac_check_lib_save_LIBS
20933fi
20934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20935$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020936if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020937
20938$as_echo "#define HAVE_DLD 1" >>confdefs.h
20939
20940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20941fi
20942
20943
20944
20945
20946LT_DLPREOPEN=
20947if test -n "$LT_DLLOADERS"
20948then
20949 for lt_loader in $LT_DLLOADERS; do
20950 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20951 done
20952
20953$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20954
20955fi
20956
20957
20958LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20959
20960
20961ac_ext=c
20962ac_cpp='$CPP $CPPFLAGS'
20963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965ac_compiler_gnu=$ac_cv_c_compiler_gnu
20966
20967
20968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20969$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020970if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020971 $as_echo_n "(cached) " >&6
20972else
20973 lt_cv_sys_symbol_underscore=no
20974 cat > conftest.$ac_ext <<_LT_EOF
20975void nm_test_func(){}
20976int main(){nm_test_func;return 0;}
20977_LT_EOF
20978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20979 (eval $ac_compile) 2>&5
20980 ac_status=$?
20981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20982 test $ac_status = 0; }; then
20983 # Now try to grab the symbols.
20984 ac_nlist=conftest.nm
20985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20986 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20987 ac_status=$?
20988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20989 test $ac_status = 0; } && test -s "$ac_nlist"; then
20990 # See whether the symbols have a leading underscore.
20991 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20992 lt_cv_sys_symbol_underscore=yes
20993 else
20994 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20995 :
20996 else
20997 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20998 fi
20999 fi
21000 else
21001 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21002 fi
21003 else
21004 echo "configure: failed program was:" >&5
21005 cat conftest.c >&5
21006 fi
21007 rm -rf conftest*
21008
21009fi
21010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21011$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21012 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21013
21014
21015if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21016 if test x"$libltdl_cv_func_dlopen" = xyes ||
21017 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21019$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021020if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021021 $as_echo_n "(cached) " >&6
21022else
21023 libltdl_cv_need_uscore=unknown
21024 save_LIBS="$LIBS"
21025 LIBS="$LIBS $LIBADD_DLOPEN"
21026 if test "$cross_compiling" = yes; then :
21027 libltdl_cv_need_uscore=cross
21028else
21029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21030 lt_status=$lt_dlunknown
21031 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021032#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021033#include "confdefs.h"
21034
21035#if HAVE_DLFCN_H
21036#include <dlfcn.h>
21037#endif
21038
21039#include <stdio.h>
21040
21041#ifdef RTLD_GLOBAL
21042# define LT_DLGLOBAL RTLD_GLOBAL
21043#else
21044# ifdef DL_GLOBAL
21045# define LT_DLGLOBAL DL_GLOBAL
21046# else
21047# define LT_DLGLOBAL 0
21048# endif
21049#endif
21050
21051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21052 find out it does not work in some platform. */
21053#ifndef LT_DLLAZY_OR_NOW
21054# ifdef RTLD_LAZY
21055# define LT_DLLAZY_OR_NOW RTLD_LAZY
21056# else
21057# ifdef DL_LAZY
21058# define LT_DLLAZY_OR_NOW DL_LAZY
21059# else
21060# ifdef RTLD_NOW
21061# define LT_DLLAZY_OR_NOW RTLD_NOW
21062# else
21063# ifdef DL_NOW
21064# define LT_DLLAZY_OR_NOW DL_NOW
21065# else
21066# define LT_DLLAZY_OR_NOW 0
21067# endif
21068# endif
21069# endif
21070# endif
21071#endif
21072
cristy0c60a692010-11-04 01:09:47 +000021073/* When -fvisbility=hidden is used, assume the code has been annotated
21074 correspondingly for the symbols needed. */
21075#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021076int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021077#endif
21078
cristyda16f162011-02-19 23:52:17 +000021079int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021080int main ()
21081{
21082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21083 int status = $lt_dlunknown;
21084
21085 if (self)
21086 {
21087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021088 else
21089 {
21090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21091 else puts (dlerror ());
21092 }
cristy73bd4a52010-10-05 11:24:23 +000021093 /* dlclose (self); */
21094 }
21095 else
21096 puts (dlerror ());
21097
21098 return status;
21099}
21100_LT_EOF
21101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21102 (eval $ac_link) 2>&5
21103 ac_status=$?
21104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21106 (./conftest; exit; ) >&5 2>/dev/null
21107 lt_status=$?
21108 case x$lt_status in
21109 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21110 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21111 x$lt_dlunknown|x*) ;;
21112 esac
21113 else :
21114 # compilation failed
21115
21116 fi
21117fi
21118rm -fr conftest*
21119
21120 LIBS="$save_LIBS"
21121
21122fi
21123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21124$as_echo "$libltdl_cv_need_uscore" >&6; }
21125 fi
21126fi
21127
21128if test x"$libltdl_cv_need_uscore" = xyes; then
21129
21130$as_echo "#define NEED_USCORE 1" >>confdefs.h
21131
21132fi
21133
21134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21135$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021136if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021137 $as_echo_n "(cached) " >&6
21138else
21139 # PORTME does your system automatically load deplibs for dlopen?
21140 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21141 # For now, we just catch OSes we know something about -- in the
21142 # future, we'll try test this programmatically.
21143 lt_cv_sys_dlopen_deplibs=unknown
21144 case $host_os in
21145 aix3*|aix4.1.*|aix4.2.*)
21146 # Unknown whether this is true for these versions of AIX, but
21147 # we want this `case' here to explicitly catch those versions.
21148 lt_cv_sys_dlopen_deplibs=unknown
21149 ;;
21150 aix[4-9]*)
21151 lt_cv_sys_dlopen_deplibs=yes
21152 ;;
21153 amigaos*)
21154 case $host_cpu in
21155 powerpc)
21156 lt_cv_sys_dlopen_deplibs=no
21157 ;;
21158 esac
21159 ;;
21160 darwin*)
21161 # Assuming the user has installed a libdl from somewhere, this is true
21162 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21163 lt_cv_sys_dlopen_deplibs=yes
21164 ;;
21165 freebsd* | dragonfly*)
21166 lt_cv_sys_dlopen_deplibs=yes
21167 ;;
cristy0c60a692010-11-04 01:09:47 +000021168 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021169 # GNU and its variants, using gnu ld.so (Glibc)
21170 lt_cv_sys_dlopen_deplibs=yes
21171 ;;
21172 hpux10*|hpux11*)
21173 lt_cv_sys_dlopen_deplibs=yes
21174 ;;
21175 interix*)
21176 lt_cv_sys_dlopen_deplibs=yes
21177 ;;
21178 irix[12345]*|irix6.[01]*)
21179 # Catch all versions of IRIX before 6.2, and indicate that we don't
21180 # know how it worked for any of those versions.
21181 lt_cv_sys_dlopen_deplibs=unknown
21182 ;;
21183 irix*)
21184 # The case above catches anything before 6.2, and it's known that
21185 # at 6.2 and later dlopen does load deplibs.
21186 lt_cv_sys_dlopen_deplibs=yes
21187 ;;
21188 netbsd*)
21189 lt_cv_sys_dlopen_deplibs=yes
21190 ;;
21191 openbsd*)
21192 lt_cv_sys_dlopen_deplibs=yes
21193 ;;
21194 osf[1234]*)
21195 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21196 # it did *not* use an RPATH in a shared library to find objects the
21197 # library depends on, so we explicitly say `no'.
21198 lt_cv_sys_dlopen_deplibs=no
21199 ;;
21200 osf5.0|osf5.0a|osf5.1)
21201 # dlopen *does* load deplibs and with the right loader patch applied
21202 # it even uses RPATH in a shared library to search for shared objects
21203 # that the library depends on, but there's no easy way to know if that
21204 # patch is installed. Since this is the case, all we can really
21205 # say is unknown -- it depends on the patch being installed. If
21206 # it is, this changes to `yes'. Without it, it would be `no'.
21207 lt_cv_sys_dlopen_deplibs=unknown
21208 ;;
21209 osf*)
21210 # the two cases above should catch all versions of osf <= 5.1. Read
21211 # the comments above for what we know about them.
21212 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21213 # is used to find them so we can finally say `yes'.
21214 lt_cv_sys_dlopen_deplibs=yes
21215 ;;
21216 qnx*)
21217 lt_cv_sys_dlopen_deplibs=yes
21218 ;;
21219 solaris*)
21220 lt_cv_sys_dlopen_deplibs=yes
21221 ;;
21222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21223 libltdl_cv_sys_dlopen_deplibs=yes
21224 ;;
21225 esac
21226
21227fi
21228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21229$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21230if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21231
21232$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21233
21234fi
21235
21236:
21237
21238for ac_header in argz.h
21239do :
21240 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21241"
cristyda16f162011-02-19 23:52:17 +000021242if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021243 cat >>confdefs.h <<_ACEOF
21244#define HAVE_ARGZ_H 1
21245_ACEOF
21246
21247fi
21248
21249done
21250
21251
21252ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21253# include <argz.h>
21254#endif
21255"
cristyda16f162011-02-19 23:52:17 +000021256if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021257
21258cat >>confdefs.h <<_ACEOF
21259#define HAVE_ERROR_T 1
21260_ACEOF
21261
21262
21263else
21264
21265$as_echo "#define error_t int" >>confdefs.h
21266
21267
21268$as_echo "#define __error_t_defined 1" >>confdefs.h
21269
21270fi
21271
21272
21273ARGZ_H=
21274for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21275 argz_next argz_stringify
21276do :
21277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21278ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021279if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021280 cat >>confdefs.h <<_ACEOF
21281#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21282_ACEOF
21283
21284else
21285 ARGZ_H=argz.h;
21286
21287 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21288
21289fi
21290done
21291
21292
21293if test -z "$ARGZ_H"; then :
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21295$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021296if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021297 $as_echo_n "(cached) " >&6
21298else
21299 case $host_os in #(
21300 *cygwin*)
21301 lt_cv_sys_argz_works=no
21302 if test "$cross_compiling" != no; then
21303 lt_cv_sys_argz_works="guessing no"
21304 else
21305 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21306 save_IFS=$IFS
21307 IFS=-.
21308 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21309 IFS=$save_IFS
21310 lt_os_major=${2-0}
21311 lt_os_minor=${3-0}
21312 lt_os_micro=${4-0}
21313 if test "$lt_os_major" -gt 1 \
21314 || { test "$lt_os_major" -eq 1 \
21315 && { test "$lt_os_minor" -gt 5 \
21316 || { test "$lt_os_minor" -eq 5 \
21317 && test "$lt_os_micro" -gt 24; }; }; }; then
21318 lt_cv_sys_argz_works=yes
21319 fi
21320 fi
21321 ;; #(
21322 *) lt_cv_sys_argz_works=yes ;;
21323 esac
21324fi
21325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21326$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021327 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021328
21329$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21330
21331else
21332 ARGZ_H=argz.h
21333
21334
21335 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21336
21337fi
21338fi
21339
21340
21341
21342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21343$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021344if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021345 $as_echo_n "(cached) " >&6
21346else
21347 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21348 libltdl_cv_preloaded_symbols=yes
21349 else
21350 libltdl_cv_preloaded_symbols=no
21351 fi
21352
21353fi
21354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21355$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21356if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21357
21358$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21359
21360fi
21361
21362# Set options
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374# Check whether --with-included_ltdl was given.
21375if test "${with_included_ltdl+set}" = set; then :
21376 withval=$with_included_ltdl;
21377fi
21378
21379
21380if test "x$with_included_ltdl" != xyes; then
21381 # We are not being forced to use the included libltdl sources, so
21382 # decide whether there is a useful installed version we can use.
21383 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21384
21385"
cristyda16f162011-02-19 23:52:17 +000021386if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021387 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21388 #include <ltdl.h>
21389"
cristyda16f162011-02-19 23:52:17 +000021390if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21392$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021393if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021394 $as_echo_n "(cached) " >&6
21395else
21396 ac_check_lib_save_LIBS=$LIBS
21397LIBS="-lltdl $LIBS"
21398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399/* end confdefs.h. */
21400
21401/* Override any GCC internal prototype to avoid an error.
21402 Use char because int might match the return type of a GCC
21403 builtin and then its argument prototype would still apply. */
21404#ifdef __cplusplus
21405extern "C"
21406#endif
21407char lt_dladvise_preload ();
21408int
21409main ()
21410{
21411return lt_dladvise_preload ();
21412 ;
21413 return 0;
21414}
21415_ACEOF
21416if ac_fn_c_try_link "$LINENO"; then :
21417 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21418else
21419 ac_cv_lib_ltdl_lt_dladvise_preload=no
21420fi
21421rm -f core conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
21423LIBS=$ac_check_lib_save_LIBS
21424fi
21425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21426$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021427if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021428 with_included_ltdl=no
21429else
21430 with_included_ltdl=yes
21431fi
21432
21433else
21434 with_included_ltdl=yes
21435fi
21436
21437else
21438 with_included_ltdl=yes
21439fi
21440
21441
21442fi
21443
21444
21445
21446
21447# Check whether --with-ltdl_include was given.
21448if test "${with_ltdl_include+set}" = set; then :
21449 withval=$with_ltdl_include;
21450fi
21451
21452
21453if test -n "$with_ltdl_include"; then
21454 if test -f "$with_ltdl_include/ltdl.h"; then :
21455 else
cristy98dddb52010-11-04 00:30:15 +000021456 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021457 fi
21458else
21459 with_ltdl_include=no
21460fi
21461
21462
21463# Check whether --with-ltdl_lib was given.
21464if test "${with_ltdl_lib+set}" = set; then :
21465 withval=$with_ltdl_lib;
21466fi
21467
21468
21469if test -n "$with_ltdl_lib"; then
21470 if test -f "$with_ltdl_lib/libltdl.la"; then :
21471 else
cristy98dddb52010-11-04 00:30:15 +000021472 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021473 fi
21474else
21475 with_ltdl_lib=no
21476fi
21477
21478case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21479 ,yes,no,no,)
21480 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021481 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021482 "") enable_ltdl_convenience=yes
21483 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21484esac
21485LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21486LTDLDEPS=$LIBLTDL
21487LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21488
21489
21490
21491
21492
21493# For backwards non-gettext consistent compatibility...
21494INCLTDL="$LTDLINCL"
21495
21496
21497 ;;
21498 ,no,no,no,)
21499 # If the included ltdl is not to be used, then use the
21500 # preinstalled libltdl we found.
21501
21502$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21503
21504 LIBLTDL=-lltdl
21505 LTDLDEPS=
21506 LTDLINCL=
21507 ;;
21508 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021509 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021510 ;;
21511 *) with_included_ltdl=no
21512 LIBLTDL="-L$with_ltdl_lib -lltdl"
21513 LTDLDEPS=
21514 LTDLINCL="-I$with_ltdl_include"
21515 ;;
21516esac
21517INCLTDL="$LTDLINCL"
21518
21519# Report our decision...
21520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21521$as_echo_n "checking where to find libltdl headers... " >&6; }
21522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21523$as_echo "$LTDLINCL" >&6; }
21524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21525$as_echo_n "checking where to find libltdl library... " >&6; }
21526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21527$as_echo "$LIBLTDL" >&6; }
21528
21529
21530
21531# Check whether --enable-ltdl-install was given.
21532if test "${enable_ltdl_install+set}" = set; then :
21533 enableval=$enable_ltdl_install;
21534fi
21535
21536
21537case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21538 *yes*) ;;
21539 *) enable_ltdl_convenience=yes ;;
21540esac
21541
21542 if test x"${enable_ltdl_install-no}" != xno; then
21543 INSTALL_LTDL_TRUE=
21544 INSTALL_LTDL_FALSE='#'
21545else
21546 INSTALL_LTDL_TRUE='#'
21547 INSTALL_LTDL_FALSE=
21548fi
21549
21550 if test x"${enable_ltdl_convenience-no}" != xno; then
21551 CONVENIENCE_LTDL_TRUE=
21552 CONVENIENCE_LTDL_FALSE='#'
21553else
21554 CONVENIENCE_LTDL_TRUE='#'
21555 CONVENIENCE_LTDL_FALSE=
21556fi
21557
21558
21559
21560
21561
21562
cristy73bd4a52010-10-05 11:24:23 +000021563# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21564# the user used. This is so that ltdl.h can pick up the parent projects
21565# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21566# definitions required by ltdl.c.
21567# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21568
21569
21570
21571for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21572do :
21573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21574ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21575"
cristy98dddb52010-11-04 00:30:15 +000021576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021577 cat >>confdefs.h <<_ACEOF
21578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21579_ACEOF
21580
21581fi
21582
21583done
21584
21585
21586for ac_func in closedir opendir readdir
21587do :
21588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021590if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021591 cat >>confdefs.h <<_ACEOF
21592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21593_ACEOF
21594
21595else
21596
21597
21598 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21599
21600fi
21601done
21602
21603for ac_func in strlcat strlcpy
21604do :
21605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021607if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021608 cat >>confdefs.h <<_ACEOF
21609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21610_ACEOF
21611
21612else
21613
21614
21615 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21616
21617fi
21618done
21619
21620
21621
21622cat >>confdefs.h <<_ACEOF
21623#define LT_LIBEXT "$libext"
21624_ACEOF
21625
21626
cristyda16f162011-02-19 23:52:17 +000021627name=
21628eval "lt_libprefix=\"$libname_spec\""
21629
21630cat >>confdefs.h <<_ACEOF
21631#define LT_LIBPREFIX "$lt_libprefix"
21632_ACEOF
21633
21634
cristy73bd4a52010-10-05 11:24:23 +000021635name=ltdl
cristyda16f162011-02-19 23:52:17 +000021636eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021637
21638
21639
21640
21641
21642
21643
21644
21645# Only expand once:
21646
21647
cristy3ed852e2009-09-05 21:47:34 +000021648
21649# Check to see if building shared libraries
21650libtool_build_shared_libs='no'
21651if test "$enable_shared" = 'yes'; then
21652 libtool_build_shared_libs='yes'
21653fi
21654
21655# Check to see if building static libraries
21656libtool_build_static_libs='no'
21657if test "$enable_static" = 'yes'; then
21658 libtool_build_static_libs='yes'
21659fi
21660
cristy73bd4a52010-10-05 11:24:23 +000021661 if test "${libtool_build_shared_libs}" = 'yes'; then
21662 WITH_SHARED_LIBS_TRUE=
21663 WITH_SHARED_LIBS_FALSE='#'
21664else
21665 WITH_SHARED_LIBS_TRUE='#'
21666 WITH_SHARED_LIBS_FALSE=
21667fi
21668
cristy3ed852e2009-09-05 21:47:34 +000021669#
21670# Enable support for building loadable modules
21671#
21672
21673# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021674if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021675 withval=$with_modules; with_modules=$withval
21676else
cristy5a1cefd2010-01-06 20:42:35 +000021677 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021678fi
21679
21680
21681# Only allow building loadable modules if we are building shared libraries
21682if test "$with_modules" != 'no' ; then
21683 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021684 { $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 +000021685$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21686 with_modules='no'
21687 fi
21688fi
21689if test "$with_modules" != 'no'; then
21690
cristy8b350f62009-11-15 23:12:43 +000021691$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021692
21693fi
cristy73bd4a52010-10-05 11:24:23 +000021694 if test "$with_modules" != 'no'; then
21695 WITH_MODULES_TRUE=
21696 WITH_MODULES_FALSE='#'
21697else
21698 WITH_MODULES_TRUE='#'
21699 WITH_MODULES_FALSE=
21700fi
21701
cristy3ed852e2009-09-05 21:47:34 +000021702
21703# Enable building/use of libltdl if we are building shared libraries regardless
21704# of whether modules are built or not.
21705with_ltdl='no'
21706if test "$libtool_build_shared_libs" != 'no'; then
21707 with_ltdl='yes'
21708fi
21709
cristy73bd4a52010-10-05 11:24:23 +000021710 if test "$with_ltdl" != 'no'; then
21711 WITH_LTDL_TRUE=
21712 WITH_LTDL_FALSE='#'
21713else
21714 WITH_LTDL_TRUE='#'
21715 WITH_LTDL_FALSE=
21716fi
21717
cristy3ed852e2009-09-05 21:47:34 +000021718if test "$with_ltdl" != 'no'; then
21719
cristy8b350f62009-11-15 23:12:43 +000021720$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021721
21722
21723 # Set DLLDFLAGS
21724 if test X"$enable_shared" = Xyes; then
21725 DLLDFLAGS=-export-dynamic
21726
21727 fi
21728fi
21729
21730# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021731# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021732# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021733if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021734 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21735else
21736 enable_delegate_build='no'
21737fi
21738
21739
21740# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021741if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021742 enableval=$enable_deprecated; enable_deprecated=$enableval
21743else
21744 enable_deprecated='no'
21745fi
21746
21747
21748if test "$enable_deprecated" = 'yes'; then
21749
cristy8b350f62009-11-15 23:12:43 +000021750$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021751
21752else
21753 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21754fi
21755
21756# Build a version of ImageMagick which operates uninstalled.
21757# Used to build distributions located via MAGICK_HOME / executable path
21758# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021759if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021760 enableval=$enable_installed; enable_installed=$enableval
21761else
21762 enable_installed='yes'
21763fi
21764
21765
21766if test "$enable_installed" = 'yes'; then
21767
cristy8b350f62009-11-15 23:12:43 +000021768$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021769
21770else
21771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21772fi
21773
21774# Permit enciphering and deciphering image pixels.
21775# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021776if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021777 enableval=$enable_cipher; enable_cipher=$enableval
21778else
21779 enable_cipher='yes'
21780fi
21781
21782
21783if test "$enable_cipher" = 'yes'; then
21784
cristy8b350f62009-11-15 23:12:43 +000021785$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021786
21787fi
21788
cristy6e3607c2011-09-13 13:59:17 +000021789# Build a zero-configuration version of ImageMagick.
21790# Check whether --enable-zero-configuration was given.
21791if test "${enable_zero_configuration+set}" = set; then :
21792 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021793else
cristy6e3607c2011-09-13 13:59:17 +000021794 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021795fi
21796
21797
cristy6e3607c2011-09-13 13:59:17 +000021798if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021799
cristy6e3607c2011-09-13 13:59:17 +000021800$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021801
cristy81af5702011-09-13 14:20:58 +000021802 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021803fi
21804
21805# Build a high dynamic range version of ImageMagick.
21806# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021807if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 enableval=$enable_hdri; enable_hdri=$enableval
21809else
cristy191c0b72012-08-12 16:29:52 +000021810 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021811fi
21812
21813
21814MAGICK_HDRI=""
21815if test "$enable_hdri" = 'yes'; then
21816 MAGICK_HDRI="HDRI"
21817
cristy8b350f62009-11-15 23:12:43 +000021818$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021819
cristyfd9dcd42010-08-08 18:07:02 +000021820 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021821fi
21822
cristy3ed852e2009-09-05 21:47:34 +000021823# Build a version of ImageMagick with assert statements.
21824# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021825if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021826 enableval=$enable_assert; enable_assert=$enableval
21827else
21828 enable_assert='yes'
21829fi
21830
21831
21832if test "$enable_assert" = 'no'; then
21833
cristy8b350f62009-11-15 23:12:43 +000021834$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021835
21836fi
21837
cristya448bd22011-10-14 12:38:13 +000021838# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021839
21840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21841$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21842 # Check whether --enable-maintainer-mode was given.
21843if test "${enable_maintainer_mode+set}" = set; then :
21844 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21845else
21846 USE_MAINTAINER_MODE=no
21847fi
21848
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21850$as_echo "$USE_MAINTAINER_MODE" >&6; }
21851 if test $USE_MAINTAINER_MODE = yes; then
21852 MAINTAINER_MODE_TRUE=
21853 MAINTAINER_MODE_FALSE='#'
21854else
21855 MAINTAINER_MODE_TRUE='#'
21856 MAINTAINER_MODE_FALSE=
21857fi
21858
21859 MAINT=$MAINTAINER_MODE_TRUE
21860
21861
cristy3ed852e2009-09-05 21:47:34 +000021862
cristy3ed852e2009-09-05 21:47:34 +000021863# Enable ccmalloc memory debugging support
21864# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021865if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021866 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21867else
21868 enable_ccmalloc='no'
21869fi
21870
21871
21872# Enable Electric Fence memory debugging support
21873# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021874if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021875 enableval=$enable_efence; enable_efence=$enableval
21876else
21877 enable_efence='no'
21878fi
21879
21880
21881# Enable prof-based profiling support
21882# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021883if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021884 enableval=$enable_prof; enable_prof=$enableval
21885else
21886 enable_prof='no'
21887fi
21888
21889
21890# Enable gprof-based profiling support
21891# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021892if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 enableval=$enable_gprof; enable_gprof=$enableval
21894else
21895 enable_gprof='no'
21896fi
21897
21898
21899# Enable gcov-based profiling support
21900# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021901if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021902 enableval=$enable_gcov; enable_gcov=$enableval
21903else
21904 enable_gcov='no'
21905fi
21906
21907
21908enable_profiling='no'
21909if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21910 enable_profiling='yes'
21911 if test "$libtool_build_shared_libs" = 'yes'; then
21912 echo "Warning: Can not profile code using shared libraries"
21913 fi
21914fi
21915
21916# Magick API method prefix
21917
21918# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021919if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021920 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021921else
cristyfc3d0222012-02-07 15:05:57 +000021922 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021923fi
21924
21925
cristyfc3d0222012-02-07 15:05:57 +000021926if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021927
21928cat >>confdefs.h <<_ACEOF
21929#define NAMESPACE_PREFIX $with_method_prefix
21930_ACEOF
21931
cristyfc3d0222012-02-07 15:05:57 +000021932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021933fi
21934
cristy71d8c202012-03-20 17:05:01 +000021935# Enable legacy support (default no)
21936# Check whether --enable-legacy-support was given.
21937if test "${enable_legacy_support+set}" = set; then :
21938 enableval=$enable_legacy_support; with_legacy_support=$enableval
21939else
21940 with_legacy_support='no'
21941fi
21942
21943 if test "$with_legacy_support" != 'no'; then
21944 LEGACY_SUPPORT_TRUE=
21945 LEGACY_SUPPORT_FALSE='#'
21946else
21947 LEGACY_SUPPORT_TRUE='#'
21948 LEGACY_SUPPORT_FALSE=
21949fi
21950
21951
cristy3ed852e2009-09-05 21:47:34 +000021952# Number of bits in a Quantum
21953
21954# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021955if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021956 withval=$with_quantum_depth; with_quantum_depth=$withval
21957else
21958 with_quantum_depth=16
21959fi
21960
21961
21962if test "$with_quantum_depth" != '8'; then
21963 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21964fi
21965
21966case "${with_quantum_depth}" in
21967 8 ) ;;
21968 16 ) ;;
21969 32 ) ;;
21970 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021971 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021972esac
21973QUANTUM_DEPTH="$with_quantum_depth"
21974
21975cat >>confdefs.h <<_ACEOF
21976#define QUANTUM_DEPTH $QUANTUM_DEPTH
21977_ACEOF
21978
21979
21980# Set pixel cache threshold
21981
21982# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021983if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 withval=$with_cache; with_cache=$withval
21985else
21986 with_cache=''
21987fi
21988
21989
21990if test "$with_cache" != ''; then
21991
21992cat >>confdefs.h <<_ACEOF
21993#define PixelCacheThreshold $with_cache
21994_ACEOF
21995
21996 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21997fi
21998
21999# Disable/Enable support for full delegate paths
22000
22001# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022002if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 withval=$with_frozenpaths; with_frozenpaths=$withval
22004else
22005 with_frozenpaths='no'
22006fi
22007
22008
22009# Enable build/install of Magick++
22010
22011# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022012if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022013 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22014else
22015 with_magick_plus_plus='yes'
22016fi
22017
22018
22019# Disable build/install of PerlMagick.
22020
22021# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022022if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 withval=$with_perl; with_perl=$withval
22024else
cristyb5f4e2f2010-04-25 00:49:11 +000022025 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022026fi
22027
22028
22029# Options to pass when configuring PerlMagick
22030
22031# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022032if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022033 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022034fi
22035
22036
cristy3ed852e2009-09-05 21:47:34 +000022037
22038# Enable umem, object-caching memory allocation library.
22039
22040# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022041if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 withval=$with_umem; with_umem=$withval
22043else
22044 with_umem='no'
22045fi
22046
22047if test "$with_umem" != 'yes' ; then
22048 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22049fi
22050
22051#
22052# Specify path to shared libstdc++ if not in normal location
22053#
22054
22055# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022056if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022057 withval=$with_libstdc; with_libstdc=$withval
22058else
22059 with_libstdc=''
22060fi
22061
22062
22063if test "$with_libstdc" != ''; then
22064 if test -d "$with_libstdc"; then
22065 LIBSTDCLDFLAGS="-L$with_libstdc"
22066 fi
22067fi
22068
22069
22070# Does gcc required -traditional?
22071if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022074if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 $as_echo_n "(cached) " >&6
22076else
22077 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080#include <sgtty.h>
22081Autoconf TIOCGETP
22082_ACEOF
22083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022084 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022085 ac_cv_prog_gcc_traditional=yes
22086else
22087 ac_cv_prog_gcc_traditional=no
22088fi
22089rm -f conftest*
22090
22091
22092 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095#include <termio.h>
22096Autoconf TCGETA
22097_ACEOF
22098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022099 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022100 ac_cv_prog_gcc_traditional=yes
22101fi
22102rm -f conftest*
22103
22104 fi
22105fi
cristy8b350f62009-11-15 23:12:43 +000022106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22108 if test $ac_cv_prog_gcc_traditional = yes; then
22109 CC="$CC -traditional"
22110 fi
22111fi
22112
22113
22114########
22115#
22116# Set defines required to build DLLs and modules using MinGW
22117#
22118########
22119# These options are set for multi-thread DLL module build
22120# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22121# module: _DLL
22122# executable/Magick++: _DLL _MAGICKMOD_
22123MODULE_EXTRA_CPPFLAGS=''
22124LIBRARY_EXTRA_CPPFLAGS=''
22125if test "${native_win32_build}" = 'yes'; then
22126 if test "${libtool_build_shared_libs}" = 'yes'; then
22127 CPPFLAGS="$CPPFLAGS -D_DLL"
22128 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22129 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22130 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22131 if test "$with_modules" = 'yes'; then
22132 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22133 else
22134 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22135 fi
22136 else
22137 CPPFLAGS="$CPPFLAGS -D_LIB"
22138 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22139 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22140 fi
22141 if test "$with_threads" = 'yes'; then
22142 CPPFLAGS="$CPPFLAGS -D_MT"
22143 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22144 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22145 fi
22146fi
22147
22148
22149
22150# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022152$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022153if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 $as_echo_n "(cached) " >&6
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158#include <stdlib.h>
22159#include <stdarg.h>
22160#include <string.h>
22161#include <float.h>
22162
22163int
22164main ()
22165{
22166
22167 ;
22168 return 0;
22169}
22170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022171if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022172 ac_cv_header_stdc=yes
22173else
cristy8b350f62009-11-15 23:12:43 +000022174 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022175fi
cristy3ed852e2009-09-05 21:47:34 +000022176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177
22178if test $ac_cv_header_stdc = yes; then
22179 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022181/* end confdefs.h. */
22182#include <string.h>
22183
22184_ACEOF
22185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022186 $EGREP "memchr" >/dev/null 2>&1; then :
22187
cristy3ed852e2009-09-05 21:47:34 +000022188else
22189 ac_cv_header_stdc=no
22190fi
22191rm -f conftest*
22192
22193fi
22194
22195if test $ac_cv_header_stdc = yes; then
22196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022198/* end confdefs.h. */
22199#include <stdlib.h>
22200
22201_ACEOF
22202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022203 $EGREP "free" >/dev/null 2>&1; then :
22204
cristy3ed852e2009-09-05 21:47:34 +000022205else
22206 ac_cv_header_stdc=no
22207fi
22208rm -f conftest*
22209
22210fi
22211
22212if test $ac_cv_header_stdc = yes; then
22213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022214 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022215 :
22216else
cristy8b350f62009-11-15 23:12:43 +000022217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022218/* end confdefs.h. */
22219#include <ctype.h>
22220#include <stdlib.h>
22221#if ((' ' & 0x0FF) == 0x020)
22222# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22223# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22224#else
22225# define ISLOWER(c) \
22226 (('a' <= (c) && (c) <= 'i') \
22227 || ('j' <= (c) && (c) <= 'r') \
22228 || ('s' <= (c) && (c) <= 'z'))
22229# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22230#endif
22231
22232#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22233int
22234main ()
22235{
22236 int i;
22237 for (i = 0; i < 256; i++)
22238 if (XOR (islower (i), ISLOWER (i))
22239 || toupper (i) != TOUPPER (i))
22240 return 2;
22241 return 0;
22242}
22243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022244if ac_fn_c_try_run "$LINENO"; then :
22245
cristy3ed852e2009-09-05 21:47:34 +000022246else
cristy8b350f62009-11-15 23:12:43 +000022247 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy8b350f62009-11-15 23:12:43 +000022249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22250 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022251fi
22252
cristy3ed852e2009-09-05 21:47:34 +000022253fi
22254fi
cristy8b350f62009-11-15 23:12:43 +000022255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022256$as_echo "$ac_cv_header_stdc" >&6; }
22257if test $ac_cv_header_stdc = yes; then
22258
cristy8b350f62009-11-15 23:12:43 +000022259$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022260
22261fi
22262
22263if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022264 { $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 +000022265 header files. Compilation cannot proceed. Please install the ANSI C
22266 headers and rerun this script." >&5
22267$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22268 header files. Compilation cannot proceed. Please install the ANSI C
22269 headers and rerun this script." >&2;};
22270fi
cristya0b81c32010-01-22 02:54:33 +000022271
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22273$as_echo_n "checking whether to enable assertions... " >&6; }
22274 # Check whether --enable-assert was given.
22275if test "${enable_assert+set}" = set; then :
22276 enableval=$enable_assert; ac_enable_assert=$enableval
22277 if test "x$enableval" = xno; then :
22278
22279$as_echo "#define NDEBUG 1" >>confdefs.h
22280
22281elif test "x$enableval" != xyes; then :
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22283$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22284 ac_enable_assert=yes
22285fi
22286else
22287 ac_enable_assert=yes
22288fi
22289
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22291$as_echo "$ac_enable_assert" >&6; }
22292
cristy3ed852e2009-09-05 21:47:34 +000022293ac_header_dirent=no
22294for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22295 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022297$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022298if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022299 $as_echo_n "(cached) " >&6
22300else
cristy8b350f62009-11-15 23:12:43 +000022301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022302/* end confdefs.h. */
22303#include <sys/types.h>
22304#include <$ac_hdr>
22305
22306int
22307main ()
22308{
22309if ((DIR *) 0)
22310return 0;
22311 ;
22312 return 0;
22313}
22314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022315if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 eval "$as_ac_Header=yes"
22317else
cristy8b350f62009-11-15 23:12:43 +000022318 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022319fi
cristy3ed852e2009-09-05 21:47:34 +000022320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321fi
cristy8b350f62009-11-15 23:12:43 +000022322eval ac_res=\$$as_ac_Header
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022324$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326 cat >>confdefs.h <<_ACEOF
22327#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22328_ACEOF
22329
22330ac_header_dirent=$ac_hdr; break
22331fi
22332
22333done
22334# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22335if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022337$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022338if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 $as_echo_n "(cached) " >&6
22340else
22341 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022343/* end confdefs.h. */
22344
22345/* Override any GCC internal prototype to avoid an error.
22346 Use char because int might match the return type of a GCC
22347 builtin and then its argument prototype would still apply. */
22348#ifdef __cplusplus
22349extern "C"
22350#endif
22351char opendir ();
22352int
22353main ()
22354{
22355return opendir ();
22356 ;
22357 return 0;
22358}
22359_ACEOF
22360for ac_lib in '' dir; do
22361 if test -z "$ac_lib"; then
22362 ac_res="none required"
22363 else
22364 ac_res=-l$ac_lib
22365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22366 fi
cristy8b350f62009-11-15 23:12:43 +000022367 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022369fi
cristy8b350f62009-11-15 23:12:43 +000022370rm -f core conftest.err conftest.$ac_objext \
22371 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022372 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 break
22374fi
22375done
cristyda16f162011-02-19 23:52:17 +000022376if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022377
cristy3ed852e2009-09-05 21:47:34 +000022378else
22379 ac_cv_search_opendir=no
22380fi
22381rm conftest.$ac_ext
22382LIBS=$ac_func_search_save_LIBS
22383fi
cristy8b350f62009-11-15 23:12:43 +000022384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022385$as_echo "$ac_cv_search_opendir" >&6; }
22386ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022387if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22389
22390fi
22391
22392else
cristy8b350f62009-11-15 23:12:43 +000022393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022394$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022395if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 $as_echo_n "(cached) " >&6
22397else
22398 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022400/* end confdefs.h. */
22401
22402/* Override any GCC internal prototype to avoid an error.
22403 Use char because int might match the return type of a GCC
22404 builtin and then its argument prototype would still apply. */
22405#ifdef __cplusplus
22406extern "C"
22407#endif
22408char opendir ();
22409int
22410main ()
22411{
22412return opendir ();
22413 ;
22414 return 0;
22415}
22416_ACEOF
22417for ac_lib in '' x; do
22418 if test -z "$ac_lib"; then
22419 ac_res="none required"
22420 else
22421 ac_res=-l$ac_lib
22422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22423 fi
cristy8b350f62009-11-15 23:12:43 +000022424 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022426fi
cristy8b350f62009-11-15 23:12:43 +000022427rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022429 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022430 break
22431fi
22432done
cristyda16f162011-02-19 23:52:17 +000022433if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022434
cristy3ed852e2009-09-05 21:47:34 +000022435else
22436 ac_cv_search_opendir=no
22437fi
22438rm conftest.$ac_ext
22439LIBS=$ac_func_search_save_LIBS
22440fi
cristy8b350f62009-11-15 23:12:43 +000022441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022442$as_echo "$ac_cv_search_opendir" >&6; }
22443ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022444if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22446
22447fi
22448
22449fi
22450
22451
22452# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022453for 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 +000022454do :
22455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22456ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022458 cat >>confdefs.h <<_ACEOF
22459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22460_ACEOF
22461
22462fi
22463
22464done
22465
22466
22467########
22468#
22469# Checks for typedefs, structures, and compiler characteristics.
22470#
22471########
22472
cristy8b350f62009-11-15 23:12:43 +000022473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022474$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022475if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022476 $as_echo_n "(cached) " >&6
22477else
cristy8b350f62009-11-15 23:12:43 +000022478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022479/* end confdefs.h. */
22480
cristy14fefe52012-05-21 00:59:18 +000022481 #include <stdbool.h>
22482 #ifndef bool
22483 "error: bool is not defined"
22484 #endif
22485 #ifndef false
22486 "error: false is not defined"
22487 #endif
22488 #if false
22489 "error: false is not 0"
22490 #endif
22491 #ifndef true
22492 "error: true is not defined"
22493 #endif
22494 #if true != 1
22495 "error: true is not 1"
22496 #endif
22497 #ifndef __bool_true_false_are_defined
22498 "error: __bool_true_false_are_defined is not defined"
22499 #endif
cristy3ed852e2009-09-05 21:47:34 +000022500
cristy14fefe52012-05-21 00:59:18 +000022501 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022502
cristy14fefe52012-05-21 00:59:18 +000022503 char a[true == 1 ? 1 : -1];
22504 char b[false == 0 ? 1 : -1];
22505 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22506 char d[(bool) 0.5 == true ? 1 : -1];
22507 /* See body of main program for 'e'. */
22508 char f[(_Bool) 0.0 == false ? 1 : -1];
22509 char g[true];
22510 char h[sizeof (_Bool)];
22511 char i[sizeof s.t];
22512 enum { j = false, k = true, l = false * true, m = true * 256 };
22513 /* The following fails for
22514 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22515 _Bool n[m];
22516 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22517 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22518 /* Catch a bug in an HP-UX C compiler. See
22519 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22520 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22521 */
22522 _Bool q = true;
22523 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022524
22525int
22526main ()
22527{
22528
cristy14fefe52012-05-21 00:59:18 +000022529 bool e = &s;
22530 *pq |= q;
22531 *pq |= ! q;
22532 /* Refer to every declared value, to avoid compiler optimizations. */
22533 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22534 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022535
22536 ;
22537 return 0;
22538}
22539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022540if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022541 ac_cv_header_stdbool_h=yes
22542else
cristy8b350f62009-11-15 23:12:43 +000022543 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022544fi
cristy3ed852e2009-09-05 21:47:34 +000022545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546fi
cristy8b350f62009-11-15 23:12:43 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022548$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022549 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022550if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022551
22552cat >>confdefs.h <<_ACEOF
22553#define HAVE__BOOL 1
22554_ACEOF
22555
22556
22557fi
22558
cristy14fefe52012-05-21 00:59:18 +000022559
cristy3ed852e2009-09-05 21:47:34 +000022560if test $ac_cv_header_stdbool_h = yes; then
22561
cristy8b350f62009-11-15 23:12:43 +000022562$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022563
22564fi
22565
cristy8b350f62009-11-15 23:12:43 +000022566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022568if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022569 $as_echo_n "(cached) " >&6
22570else
cristy8b350f62009-11-15 23:12:43 +000022571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022572/* end confdefs.h. */
22573
22574int
22575main ()
22576{
22577
22578volatile int x;
22579int * volatile y = (int *) 0;
22580return !x && !y;
22581 ;
22582 return 0;
22583}
22584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022586 ac_cv_c_volatile=yes
22587else
cristy8b350f62009-11-15 23:12:43 +000022588 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022589fi
cristy3ed852e2009-09-05 21:47:34 +000022590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22591fi
cristy8b350f62009-11-15 23:12:43 +000022592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022593$as_echo "$ac_cv_c_volatile" >&6; }
22594if test $ac_cv_c_volatile = no; then
22595
cristy8b350f62009-11-15 23:12:43 +000022596$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022597
22598fi
22599
cristy8b350f62009-11-15 23:12:43 +000022600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022601$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022602if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022603 $as_echo_n "(cached) " >&6
22604else
cristy8b350f62009-11-15 23:12:43 +000022605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022606/* end confdefs.h. */
22607#define x(y) #y
22608
22609char *s = x(teststring);
22610_ACEOF
22611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022612 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 ac_cv_c_stringize=no
22614else
22615 ac_cv_c_stringize=yes
22616fi
22617rm -f conftest*
22618
22619fi
cristy8b350f62009-11-15 23:12:43 +000022620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022621$as_echo "$ac_cv_c_stringize" >&6; }
22622if test $ac_cv_c_stringize = yes; then
22623
cristy8b350f62009-11-15 23:12:43 +000022624$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022625
22626fi
22627
cristy8b350f62009-11-15 23:12:43 +000022628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022630if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 $as_echo_n "(cached) " >&6
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022634/* end confdefs.h. */
22635#include <sys/types.h>
22636#include <sys/stat.h>
22637
22638#if defined S_ISBLK && defined S_IFDIR
22639extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22640#endif
22641
22642#if defined S_ISBLK && defined S_IFCHR
22643extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22644#endif
22645
22646#if defined S_ISLNK && defined S_IFREG
22647extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22648#endif
22649
22650#if defined S_ISSOCK && defined S_IFREG
22651extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22652#endif
22653
22654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022655if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022656 ac_cv_header_stat_broken=no
22657else
cristy8b350f62009-11-15 23:12:43 +000022658 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022659fi
cristy3ed852e2009-09-05 21:47:34 +000022660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661fi
cristy8b350f62009-11-15 23:12:43 +000022662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022663$as_echo "$ac_cv_header_stat_broken" >&6; }
22664if test $ac_cv_header_stat_broken = yes; then
22665
cristy8b350f62009-11-15 23:12:43 +000022666$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022667
22668fi
22669
cristy8b350f62009-11-15 23:12:43 +000022670{ $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 +000022671$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022672if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022673 $as_echo_n "(cached) " >&6
22674else
cristy8b350f62009-11-15 23:12:43 +000022675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022676/* end confdefs.h. */
22677#include <sys/types.h>
22678#include <sys/time.h>
22679#include <time.h>
22680
22681int
22682main ()
22683{
22684if ((struct tm *) 0)
22685return 0;
22686 ;
22687 return 0;
22688}
22689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022690if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 ac_cv_header_time=yes
22692else
cristy8b350f62009-11-15 23:12:43 +000022693 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022694fi
cristy3ed852e2009-09-05 21:47:34 +000022695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696fi
cristy8b350f62009-11-15 23:12:43 +000022697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022698$as_echo "$ac_cv_header_time" >&6; }
22699if test $ac_cv_header_time = yes; then
22700
cristy8b350f62009-11-15 23:12:43 +000022701$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022702
22703fi
22704
cristy8b350f62009-11-15 23:12:43 +000022705{ $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 +000022706$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022707if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022708 $as_echo_n "(cached) " >&6
22709else
cristy8b350f62009-11-15 23:12:43 +000022710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022711/* end confdefs.h. */
22712#include <sys/types.h>
22713#include <time.h>
22714
22715int
22716main ()
22717{
22718struct tm tm;
22719 int *p = &tm.tm_sec;
22720 return !p;
22721 ;
22722 return 0;
22723}
22724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022725if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022726 ac_cv_struct_tm=time.h
22727else
cristy8b350f62009-11-15 23:12:43 +000022728 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022729fi
cristy3ed852e2009-09-05 21:47:34 +000022730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731fi
cristy8b350f62009-11-15 23:12:43 +000022732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022733$as_echo "$ac_cv_struct_tm" >&6; }
22734if test $ac_cv_struct_tm = sys/time.h; then
22735
cristy8b350f62009-11-15 23:12:43 +000022736$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022737
22738fi
22739
cristy92703d82010-04-26 00:18:18 +000022740ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22741#include <$ac_cv_struct_tm>
22742
22743"
cristyda16f162011-02-19 23:52:17 +000022744if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022745
22746cat >>confdefs.h <<_ACEOF
22747#define HAVE_STRUCT_TM_TM_ZONE 1
22748_ACEOF
22749
22750
22751fi
22752
22753if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22754
22755$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22756
22757else
22758 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22759"
cristyda16f162011-02-19 23:52:17 +000022760if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022761 ac_have_decl=1
22762else
22763 ac_have_decl=0
22764fi
22765
22766cat >>confdefs.h <<_ACEOF
22767#define HAVE_DECL_TZNAME $ac_have_decl
22768_ACEOF
22769
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22771$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022772if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022773 $as_echo_n "(cached) " >&6
22774else
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776/* end confdefs.h. */
22777#include <time.h>
22778#if !HAVE_DECL_TZNAME
22779extern char *tzname[];
22780#endif
22781
22782int
22783main ()
22784{
22785return tzname[0][0];
22786 ;
22787 return 0;
22788}
22789_ACEOF
22790if ac_fn_c_try_link "$LINENO"; then :
22791 ac_cv_var_tzname=yes
22792else
22793 ac_cv_var_tzname=no
22794fi
22795rm -f core conftest.err conftest.$ac_objext \
22796 conftest$ac_exeext conftest.$ac_ext
22797fi
22798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22799$as_echo "$ac_cv_var_tzname" >&6; }
22800 if test $ac_cv_var_tzname = yes; then
22801
22802$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22803
22804 fi
22805fi
22806
cristy8b350f62009-11-15 23:12:43 +000022807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022808$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022809if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022810 $as_echo_n "(cached) " >&6
22811else
22812 echo '#! /bin/cat
22813exit 69
22814' >conftest
22815chmod u+x conftest
22816(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22817if test $? -ne 69; then
22818 ac_cv_sys_interpreter=yes
22819else
22820 ac_cv_sys_interpreter=no
22821fi
22822rm -f conftest
22823fi
cristy8b350f62009-11-15 23:12:43 +000022824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022825$as_echo "$ac_cv_sys_interpreter" >&6; }
22826interpval=$ac_cv_sys_interpreter
22827
22828
cristy3ed852e2009-09-05 21:47:34 +000022829# If the C compiler supports the keyword inline, do nothing. Otherwise
22830# define inline to __inline__ or __inline if it accepts one of those,
22831# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022833$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022834if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022835 $as_echo_n "(cached) " >&6
22836else
22837 ac_cv_c_inline=no
22838for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022840/* end confdefs.h. */
22841#ifndef __cplusplus
22842typedef int foo_t;
22843static $ac_kw foo_t static_foo () {return 0; }
22844$ac_kw foo_t foo () {return 0; }
22845#endif
22846
22847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022849 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022850fi
cristy3ed852e2009-09-05 21:47:34 +000022851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 test "$ac_cv_c_inline" != no && break
22853done
22854
22855fi
cristy8b350f62009-11-15 23:12:43 +000022856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022857$as_echo "$ac_cv_c_inline" >&6; }
22858
cristy3ed852e2009-09-05 21:47:34 +000022859case $ac_cv_c_inline in
22860 inline | yes) ;;
22861 *)
22862 case $ac_cv_c_inline in
22863 no) ac_val=;;
22864 *) ac_val=$ac_cv_c_inline;;
22865 esac
22866 cat >>confdefs.h <<_ACEOF
22867#ifndef __cplusplus
22868#define inline $ac_val
22869#endif
22870_ACEOF
22871 ;;
22872esac
22873
22874
22875# If the C compiler supports the keyword restrict, do nothing. Otherwise
22876# define restrict to __restrict__ or __restrict if it accepts one of those,
22877# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022879$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022880if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022881 $as_echo_n "(cached) " >&6
22882else
22883 ac_cv_c_restrict=no
22884 # The order here caters to the fact that C++ does not require restrict.
22885 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022887/* end confdefs.h. */
22888typedef int * int_ptr;
22889 int foo (int_ptr $ac_kw ip) {
22890 return ip[0];
22891 }
22892int
22893main ()
22894{
22895int s[1];
22896 int * $ac_kw t = s;
22897 t[0] = 0;
22898 return foo(t)
22899 ;
22900 return 0;
22901}
22902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022903if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022904 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022905fi
cristy3ed852e2009-09-05 21:47:34 +000022906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 test "$ac_cv_c_restrict" != no && break
22908 done
22909
22910fi
cristy8b350f62009-11-15 23:12:43 +000022911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022912$as_echo "$ac_cv_c_restrict" >&6; }
22913
cristy3ed852e2009-09-05 21:47:34 +000022914 case $ac_cv_c_restrict in
22915 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022916 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022917 ;;
22918 *) cat >>confdefs.h <<_ACEOF
22919#define restrict $ac_cv_c_restrict
22920_ACEOF
22921 ;;
22922 esac
22923
22924
22925# If words are stored with the most significant byte first (like
22926# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022928$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022929if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 $as_echo_n "(cached) " >&6
22931else
22932 ac_cv_c_bigendian=unknown
22933 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022935/* end confdefs.h. */
22936#ifndef __APPLE_CC__
22937 not a universal capable compiler
22938 #endif
22939 typedef int dummy;
22940
22941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022942if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022943
22944 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022945 # there are at least two -arch flags with different values.
22946 ac_arch=
22947 ac_prev=
22948 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22949 if test -n "$ac_prev"; then
22950 case $ac_word in
22951 i?86 | x86_64 | ppc | ppc64)
22952 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22953 ac_arch=$ac_word
22954 else
22955 ac_cv_c_bigendian=universal
22956 break
22957 fi
22958 ;;
22959 esac
22960 ac_prev=
22961 elif test "x$ac_word" = "x-arch"; then
22962 ac_prev=arch
22963 fi
22964 done
cristy3ed852e2009-09-05 21:47:34 +000022965fi
cristy3ed852e2009-09-05 21:47:34 +000022966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22967 if test $ac_cv_c_bigendian = unknown; then
22968 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022970/* end confdefs.h. */
22971#include <sys/types.h>
22972 #include <sys/param.h>
22973
22974int
22975main ()
22976{
22977#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22978 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22979 && LITTLE_ENDIAN)
22980 bogus endian macros
22981 #endif
22982
22983 ;
22984 return 0;
22985}
22986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022987if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022988 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022990/* end confdefs.h. */
22991#include <sys/types.h>
22992 #include <sys/param.h>
22993
22994int
22995main ()
22996{
22997#if BYTE_ORDER != BIG_ENDIAN
22998 not big endian
22999 #endif
23000
23001 ;
23002 return 0;
23003}
23004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023005if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023006 ac_cv_c_bigendian=yes
23007else
cristy8b350f62009-11-15 23:12:43 +000023008 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023009fi
cristy3ed852e2009-09-05 21:47:34 +000023010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023011fi
cristy3ed852e2009-09-05 21:47:34 +000023012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23013 fi
23014 if test $ac_cv_c_bigendian = unknown; then
23015 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023017/* end confdefs.h. */
23018#include <limits.h>
23019
23020int
23021main ()
23022{
23023#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23024 bogus endian macros
23025 #endif
23026
23027 ;
23028 return 0;
23029}
23030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023031if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023034/* end confdefs.h. */
23035#include <limits.h>
23036
23037int
23038main ()
23039{
23040#ifndef _BIG_ENDIAN
23041 not big endian
23042 #endif
23043
23044 ;
23045 return 0;
23046}
23047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023049 ac_cv_c_bigendian=yes
23050else
cristy8b350f62009-11-15 23:12:43 +000023051 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023052fi
cristy3ed852e2009-09-05 21:47:34 +000023053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023054fi
cristy3ed852e2009-09-05 21:47:34 +000023055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056 fi
23057 if test $ac_cv_c_bigendian = unknown; then
23058 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023059 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023060 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023062/* end confdefs.h. */
23063short int ascii_mm[] =
23064 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23065 short int ascii_ii[] =
23066 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23067 int use_ascii (int i) {
23068 return ascii_mm[i] + ascii_ii[i];
23069 }
23070 short int ebcdic_ii[] =
23071 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23072 short int ebcdic_mm[] =
23073 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23074 int use_ebcdic (int i) {
23075 return ebcdic_mm[i] + ebcdic_ii[i];
23076 }
23077 extern int foo;
23078
23079int
23080main ()
23081{
23082return use_ascii (foo) == use_ebcdic (foo);
23083 ;
23084 return 0;
23085}
23086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023087if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023088 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23089 ac_cv_c_bigendian=yes
23090 fi
23091 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23092 if test "$ac_cv_c_bigendian" = unknown; then
23093 ac_cv_c_bigendian=no
23094 else
23095 # finding both strings is unlikely to happen, but who knows?
23096 ac_cv_c_bigendian=unknown
23097 fi
23098 fi
cristy3ed852e2009-09-05 21:47:34 +000023099fi
cristy3ed852e2009-09-05 21:47:34 +000023100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101else
cristy8b350f62009-11-15 23:12:43 +000023102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023103/* end confdefs.h. */
23104$ac_includes_default
23105int
23106main ()
23107{
23108
23109 /* Are we little or big endian? From Harbison&Steele. */
23110 union
23111 {
23112 long int l;
23113 char c[sizeof (long int)];
23114 } u;
23115 u.l = 1;
23116 return u.c[sizeof (long int) - 1] == 1;
23117
23118 ;
23119 return 0;
23120}
23121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023122if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023123 ac_cv_c_bigendian=no
23124else
cristy8b350f62009-11-15 23:12:43 +000023125 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023126fi
cristy8b350f62009-11-15 23:12:43 +000023127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23128 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023129fi
23130
cristy3ed852e2009-09-05 21:47:34 +000023131 fi
23132fi
cristy8b350f62009-11-15 23:12:43 +000023133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023134$as_echo "$ac_cv_c_bigendian" >&6; }
23135 case $ac_cv_c_bigendian in #(
23136 yes)
cristy8b350f62009-11-15 23:12:43 +000023137 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023138;; #(
23139 no)
23140 ;; #(
23141 universal)
23142
cristy8b350f62009-11-15 23:12:43 +000023143$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023144
23145 ;; #(
23146 *)
cristy98dddb52010-11-04 00:30:15 +000023147 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023148 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023149 esac
23150
23151
cristy501c8042011-05-26 17:46:28 +000023152# Define to a suitable type, if standard headers do not define it.
23153ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23154case $ac_cv_c_int8_t in #(
23155 no|yes) ;; #(
23156 *)
cristy3ed852e2009-09-05 21:47:34 +000023157
23158cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023159#define int8_t $ac_cv_c_int8_t
23160_ACEOF
23161;;
23162esac
23163
23164ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23165case $ac_cv_c_int16_t in #(
23166 no|yes) ;; #(
23167 *)
23168
23169cat >>confdefs.h <<_ACEOF
23170#define int16_t $ac_cv_c_int16_t
23171_ACEOF
23172;;
23173esac
23174
23175ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23176case $ac_cv_c_int32_t in #(
23177 no|yes) ;; #(
23178 *)
23179
23180cat >>confdefs.h <<_ACEOF
23181#define int32_t $ac_cv_c_int32_t
23182_ACEOF
23183;;
23184esac
23185
23186ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23187case $ac_cv_c_int64_t in #(
23188 no|yes) ;; #(
23189 *)
23190
23191cat >>confdefs.h <<_ACEOF
23192#define int64_t $ac_cv_c_int64_t
23193_ACEOF
23194;;
23195esac
23196
23197
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23199$as_echo_n "checking for long long int... " >&6; }
23200if ${ac_cv_type_long_long_int+:} false; then :
23201 $as_echo_n "(cached) " >&6
23202else
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204/* end confdefs.h. */
23205
23206 /* For now, do not test the preprocessor; as of 2007 there are too many
23207 implementations with broken preprocessors. Perhaps this can
23208 be revisited in 2012. In the meantime, code should not expect
23209 #if to work with literals wider than 32 bits. */
23210 /* Test literals. */
23211 long long int ll = 9223372036854775807ll;
23212 long long int nll = -9223372036854775807LL;
23213 unsigned long long int ull = 18446744073709551615ULL;
23214 /* Test constant expressions. */
23215 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23216 ? 1 : -1)];
23217 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23218 ? 1 : -1)];
23219 int i = 63;
23220int
23221main ()
23222{
23223/* Test availability of runtime routines for shift and division. */
23224 long long int llmax = 9223372036854775807ll;
23225 unsigned long long int ullmax = 18446744073709551615ull;
23226 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23227 | (llmax / ll) | (llmax % ll)
23228 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23229 | (ullmax / ull) | (ullmax % ull));
23230 ;
23231 return 0;
23232}
23233
23234_ACEOF
23235if ac_fn_c_try_link "$LINENO"; then :
23236 if test "$cross_compiling" = yes; then :
23237 ac_cv_type_long_long_int=yes
23238else
23239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23240/* end confdefs.h. */
23241#include <limits.h>
23242 #ifndef LLONG_MAX
23243 # define HALF \
23244 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23245 # define LLONG_MAX (HALF - 1 + HALF)
23246 #endif
23247int
23248main ()
23249{
23250long long int n = 1;
23251 int i;
23252 for (i = 0; ; i++)
23253 {
23254 long long int m = n << i;
23255 if (m >> i != n)
23256 return 1;
23257 if (LLONG_MAX / 2 < m)
23258 break;
23259 }
23260 return 0;
23261 ;
23262 return 0;
23263}
23264_ACEOF
23265if ac_fn_c_try_run "$LINENO"; then :
23266 ac_cv_type_long_long_int=yes
23267else
23268 ac_cv_type_long_long_int=no
23269fi
23270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23271 conftest.$ac_objext conftest.beam conftest.$ac_ext
23272fi
23273
23274else
23275 ac_cv_type_long_long_int=no
23276fi
23277rm -f core conftest.err conftest.$ac_objext \
23278 conftest$ac_exeext conftest.$ac_ext
23279fi
23280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23281$as_echo "$ac_cv_type_long_long_int" >&6; }
23282 if test $ac_cv_type_long_long_int = yes; then
23283
23284$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23285
23286 fi
23287
23288
23289
23290 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23291if test "x$ac_cv_type_intmax_t" = xyes; then :
23292
23293$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23294
23295else
23296 test $ac_cv_type_long_long_int = yes \
23297 && ac_type='long long int' \
23298 || ac_type='long int'
23299
23300cat >>confdefs.h <<_ACEOF
23301#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023302_ACEOF
23303
23304fi
23305
23306
cristy501c8042011-05-26 17:46:28 +000023307
23308 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23309if test "x$ac_cv_type_intptr_t" = xyes; then :
23310
23311$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023312
cristy3ed852e2009-09-05 21:47:34 +000023313else
cristy501c8042011-05-26 17:46:28 +000023314 for ac_type in 'int' 'long int' 'long long int'; do
23315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316/* end confdefs.h. */
23317$ac_includes_default
23318int
23319main ()
23320{
23321static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023322test_array [0] = 0;
23323return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023324
23325 ;
23326 return 0;
23327}
23328_ACEOF
23329if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023330
23331cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023332#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023333_ACEOF
23334
cristy501c8042011-05-26 17:46:28 +000023335 ac_type=
23336fi
23337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23338 test -z "$ac_type" && break
23339 done
cristy3ed852e2009-09-05 21:47:34 +000023340fi
23341
23342
cristy3ed852e2009-09-05 21:47:34 +000023343
cristy501c8042011-05-26 17:46:28 +000023344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23345$as_echo_n "checking for long double... " >&6; }
23346if ${ac_cv_type_long_double+:} false; then :
23347 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023348else
cristy501c8042011-05-26 17:46:28 +000023349 if test "$GCC" = yes; then
23350 ac_cv_type_long_double=yes
23351 else
23352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23353/* end confdefs.h. */
23354/* The Stardent Vistra knows sizeof (long double), but does
23355 not support it. */
23356 long double foo = 0.0L;
23357int
23358main ()
23359{
23360static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23361 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023362test_array [0] = 0;
23363return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023364
cristy501c8042011-05-26 17:46:28 +000023365 ;
23366 return 0;
23367}
cristy3ed852e2009-09-05 21:47:34 +000023368_ACEOF
cristy501c8042011-05-26 17:46:28 +000023369if ac_fn_c_try_compile "$LINENO"; then :
23370 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023371else
cristy501c8042011-05-26 17:46:28 +000023372 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy501c8042011-05-26 17:46:28 +000023374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 fi
cristy3ed852e2009-09-05 21:47:34 +000023376fi
cristy501c8042011-05-26 17:46:28 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23378$as_echo "$ac_cv_type_long_double" >&6; }
23379 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023380
cristy501c8042011-05-26 17:46:28 +000023381$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023382
cristy501c8042011-05-26 17:46:28 +000023383 fi
23384
cristy3ed852e2009-09-05 21:47:34 +000023385
cristy8b350f62009-11-15 23:12:43 +000023386 { $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 +000023387$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023388if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023389 $as_echo_n "(cached) " >&6
23390else
cristy8b350f62009-11-15 23:12:43 +000023391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023392/* end confdefs.h. */
23393#include <float.h>
23394 long double const a[] =
23395 {
23396 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23397 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23398 };
23399 long double
23400 f (long double x)
23401 {
23402 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23403 + (x ? f (x) : 'c'));
23404 }
23405
23406int
23407main ()
23408{
23409static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23410 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23411 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23412 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23413 && (int) LDBL_EPSILON == 0
23414 )];
cristy14fefe52012-05-21 00:59:18 +000023415test_array [0] = 0;
23416return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023417
23418 ;
23419 return 0;
23420}
23421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023422if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023423 ac_cv_type_long_double_wider=yes
23424else
cristy8b350f62009-11-15 23:12:43 +000023425 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023426fi
cristy3ed852e2009-09-05 21:47:34 +000023427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428fi
cristy8b350f62009-11-15 23:12:43 +000023429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$ac_cv_type_long_double_wider" >&6; }
23431 if test $ac_cv_type_long_double_wider = yes; then
23432
cristy8b350f62009-11-15 23:12:43 +000023433$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023434
23435 fi
23436
23437
cristy501c8042011-05-26 17:46:28 +000023438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23439$as_echo_n "checking for long long int... " >&6; }
23440if ${ac_cv_type_long_long_int+:} false; then :
23441 $as_echo_n "(cached) " >&6
23442else
23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23444/* end confdefs.h. */
23445
23446 /* For now, do not test the preprocessor; as of 2007 there are too many
23447 implementations with broken preprocessors. Perhaps this can
23448 be revisited in 2012. In the meantime, code should not expect
23449 #if to work with literals wider than 32 bits. */
23450 /* Test literals. */
23451 long long int ll = 9223372036854775807ll;
23452 long long int nll = -9223372036854775807LL;
23453 unsigned long long int ull = 18446744073709551615ULL;
23454 /* Test constant expressions. */
23455 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23456 ? 1 : -1)];
23457 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23458 ? 1 : -1)];
23459 int i = 63;
23460int
23461main ()
23462{
23463/* Test availability of runtime routines for shift and division. */
23464 long long int llmax = 9223372036854775807ll;
23465 unsigned long long int ullmax = 18446744073709551615ull;
23466 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23467 | (llmax / ll) | (llmax % ll)
23468 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23469 | (ullmax / ull) | (ullmax % ull));
23470 ;
23471 return 0;
23472}
23473
23474_ACEOF
23475if ac_fn_c_try_link "$LINENO"; then :
23476 if test "$cross_compiling" = yes; then :
23477 ac_cv_type_long_long_int=yes
23478else
23479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23480/* end confdefs.h. */
23481#include <limits.h>
23482 #ifndef LLONG_MAX
23483 # define HALF \
23484 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23485 # define LLONG_MAX (HALF - 1 + HALF)
23486 #endif
23487int
23488main ()
23489{
23490long long int n = 1;
23491 int i;
23492 for (i = 0; ; i++)
23493 {
23494 long long int m = n << i;
23495 if (m >> i != n)
23496 return 1;
23497 if (LLONG_MAX / 2 < m)
23498 break;
23499 }
23500 return 0;
23501 ;
23502 return 0;
23503}
23504_ACEOF
23505if ac_fn_c_try_run "$LINENO"; then :
23506 ac_cv_type_long_long_int=yes
23507else
23508 ac_cv_type_long_long_int=no
23509fi
23510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23511 conftest.$ac_objext conftest.beam conftest.$ac_ext
23512fi
23513
23514else
23515 ac_cv_type_long_long_int=no
23516fi
23517rm -f core conftest.err conftest.$ac_objext \
23518 conftest$ac_exeext conftest.$ac_ext
23519fi
23520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23521$as_echo "$ac_cv_type_long_long_int" >&6; }
23522 if test $ac_cv_type_long_long_int = yes; then
23523
23524$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23525
23526 fi
23527
23528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23529$as_echo_n "checking for mbstate_t... " >&6; }
23530if ${ac_cv_type_mbstate_t+:} false; then :
23531 $as_echo_n "(cached) " >&6
23532else
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534/* end confdefs.h. */
23535$ac_includes_default
23536# include <wchar.h>
23537int
23538main ()
23539{
23540mbstate_t x; return sizeof x;
23541 ;
23542 return 0;
23543}
23544_ACEOF
23545if ac_fn_c_try_compile "$LINENO"; then :
23546 ac_cv_type_mbstate_t=yes
23547else
23548 ac_cv_type_mbstate_t=no
23549fi
23550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551fi
23552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23553$as_echo "$ac_cv_type_mbstate_t" >&6; }
23554 if test $ac_cv_type_mbstate_t = yes; then
23555
23556$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23557
23558 else
23559
23560$as_echo "#define mbstate_t int" >>confdefs.h
23561
23562 fi
23563ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23564if test "x$ac_cv_type_mode_t" = xyes; then :
23565
23566else
23567
23568cat >>confdefs.h <<_ACEOF
23569#define mode_t int
23570_ACEOF
23571
23572fi
23573
23574ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23575if test "x$ac_cv_type_off_t" = xyes; then :
23576
23577else
23578
23579cat >>confdefs.h <<_ACEOF
23580#define off_t long int
23581_ACEOF
23582
23583fi
23584
23585ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23586if test "x$ac_cv_type_pid_t" = xyes; then :
23587
23588else
23589
23590cat >>confdefs.h <<_ACEOF
23591#define pid_t int
23592_ACEOF
23593
23594fi
23595
23596ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23597if test "x$ac_cv_type_size_t" = xyes; then :
23598
23599else
23600
23601cat >>confdefs.h <<_ACEOF
23602#define size_t unsigned int
23603_ACEOF
23604
23605fi
23606
23607ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23608if test "x$ac_cv_type_ssize_t" = xyes; then :
23609
23610else
23611
23612cat >>confdefs.h <<_ACEOF
23613#define ssize_t int
23614_ACEOF
23615
23616fi
23617
23618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23619$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23620if ${ac_cv_type_uid_t+:} false; then :
23621 $as_echo_n "(cached) " >&6
23622else
23623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23624/* end confdefs.h. */
23625#include <sys/types.h>
23626
23627_ACEOF
23628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23629 $EGREP "uid_t" >/dev/null 2>&1; then :
23630 ac_cv_type_uid_t=yes
23631else
23632 ac_cv_type_uid_t=no
23633fi
23634rm -f conftest*
23635
23636fi
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23638$as_echo "$ac_cv_type_uid_t" >&6; }
23639if test $ac_cv_type_uid_t = no; then
23640
23641$as_echo "#define uid_t int" >>confdefs.h
23642
23643
23644$as_echo "#define gid_t int" >>confdefs.h
23645
23646fi
23647
23648ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23649case $ac_cv_c_uint8_t in #(
23650 no|yes) ;; #(
23651 *)
23652
23653$as_echo "#define _UINT8_T 1" >>confdefs.h
23654
23655
23656cat >>confdefs.h <<_ACEOF
23657#define uint8_t $ac_cv_c_uint8_t
23658_ACEOF
23659;;
23660 esac
23661
23662ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23663case $ac_cv_c_uint16_t in #(
23664 no|yes) ;; #(
23665 *)
23666
23667
23668cat >>confdefs.h <<_ACEOF
23669#define uint16_t $ac_cv_c_uint16_t
23670_ACEOF
23671;;
23672 esac
23673
23674ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23675case $ac_cv_c_uint32_t in #(
23676 no|yes) ;; #(
23677 *)
23678
23679$as_echo "#define _UINT32_T 1" >>confdefs.h
23680
23681
23682cat >>confdefs.h <<_ACEOF
23683#define uint32_t $ac_cv_c_uint32_t
23684_ACEOF
23685;;
23686 esac
23687
23688ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23689case $ac_cv_c_uint64_t in #(
23690 no|yes) ;; #(
23691 *)
23692
23693$as_echo "#define _UINT64_T 1" >>confdefs.h
23694
23695
23696cat >>confdefs.h <<_ACEOF
23697#define uint64_t $ac_cv_c_uint64_t
23698_ACEOF
23699;;
23700 esac
23701
23702
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23704$as_echo_n "checking for unsigned long long int... " >&6; }
23705if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23706 $as_echo_n "(cached) " >&6
23707else
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709/* end confdefs.h. */
23710
23711 /* For now, do not test the preprocessor; as of 2007 there are too many
23712 implementations with broken preprocessors. Perhaps this can
23713 be revisited in 2012. In the meantime, code should not expect
23714 #if to work with literals wider than 32 bits. */
23715 /* Test literals. */
23716 long long int ll = 9223372036854775807ll;
23717 long long int nll = -9223372036854775807LL;
23718 unsigned long long int ull = 18446744073709551615ULL;
23719 /* Test constant expressions. */
23720 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23721 ? 1 : -1)];
23722 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23723 ? 1 : -1)];
23724 int i = 63;
23725int
23726main ()
23727{
23728/* Test availability of runtime routines for shift and division. */
23729 long long int llmax = 9223372036854775807ll;
23730 unsigned long long int ullmax = 18446744073709551615ull;
23731 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23732 | (llmax / ll) | (llmax % ll)
23733 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23734 | (ullmax / ull) | (ullmax % ull));
23735 ;
23736 return 0;
23737}
23738
23739_ACEOF
23740if ac_fn_c_try_link "$LINENO"; then :
23741 ac_cv_type_unsigned_long_long_int=yes
23742else
23743 ac_cv_type_unsigned_long_long_int=no
23744fi
23745rm -f core conftest.err conftest.$ac_objext \
23746 conftest$ac_exeext conftest.$ac_ext
23747fi
23748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23749$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23750 if test $ac_cv_type_unsigned_long_long_int = yes; then
23751
23752$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23753
23754 fi
23755
23756
23757
23758 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23759if test "x$ac_cv_type_uintmax_t" = xyes; then :
23760
23761$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23762
23763else
23764 test $ac_cv_type_unsigned_long_long_int = yes \
23765 && ac_type='unsigned long long int' \
23766 || ac_type='unsigned long int'
23767
23768cat >>confdefs.h <<_ACEOF
23769#define uintmax_t $ac_type
23770_ACEOF
23771
23772fi
23773
23774
23775
23776 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23777if test "x$ac_cv_type_uintptr_t" = xyes; then :
23778
23779$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23780
23781else
23782 for ac_type in 'unsigned int' 'unsigned long int' \
23783 'unsigned long long int'; do
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h. */
23786$ac_includes_default
23787int
23788main ()
23789{
23790static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023791test_array [0] = 0;
23792return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023793
23794 ;
23795 return 0;
23796}
23797_ACEOF
23798if ac_fn_c_try_compile "$LINENO"; then :
23799
23800cat >>confdefs.h <<_ACEOF
23801#define uintptr_t $ac_type
23802_ACEOF
23803
23804 ac_type=
23805fi
23806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807 test -z "$ac_type" && break
23808 done
23809fi
23810
23811
23812
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23814$as_echo_n "checking for unsigned long long int... " >&6; }
23815if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23816 $as_echo_n "(cached) " >&6
23817else
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819/* end confdefs.h. */
23820
23821 /* For now, do not test the preprocessor; as of 2007 there are too many
23822 implementations with broken preprocessors. Perhaps this can
23823 be revisited in 2012. In the meantime, code should not expect
23824 #if to work with literals wider than 32 bits. */
23825 /* Test literals. */
23826 long long int ll = 9223372036854775807ll;
23827 long long int nll = -9223372036854775807LL;
23828 unsigned long long int ull = 18446744073709551615ULL;
23829 /* Test constant expressions. */
23830 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23831 ? 1 : -1)];
23832 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23833 ? 1 : -1)];
23834 int i = 63;
23835int
23836main ()
23837{
23838/* Test availability of runtime routines for shift and division. */
23839 long long int llmax = 9223372036854775807ll;
23840 unsigned long long int ullmax = 18446744073709551615ull;
23841 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23842 | (llmax / ll) | (llmax % ll)
23843 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23844 | (ullmax / ull) | (ullmax % ull));
23845 ;
23846 return 0;
23847}
23848
23849_ACEOF
23850if ac_fn_c_try_link "$LINENO"; then :
23851 ac_cv_type_unsigned_long_long_int=yes
23852else
23853 ac_cv_type_unsigned_long_long_int=no
23854fi
23855rm -f core conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
23857fi
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23859$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23860 if test $ac_cv_type_unsigned_long_long_int = yes; then
23861
23862$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23863
23864 fi
23865
23866
cristy3ed852e2009-09-05 21:47:34 +000023867# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23868# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023870$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023871if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023872 $as_echo_n "(cached) " >&6
23873else
cristy8b350f62009-11-15 23:12:43 +000023874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023875/* end confdefs.h. */
23876$ac_includes_default
23877int
23878main ()
23879{
23880static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023881test_array [0] = 0;
23882return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023883
23884 ;
23885 return 0;
23886}
23887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023888if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023889 ac_cv_c_char_unsigned=no
23890else
cristy8b350f62009-11-15 23:12:43 +000023891 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023892fi
cristy3ed852e2009-09-05 21:47:34 +000023893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894fi
cristy8b350f62009-11-15 23:12:43 +000023895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023896$as_echo "$ac_cv_c_char_unsigned" >&6; }
23897if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023898 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023899
23900fi
23901
23902
23903# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23904# The cast to long int works around a bug in the HP C Compiler
23905# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23906# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23907# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023909$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023910if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023911 $as_echo_n "(cached) " >&6
23912else
cristy8b350f62009-11-15 23:12:43 +000023913 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 +000023914
cristy3ed852e2009-09-05 21:47:34 +000023915else
cristy8b350f62009-11-15 23:12:43 +000023916 if test "$ac_cv_type_signed_short" = yes; then
23917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023919as_fn_error 77 "cannot compute sizeof (signed short)
23920See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023921 else
23922 ac_cv_sizeof_signed_short=0
23923 fi
23924fi
cristy8b350f62009-11-15 23:12:43 +000023925
cristy3ed852e2009-09-05 21:47:34 +000023926fi
cristy8b350f62009-11-15 23:12:43 +000023927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023928$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23929
23930
23931
23932cat >>confdefs.h <<_ACEOF
23933#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23934_ACEOF
23935
23936
23937
23938# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23939# The cast to long int works around a bug in the HP C Compiler
23940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23942# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023944$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023945if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023946 $as_echo_n "(cached) " >&6
23947else
cristy8b350f62009-11-15 23:12:43 +000023948 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 +000023949
cristy3ed852e2009-09-05 21:47:34 +000023950else
cristy8b350f62009-11-15 23:12:43 +000023951 if test "$ac_cv_type_unsigned_short" = yes; then
23952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023954as_fn_error 77 "cannot compute sizeof (unsigned short)
23955See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023956 else
23957 ac_cv_sizeof_unsigned_short=0
23958 fi
23959fi
cristy8b350f62009-11-15 23:12:43 +000023960
cristy3ed852e2009-09-05 21:47:34 +000023961fi
cristy8b350f62009-11-15 23:12:43 +000023962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023963$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23964
23965
23966
23967cat >>confdefs.h <<_ACEOF
23968#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23969_ACEOF
23970
23971
23972
23973# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23974# The cast to long int works around a bug in the HP C Compiler
23975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23977# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023979$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023980if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023981 $as_echo_n "(cached) " >&6
23982else
cristy8b350f62009-11-15 23:12:43 +000023983 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 +000023984
cristy3ed852e2009-09-05 21:47:34 +000023985else
cristy8b350f62009-11-15 23:12:43 +000023986 if test "$ac_cv_type_signed_int" = yes; then
23987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023989as_fn_error 77 "cannot compute sizeof (signed int)
23990See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023991 else
23992 ac_cv_sizeof_signed_int=0
23993 fi
23994fi
cristy8b350f62009-11-15 23:12:43 +000023995
cristy3ed852e2009-09-05 21:47:34 +000023996fi
cristy8b350f62009-11-15 23:12:43 +000023997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023998$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23999
24000
24001
24002cat >>confdefs.h <<_ACEOF
24003#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24004_ACEOF
24005
24006
24007
24008# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24009# The cast to long int works around a bug in the HP C Compiler
24010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24012# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024014$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024015if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024016 $as_echo_n "(cached) " >&6
24017else
cristy8b350f62009-11-15 23:12:43 +000024018 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 +000024019
cristy3ed852e2009-09-05 21:47:34 +000024020else
cristy8b350f62009-11-15 23:12:43 +000024021 if test "$ac_cv_type_unsigned_int" = yes; then
24022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024024as_fn_error 77 "cannot compute sizeof (unsigned int)
24025See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024026 else
24027 ac_cv_sizeof_unsigned_int=0
24028 fi
24029fi
cristy8b350f62009-11-15 23:12:43 +000024030
cristy3ed852e2009-09-05 21:47:34 +000024031fi
cristy8b350f62009-11-15 23:12:43 +000024032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024033$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24034
24035
24036
24037cat >>confdefs.h <<_ACEOF
24038#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24039_ACEOF
24040
24041
24042
24043# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24044# The cast to long int works around a bug in the HP C Compiler
24045# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24046# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24047# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024049$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024050if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024051 $as_echo_n "(cached) " >&6
24052else
cristy8b350f62009-11-15 23:12:43 +000024053 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 +000024054
cristy3ed852e2009-09-05 21:47:34 +000024055else
cristy8b350f62009-11-15 23:12:43 +000024056 if test "$ac_cv_type_signed_long" = yes; then
24057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024059as_fn_error 77 "cannot compute sizeof (signed long)
24060See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024061 else
24062 ac_cv_sizeof_signed_long=0
24063 fi
24064fi
cristy8b350f62009-11-15 23:12:43 +000024065
cristy3ed852e2009-09-05 21:47:34 +000024066fi
cristy8b350f62009-11-15 23:12:43 +000024067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024068$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24069
24070
24071
24072cat >>confdefs.h <<_ACEOF
24073#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24074_ACEOF
24075
24076
24077
24078# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24079# The cast to long int works around a bug in the HP C Compiler
24080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24082# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024084$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024085if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 $as_echo_n "(cached) " >&6
24087else
cristy8b350f62009-11-15 23:12:43 +000024088 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 +000024089
cristy3ed852e2009-09-05 21:47:34 +000024090else
cristy8b350f62009-11-15 23:12:43 +000024091 if test "$ac_cv_type_unsigned_long" = yes; then
24092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024094as_fn_error 77 "cannot compute sizeof (unsigned long)
24095See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024096 else
24097 ac_cv_sizeof_unsigned_long=0
24098 fi
24099fi
cristy8b350f62009-11-15 23:12:43 +000024100
cristy3ed852e2009-09-05 21:47:34 +000024101fi
cristy8b350f62009-11-15 23:12:43 +000024102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24104
24105
24106
24107cat >>confdefs.h <<_ACEOF
24108#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24109_ACEOF
24110
24111
24112
24113# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24114# 'signed long long' is not supported then the value defined is zero.
24115# The cast to long int works around a bug in the HP C Compiler
24116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24118# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024120$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024121if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024122 $as_echo_n "(cached) " >&6
24123else
cristy8b350f62009-11-15 23:12:43 +000024124 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 +000024125
cristy3ed852e2009-09-05 21:47:34 +000024126else
cristy8b350f62009-11-15 23:12:43 +000024127 if test "$ac_cv_type_signed_long_long" = yes; then
24128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024130as_fn_error 77 "cannot compute sizeof (signed long long)
24131See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024132 else
24133 ac_cv_sizeof_signed_long_long=0
24134 fi
24135fi
cristy8b350f62009-11-15 23:12:43 +000024136
cristy3ed852e2009-09-05 21:47:34 +000024137fi
cristy8b350f62009-11-15 23:12:43 +000024138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24140
24141
24142
24143cat >>confdefs.h <<_ACEOF
24144#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24145_ACEOF
24146
24147
24148
24149# Obtain size of a 'unsigned long long' and define as
24150# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24151# supported then the value defined is zero.
24152# The cast to long int works around a bug in the HP C Compiler
24153# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24154# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24155# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024158if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 $as_echo_n "(cached) " >&6
24160else
cristy8b350f62009-11-15 23:12:43 +000024161 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 +000024162
cristy3ed852e2009-09-05 21:47:34 +000024163else
cristy8b350f62009-11-15 23:12:43 +000024164 if test "$ac_cv_type_unsigned_long_long" = yes; then
24165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024167as_fn_error 77 "cannot compute sizeof (unsigned long long)
24168See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024169 else
24170 ac_cv_sizeof_unsigned_long_long=0
24171 fi
24172fi
cristy8b350f62009-11-15 23:12:43 +000024173
cristy3ed852e2009-09-05 21:47:34 +000024174fi
cristy8b350f62009-11-15 23:12:43 +000024175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024176$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24177
24178
24179
24180cat >>confdefs.h <<_ACEOF
24181#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24182_ACEOF
24183
24184
24185
24186# Obtain size of off_t and define as SIZEOF_OFF_T
24187# The cast to long int works around a bug in the HP C Compiler
24188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24190# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024193if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024194 $as_echo_n "(cached) " >&6
24195else
cristy8b350f62009-11-15 23:12:43 +000024196 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 +000024197
cristy3ed852e2009-09-05 21:47:34 +000024198else
cristy8b350f62009-11-15 23:12:43 +000024199 if test "$ac_cv_type_off_t" = yes; then
24200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024202as_fn_error 77 "cannot compute sizeof (off_t)
24203See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024204 else
24205 ac_cv_sizeof_off_t=0
24206 fi
24207fi
cristy8b350f62009-11-15 23:12:43 +000024208
cristy3ed852e2009-09-05 21:47:34 +000024209fi
cristy8b350f62009-11-15 23:12:43 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024211$as_echo "$ac_cv_sizeof_off_t" >&6; }
24212
24213
24214
24215cat >>confdefs.h <<_ACEOF
24216#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24217_ACEOF
24218
24219
24220
24221# Obtain size of size_t and define as SIZEOF_SIZE_T
24222# The cast to long int works around a bug in the HP C Compiler
24223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24225# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024227$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024228if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024229 $as_echo_n "(cached) " >&6
24230else
cristy8b350f62009-11-15 23:12:43 +000024231 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 +000024232
cristy3ed852e2009-09-05 21:47:34 +000024233else
cristy8b350f62009-11-15 23:12:43 +000024234 if test "$ac_cv_type_size_t" = yes; then
24235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024237as_fn_error 77 "cannot compute sizeof (size_t)
24238See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024239 else
24240 ac_cv_sizeof_size_t=0
24241 fi
24242fi
cristy8b350f62009-11-15 23:12:43 +000024243
cristy3ed852e2009-09-05 21:47:34 +000024244fi
cristy8b350f62009-11-15 23:12:43 +000024245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024246$as_echo "$ac_cv_sizeof_size_t" >&6; }
24247
24248
24249
24250cat >>confdefs.h <<_ACEOF
24251#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24252_ACEOF
24253
24254
24255
cristy330e9352010-06-01 18:42:49 +000024256# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24257# The cast to long int works around a bug in the HP C Compiler
24258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24260# This bug is HP SR number 8606223364.
24261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24262$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024263if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024264 $as_echo_n "(cached) " >&6
24265else
24266 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24267
24268else
24269 if test "$ac_cv_type_ssize_t" = yes; then
24270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024272as_fn_error 77 "cannot compute sizeof (ssize_t)
24273See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024274 else
24275 ac_cv_sizeof_ssize_t=0
24276 fi
24277fi
24278
24279fi
24280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24281$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24282
24283
24284
24285cat >>confdefs.h <<_ACEOF
24286#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24287_ACEOF
24288
24289
24290
cristy3ed852e2009-09-05 21:47:34 +000024291# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24292# The cast to long int works around a bug in the HP C Compiler
24293# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24294# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24295# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024297$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024298if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024299 $as_echo_n "(cached) " >&6
24300else
cristy8b350f62009-11-15 23:12:43 +000024301 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 +000024302
cristy3ed852e2009-09-05 21:47:34 +000024303else
cristy8b350f62009-11-15 23:12:43 +000024304 if test "$ac_cv_type_unsigned_intp" = yes; then
24305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024307as_fn_error 77 "cannot compute sizeof (unsigned int*)
24308See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024309 else
24310 ac_cv_sizeof_unsigned_intp=0
24311 fi
24312fi
cristy8b350f62009-11-15 23:12:43 +000024313
cristy3ed852e2009-09-05 21:47:34 +000024314fi
cristy8b350f62009-11-15 23:12:43 +000024315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24317
24318
24319
24320cat >>confdefs.h <<_ACEOF
24321#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24322_ACEOF
24323
24324
24325
24326#
24327# Compute sized types for current CPU and compiler options.
24328#
24329
cristy8b350f62009-11-15 23:12:43 +000024330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024331$as_echo_n "checking for signed 8-bit type... " >&6; }
24332INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24334$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024335
24336
cristy8b350f62009-11-15 23:12:43 +000024337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024338$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24339UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24341$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024342
24343
cristy8b350f62009-11-15 23:12:43 +000024344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024345$as_echo_n "checking for signed 16-bit type... " >&6; }
24346INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024347{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24348$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024349
24350
cristy8b350f62009-11-15 23:12:43 +000024351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024352$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24353UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024354{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24355$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024356
24357
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo_n "checking for signed 32-bit type... " >&6; }
24360INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024361INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024362if test $ac_cv_sizeof_signed_int -eq 4; then
24363 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024364 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024365elif test $ac_cv_sizeof_signed_long -eq 4; then
24366 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024367 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024368fi
cristy09b53e12011-10-14 12:47:22 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24370$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024371
24372
cristy6d5e20f2011-04-25 13:48:54 +000024373
cristy8b350f62009-11-15 23:12:43 +000024374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24376UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024377UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024378if test $ac_cv_sizeof_unsigned_int -eq 4; then
24379 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024380 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024381elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24382 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024383 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024384fi
cristy09b53e12011-10-14 12:47:22 +000024385{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24386$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024387
24388
cristy6d5e20f2011-04-25 13:48:54 +000024389
cristy8b350f62009-11-15 23:12:43 +000024390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo_n "checking for signed 64-bit type... " >&6; }
24392INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024393INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024394if test $ac_cv_sizeof_signed_long -eq 8; then
24395 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024396 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024397elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24398 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024399 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024400fi
cristy3a99dcf2011-12-17 01:29:40 +000024401case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024402 mingw* )
24403 INT64_F='"I64"'
24404 ;;
24405esac
cristy09b53e12011-10-14 12:47:22 +000024406{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24407$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024408
24409
cristy6d5e20f2011-04-25 13:48:54 +000024410
cristy8b350f62009-11-15 23:12:43 +000024411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024412$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24413UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024414UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024415if test $ac_cv_sizeof_unsigned_long -eq 8; then
24416 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024417 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024418elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24419 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024420 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024421fi
cristy3a99dcf2011-12-17 01:29:40 +000024422case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024423 mingw* )
24424 UINT64_F='"I64"'
24425 ;;
24426esac
cristy09b53e12011-10-14 12:47:22 +000024427{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24428$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024429
24430
cristy6d5e20f2011-04-25 13:48:54 +000024431
cristy8b350f62009-11-15 23:12:43 +000024432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024433$as_echo_n "checking for unsigned maximum type... " >&6; }
24434UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024435UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024436if test "$UINT64_T" != 'none'; then
24437 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024438 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024439elif test "$UINT32_T" != 'none'; then
24440 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024441 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024442fi
cristy09b53e12011-10-14 12:47:22 +000024443{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24444$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024445
24446
cristy6d5e20f2011-04-25 13:48:54 +000024447
cristy8b350f62009-11-15 23:12:43 +000024448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024449$as_echo_n "checking for pointer difference type... " >&6; }
24450UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024451UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024452if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24453 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024454 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024455elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24456 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024457 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024458fi
cristy09b53e12011-10-14 12:47:22 +000024459{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24460$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024461
24462
cristy6d5e20f2011-04-25 13:48:54 +000024463
cristy8b350f62009-11-15 23:12:43 +000024464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024465$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024467/* end confdefs.h. */
24468
24469int
24470main ()
24471{
24472{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24473 ;
24474 return 0;
24475}
24476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024477if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024478 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24479$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024480else
cristy09b53e12011-10-14 12:47:22 +000024481 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24482$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024486/* end confdefs.h. */
24487
24488int
24489main ()
24490{
24491{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24492 ;
24493 return 0;
24494}
24495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024496if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024497 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24498$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024499
cristy8b350f62009-11-15 23:12:43 +000024500$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024501
24502else
cristy09b53e12011-10-14 12:47:22 +000024503 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24504$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024505
cristy8b350f62009-11-15 23:12:43 +000024506$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024507
24508fi
cristy3ed852e2009-09-05 21:47:34 +000024509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510fi
cristy3ed852e2009-09-05 21:47:34 +000024511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24512
24513########
24514#
24515# Check for functions
24516#
24517########
cristy73bd4a52010-10-05 11:24:23 +000024518for ac_header in stdlib.h unistd.h
24519do :
24520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24521ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024523 cat >>confdefs.h <<_ACEOF
24524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24525_ACEOF
24526
24527fi
24528
24529done
24530
24531for ac_func in getpagesize
24532do :
24533 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024534if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024535 cat >>confdefs.h <<_ACEOF
24536#define HAVE_GETPAGESIZE 1
24537_ACEOF
24538
24539fi
24540done
24541
24542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24543$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024544if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024545 $as_echo_n "(cached) " >&6
24546else
24547 if test "$cross_compiling" = yes; then :
24548 magick_cv_func_mmap_fileio=no
24549else
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551/* end confdefs.h. */
24552$ac_includes_default
24553/* malloc might have been renamed as rpl_malloc. */
24554#undef malloc
24555
24556/*
24557 This test is derived from GNU Autoconf's similar macro.
24558 The purpose of this test is to verify that files may be memory
24559 mapped, and that memory mapping and file I/O are coherent.
24560
24561 The test creates a test file, memory maps the file, updates
24562 the file using the memory map, and then reads the file using
24563 file I/O to verify that the file contains the updates.
24564*/
24565
24566#include <fcntl.h>
24567#include <sys/mman.h>
24568
24569#if !STDC_HEADERS && !HAVE_STDLIB_H
24570char *malloc ();
24571#endif
24572
24573/* This mess was copied from the GNU getpagesize.h. */
24574#if !HAVE_GETPAGESIZE
24575/* Assume that all systems that can run configure have sys/param.h. */
24576# if !HAVE_SYS_PARAM_H
24577# define HAVE_SYS_PARAM_H 1
24578# endif
24579
24580# ifdef _SC_PAGESIZE
24581# define getpagesize() sysconf(_SC_PAGESIZE)
24582# else /* no _SC_PAGESIZE */
24583# if HAVE_SYS_PARAM_H
24584# include <sys/param.h>
24585# ifdef EXEC_PAGESIZE
24586# define getpagesize() EXEC_PAGESIZE
24587# else /* no EXEC_PAGESIZE */
24588# ifdef NBPG
24589# define getpagesize() NBPG * CLSIZE
24590# ifndef CLSIZE
24591# define CLSIZE 1
24592# endif /* no CLSIZE */
24593# else /* no NBPG */
24594# ifdef NBPC
24595# define getpagesize() NBPC
24596# else /* no NBPC */
24597# ifdef PAGESIZE
24598# define getpagesize() PAGESIZE
24599# endif /* PAGESIZE */
24600# endif /* no NBPC */
24601# endif /* no NBPG */
24602# endif /* no EXEC_PAGESIZE */
24603# else /* no HAVE_SYS_PARAM_H */
24604# define getpagesize() 8192 /* punt totally */
24605# endif /* no HAVE_SYS_PARAM_H */
24606# endif /* no _SC_PAGESIZE */
24607
24608#endif /* no HAVE_GETPAGESIZE */
24609
24610int
24611main ()
24612{
24613 char *data, *data2, *data3;
24614 int i, pagesize;
24615 int fd;
24616
24617 pagesize = getpagesize ();
24618
24619 /* First, make a file with some known garbage in it. */
24620 data = (char *) malloc (pagesize);
24621 if (!data)
24622 exit (1);
24623 for (i = 0; i < pagesize; ++i)
24624 *(data + i) = rand ();
24625 umask (0);
24626 fd = creat ("conftest.mmap", 0600);
24627 if (fd < 0)
24628 exit (1);
24629 if (write (fd, data, pagesize) != pagesize)
24630 exit (1);
24631 close (fd);
24632
24633 /* Mmap the file as read/write/shared and verify that we see the
24634 same garbage. */
24635 fd = open ("conftest.mmap", O_RDWR);
24636 if (fd < 0)
24637 exit (1);
24638 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24639 if (data2 == 0)
24640 exit (1);
24641 for (i = 0; i < pagesize; ++i)
24642 if (*(data + i) != *(data2 + i))
24643 exit (1);
24644
24645 /* Finally, make sure that changes to the mapped area
24646 percolate back to the file as seen by read(). */
24647 for (i = 0; i < pagesize; ++i)
24648 *(data2 + i) = *(data2 + i) + 1;
24649 data3 = (char *) malloc (pagesize);
24650 if (!data3)
24651 exit (1);
24652 if (read (fd, data3, pagesize) != pagesize)
24653 exit (1);
24654 for (i = 0; i < pagesize; ++i)
24655 if (*(data2 + i) != *(data3 + i))
24656 exit (1);
24657 close (fd);
24658 exit (0);
24659}
24660_ACEOF
24661if ac_fn_c_try_run "$LINENO"; then :
24662 magick_cv_func_mmap_fileio=yes
24663else
24664 magick_cv_func_mmap_fileio=no
24665fi
24666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24667 conftest.$ac_objext conftest.beam conftest.$ac_ext
24668fi
24669
24670fi
24671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24672$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24673if test $magick_cv_func_mmap_fileio = yes; then
24674
24675$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24676
24677fi
24678rm -f conftest.mmap
24679
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024682if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 $as_echo_n "(cached) " >&6
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 ac_cv_func_closedir_void=yes
24687else
cristy8b350f62009-11-15 23:12:43 +000024688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689/* end confdefs.h. */
24690$ac_includes_default
24691#include <$ac_header_dirent>
24692#ifndef __cplusplus
24693int closedir ();
24694#endif
24695
24696int
24697main ()
24698{
24699return closedir (opendir (".")) != 0;
24700 ;
24701 return 0;
24702}
24703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024704if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024705 ac_cv_func_closedir_void=no
24706else
cristy8b350f62009-11-15 23:12:43 +000024707 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024708fi
cristy8b350f62009-11-15 23:12:43 +000024709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24710 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024711fi
24712
cristy3ed852e2009-09-05 21:47:34 +000024713fi
cristy8b350f62009-11-15 23:12:43 +000024714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024715$as_echo "$ac_cv_func_closedir_void" >&6; }
24716if test $ac_cv_func_closedir_void = yes; then
24717
cristy8b350f62009-11-15 23:12:43 +000024718$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024719
24720fi
24721
cristycd4c5312009-11-22 01:19:08 +000024722
24723
24724
24725 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024726do :
24727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024728ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24729"
cristy98dddb52010-11-04 00:30:15 +000024730if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 cat >>confdefs.h <<_ACEOF
24732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24733_ACEOF
24734
24735fi
24736
24737done
24738
cristycd4c5312009-11-22 01:19:08 +000024739
24740
24741
24742
24743
24744
24745
cristy3ed852e2009-09-05 21:47:34 +000024746for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024747do :
24748 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024749if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024750 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024751#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024752_ACEOF
24753
24754fi
24755done
24756
cristy8b350f62009-11-15 23:12:43 +000024757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024759if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 $as_echo_n "(cached) " >&6
24761else
cristy8b350f62009-11-15 23:12:43 +000024762 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024763 ac_cv_func_mmap_fixed_mapped=no
24764else
cristy8b350f62009-11-15 23:12:43 +000024765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024766/* end confdefs.h. */
24767$ac_includes_default
24768/* malloc might have been renamed as rpl_malloc. */
24769#undef malloc
24770
24771/* Thanks to Mike Haertel and Jim Avera for this test.
24772 Here is a matrix of mmap possibilities:
24773 mmap private not fixed
24774 mmap private fixed at somewhere currently unmapped
24775 mmap private fixed at somewhere already mapped
24776 mmap shared not fixed
24777 mmap shared fixed at somewhere currently unmapped
24778 mmap shared fixed at somewhere already mapped
24779 For private mappings, we should verify that changes cannot be read()
24780 back from the file, nor mmap's back from the file at a different
24781 address. (There have been systems where private was not correctly
24782 implemented like the infamous i386 svr4.0, and systems where the
24783 VM page cache was not coherent with the file system buffer cache
24784 like early versions of FreeBSD and possibly contemporary NetBSD.)
24785 For shared mappings, we should conversely verify that changes get
24786 propagated back to all the places they're supposed to be.
24787
24788 Grep wants private fixed already mapped.
24789 The main things grep needs to know about mmap are:
24790 * does it exist and is it safe to write into the mmap'd area
24791 * how to use it (BSD variants) */
24792
24793#include <fcntl.h>
24794#include <sys/mman.h>
24795
24796#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24797char *malloc ();
24798#endif
24799
24800/* This mess was copied from the GNU getpagesize.h. */
24801#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024802# ifdef _SC_PAGESIZE
24803# define getpagesize() sysconf(_SC_PAGESIZE)
24804# else /* no _SC_PAGESIZE */
24805# ifdef HAVE_SYS_PARAM_H
24806# include <sys/param.h>
24807# ifdef EXEC_PAGESIZE
24808# define getpagesize() EXEC_PAGESIZE
24809# else /* no EXEC_PAGESIZE */
24810# ifdef NBPG
24811# define getpagesize() NBPG * CLSIZE
24812# ifndef CLSIZE
24813# define CLSIZE 1
24814# endif /* no CLSIZE */
24815# else /* no NBPG */
24816# ifdef NBPC
24817# define getpagesize() NBPC
24818# else /* no NBPC */
24819# ifdef PAGESIZE
24820# define getpagesize() PAGESIZE
24821# endif /* PAGESIZE */
24822# endif /* no NBPC */
24823# endif /* no NBPG */
24824# endif /* no EXEC_PAGESIZE */
24825# else /* no HAVE_SYS_PARAM_H */
24826# define getpagesize() 8192 /* punt totally */
24827# endif /* no HAVE_SYS_PARAM_H */
24828# endif /* no _SC_PAGESIZE */
24829
24830#endif /* no HAVE_GETPAGESIZE */
24831
24832int
24833main ()
24834{
24835 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024836 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024837 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024838 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024839
24840 pagesize = getpagesize ();
24841
24842 /* First, make a file with some known garbage in it. */
24843 data = (char *) malloc (pagesize);
24844 if (!data)
24845 return 1;
24846 for (i = 0; i < pagesize; ++i)
24847 *(data + i) = rand ();
24848 umask (0);
24849 fd = creat ("conftest.mmap", 0600);
24850 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024851 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024852 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024853 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024854 close (fd);
24855
cristycd4c5312009-11-22 01:19:08 +000024856 /* Next, check that the tail of a page is zero-filled. File must have
24857 non-zero length, otherwise we risk SIGBUS for entire page. */
24858 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24859 if (fd2 < 0)
24860 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024861 cdata2 = "";
24862 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024863 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024864 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024865 if (data2 == MAP_FAILED)
24866 return 6;
24867 for (i = 0; i < pagesize; ++i)
24868 if (*(data2 + i))
24869 return 7;
24870 close (fd2);
24871 if (munmap (data2, pagesize))
24872 return 8;
24873
cristy3ed852e2009-09-05 21:47:34 +000024874 /* Next, try to mmap the file at a fixed address which already has
24875 something else allocated at it. If we can, also make sure that
24876 we see the same garbage. */
24877 fd = open ("conftest.mmap", O_RDWR);
24878 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024879 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024880 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24881 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024882 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024883 for (i = 0; i < pagesize; ++i)
24884 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024885 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024886
24887 /* Finally, make sure that changes to the mapped area do not
24888 percolate back to the file as seen by read(). (This is a bug on
24889 some variants of i386 svr4.0.) */
24890 for (i = 0; i < pagesize; ++i)
24891 *(data2 + i) = *(data2 + i) + 1;
24892 data3 = (char *) malloc (pagesize);
24893 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024894 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024895 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024896 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024897 for (i = 0; i < pagesize; ++i)
24898 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024899 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024900 close (fd);
24901 return 0;
24902}
24903_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024904if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024905 ac_cv_func_mmap_fixed_mapped=yes
24906else
cristy8b350f62009-11-15 23:12:43 +000024907 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024908fi
cristy8b350f62009-11-15 23:12:43 +000024909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24910 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024911fi
24912
cristy3ed852e2009-09-05 21:47:34 +000024913fi
cristy8b350f62009-11-15 23:12:43 +000024914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024915$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24916if test $ac_cv_func_mmap_fixed_mapped = yes; then
24917
cristy8b350f62009-11-15 23:12:43 +000024918$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024919
24920fi
cristycd4c5312009-11-22 01:19:08 +000024921rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024922
cristy3ed852e2009-09-05 21:47:34 +000024923for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024924do :
24925 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024926if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024927 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024928#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024929_ACEOF
24930
24931fi
24932
24933done
24934
cristy3ed852e2009-09-05 21:47:34 +000024935for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024936do :
24937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024940 cat >>confdefs.h <<_ACEOF
24941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24942_ACEOF
24943
24944fi
24945done
24946
24947if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024949$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024950if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024951 $as_echo_n "(cached) " >&6
24952else
cristy8b350f62009-11-15 23:12:43 +000024953 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024954 ac_cv_func_fork_works=cross
24955else
cristy8b350f62009-11-15 23:12:43 +000024956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024957/* end confdefs.h. */
24958$ac_includes_default
24959int
24960main ()
24961{
24962
24963 /* By Ruediger Kuhlmann. */
24964 return fork () < 0;
24965
24966 ;
24967 return 0;
24968}
24969_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024970if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 ac_cv_func_fork_works=yes
24972else
cristy8b350f62009-11-15 23:12:43 +000024973 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024974fi
cristy8b350f62009-11-15 23:12:43 +000024975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24976 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024977fi
24978
cristy3ed852e2009-09-05 21:47:34 +000024979fi
cristy8b350f62009-11-15 23:12:43 +000024980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024981$as_echo "$ac_cv_func_fork_works" >&6; }
24982
24983else
24984 ac_cv_func_fork_works=$ac_cv_func_fork
24985fi
24986if test "x$ac_cv_func_fork_works" = xcross; then
24987 case $host in
24988 *-*-amigaos* | *-*-msdosdjgpp*)
24989 # Override, as these systems have only a dummy fork() stub
24990 ac_cv_func_fork_works=no
24991 ;;
24992 *)
24993 ac_cv_func_fork_works=yes
24994 ;;
24995 esac
cristy8b350f62009-11-15 23:12:43 +000024996 { $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 +000024997$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24998fi
24999ac_cv_func_vfork_works=$ac_cv_func_vfork
25000if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025002$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025003if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025004 $as_echo_n "(cached) " >&6
25005else
cristy8b350f62009-11-15 23:12:43 +000025006 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025007 ac_cv_func_vfork_works=cross
25008else
cristy8b350f62009-11-15 23:12:43 +000025009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025010/* end confdefs.h. */
25011/* Thanks to Paul Eggert for this test. */
25012$ac_includes_default
25013#include <sys/wait.h>
25014#ifdef HAVE_VFORK_H
25015# include <vfork.h>
25016#endif
25017/* On some sparc systems, changes by the child to local and incoming
25018 argument registers are propagated back to the parent. The compiler
25019 is told about this with #include <vfork.h>, but some compilers
25020 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25021 static variable whose address is put into a register that is
25022 clobbered by the vfork. */
25023static void
25024#ifdef __cplusplus
25025sparc_address_test (int arg)
25026# else
25027sparc_address_test (arg) int arg;
25028#endif
25029{
25030 static pid_t child;
25031 if (!child) {
25032 child = vfork ();
25033 if (child < 0) {
25034 perror ("vfork");
25035 _exit(2);
25036 }
25037 if (!child) {
25038 arg = getpid();
25039 write(-1, "", 0);
25040 _exit (arg);
25041 }
25042 }
25043}
25044
25045int
25046main ()
25047{
25048 pid_t parent = getpid ();
25049 pid_t child;
25050
25051 sparc_address_test (0);
25052
25053 child = vfork ();
25054
25055 if (child == 0) {
25056 /* Here is another test for sparc vfork register problems. This
25057 test uses lots of local variables, at least as many local
25058 variables as main has allocated so far including compiler
25059 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25060 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25061 reuse the register of parent for one of the local variables,
25062 since it will think that parent can't possibly be used any more
25063 in this routine. Assigning to the local variable will thus
25064 munge parent in the parent process. */
25065 pid_t
25066 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25067 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25068 /* Convince the compiler that p..p7 are live; otherwise, it might
25069 use the same hardware register for all 8 local variables. */
25070 if (p != p1 || p != p2 || p != p3 || p != p4
25071 || p != p5 || p != p6 || p != p7)
25072 _exit(1);
25073
25074 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25075 from child file descriptors. If the child closes a descriptor
25076 before it execs or exits, this munges the parent's descriptor
25077 as well. Test for this by closing stdout in the child. */
25078 _exit(close(fileno(stdout)) != 0);
25079 } else {
25080 int status;
25081 struct stat st;
25082
25083 while (wait(&status) != child)
25084 ;
25085 return (
25086 /* Was there some problem with vforking? */
25087 child < 0
25088
25089 /* Did the child fail? (This shouldn't happen.) */
25090 || status
25091
25092 /* Did the vfork/compiler bug occur? */
25093 || parent != getpid()
25094
25095 /* Did the file descriptor bug occur? */
25096 || fstat(fileno(stdout), &st) != 0
25097 );
25098 }
25099}
25100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025101if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025102 ac_cv_func_vfork_works=yes
25103else
cristy8b350f62009-11-15 23:12:43 +000025104 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025105fi
cristy8b350f62009-11-15 23:12:43 +000025106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25107 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025108fi
25109
cristy3ed852e2009-09-05 21:47:34 +000025110fi
cristy8b350f62009-11-15 23:12:43 +000025111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "$ac_cv_func_vfork_works" >&6; }
25113
25114fi;
25115if test "x$ac_cv_func_fork_works" = xcross; then
25116 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025117 { $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 +000025118$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25119fi
25120
25121if test "x$ac_cv_func_vfork_works" = xyes; then
25122
cristy8b350f62009-11-15 23:12:43 +000025123$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025124
25125else
25126
cristy8b350f62009-11-15 23:12:43 +000025127$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025128
25129fi
25130if test "x$ac_cv_func_fork_works" = xyes; then
25131
cristy8b350f62009-11-15 23:12:43 +000025132$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025133
25134fi
25135
cristy8b350f62009-11-15 23:12:43 +000025136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025137$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025138if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025139 $as_echo_n "(cached) " >&6
25140else
cristy8b350f62009-11-15 23:12:43 +000025141 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025142 ac_cv_func_memcmp_working=no
25143else
cristy8b350f62009-11-15 23:12:43 +000025144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025145/* end confdefs.h. */
25146$ac_includes_default
25147int
25148main ()
25149{
25150
25151 /* Some versions of memcmp are not 8-bit clean. */
25152 char c0 = '\100', c1 = '\200', c2 = '\201';
25153 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25154 return 1;
25155
25156 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25157 or more and with at least one buffer not starting on a 4-byte boundary.
25158 William Lewis provided this test program. */
25159 {
25160 char foo[21];
25161 char bar[21];
25162 int i;
25163 for (i = 0; i < 4; i++)
25164 {
25165 char *a = foo + i;
25166 char *b = bar + i;
25167 strcpy (a, "--------01111111");
25168 strcpy (b, "--------10000000");
25169 if (memcmp (a, b, 16) >= 0)
25170 return 1;
25171 }
25172 return 0;
25173 }
25174
25175 ;
25176 return 0;
25177}
25178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025179if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025180 ac_cv_func_memcmp_working=yes
25181else
cristy8b350f62009-11-15 23:12:43 +000025182 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025183fi
cristy8b350f62009-11-15 23:12:43 +000025184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25185 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025186fi
25187
cristy3ed852e2009-09-05 21:47:34 +000025188fi
cristy8b350f62009-11-15 23:12:43 +000025189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025190$as_echo "$ac_cv_func_memcmp_working" >&6; }
25191test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25192 *" memcmp.$ac_objext "* ) ;;
25193 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25194 ;;
25195esac
25196
25197
cristy3ed852e2009-09-05 21:47:34 +000025198for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025199do :
25200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25201ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025202if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025203 cat >>confdefs.h <<_ACEOF
25204#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25205_ACEOF
25206
25207fi
25208
25209done
25210
cristy8b350f62009-11-15 23:12:43 +000025211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025212$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025213if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025214 $as_echo_n "(cached) " >&6
25215else
25216 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25217 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25218 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025220/* end confdefs.h. */
25221$ac_includes_default
25222#ifdef HAVE_SYS_SELECT_H
25223# include <sys/select.h>
25224#endif
25225#ifdef HAVE_SYS_SOCKET_H
25226# include <sys/socket.h>
25227#endif
25228
25229int
25230main ()
25231{
25232extern int select ($ac_arg1,
25233 $ac_arg234, $ac_arg234, $ac_arg234,
25234 $ac_arg5);
25235 ;
25236 return 0;
25237}
25238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025239if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025240 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025241fi
cristy3ed852e2009-09-05 21:47:34 +000025242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25243 done
25244 done
25245done
25246# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025247: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025248
25249fi
cristy8b350f62009-11-15 23:12:43 +000025250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025251$as_echo "$ac_cv_func_select_args" >&6; }
25252ac_save_IFS=$IFS; IFS=','
25253set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25254IFS=$ac_save_IFS
25255shift
25256
25257cat >>confdefs.h <<_ACEOF
25258#define SELECT_TYPE_ARG1 $1
25259_ACEOF
25260
25261
25262cat >>confdefs.h <<_ACEOF
25263#define SELECT_TYPE_ARG234 ($2)
25264_ACEOF
25265
25266
25267cat >>confdefs.h <<_ACEOF
25268#define SELECT_TYPE_ARG5 ($3)
25269_ACEOF
25270
25271rm -f conftest*
25272
cristyda16f162011-02-19 23:52:17 +000025273if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025274 $as_echo_n "(cached) " >&6
25275else
25276 ac_cv_func_setvbuf_reversed=no
25277fi
25278
25279
cristy8b350f62009-11-15 23:12:43 +000025280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025282if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 $as_echo_n "(cached) " >&6
25284else
cristy8b350f62009-11-15 23:12:43 +000025285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025286/* end confdefs.h. */
25287#include <sys/types.h>
25288#include <signal.h>
25289
25290int
25291main ()
25292{
25293return *(signal (0, 0)) (0) == 1;
25294 ;
25295 return 0;
25296}
25297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025298if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025299 ac_cv_type_signal=int
25300else
cristy8b350f62009-11-15 23:12:43 +000025301 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025302fi
cristy3ed852e2009-09-05 21:47:34 +000025303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25304fi
cristy8b350f62009-11-15 23:12:43 +000025305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306$as_echo "$ac_cv_type_signal" >&6; }
25307
25308cat >>confdefs.h <<_ACEOF
25309#define RETSIGTYPE $ac_cv_type_signal
25310_ACEOF
25311
25312
cristy8b350f62009-11-15 23:12:43 +000025313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025315if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025316 $as_echo_n "(cached) " >&6
25317else
cristy8b350f62009-11-15 23:12:43 +000025318 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 ac_cv_func_strtod=no
25320else
cristy8b350f62009-11-15 23:12:43 +000025321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322/* end confdefs.h. */
25323
25324$ac_includes_default
25325#ifndef strtod
25326double strtod ();
25327#endif
25328int
25329main()
25330{
25331 {
25332 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25333 char *string = " +69";
25334 char *term;
25335 double value;
25336 value = strtod (string, &term);
25337 if (value != 69 || term != (string + 4))
25338 return 1;
25339 }
25340
25341 {
25342 /* Under Solaris 2.4, strtod returns the wrong value for the
25343 terminating character under some conditions. */
25344 char *string = "NaN";
25345 char *term;
25346 strtod (string, &term);
25347 if (term != string && *(term - 1) == 0)
25348 return 1;
25349 }
25350 return 0;
25351}
25352
25353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025354if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025355 ac_cv_func_strtod=yes
25356else
cristy8b350f62009-11-15 23:12:43 +000025357 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025358fi
cristy8b350f62009-11-15 23:12:43 +000025359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025361fi
25362
cristy3ed852e2009-09-05 21:47:34 +000025363fi
cristy8b350f62009-11-15 23:12:43 +000025364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025365$as_echo "$ac_cv_func_strtod" >&6; }
25366if test $ac_cv_func_strtod = no; then
25367 case " $LIBOBJS " in
25368 *" strtod.$ac_objext "* ) ;;
25369 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25370 ;;
25371esac
25372
cristy8b350f62009-11-15 23:12:43 +000025373ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025374if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025375
cristy3ed852e2009-09-05 21:47:34 +000025376fi
25377
cristy3ed852e2009-09-05 21:47:34 +000025378if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025380$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025381if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025382 $as_echo_n "(cached) " >&6
25383else
25384 ac_check_lib_save_LIBS=$LIBS
25385LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025387/* end confdefs.h. */
25388
25389/* Override any GCC internal prototype to avoid an error.
25390 Use char because int might match the return type of a GCC
25391 builtin and then its argument prototype would still apply. */
25392#ifdef __cplusplus
25393extern "C"
25394#endif
25395char pow ();
25396int
25397main ()
25398{
25399return pow ();
25400 ;
25401 return 0;
25402}
25403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 ac_cv_lib_m_pow=yes
25406else
cristy8b350f62009-11-15 23:12:43 +000025407 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025408fi
cristy8b350f62009-11-15 23:12:43 +000025409rm -f core conftest.err conftest.$ac_objext \
25410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025411LIBS=$ac_check_lib_save_LIBS
25412fi
cristy8b350f62009-11-15 23:12:43 +000025413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025414$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025415if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025416 POW_LIB=-lm
25417else
cristy8b350f62009-11-15 23:12:43 +000025418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25420fi
25421
25422fi
25423
25424fi
25425
cristy7d4a1d62011-10-13 15:54:12 +000025426ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25427if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25428 ac_have_decl=1
25429else
25430 ac_have_decl=0
25431fi
25432
25433cat >>confdefs.h <<_ACEOF
25434#define HAVE_DECL_STRERROR_R $ac_have_decl
25435_ACEOF
25436
25437for ac_func in strerror_r
25438do :
25439 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25440if test "x$ac_cv_func_strerror_r" = xyes; then :
25441 cat >>confdefs.h <<_ACEOF
25442#define HAVE_STRERROR_R 1
25443_ACEOF
25444
25445fi
25446done
25447
25448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25449$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25450if ${ac_cv_func_strerror_r_char_p+:} false; then :
25451 $as_echo_n "(cached) " >&6
25452else
25453
25454 ac_cv_func_strerror_r_char_p=no
25455 if test $ac_cv_have_decl_strerror_r = yes; then
25456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25457/* end confdefs.h. */
25458$ac_includes_default
25459int
25460main ()
25461{
25462
25463 char buf[100];
25464 char x = *strerror_r (0, buf, sizeof buf);
25465 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025466 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025467
25468 ;
25469 return 0;
25470}
25471_ACEOF
25472if ac_fn_c_try_compile "$LINENO"; then :
25473 ac_cv_func_strerror_r_char_p=yes
25474fi
25475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25476 else
25477 # strerror_r is not declared. Choose between
25478 # systems that have relatively inaccessible declarations for the
25479 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25480 # former has a strerror_r that returns char*, while the latter
25481 # has a strerror_r that returns `int'.
25482 # This test should segfault on the DEC system.
25483 if test "$cross_compiling" = yes; then :
25484 :
25485else
25486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25487/* end confdefs.h. */
25488$ac_includes_default
25489 extern char *strerror_r ();
25490int
25491main ()
25492{
25493char buf[100];
25494 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025495 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025496 ;
25497 return 0;
25498}
25499_ACEOF
25500if ac_fn_c_try_run "$LINENO"; then :
25501 ac_cv_func_strerror_r_char_p=yes
25502fi
25503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25504 conftest.$ac_objext conftest.beam conftest.$ac_ext
25505fi
25506
25507 fi
25508
25509fi
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25511$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25512if test $ac_cv_func_strerror_r_char_p = yes; then
25513
25514$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25515
25516fi
25517
cristy3ed852e2009-09-05 21:47:34 +000025518for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025519do :
25520 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025521if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025522 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025523#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025524_ACEOF
25525
cristy8b350f62009-11-15 23:12:43 +000025526ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025527if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025528
cristy8b350f62009-11-15 23:12:43 +000025529$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025530
25531fi
25532
25533fi
25534done
25535
25536
25537
cristy161b9262010-03-20 19:34:32 +000025538#
25539# Find math library
25540#
25541MATH_LIBS=''
25542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25543$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025544if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025545 $as_echo_n "(cached) " >&6
25546else
25547 ac_check_lib_save_LIBS=$LIBS
25548LIBS="-lm $LIBS"
25549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550/* end confdefs.h. */
25551
25552/* Override any GCC internal prototype to avoid an error.
25553 Use char because int might match the return type of a GCC
25554 builtin and then its argument prototype would still apply. */
25555#ifdef __cplusplus
25556extern "C"
25557#endif
25558char sqrt ();
25559int
25560main ()
25561{
25562return sqrt ();
25563 ;
25564 return 0;
25565}
25566_ACEOF
25567if ac_fn_c_try_link "$LINENO"; then :
25568 ac_cv_lib_m_sqrt=yes
25569else
25570 ac_cv_lib_m_sqrt=no
25571fi
25572rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext conftest.$ac_ext
25574LIBS=$ac_check_lib_save_LIBS
25575fi
25576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25577$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025578if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025579 MATH_LIBS="-lm"
25580fi
25581
25582LIBS="$MATH_LIBS $LIBS"
25583
25584
cristy568c2d42012-07-27 01:41:20 +000025585for 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 +000025586do :
25587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025589if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025590 cat >>confdefs.h <<_ACEOF
25591#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25592_ACEOF
25593
25594fi
25595done
25596
25597
cristye43a45e2009-09-28 14:49:00 +000025598#
25599# Check for clock_gettime().
25600#
cristy8b350f62009-11-15 23:12:43 +000025601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025602$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025603if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025604 $as_echo_n "(cached) " >&6
25605else
25606 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025608/* end confdefs.h. */
25609
25610/* Override any GCC internal prototype to avoid an error.
25611 Use char because int might match the return type of a GCC
25612 builtin and then its argument prototype would still apply. */
25613#ifdef __cplusplus
25614extern "C"
25615#endif
25616char clock_gettime ();
25617int
25618main ()
25619{
25620return clock_gettime ();
25621 ;
25622 return 0;
25623}
25624_ACEOF
25625for ac_lib in '' rt; do
25626 if test -z "$ac_lib"; then
25627 ac_res="none required"
25628 else
25629 ac_res=-l$ac_lib
25630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25631 fi
cristy8b350f62009-11-15 23:12:43 +000025632 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025633 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025634fi
cristy8b350f62009-11-15 23:12:43 +000025635rm -f core conftest.err conftest.$ac_objext \
25636 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025637 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025638 break
25639fi
25640done
cristyda16f162011-02-19 23:52:17 +000025641if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025642
cristye43a45e2009-09-28 14:49:00 +000025643else
25644 ac_cv_search_clock_gettime=no
25645fi
25646rm conftest.$ac_ext
25647LIBS=$ac_func_search_save_LIBS
25648fi
cristy8b350f62009-11-15 23:12:43 +000025649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025650$as_echo "$ac_cv_search_clock_gettime" >&6; }
25651ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025652if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25654
25655
cristy8b350f62009-11-15 23:12:43 +000025656$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025657
cristy8b350f62009-11-15 23:12:43 +000025658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025659$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025661/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025662
25663 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025664int
25665main ()
25666{
25667clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025668 ;
25669 return 0;
25670}
25671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025672if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025673
cristy09b53e12011-10-14 12:47:22 +000025674 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25675$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025676
cristy8b350f62009-11-15 23:12:43 +000025677$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025678
25679
25680else
cristy09b53e12011-10-14 12:47:22 +000025681 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25682$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025683
25684fi
cristye43a45e2009-09-28 14:49:00 +000025685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25686
25687else
25688
cristy8b350f62009-11-15 23:12:43 +000025689 for ac_func in gettimeofday ftime
25690do :
25691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25692ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025693if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025694 cat >>confdefs.h <<_ACEOF
25695#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25696_ACEOF
25697 break
25698fi
25699done
25700
25701
25702
25703fi
25704
25705
cristy3ed852e2009-09-05 21:47:34 +000025706########
25707#
25708# Check for function prototypes
25709#
25710########
25711
cristy8b350f62009-11-15 23:12:43 +000025712ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025713#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025714"
cristyda16f162011-02-19 23:52:17 +000025715if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025716 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025717else
cristy8b350f62009-11-15 23:12:43 +000025718 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025719fi
25720
cristy3ed852e2009-09-05 21:47:34 +000025721cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025722#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025724ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025725#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025726"
cristyda16f162011-02-19 23:52:17 +000025727if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025728 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025729else
cristy8b350f62009-11-15 23:12:43 +000025730 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025731fi
25732
cristy3ed852e2009-09-05 21:47:34 +000025733cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025734#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025735_ACEOF
25736
25737
cristy8b350f62009-11-15 23:12:43 +000025738ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025739#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025740"
cristyda16f162011-02-19 23:52:17 +000025741if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025742 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025743else
cristy8b350f62009-11-15 23:12:43 +000025744 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025745fi
25746
cristy3ed852e2009-09-05 21:47:34 +000025747cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025748#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025749_ACEOF
25750
25751
cristy8b350f62009-11-15 23:12:43 +000025752ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025753#include <stdio.h>
25754#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025755"
cristyda16f162011-02-19 23:52:17 +000025756if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025757 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025758else
cristy8b350f62009-11-15 23:12:43 +000025759 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025760fi
25761
cristy3ed852e2009-09-05 21:47:34 +000025762cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025763#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025764_ACEOF
25765
25766
cristy3ed852e2009-09-05 21:47:34 +000025767########
25768#
25769# C++ Support Tests (For Magick++)
25770#
25771########
25772have_magick_plus_plus='no'
25773if test "$with_magick_plus_plus" = 'yes'; then
25774 OLIBS="$LIBS"
25775 LIBS=''
25776 ac_ext=cpp
25777ac_cpp='$CXXCPP $CPPFLAGS'
25778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25781
25782
25783 # Full set of headers used...
25784 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25785 # functional iomanip iosfwd iostream iterator list string strstream utility
25786 ac_ext=cpp
25787ac_cpp='$CXXCPP $CPPFLAGS'
25788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25791
25792 ac_ext=cpp
25793ac_cpp='$CXXCPP $CPPFLAGS'
25794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25797if test -z "$CXX"; then
25798 if test -n "$CCC"; then
25799 CXX=$CCC
25800 else
25801 if test -n "$ac_tool_prefix"; then
25802 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25803 do
25804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025808if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025809 $as_echo_n "(cached) " >&6
25810else
25811 if test -n "$CXX"; then
25812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25813else
25814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25815for as_dir in $PATH
25816do
25817 IFS=$as_save_IFS
25818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025821 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025823 break 2
25824 fi
25825done
cristy8b350f62009-11-15 23:12:43 +000025826 done
cristy3ed852e2009-09-05 21:47:34 +000025827IFS=$as_save_IFS
25828
25829fi
25830fi
25831CXX=$ac_cv_prog_CXX
25832if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025834$as_echo "$CXX" >&6; }
25835else
cristy8b350f62009-11-15 23:12:43 +000025836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025837$as_echo "no" >&6; }
25838fi
25839
25840
25841 test -n "$CXX" && break
25842 done
25843fi
25844if test -z "$CXX"; then
25845 ac_ct_CXX=$CXX
25846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25847do
25848 # Extract the first word of "$ac_prog", so it can be a program name with args.
25849set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025852if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025853 $as_echo_n "(cached) " >&6
25854else
25855 if test -n "$ac_ct_CXX"; then
25856 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25857else
25858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25859for as_dir in $PATH
25860do
25861 IFS=$as_save_IFS
25862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025865 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867 break 2
25868 fi
25869done
cristy8b350f62009-11-15 23:12:43 +000025870 done
cristy3ed852e2009-09-05 21:47:34 +000025871IFS=$as_save_IFS
25872
25873fi
25874fi
25875ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25876if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo "$ac_ct_CXX" >&6; }
25879else
cristy8b350f62009-11-15 23:12:43 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "no" >&6; }
25882fi
25883
25884
25885 test -n "$ac_ct_CXX" && break
25886done
25887
25888 if test "x$ac_ct_CXX" = x; then
25889 CXX="g++"
25890 else
25891 case $cross_compiling:$ac_tool_warned in
25892yes:)
cristy8b350f62009-11-15 23:12:43 +000025893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25895ac_tool_warned=yes ;;
25896esac
25897 CXX=$ac_ct_CXX
25898 fi
25899fi
25900
25901 fi
25902fi
25903# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025904$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025905set X $ac_compile
25906ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025907for ac_option in --version -v -V -qversion; do
25908 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025909case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25912esac
cristy8b350f62009-11-15 23:12:43 +000025913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25914$as_echo "$ac_try_echo"; } >&5
25915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025916 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025917 if test -s conftest.err; then
25918 sed '10a\
25919... rest of stderr output deleted ...
25920 10q' conftest.err >conftest.er1
25921 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025922 fi
cristycd4c5312009-11-22 01:19:08 +000025923 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }
25926done
cristy3ed852e2009-09-05 21:47:34 +000025927
cristy8b350f62009-11-15 23:12:43 +000025928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025929$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025930if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025931 $as_echo_n "(cached) " >&6
25932else
cristy8b350f62009-11-15 23:12:43 +000025933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934/* end confdefs.h. */
25935
25936int
25937main ()
25938{
25939#ifndef __GNUC__
25940 choke me
25941#endif
25942
25943 ;
25944 return 0;
25945}
25946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025947if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025948 ac_compiler_gnu=yes
25949else
cristy8b350f62009-11-15 23:12:43 +000025950 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025951fi
cristy3ed852e2009-09-05 21:47:34 +000025952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25953ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25954
25955fi
cristy8b350f62009-11-15 23:12:43 +000025956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025957$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25958if test $ac_compiler_gnu = yes; then
25959 GXX=yes
25960else
25961 GXX=
25962fi
25963ac_test_CXXFLAGS=${CXXFLAGS+set}
25964ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025966$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025967if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025968 $as_echo_n "(cached) " >&6
25969else
25970 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25971 ac_cxx_werror_flag=yes
25972 ac_cv_prog_cxx_g=no
25973 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025975/* end confdefs.h. */
25976
25977int
25978main ()
25979{
25980
25981 ;
25982 return 0;
25983}
25984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025985if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 ac_cv_prog_cxx_g=yes
25987else
cristy8b350f62009-11-15 23:12:43 +000025988 CXXFLAGS=""
25989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025990/* end confdefs.h. */
25991
25992int
25993main ()
25994{
25995
25996 ;
25997 return 0;
25998}
25999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026000if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026001
cristy8b350f62009-11-15 23:12:43 +000026002else
26003 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026004 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026006/* end confdefs.h. */
26007
26008int
26009main ()
26010{
26011
26012 ;
26013 return 0;
26014}
26015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026016if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026018fi
cristy3ed852e2009-09-05 21:47:34 +000026019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020fi
cristy3ed852e2009-09-05 21:47:34 +000026021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26022fi
cristy3ed852e2009-09-05 21:47:34 +000026023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26025fi
cristy8b350f62009-11-15 23:12:43 +000026026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026027$as_echo "$ac_cv_prog_cxx_g" >&6; }
26028if test "$ac_test_CXXFLAGS" = set; then
26029 CXXFLAGS=$ac_save_CXXFLAGS
26030elif test $ac_cv_prog_cxx_g = yes; then
26031 if test "$GXX" = yes; then
26032 CXXFLAGS="-g -O2"
26033 else
26034 CXXFLAGS="-g"
26035 fi
26036else
26037 if test "$GXX" = yes; then
26038 CXXFLAGS="-O2"
26039 else
26040 CXXFLAGS=
26041 fi
26042fi
26043ac_ext=cpp
26044ac_cpp='$CXXCPP $CPPFLAGS'
26045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26048
cristy73bd4a52010-10-05 11:24:23 +000026049depcc="$CXX" am_compiler_list=
26050
26051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26052$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026053if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026054 $as_echo_n "(cached) " >&6
26055else
26056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26057 # We make a subdir and do the tests there. Otherwise we can end up
26058 # making bogus files that we don't know about and never remove. For
26059 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026060 # making a dummy file named 'D' -- because '-MD' means "put the output
26061 # in D".
cristy7247bba2012-02-05 16:37:27 +000026062 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026063 mkdir conftest.dir
26064 # Copy depcomp to subdir because otherwise we won't find it if we're
26065 # using a relative directory.
26066 cp "$am_depcomp" conftest.dir
26067 cd conftest.dir
26068 # We will build objects and dependencies in a subdirectory because
26069 # it helps to detect inapplicable dependency modes. For instance
26070 # both Tru64's cc and ICC support -MD to output dependencies as a
26071 # side effect of compilation, but ICC will put the dependencies in
26072 # the current directory while Tru64 will put them in the object
26073 # directory.
26074 mkdir sub
26075
26076 am_cv_CXX_dependencies_compiler_type=none
26077 if test "$am_compiler_list" = ""; then
26078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26079 fi
26080 am__universal=false
26081 case " $depcc " in #(
26082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26083 esac
26084
26085 for depmode in $am_compiler_list; do
26086 # Setup a source with many dependencies, because some compilers
26087 # like to wrap large dependency lists on column 80 (with \), and
26088 # we should not choose a depcomp mode which is confused by this.
26089 #
26090 # We need to recreate these files for each test, as the compiler may
26091 # overwrite some of them when testing with obscure command lines.
26092 # This happens at least with the AIX C compiler.
26093 : > sub/conftest.c
26094 for i in 1 2 3 4 5 6; do
26095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026096 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26097 # Solaris 10 /bin/sh.
26098 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026099 done
26100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26101
cristyc0890a62012-07-19 00:18:20 +000026102 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026103 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026104 # handle '-M -o', and we need to detect this. Also, some Intel
26105 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026106 am__obj=sub/conftest.${OBJEXT-o}
26107 am__minus_obj="-o $am__obj"
26108 case $depmode in
26109 gcc)
26110 # This depmode causes a compiler race in universal mode.
26111 test "$am__universal" = false || continue
26112 ;;
26113 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026114 # After this tag, mechanisms are not by side-effect, so they'll
26115 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026116 if test "x$enable_dependency_tracking" = xyes; then
26117 continue
26118 else
26119 break
26120 fi
26121 ;;
cristy7247bba2012-02-05 16:37:27 +000026122 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026123 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026124 # not run yet. These depmodes are late enough in the game, and
26125 # so weak that their functioning should not be impacted.
26126 am__obj=conftest.${OBJEXT-o}
26127 am__minus_obj=
26128 ;;
26129 none) break ;;
26130 esac
26131 if depmode=$depmode \
26132 source=sub/conftest.c object=$am__obj \
26133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26135 >/dev/null 2>conftest.err &&
26136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26140 # icc doesn't choke on unknown options, it will just issue warnings
26141 # or remarks (even with -Werror). So we grep stderr for any message
26142 # that says an option was ignored or not supported.
26143 # When given -MP, icc 7.0 and 7.1 complain thusly:
26144 # icc: Command line warning: ignoring option '-M'; no argument required
26145 # The diagnosis changed in icc 8.0:
26146 # icc: Command line remark: option '-MP' not supported
26147 if (grep 'ignoring option' conftest.err ||
26148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26149 am_cv_CXX_dependencies_compiler_type=$depmode
26150 break
26151 fi
26152 fi
26153 done
26154
26155 cd ..
26156 rm -rf conftest.dir
26157else
26158 am_cv_CXX_dependencies_compiler_type=none
26159fi
26160
26161fi
26162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26163$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26164CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26165
26166 if
26167 test "x$enable_dependency_tracking" != xno \
26168 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26169 am__fastdepCXX_TRUE=
26170 am__fastdepCXX_FALSE='#'
26171else
26172 am__fastdepCXX_TRUE='#'
26173 am__fastdepCXX_FALSE=
26174fi
26175
26176
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26178$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026179if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026180 $as_echo_n "(cached) " >&6
26181else
26182
26183 ac_ext=cpp
26184ac_cpp='$CXXCPP $CPPFLAGS'
26185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26188
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190/* end confdefs.h. */
26191
26192int f(int x){return 1;}
26193int f(char x){return 1;}
26194int f(bool x){return 1;}
26195
26196int
26197main ()
26198{
26199bool b = true; return f(b);
26200 ;
26201 return 0;
26202}
26203_ACEOF
26204if ac_fn_cxx_try_compile "$LINENO"; then :
26205 ax_cv_cxx_bool=yes
26206else
26207 ax_cv_cxx_bool=no
26208fi
26209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 ac_ext=cpp
26211ac_cpp='$CXXCPP $CPPFLAGS'
26212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26215
26216
26217fi
26218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26219$as_echo "$ax_cv_cxx_bool" >&6; }
26220if test "$ax_cv_cxx_bool" = yes; then
26221
26222$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26223
26224fi
26225
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26227$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026228if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026229 $as_echo_n "(cached) " >&6
26230else
26231
26232 ac_ext=cpp
26233ac_cpp='$CXXCPP $CPPFLAGS'
26234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26237
26238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239/* end confdefs.h. */
26240namespace Outer { namespace Inner { int i = 0; }}
26241int
26242main ()
26243{
26244using namespace Outer::Inner; return i;
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249if ac_fn_cxx_try_compile "$LINENO"; then :
26250 ax_cv_cxx_namespaces=yes
26251else
26252 ax_cv_cxx_namespaces=no
26253fi
26254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 ac_ext=cpp
26256ac_cpp='$CXXCPP $CPPFLAGS'
26257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26260
26261
26262fi
26263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26264$as_echo "$ax_cv_cxx_namespaces" >&6; }
26265if test "$ax_cv_cxx_namespaces" = yes; then
26266
26267$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26268
26269fi
26270
26271
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26273$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026274if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026275 $as_echo_n "(cached) " >&6
26276else
26277
26278 ac_ext=cpp
26279ac_cpp='$CXXCPP $CPPFLAGS'
26280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26283
26284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26285/* end confdefs.h. */
26286#include <iostream>
26287 std::istream& is = std::cin;
26288int
26289main ()
26290{
26291
26292 ;
26293 return 0;
26294}
26295_ACEOF
26296if ac_fn_cxx_try_compile "$LINENO"; then :
26297 ax_cv_cxx_have_std_namespace=yes
26298else
26299 ax_cv_cxx_have_std_namespace=no
26300fi
26301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26302 ac_ext=cpp
26303ac_cpp='$CXXCPP $CPPFLAGS'
26304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26307
26308
26309fi
26310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26311$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26312 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26313
26314$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26315
26316 fi
26317
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26319$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026320if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026321 $as_echo_n "(cached) " >&6
26322else
26323
26324
26325 ac_ext=cpp
26326ac_cpp='$CXXCPP $CPPFLAGS'
26327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26330
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332/* end confdefs.h. */
26333#include <iostream>
26334#include <map>
26335#include <iomanip>
26336#include <cmath>
26337#ifdef HAVE_NAMESPACES
26338using namespace std;
26339#endif
26340int
26341main ()
26342{
26343return 0;
26344 ;
26345 return 0;
26346}
26347_ACEOF
26348if ac_fn_cxx_try_compile "$LINENO"; then :
26349 ac_cv_cxx_have_std_libs=yes
26350else
26351 ac_cv_cxx_have_std_libs=no
26352fi
26353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26354 ac_ext=cpp
26355ac_cpp='$CXXCPP $CPPFLAGS'
26356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26359
26360
26361fi
26362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26363$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26364if test "$ac_cv_cxx_have_std_libs" = yes; then
26365
26366$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26367
26368fi
26369
cristy3ed852e2009-09-05 21:47:34 +000026370
26371 OPENMP_CXXFLAGS=
26372 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026373if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 enableval=$enable_openmp;
26375fi
26376
26377 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26379$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026380if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 $as_echo_n "(cached) " >&6
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26384/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026385
26386#ifndef _OPENMP
26387 choke me
26388#endif
26389#include <omp.h>
26390int main () { return omp_get_num_threads (); }
26391
26392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026393if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026394 ac_cv_prog_cxx_openmp='none needed'
26395else
cristy8b350f62009-11-15 23:12:43 +000026396 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026397 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26398 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026399 ac_save_CXXFLAGS=$CXXFLAGS
26400 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026403
26404#ifndef _OPENMP
26405 choke me
26406#endif
26407#include <omp.h>
26408int main () { return omp_get_num_threads (); }
26409
26410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026411if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026413fi
cristy8b350f62009-11-15 23:12:43 +000026414rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026416 CXXFLAGS=$ac_save_CXXFLAGS
26417 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26418 break
26419 fi
26420 done
26421fi
cristy8b350f62009-11-15 23:12:43 +000026422rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424fi
cristy8b350f62009-11-15 23:12:43 +000026425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026426$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26427 case $ac_cv_prog_cxx_openmp in #(
26428 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026429 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026430 *)
cristy8b350f62009-11-15 23:12:43 +000026431 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026432 esac
26433 fi
26434
26435
26436 ac_ext=c
26437ac_cpp='$CPP $CPPFLAGS'
26438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26440ac_compiler_gnu=$ac_cv_c_compiler_gnu
26441
26442
cristy8b350f62009-11-15 23:12:43 +000026443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026444$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26445 if \
cristy964cb7f2010-04-25 23:18:00 +000026446 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026447 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026448 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026449 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026450 have_magick_plus_plus='yes'
26451 else
26452 have_magick_plus_plus='no (failed tests)'
26453 fi
cristy09b53e12011-10-14 12:47:22 +000026454 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26455$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026456 LIBS="$OLIBS"
26457fi
cristy73bd4a52010-10-05 11:24:23 +000026458 if test "$have_magick_plus_plus" = 'yes'; then
26459 WITH_MAGICK_PLUS_PLUS_TRUE=
26460 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26461else
26462 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26463 WITH_MAGICK_PLUS_PLUS_FALSE=
26464fi
26465
cristy3ed852e2009-09-05 21:47:34 +000026466
26467# Only check for delegate libraries in subdirectories if requested.
26468if test "$enable_delegate_build" != 'no'; then
26469 # Check for delegate sub-directories and add -I & -L options as required.
26470 # This presumes that delegates are installed as detailed in the ImageMagick
26471 # README. If delegates are installed in a standard location where the
26472 # compiler will automatically find them then these options should not be
26473 # required.
26474
26475 #
26476 # Most delegates have includes in the same directory as the library, but not all...
26477 #
26478 # Includes
cristy2542fc62011-12-06 17:50:25 +000026479 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 +000026480 if test -d "$builddir/$dir"; then
26481 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26482 else
26483 if test -d "$srcdirfull/$dir"; then
26484 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26485 fi
26486 fi
26487 done
26488
26489 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026490 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 +000026491 if test -d "$builddir/$dir/.libs"; then
26492 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26493 else
26494 if test -d "$srcdirfull/$dir/.libs"; then
26495 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26496 fi
26497 fi
26498 if test -d "$builddir/$dir"; then
26499 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26500 else
26501 if test -d "$srcdirfull/$dir"; then
26502 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26503 fi
26504 fi
26505 done
26506fi
26507
26508# Assume that delegate headers reside under same directory as ImageMagick
26509# installation prefix.
26510MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26511
26512#
26513# Find the X11 RGB database
26514#
cristy8b350f62009-11-15 23:12:43 +000026515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026516$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026517if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026518 $as_echo_n "(cached) " >&6
26519else
26520 # Look for the header file in a standard set of common directories.
26521# Check X11 before X11Rn because it is often a symlink to the current release.
26522 for ac_dir in \
26523 /lib/usr/lib/X11 \
26524 /usr/X11/lib \
26525 /usr/X11R4/lib \
26526 /usr/X11R5/lib \
26527 /usr/X11R6/lib \
26528 /usr/X11R7/lib \
26529 /usr/X386/lib \
26530 /usr/XFree86/lib/X11 \
26531 /usr/athena/lib \
26532 /usr/lib \
26533 /usr/lib/X11 \
26534 /usr/lib/X11R4 \
26535 /usr/lib/X11R5 \
26536 /usr/lib/X11R6 \
26537 /usr/lib/X11R7 \
26538 /usr/local/X11/lib \
26539 /usr/local/X11R4/lib \
26540 /usr/local/X11R5/lib \
26541 /usr/local/X11R6/lib \
26542 /usr/local/lib \
26543 /usr/local/lib/X11 \
26544 /usr/local/lib/X11R4 \
26545 /usr/local/lib/X11R5 \
26546 /usr/local/lib/X11R6 \
26547 /usr/local/lib/X11R7 \
26548 /usr/local/x11r5/lib \
26549 /usr/lpp/Xamples/lib \
26550 /usr/openwin/lib \
26551 /usr/openwin/share/lib \
26552 /usr/unsupported/lib \
26553 /usr/x386/lib \
26554 ; do
26555 if test -f "$ac_dir/X11/rgb.txt"; then
26556 im_cv_x_configure="$ac_dir/X11/"
26557 break
26558 elif test -f "$ac_dir/rgb.txt"; then
26559 im_cv_x_configure="$ac_dir/"
26560 break
26561 fi
26562
26563 done
26564fi
cristy8b350f62009-11-15 23:12:43 +000026565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo "$im_cv_x_configure" >&6; }
26567X11_CONFIGURE_PATH="$im_cv_x_configure"
26568case "${build_os}" in
26569 mingw* )
26570 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26571 ;;
26572esac
26573
26574cat >>confdefs.h <<_ACEOF
26575#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26576_ACEOF
26577
26578
26579#
26580# Find OpenMP library
26581#
26582GOMP_LIBS=''
26583if test "$enable_openmp" != 'no'; then
26584 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026585 # Open64 (passes for GCC but uses different OpenMP implementation)
26586 if test "x$GOMP_LIBS" = x ; then
26587 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26589$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26590if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26591 $as_echo_n "(cached) " >&6
26592else
26593 ac_check_lib_save_LIBS=$LIBS
26594LIBS="-lopenmp $LIBS"
26595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596/* end confdefs.h. */
26597
26598/* Override any GCC internal prototype to avoid an error.
26599 Use char because int might match the return type of a GCC
26600 builtin and then its argument prototype would still apply. */
26601#ifdef __cplusplus
26602extern "C"
26603#endif
26604char omp_get_num_procs ();
26605int
26606main ()
26607{
26608return omp_get_num_procs ();
26609 ;
26610 return 0;
26611}
26612_ACEOF
26613if ac_fn_c_try_link "$LINENO"; then :
26614 ac_cv_lib_openmp_omp_get_num_procs=yes
26615else
26616 ac_cv_lib_openmp_omp_get_num_procs=no
26617fi
26618rm -f core conftest.err conftest.$ac_objext \
26619 conftest$ac_exeext conftest.$ac_ext
26620LIBS=$ac_check_lib_save_LIBS
26621fi
26622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26623$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26624if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26625 GOMP_LIBS="-lopenmp"
26626fi
26627
26628 fi
26629 fi
26630 # GCC
26631 if test "x$GOMP_LIBS" = x ; then
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026633$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026634if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026635 $as_echo_n "(cached) " >&6
26636else
26637 ac_check_lib_save_LIBS=$LIBS
26638LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026640/* end confdefs.h. */
26641
26642/* Override any GCC internal prototype to avoid an error.
26643 Use char because int might match the return type of a GCC
26644 builtin and then its argument prototype would still apply. */
26645#ifdef __cplusplus
26646extern "C"
26647#endif
26648char GOMP_parallel_start ();
26649int
26650main ()
26651{
26652return GOMP_parallel_start ();
26653 ;
26654 return 0;
26655}
26656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026658 ac_cv_lib_gomp_GOMP_parallel_start=yes
26659else
cristy8b350f62009-11-15 23:12:43 +000026660 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026661fi
cristy8b350f62009-11-15 23:12:43 +000026662rm -f core conftest.err conftest.$ac_objext \
26663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026664LIBS=$ac_check_lib_save_LIBS
26665fi
cristy8b350f62009-11-15 23:12:43 +000026666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026668if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026669 GOMP_LIBS="-lgomp"
26670fi
cristy18307f12011-12-30 01:20:16 +000026671
26672 fi
cristy3ed852e2009-09-05 21:47:34 +000026673 else
cristy18307f12011-12-30 01:20:16 +000026674 # Sun CC
26675 if test "x$GOMP_LIBS" = x ; then
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026678if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026679 $as_echo_n "(cached) " >&6
26680else
26681 ac_check_lib_save_LIBS=$LIBS
26682LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026684/* end confdefs.h. */
26685
26686/* Override any GCC internal prototype to avoid an error.
26687 Use char because int might match the return type of a GCC
26688 builtin and then its argument prototype would still apply. */
26689#ifdef __cplusplus
26690extern "C"
26691#endif
26692char sunw_mp_register_warn ();
26693int
26694main ()
26695{
26696return sunw_mp_register_warn ();
26697 ;
26698 return 0;
26699}
26700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26703else
cristy8b350f62009-11-15 23:12:43 +000026704 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026705fi
cristy8b350f62009-11-15 23:12:43 +000026706rm -f core conftest.err conftest.$ac_objext \
26707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026708LIBS=$ac_check_lib_save_LIBS
26709fi
cristy8b350f62009-11-15 23:12:43 +000026710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 GOMP_LIBS="-lmtsk"
26714fi
cristy18307f12011-12-30 01:20:16 +000026715
26716 fi
26717 # AIX xlc
26718 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026720$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026721if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 $as_echo_n "(cached) " >&6
26723else
26724 ac_check_lib_save_LIBS=$LIBS
26725LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026727/* end confdefs.h. */
26728
26729/* Override any GCC internal prototype to avoid an error.
26730 Use char because int might match the return type of a GCC
26731 builtin and then its argument prototype would still apply. */
26732#ifdef __cplusplus
26733extern "C"
26734#endif
26735char _xlsmpFlush ();
26736int
26737main ()
26738{
26739return _xlsmpFlush ();
26740 ;
26741 return 0;
26742}
26743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026744if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026745 ac_cv_lib_xlsmp__xlsmpFlush=yes
26746else
cristy8b350f62009-11-15 23:12:43 +000026747 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026748fi
cristy8b350f62009-11-15 23:12:43 +000026749rm -f core conftest.err conftest.$ac_objext \
26750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026751LIBS=$ac_check_lib_save_LIBS
26752fi
cristy8b350f62009-11-15 23:12:43 +000026753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026754$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026755if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026756 GOMP_LIBS="-lxlsmp"
26757fi
cristy18307f12011-12-30 01:20:16 +000026758
26759 fi
26760 # SGI IRIX 6.5 MIPSpro C/C++
26761 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026764if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 $as_echo_n "(cached) " >&6
26766else
26767 ac_check_lib_save_LIBS=$LIBS
26768LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026770/* end confdefs.h. */
26771
26772/* Override any GCC internal prototype to avoid an error.
26773 Use char because int might match the return type of a GCC
26774 builtin and then its argument prototype would still apply. */
26775#ifdef __cplusplus
26776extern "C"
26777#endif
26778char mp_destroy ();
26779int
26780main ()
26781{
26782return mp_destroy ();
26783 ;
26784 return 0;
26785}
26786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026788 ac_cv_lib_mp_mp_destroy=yes
26789else
cristy8b350f62009-11-15 23:12:43 +000026790 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026791fi
cristy8b350f62009-11-15 23:12:43 +000026792rm -f core conftest.err conftest.$ac_objext \
26793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026794LIBS=$ac_check_lib_save_LIBS
26795fi
cristy8b350f62009-11-15 23:12:43 +000026796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026797$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026798if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 GOMP_LIBS="-lmp"
26800fi
cristy18307f12011-12-30 01:20:16 +000026801
26802 fi
cristy3ed852e2009-09-05 21:47:34 +000026803 fi
26804 LIBS="$GOMP_LIBS $LIBS"
26805fi
26806
26807
26808#
26809# Find Posix threads library
26810#
26811THREAD_LIBS=''
26812if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26813
26814 if test "x$PTHREAD_LIBS" = "x"; then
26815 case "${host_cpu}-${host_os}" in
26816 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026817
26818
26819
26820ac_ext=c
26821ac_cpp='$CPP $CPPFLAGS'
26822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26824ac_compiler_gnu=$ac_cv_c_compiler_gnu
26825
26826magick_pthread_lib_ok=no
26827
26828LIB=-lc_r
26829save_LIBS="$LIBS"
26830LIBS="$LIBS $LIB"
26831
26832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26833$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835/* end confdefs.h. */
26836#include <pthread.h>
26837int
26838main ()
26839{
26840 pthread_t th;
26841 pthread_join(th, 0);
26842 pthread_attr_init(0);
26843 pthread_cleanup_push(0, 0);
26844 pthread_create(0,0,0,0);
26845 pthread_cleanup_pop(0);
26846 ;
26847 return 0;
26848}
26849_ACEOF
26850if ac_fn_c_try_link "$LINENO"; then :
26851 magick_pthread_lib_ok=yes
26852fi
26853rm -f core conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
26855
26856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26857$as_echo "${magick_pthread_lib_ok}" >&6; }
26858if test "$magick_pthread_lib_ok" = yes
26859then
26860 PTHREAD_LIBS=-lc_r
26861 :
26862else
26863
26864 :
26865fi
26866
26867LIBS="$save_LIBS"
26868
26869ac_ext=c
26870ac_cpp='$CPP $CPPFLAGS'
26871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26873ac_compiler_gnu=$ac_cv_c_compiler_gnu
26874
26875 ;;
cristy3ed852e2009-09-05 21:47:34 +000026876 esac
26877 fi
26878
26879 for lib in pthread pthreads; do
26880 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026881
26882
26883
26884ac_ext=c
26885ac_cpp='$CPP $CPPFLAGS'
26886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26888ac_compiler_gnu=$ac_cv_c_compiler_gnu
26889
26890magick_pthread_lib_ok=no
26891
26892LIB=-l$lib
26893save_LIBS="$LIBS"
26894LIBS="$LIBS $LIB"
26895
26896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26897$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26899/* end confdefs.h. */
26900#include <pthread.h>
26901int
26902main ()
26903{
26904 pthread_t th;
26905 pthread_join(th, 0);
26906 pthread_attr_init(0);
26907 pthread_cleanup_push(0, 0);
26908 pthread_create(0,0,0,0);
26909 pthread_cleanup_pop(0);
26910 ;
26911 return 0;
26912}
26913_ACEOF
26914if ac_fn_c_try_link "$LINENO"; then :
26915 magick_pthread_lib_ok=yes
26916fi
26917rm -f core conftest.err conftest.$ac_objext \
26918 conftest$ac_exeext conftest.$ac_ext
26919
26920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26921$as_echo "${magick_pthread_lib_ok}" >&6; }
26922if test "$magick_pthread_lib_ok" = yes
26923then
26924 PTHREAD_LIBS=-l$lib
26925 :
26926else
26927
26928 :
26929fi
26930
26931LIBS="$save_LIBS"
26932
26933ac_ext=c
26934ac_cpp='$CPP $CPPFLAGS'
26935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26937ac_compiler_gnu=$ac_cv_c_compiler_gnu
26938
26939
cristy3ed852e2009-09-05 21:47:34 +000026940 fi
26941 done
26942
26943 THREAD_LIBS="$PTHREAD_LIBS"
26944 LIBS="$LIBS $THREAD_LIBS"
26945fi
26946
26947
26948#
26949# Check for umem.
26950#
26951have_umem='no'
26952UMEM_LIBS=''
26953if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026955$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026956 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26957$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026958 failed=0
26959 passed=0
cristy8b350f62009-11-15 23:12:43 +000026960 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026961if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026962 passed=`expr $passed + 1`
26963else
26964 failed=`expr $failed + 1`
26965fi
26966
26967
cristy8b350f62009-11-15 23:12:43 +000026968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026969$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026970if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026971 $as_echo_n "(cached) " >&6
26972else
26973 ac_check_lib_save_LIBS=$LIBS
26974LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026976/* end confdefs.h. */
26977
26978/* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26981#ifdef __cplusplus
26982extern "C"
26983#endif
26984char umem_alloc ();
26985int
26986main ()
26987{
26988return umem_alloc ();
26989 ;
26990 return 0;
26991}
26992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026994 ac_cv_lib_umem_umem_alloc=yes
26995else
cristy8b350f62009-11-15 23:12:43 +000026996 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026997fi
cristy8b350f62009-11-15 23:12:43 +000026998rm -f core conftest.err conftest.$ac_objext \
26999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027000LIBS=$ac_check_lib_save_LIBS
27001fi
cristy8b350f62009-11-15 23:12:43 +000027002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027004if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027005 passed=`expr $passed + 1`
27006else
27007 failed=`expr $failed + 1`
27008fi
27009
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027012if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027013 $as_echo_n "(cached) " >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027018/* end confdefs.h. */
27019
27020/* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27023#ifdef __cplusplus
27024extern "C"
27025#endif
27026char umem_free ();
27027int
27028main ()
27029{
27030return umem_free ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_cv_lib_umem_umem_free=yes
27037else
cristy8b350f62009-11-15 23:12:43 +000027038 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042LIBS=$ac_check_lib_save_LIBS
27043fi
cristy8b350f62009-11-15 23:12:43 +000027044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027047 passed=`expr $passed + 1`
27048else
27049 failed=`expr $failed + 1`
27050fi
27051
cristy8b350f62009-11-15 23:12:43 +000027052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027053$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27054 if test $passed -gt 0; then
27055 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027056 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27057$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027058 have_umem='no (failed tests)'
27059 else
27060 UMEM_LIBS='-lumem'
27061 LIBS="$UMEM_LIBS $LIBS"
27062
cristy8b350f62009-11-15 23:12:43 +000027063$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027064
cristy09b53e12011-10-14 12:47:22 +000027065 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27066$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027067 have_umem='yes'
27068 fi
27069 else
cristy09b53e12011-10-14 12:47:22 +000027070 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27071$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027072 fi
27073fi
cristy73bd4a52010-10-05 11:24:23 +000027074 if test "$have_umem" = 'yes'; then
27075 HasUMEM_TRUE=
27076 HasUMEM_FALSE='#'
27077else
27078 HasUMEM_TRUE='#'
27079 HasUMEM_FALSE=
27080fi
27081
cristy3ed852e2009-09-05 21:47:34 +000027082
27083
27084#
27085# Add support for ccmalloc memory debugging library if requested
27086#
27087have_ccmalloc='no'
27088CCMALLOC_LIBS=''
27089if test "$enable_ccmalloc" = 'yes'; then
27090 # Extract the first word of "ccmalloc", so it can be a program name with args.
27091set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027094if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027095 $as_echo_n "(cached) " >&6
27096else
27097 case $CCMALLOCDelegate in
27098 [\\/]* | ?:[\\/]*)
27099 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27100 ;;
27101 *)
27102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27103for as_dir in $PATH
27104do
27105 IFS=$as_save_IFS
27106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027109 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111 break 2
27112 fi
27113done
cristy8b350f62009-11-15 23:12:43 +000027114 done
cristy3ed852e2009-09-05 21:47:34 +000027115IFS=$as_save_IFS
27116
27117 ;;
27118esac
27119fi
27120CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27121if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "$CCMALLOCDelegate" >&6; }
27124else
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "no" >&6; }
27127fi
27128
27129
27130 if test -n "$CCMALLOCDelegate"; then
27131 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27132 OLIBS="$LIBS"
27133 # Assume that gcc is used with ccmalloc.
27134 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027136$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027137if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027138 $as_echo_n "(cached) " >&6
27139else
27140 ac_check_lib_save_LIBS=$LIBS
27141LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027143/* end confdefs.h. */
27144
27145/* Override any GCC internal prototype to avoid an error.
27146 Use char because int might match the return type of a GCC
27147 builtin and then its argument prototype would still apply. */
27148#ifdef __cplusplus
27149extern "C"
27150#endif
27151char ccmalloc_malloc ();
27152int
27153main ()
27154{
27155return ccmalloc_malloc ();
27156 ;
27157 return 0;
27158}
27159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027160if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27162else
cristy8b350f62009-11-15 23:12:43 +000027163 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027164fi
cristy8b350f62009-11-15 23:12:43 +000027165rm -f core conftest.err conftest.$ac_objext \
27166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027167LIBS=$ac_check_lib_save_LIBS
27168fi
cristy8b350f62009-11-15 23:12:43 +000027169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027170$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027171if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27173fi
27174
27175 if test -n "$CCMALLOC_LIBS"; then
27176 LIBS="$OLIBS"
27177 LIBS="$LIBS $CCMALLOC_LIBS"
27178 have_ccmalloc='yes'
27179 else
27180 LIBS="$OLIBS"
27181 fi
27182 fi
27183fi
27184
27185#
27186# Add support for efence memory debugging library if requested
27187#
27188if test "$enable_efence" = 'yes'; then
27189 EFENCE_LIBS='-lefence'
27190 LIBS="$EFENCE_LIBS $LIBS"
27191fi
27192
cristy3ed852e2009-09-05 21:47:34 +000027193
27194#
27195# Check for BZLIB
27196#
27197
27198
27199# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027200if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 withval=$with_bzlib; with_bzlib=$withval
27202else
27203 with_bzlib='yes'
27204fi
27205
27206
27207if test "$with_bzlib" != 'yes'; then
27208 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27209fi
27210
27211have_bzlib='no'
27212if test "$with_bzlib" != 'no'; then
27213 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027214 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27215$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027217$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27219$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027220 failed=0
27221 passed=0
27222 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027223 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027224if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 passed=`expr $passed + 1`
27226else
27227 failed=`expr $failed + 1`
27228fi
27229
27230
cristy8b350f62009-11-15 23:12:43 +000027231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027233if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 $as_echo_n "(cached) " >&6
27235else
27236 ac_check_lib_save_LIBS=$LIBS
27237LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027239/* end confdefs.h. */
27240
27241/* Override any GCC internal prototype to avoid an error.
27242 Use char because int might match the return type of a GCC
27243 builtin and then its argument prototype would still apply. */
27244#ifdef __cplusplus
27245extern "C"
27246#endif
27247char BZ2_bzDecompress ();
27248int
27249main ()
27250{
27251return BZ2_bzDecompress ();
27252 ;
27253 return 0;
27254}
27255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27258else
cristy8b350f62009-11-15 23:12:43 +000027259 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027260fi
cristy8b350f62009-11-15 23:12:43 +000027261rm -f core conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027263LIBS=$ac_check_lib_save_LIBS
27264fi
cristy8b350f62009-11-15 23:12:43 +000027265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027267if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 found_libbz=`expr $found_libbz + 1`
27269fi
27270
27271 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 $as_echo_n "(cached) " >&6
27276else
27277 ac_check_lib_save_LIBS=$LIBS
27278LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027280/* end confdefs.h. */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char _imp__BZ2_decompress ();
27289int
27290main ()
27291{
27292return _imp__BZ2_decompress ();
27293 ;
27294 return 0;
27295}
27296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304LIBS=$ac_check_lib_save_LIBS
27305fi
cristy8b350f62009-11-15 23:12:43 +000027306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 found_libbz=`expr $found_libbz + 1`
27310fi
27311
27312 fi
27313 if test $found_libbz -gt 0; then
27314 passed=`expr $passed + 1`
27315 else
27316 failed=`expr $failed + 1`
27317 fi
cristy8b350f62009-11-15 23:12:43 +000027318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027319$as_echo_n "checking if BZLIB package is complete... " >&6; }
27320 if test $passed -gt 0; then
27321 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27323$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027324 have_bzlib='no (failed tests)'
27325 else
27326 BZLIB_LIBS='-lbz2'
27327 LIBS="$BZLIB_LIBS $LIBS"
27328
cristy8b350f62009-11-15 23:12:43 +000027329$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027330
cristy09b53e12011-10-14 12:47:22 +000027331 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27332$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027333 have_bzlib='yes'
27334 fi
27335 else
cristy09b53e12011-10-14 12:47:22 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27337$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027338 fi
27339fi
cristy73bd4a52010-10-05 11:24:23 +000027340 if test "$have_bzlib" = 'yes'; then
27341 BZLIB_DELEGATE_TRUE=
27342 BZLIB_DELEGATE_FALSE='#'
27343else
27344 BZLIB_DELEGATE_TRUE='#'
27345 BZLIB_DELEGATE_FALSE=
27346fi
27347
cristy3ed852e2009-09-05 21:47:34 +000027348
27349
27350#
27351# Find the X11 include and library directories.
27352#
27353IPC_LIBS=''
27354X11_LIBS=''
27355XEXT_LIBS=''
27356XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027358$as_echo_n "checking for X... " >&6; }
27359
27360
27361# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027362if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027363 withval=$with_x;
27364fi
27365
27366# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27367if test "x$with_x" = xno; then
27368 # The user explicitly disabled X.
27369 have_x=disabled
27370else
27371 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027372 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027373 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027374 $as_echo_n "(cached) " >&6
27375else
27376 # One or both of the vars are not set, and there is no cached value.
27377ac_x_includes=no ac_x_libraries=no
27378rm -f -r conftest.dir
27379if mkdir conftest.dir; then
27380 cd conftest.dir
27381 cat >Imakefile <<'_ACEOF'
27382incroot:
27383 @echo incroot='${INCROOT}'
27384usrlibdir:
27385 @echo usrlibdir='${USRLIBDIR}'
27386libdir:
27387 @echo libdir='${LIBDIR}'
27388_ACEOF
27389 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027390 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027391 for ac_var in incroot usrlibdir libdir; do
27392 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27393 done
27394 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27395 for ac_extension in a so sl dylib la dll; do
27396 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27397 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27398 ac_im_usrlibdir=$ac_im_libdir; break
27399 fi
27400 done
27401 # Screen out bogus values from the imake configuration. They are
27402 # bogus both because they are the default anyway, and because
27403 # using them would break gcc on systems where it needs fixed includes.
27404 case $ac_im_incroot in
27405 /usr/include) ac_x_includes= ;;
27406 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27407 esac
27408 case $ac_im_usrlibdir in
27409 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27410 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27411 esac
27412 fi
27413 cd ..
27414 rm -f -r conftest.dir
27415fi
27416
27417# Standard set of common directories for X headers.
27418# Check X11 before X11Rn because it is often a symlink to the current release.
27419ac_x_header_dirs='
27420/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027421/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027422/usr/X11R6/include
27423/usr/X11R5/include
27424/usr/X11R4/include
27425
27426/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027427/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027428/usr/include/X11R6
27429/usr/include/X11R5
27430/usr/include/X11R4
27431
27432/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027433/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027434/usr/local/X11R6/include
27435/usr/local/X11R5/include
27436/usr/local/X11R4/include
27437
27438/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027439/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027440/usr/local/include/X11R6
27441/usr/local/include/X11R5
27442/usr/local/include/X11R4
27443
27444/usr/X386/include
27445/usr/x386/include
27446/usr/XFree86/include/X11
27447
27448/usr/include
27449/usr/local/include
27450/usr/unsupported/include
27451/usr/athena/include
27452/usr/local/x11r5/include
27453/usr/lpp/Xamples/include
27454
27455/usr/openwin/include
27456/usr/openwin/share/include'
27457
27458if test "$ac_x_includes" = no; then
27459 # Guess where to find include files, by looking for Xlib.h.
27460 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027462/* end confdefs.h. */
27463#include <X11/Xlib.h>
27464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027465if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027466 # We can compile using X headers with no special include directory.
27467ac_x_includes=
27468else
cristyc7083c12009-10-14 03:16:55 +000027469 for ac_dir in $ac_x_header_dirs; do
27470 if test -r "$ac_dir/X11/Xlib.h"; then
27471 ac_x_includes=$ac_dir
27472 break
27473 fi
27474done
27475fi
cristyda16f162011-02-19 23:52:17 +000027476rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027477fi # $ac_x_includes = no
27478
27479if test "$ac_x_libraries" = no; then
27480 # Check for the libraries.
27481 # See if we find them without any special options.
27482 # Don't add to $LIBS permanently.
27483 ac_save_LIBS=$LIBS
27484 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027486/* end confdefs.h. */
27487#include <X11/Xlib.h>
27488int
27489main ()
27490{
27491XrmInitialize ()
27492 ;
27493 return 0;
27494}
27495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027496if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027497 LIBS=$ac_save_LIBS
27498# We can link X programs with no special library path.
27499ac_x_libraries=
27500else
cristy8b350f62009-11-15 23:12:43 +000027501 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027502for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27503do
27504 # Don't even attempt the hair of trying to link an X program!
27505 for ac_extension in a so sl dylib la dll; do
27506 if test -r "$ac_dir/libX11.$ac_extension"; then
27507 ac_x_libraries=$ac_dir
27508 break 2
27509 fi
27510 done
27511done
27512fi
cristy8b350f62009-11-15 23:12:43 +000027513rm -f core conftest.err conftest.$ac_objext \
27514 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027515fi # $ac_x_libraries = no
27516
27517case $ac_x_includes,$ac_x_libraries in #(
27518 no,* | *,no | *\'*)
27519 # Didn't find X, or a directory has "'" in its name.
27520 ac_cv_have_x="have_x=no";; #(
27521 *)
27522 # Record where we found X for the cache.
27523 ac_cv_have_x="have_x=yes\
27524 ac_x_includes='$ac_x_includes'\
27525 ac_x_libraries='$ac_x_libraries'"
27526esac
27527fi
27528;; #(
27529 *) have_x=yes;;
27530 esac
27531 eval "$ac_cv_have_x"
27532fi # $with_x != no
27533
27534if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027536$as_echo "$have_x" >&6; }
27537 no_x=yes
27538else
27539 # If each of the values was on the command line, it overrides each guess.
27540 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27541 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27542 # Update the cache value to reflect the command line values.
27543 ac_cv_have_x="have_x=yes\
27544 ac_x_includes='$x_includes'\
27545 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027547$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27548fi
27549
cristy3ed852e2009-09-05 21:47:34 +000027550if test "$no_x" = yes; then
27551 # Not all programs may use this symbol, but it does not hurt to define it.
27552
cristy8b350f62009-11-15 23:12:43 +000027553$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027554
27555 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27556else
27557 if test -n "$x_includes"; then
27558 X_CFLAGS="$X_CFLAGS -I$x_includes"
27559 fi
27560
27561 # It would also be nice to do this for all -L options, not just this one.
27562 if test -n "$x_libraries"; then
27563 X_LIBS="$X_LIBS -L$x_libraries"
27564 # For Solaris; some versions of Sun CC require a space after -R and
27565 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27568 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27569 ac_xsave_c_werror_flag=$ac_c_werror_flag
27570 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027572/* end confdefs.h. */
27573
27574int
27575main ()
27576{
27577
27578 ;
27579 return 0;
27580}
27581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027582if ac_fn_c_try_link "$LINENO"; then :
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027584$as_echo "no" >&6; }
27585 X_LIBS="$X_LIBS -R$x_libraries"
27586else
cristy8b350f62009-11-15 23:12:43 +000027587 LIBS="$ac_xsave_LIBS -R $x_libraries"
27588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589/* end confdefs.h. */
27590
27591int
27592main ()
27593{
27594
27595 ;
27596 return 0;
27597}
27598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027599if ac_fn_c_try_link "$LINENO"; then :
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027601$as_echo "yes" >&6; }
27602 X_LIBS="$X_LIBS -R $x_libraries"
27603else
cristy8b350f62009-11-15 23:12:43 +000027604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027605$as_echo "neither works" >&6; }
27606fi
cristy8b350f62009-11-15 23:12:43 +000027607rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027609fi
cristy8b350f62009-11-15 23:12:43 +000027610rm -f core conftest.err conftest.$ac_objext \
27611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027612 ac_c_werror_flag=$ac_xsave_c_werror_flag
27613 LIBS=$ac_xsave_LIBS
27614 fi
27615
27616 # Check for system-dependent libraries X programs must link with.
27617 # Do this before checking for the system-independent R6 libraries
27618 # (-lICE), since we may need -lsocket or whatever for X linking.
27619
27620 if test "$ISC" = yes; then
27621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27622 else
27623 # Martyn Johnson says this is needed for Ultrix, if the X
27624 # libraries were built with DECnet support. And Karl Berry says
27625 # the Alpha needs dnet_stub (dnet does not exist).
27626 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027628/* end confdefs.h. */
27629
27630/* Override any GCC internal prototype to avoid an error.
27631 Use char because int might match the return type of a GCC
27632 builtin and then its argument prototype would still apply. */
27633#ifdef __cplusplus
27634extern "C"
27635#endif
27636char XOpenDisplay ();
27637int
27638main ()
27639{
27640return XOpenDisplay ();
27641 ;
27642 return 0;
27643}
27644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027646
cristy8b350f62009-11-15 23:12:43 +000027647else
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027650if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 $as_echo_n "(cached) " >&6
27652else
27653 ac_check_lib_save_LIBS=$LIBS
27654LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656/* end confdefs.h. */
27657
27658/* Override any GCC internal prototype to avoid an error.
27659 Use char because int might match the return type of a GCC
27660 builtin and then its argument prototype would still apply. */
27661#ifdef __cplusplus
27662extern "C"
27663#endif
27664char dnet_ntoa ();
27665int
27666main ()
27667{
27668return dnet_ntoa ();
27669 ;
27670 return 0;
27671}
27672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 ac_cv_lib_dnet_dnet_ntoa=yes
27675else
cristy8b350f62009-11-15 23:12:43 +000027676 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027677fi
cristy8b350f62009-11-15 23:12:43 +000027678rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680LIBS=$ac_check_lib_save_LIBS
27681fi
cristy8b350f62009-11-15 23:12:43 +000027682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027684if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27686fi
27687
27688 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027691if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 $as_echo_n "(cached) " >&6
27693else
27694 ac_check_lib_save_LIBS=$LIBS
27695LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027697/* end confdefs.h. */
27698
27699/* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27702#ifdef __cplusplus
27703extern "C"
27704#endif
27705char dnet_ntoa ();
27706int
27707main ()
27708{
27709return dnet_ntoa ();
27710 ;
27711 return 0;
27712}
27713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027718fi
cristy8b350f62009-11-15 23:12:43 +000027719rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027721LIBS=$ac_check_lib_save_LIBS
27722fi
cristy8b350f62009-11-15 23:12:43 +000027723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027725if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27727fi
27728
27729 fi
27730fi
cristy8b350f62009-11-15 23:12:43 +000027731rm -f core conftest.err conftest.$ac_objext \
27732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027733 LIBS="$ac_xsave_LIBS"
27734
27735 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27736 # to get the SysV transport functions.
27737 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27738 # needs -lnsl.
27739 # The nsl library prevents programs from opening the X display
27740 # on Irix 5.2, according to T.E. Dickey.
27741 # The functions gethostbyname, getservbyname, and inet_addr are
27742 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027743 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027744if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027745
cristy3ed852e2009-09-05 21:47:34 +000027746fi
27747
cristy3ed852e2009-09-05 21:47:34 +000027748 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027751if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 $as_echo_n "(cached) " >&6
27753else
27754 ac_check_lib_save_LIBS=$LIBS
27755LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027757/* end confdefs.h. */
27758
27759/* Override any GCC internal prototype to avoid an error.
27760 Use char because int might match the return type of a GCC
27761 builtin and then its argument prototype would still apply. */
27762#ifdef __cplusplus
27763extern "C"
27764#endif
27765char gethostbyname ();
27766int
27767main ()
27768{
27769return gethostbyname ();
27770 ;
27771 return 0;
27772}
27773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027775 ac_cv_lib_nsl_gethostbyname=yes
27776else
cristy8b350f62009-11-15 23:12:43 +000027777 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027778fi
cristy8b350f62009-11-15 23:12:43 +000027779rm -f core conftest.err conftest.$ac_objext \
27780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781LIBS=$ac_check_lib_save_LIBS
27782fi
cristy8b350f62009-11-15 23:12:43 +000027783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027784$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027785if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27787fi
27788
27789 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027792if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 $as_echo_n "(cached) " >&6
27794else
27795 ac_check_lib_save_LIBS=$LIBS
27796LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027798/* end confdefs.h. */
27799
27800/* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27803#ifdef __cplusplus
27804extern "C"
27805#endif
27806char gethostbyname ();
27807int
27808main ()
27809{
27810return gethostbyname ();
27811 ;
27812 return 0;
27813}
27814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 ac_cv_lib_bsd_gethostbyname=yes
27817else
cristy8b350f62009-11-15 23:12:43 +000027818 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027819fi
cristy8b350f62009-11-15 23:12:43 +000027820rm -f core conftest.err conftest.$ac_objext \
27821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027822LIBS=$ac_check_lib_save_LIBS
27823fi
cristy8b350f62009-11-15 23:12:43 +000027824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027825$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027826if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27828fi
27829
27830 fi
27831 fi
27832
27833 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27834 # socket/setsockopt and other routines are undefined under SCO ODT
27835 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27836 # on later versions), says Simon Leinen: it contains gethostby*
27837 # variants that don't use the name server (or something). -lsocket
27838 # must be given before -lnsl if both are needed. We assume that
27839 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027840 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027841if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027842
cristy3ed852e2009-09-05 21:47:34 +000027843fi
27844
cristy3ed852e2009-09-05 21:47:34 +000027845 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027847$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027848if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027849 $as_echo_n "(cached) " >&6
27850else
27851 ac_check_lib_save_LIBS=$LIBS
27852LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027854/* end confdefs.h. */
27855
27856/* Override any GCC internal prototype to avoid an error.
27857 Use char because int might match the return type of a GCC
27858 builtin and then its argument prototype would still apply. */
27859#ifdef __cplusplus
27860extern "C"
27861#endif
27862char connect ();
27863int
27864main ()
27865{
27866return connect ();
27867 ;
27868 return 0;
27869}
27870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 ac_cv_lib_socket_connect=yes
27873else
cristy8b350f62009-11-15 23:12:43 +000027874 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027875fi
cristy8b350f62009-11-15 23:12:43 +000027876rm -f core conftest.err conftest.$ac_objext \
27877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027878LIBS=$ac_check_lib_save_LIBS
27879fi
cristy8b350f62009-11-15 23:12:43 +000027880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027882if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27884fi
27885
27886 fi
27887
27888 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027889 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027890if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027891
cristy3ed852e2009-09-05 21:47:34 +000027892fi
27893
cristy3ed852e2009-09-05 21:47:34 +000027894 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027897if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 $as_echo_n "(cached) " >&6
27899else
27900 ac_check_lib_save_LIBS=$LIBS
27901LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027903/* end confdefs.h. */
27904
27905/* Override any GCC internal prototype to avoid an error.
27906 Use char because int might match the return type of a GCC
27907 builtin and then its argument prototype would still apply. */
27908#ifdef __cplusplus
27909extern "C"
27910#endif
27911char remove ();
27912int
27913main ()
27914{
27915return remove ();
27916 ;
27917 return 0;
27918}
27919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027920if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 ac_cv_lib_posix_remove=yes
27922else
cristy8b350f62009-11-15 23:12:43 +000027923 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027924fi
cristy8b350f62009-11-15 23:12:43 +000027925rm -f core conftest.err conftest.$ac_objext \
27926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027927LIBS=$ac_check_lib_save_LIBS
27928fi
cristy8b350f62009-11-15 23:12:43 +000027929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027931if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27933fi
27934
27935 fi
27936
27937 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027938 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027939if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027940
cristy3ed852e2009-09-05 21:47:34 +000027941fi
27942
cristy3ed852e2009-09-05 21:47:34 +000027943 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027945$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027946if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027947 $as_echo_n "(cached) " >&6
27948else
27949 ac_check_lib_save_LIBS=$LIBS
27950LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952/* end confdefs.h. */
27953
27954/* Override any GCC internal prototype to avoid an error.
27955 Use char because int might match the return type of a GCC
27956 builtin and then its argument prototype would still apply. */
27957#ifdef __cplusplus
27958extern "C"
27959#endif
27960char shmat ();
27961int
27962main ()
27963{
27964return shmat ();
27965 ;
27966 return 0;
27967}
27968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 ac_cv_lib_ipc_shmat=yes
27971else
cristy8b350f62009-11-15 23:12:43 +000027972 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027973fi
cristy8b350f62009-11-15 23:12:43 +000027974rm -f core conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027976LIBS=$ac_check_lib_save_LIBS
27977fi
cristy8b350f62009-11-15 23:12:43 +000027978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027980if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27982fi
27983
27984 fi
27985 fi
27986
27987 # Check for libraries that X11R6 Xt/Xaw programs need.
27988 ac_save_LDFLAGS=$LDFLAGS
27989 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27990 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27991 # check for ICE first), but we must link in the order -lSM -lICE or
27992 # we get undefined symbols. So assume we have SM if we have ICE.
27993 # These have to be linked with before -lX11, unlike the other
27994 # libraries we check for below, so use a different variable.
27995 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027998if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 $as_echo_n "(cached) " >&6
28000else
28001 ac_check_lib_save_LIBS=$LIBS
28002LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028004/* end confdefs.h. */
28005
28006/* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012char IceConnectionNumber ();
28013int
28014main ()
28015{
28016return IceConnectionNumber ();
28017 ;
28018 return 0;
28019}
28020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 ac_cv_lib_ICE_IceConnectionNumber=yes
28023else
cristy8b350f62009-11-15 23:12:43 +000028024 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028025fi
cristy8b350f62009-11-15 23:12:43 +000028026rm -f core conftest.err conftest.$ac_objext \
28027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028028LIBS=$ac_check_lib_save_LIBS
28029fi
cristy8b350f62009-11-15 23:12:43 +000028030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028031$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028032if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028033 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28034fi
28035
28036 LDFLAGS=$ac_save_LDFLAGS
28037
28038fi
28039
28040if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028041 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28042$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028045 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28046$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028047 LDFLAGS="$LDFLAGS $X_LIBS"
28048 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28049 LIBS="$X11_LIBS $LIBS"
28050 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28051
28052
cristy8b350f62009-11-15 23:12:43 +000028053$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028054
28055 #
28056 # Check for X11 shared memory extension
28057 #
28058 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028059 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028060if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 have_shmctl='yes'
28062fi
28063
28064 if test "$have_shmctl" != 'yes'; then
28065 PERSIST_LIBS=$LIBS
28066 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068/* end confdefs.h. */
28069
28070/* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
28073#ifdef __cplusplus
28074extern "C"
28075#endif
28076char shmctl ();
28077int
28078main ()
28079{
28080return shmctl ();
28081 ;
28082 return 0;
28083}
28084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028087fi
cristy8b350f62009-11-15 23:12:43 +000028088rm -f core conftest.err conftest.$ac_objext \
28089 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028090 LIBS=$PERSIST_LIBS
28091 fi
28092
28093 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028095$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028096if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028097 $as_echo_n "(cached) " >&6
28098else
28099 ac_check_lib_save_LIBS=$LIBS
28100LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028102/* end confdefs.h. */
28103
28104/* Override any GCC internal prototype to avoid an error.
28105 Use char because int might match the return type of a GCC
28106 builtin and then its argument prototype would still apply. */
28107#ifdef __cplusplus
28108extern "C"
28109#endif
28110char XShmAttach ();
28111int
28112main ()
28113{
28114return XShmAttach ();
28115 ;
28116 return 0;
28117}
28118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028119if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 ac_cv_lib_Xext_XShmAttach=yes
28121else
cristy8b350f62009-11-15 23:12:43 +000028122 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028123fi
cristy8b350f62009-11-15 23:12:43 +000028124rm -f core conftest.err conftest.$ac_objext \
28125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028126LIBS=$ac_check_lib_save_LIBS
28127fi
cristy8b350f62009-11-15 23:12:43 +000028128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028129$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028130if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028131 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028132$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028133
28134fi
28135
28136 fi
28137
28138 #
28139 # Check for X11 shape extension
28140 #
cristy8b350f62009-11-15 23:12:43 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028142$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028143if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028144 $as_echo_n "(cached) " >&6
28145else
28146 ac_check_lib_save_LIBS=$LIBS
28147LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028149/* end confdefs.h. */
28150
28151/* Override any GCC internal prototype to avoid an error.
28152 Use char because int might match the return type of a GCC
28153 builtin and then its argument prototype would still apply. */
28154#ifdef __cplusplus
28155extern "C"
28156#endif
28157char XShapeCombineMask ();
28158int
28159main ()
28160{
28161return XShapeCombineMask ();
28162 ;
28163 return 0;
28164}
28165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028167 ac_cv_lib_Xext_XShapeCombineMask=yes
28168else
cristy8b350f62009-11-15 23:12:43 +000028169 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028170fi
cristy8b350f62009-11-15 23:12:43 +000028171rm -f core conftest.err conftest.$ac_objext \
28172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028173LIBS=$ac_check_lib_save_LIBS
28174fi
cristy8b350f62009-11-15 23:12:43 +000028175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028176$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028177if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028178 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028179$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028180
28181fi
28182
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028185if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028186 $as_echo_n "(cached) " >&6
28187else
28188 ac_check_lib_save_LIBS=$LIBS
28189LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028191/* end confdefs.h. */
28192
28193/* Override any GCC internal prototype to avoid an error.
28194 Use char because int might match the return type of a GCC
28195 builtin and then its argument prototype would still apply. */
28196#ifdef __cplusplus
28197extern "C"
28198#endif
28199char XtSetEventDispatcher ();
28200int
28201main ()
28202{
28203return XtSetEventDispatcher ();
28204 ;
28205 return 0;
28206}
28207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28210else
cristy8b350f62009-11-15 23:12:43 +000028211 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028212fi
cristy8b350f62009-11-15 23:12:43 +000028213rm -f core conftest.err conftest.$ac_objext \
28214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028215LIBS=$ac_check_lib_save_LIBS
28216fi
cristy8b350f62009-11-15 23:12:43 +000028217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028218$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028219if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028220 XT_LIBS='-lXt'
28221fi
28222
28223 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28224fi
28225if test "$no_x" != 'yes'; then
28226 have_x='yes'
28227else
28228 have_x='no'
28229fi
cristy73bd4a52010-10-05 11:24:23 +000028230 if test "$have_x" = 'yes'; then
28231 X11_DELEGATE_TRUE=
28232 X11_DELEGATE_FALSE='#'
28233else
28234 X11_DELEGATE_TRUE='#'
28235 X11_DELEGATE_FALSE=
28236fi
28237
cristy3ed852e2009-09-05 21:47:34 +000028238
28239
28240
28241
28242#
28243# Check for ZLIB
28244#
28245
28246# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028247if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028248 withval=$with_zlib; with_zlib=$withval
28249else
28250 with_zlib='yes'
28251fi
28252
28253
28254if test "$with_zlib" != 'yes'; then
28255 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28256fi
28257
28258have_zlib='no'
28259ZLIB_LIBS=''
28260if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28262$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028264$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28266$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028267 ZLIB_LIBS=''
28268 failed=0
28269 passed=0
cristy8b350f62009-11-15 23:12:43 +000028270 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028271if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 passed=`expr $passed + 1`
28273else
28274 failed=`expr $failed + 1`
28275fi
28276
28277
cristy8b350f62009-11-15 23:12:43 +000028278 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028279if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 passed=`expr $passed + 1`
28281else
28282 failed=`expr $failed + 1`
28283fi
28284
28285
cristy8b350f62009-11-15 23:12:43 +000028286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028287$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028288if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028289 $as_echo_n "(cached) " >&6
28290else
28291 ac_check_lib_save_LIBS=$LIBS
28292LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028294/* end confdefs.h. */
28295
28296/* Override any GCC internal prototype to avoid an error.
28297 Use char because int might match the return type of a GCC
28298 builtin and then its argument prototype would still apply. */
28299#ifdef __cplusplus
28300extern "C"
28301#endif
28302char compress ();
28303int
28304main ()
28305{
28306return compress ();
28307 ;
28308 return 0;
28309}
28310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 ac_cv_lib_z_compress=yes
28313else
cristy8b350f62009-11-15 23:12:43 +000028314 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028315fi
cristy8b350f62009-11-15 23:12:43 +000028316rm -f core conftest.err conftest.$ac_objext \
28317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028318LIBS=$ac_check_lib_save_LIBS
28319fi
cristy8b350f62009-11-15 23:12:43 +000028320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028321$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028322if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028323 passed=`expr $passed + 1`
28324else
28325 failed=`expr $failed + 1`
28326fi
28327
cristy8b350f62009-11-15 23:12:43 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028329$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028330if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028331 $as_echo_n "(cached) " >&6
28332else
28333 ac_check_lib_save_LIBS=$LIBS
28334LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028336/* end confdefs.h. */
28337
28338/* Override any GCC internal prototype to avoid an error.
28339 Use char because int might match the return type of a GCC
28340 builtin and then its argument prototype would still apply. */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char uncompress ();
28345int
28346main ()
28347{
28348return uncompress ();
28349 ;
28350 return 0;
28351}
28352_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028353if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 ac_cv_lib_z_uncompress=yes
28355else
cristy8b350f62009-11-15 23:12:43 +000028356 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028357fi
cristy8b350f62009-11-15 23:12:43 +000028358rm -f core conftest.err conftest.$ac_objext \
28359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028360LIBS=$ac_check_lib_save_LIBS
28361fi
cristy8b350f62009-11-15 23:12:43 +000028362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028364if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028365 passed=`expr $passed + 1`
28366else
28367 failed=`expr $failed + 1`
28368fi
28369
cristy8b350f62009-11-15 23:12:43 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028371$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028372if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 $as_echo_n "(cached) " >&6
28374else
28375 ac_check_lib_save_LIBS=$LIBS
28376LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028378/* end confdefs.h. */
28379
28380/* Override any GCC internal prototype to avoid an error.
28381 Use char because int might match the return type of a GCC
28382 builtin and then its argument prototype would still apply. */
28383#ifdef __cplusplus
28384extern "C"
28385#endif
28386char deflate ();
28387int
28388main ()
28389{
28390return deflate ();
28391 ;
28392 return 0;
28393}
28394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028395if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 ac_cv_lib_z_deflate=yes
28397else
cristy8b350f62009-11-15 23:12:43 +000028398 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028399fi
cristy8b350f62009-11-15 23:12:43 +000028400rm -f core conftest.err conftest.$ac_objext \
28401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028402LIBS=$ac_check_lib_save_LIBS
28403fi
cristy8b350f62009-11-15 23:12:43 +000028404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028406if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 passed=`expr $passed + 1`
28408else
28409 failed=`expr $failed + 1`
28410fi
28411
cristy8b350f62009-11-15 23:12:43 +000028412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028414if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 $as_echo_n "(cached) " >&6
28416else
28417 ac_check_lib_save_LIBS=$LIBS
28418LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028420/* end confdefs.h. */
28421
28422/* Override any GCC internal prototype to avoid an error.
28423 Use char because int might match the return type of a GCC
28424 builtin and then its argument prototype would still apply. */
28425#ifdef __cplusplus
28426extern "C"
28427#endif
28428char inflate ();
28429int
28430main ()
28431{
28432return inflate ();
28433 ;
28434 return 0;
28435}
28436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028438 ac_cv_lib_z_inflate=yes
28439else
cristy8b350f62009-11-15 23:12:43 +000028440 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028441fi
cristy8b350f62009-11-15 23:12:43 +000028442rm -f core conftest.err conftest.$ac_objext \
28443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028444LIBS=$ac_check_lib_save_LIBS
28445fi
cristy8b350f62009-11-15 23:12:43 +000028446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028447$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028448if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028449 passed=`expr $passed + 1`
28450else
28451 failed=`expr $failed + 1`
28452fi
28453
cristy8b350f62009-11-15 23:12:43 +000028454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028455$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 $as_echo_n "(cached) " >&6
28458else
28459 ac_check_lib_save_LIBS=$LIBS
28460LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462/* end confdefs.h. */
28463
28464/* Override any GCC internal prototype to avoid an error.
28465 Use char because int might match the return type of a GCC
28466 builtin and then its argument prototype would still apply. */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470char gzseek ();
28471int
28472main ()
28473{
28474return gzseek ();
28475 ;
28476 return 0;
28477}
28478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028480 ac_cv_lib_z_gzseek=yes
28481else
cristy8b350f62009-11-15 23:12:43 +000028482 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028483fi
cristy8b350f62009-11-15 23:12:43 +000028484rm -f core conftest.err conftest.$ac_objext \
28485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028486LIBS=$ac_check_lib_save_LIBS
28487fi
cristy8b350f62009-11-15 23:12:43 +000028488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028489$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028490if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028491 passed=`expr $passed + 1`
28492else
28493 failed=`expr $failed + 1`
28494fi
28495
cristy8b350f62009-11-15 23:12:43 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028497$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028498if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028499 $as_echo_n "(cached) " >&6
28500else
28501 ac_check_lib_save_LIBS=$LIBS
28502LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028504/* end confdefs.h. */
28505
28506/* Override any GCC internal prototype to avoid an error.
28507 Use char because int might match the return type of a GCC
28508 builtin and then its argument prototype would still apply. */
28509#ifdef __cplusplus
28510extern "C"
28511#endif
28512char gztell ();
28513int
28514main ()
28515{
28516return gztell ();
28517 ;
28518 return 0;
28519}
28520_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028521if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028522 ac_cv_lib_z_gztell=yes
28523else
cristy8b350f62009-11-15 23:12:43 +000028524 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028525fi
cristy8b350f62009-11-15 23:12:43 +000028526rm -f core conftest.err conftest.$ac_objext \
28527 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028528LIBS=$ac_check_lib_save_LIBS
28529fi
cristy8b350f62009-11-15 23:12:43 +000028530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028532if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028533 passed=`expr $passed + 1`
28534else
28535 failed=`expr $failed + 1`
28536fi
28537
cristy8b350f62009-11-15 23:12:43 +000028538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028539$as_echo_n "checking if ZLIB package is complete... " >&6; }
28540 if test $passed -gt 0; then
28541 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28543$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028544 have_zlib='no (failed tests)'
28545 else
28546 ZLIB_LIBS='-lz'
28547 LIBS="$ZLIB_LIBS $LIBS"
28548
cristy8b350f62009-11-15 23:12:43 +000028549$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028550
cristy09b53e12011-10-14 12:47:22 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28552$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028553 have_zlib='yes'
28554 fi
28555 else
cristy09b53e12011-10-14 12:47:22 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28557$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028558 fi
28559fi
cristy73bd4a52010-10-05 11:24:23 +000028560 if test "$have_zlib" = 'yes'; then
28561 ZLIB_DELEGATE_TRUE=
28562 ZLIB_DELEGATE_FALSE='#'
28563else
28564 ZLIB_DELEGATE_TRUE='#'
28565 ZLIB_DELEGATE_FALSE=
28566fi
28567
cristy3ed852e2009-09-05 21:47:34 +000028568
28569
28570#
28571# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28572#
28573LIB_DL=''
28574if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028577if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028578 $as_echo_n "(cached) " >&6
28579else
28580 ac_check_lib_save_LIBS=$LIBS
28581LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028583/* end confdefs.h. */
28584
28585/* Override any GCC internal prototype to avoid an error.
28586 Use char because int might match the return type of a GCC
28587 builtin and then its argument prototype would still apply. */
28588#ifdef __cplusplus
28589extern "C"
28590#endif
28591char dlopen ();
28592int
28593main ()
28594{
28595return dlopen ();
28596 ;
28597 return 0;
28598}
28599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 ac_cv_lib_dl_dlopen=yes
28602else
cristy8b350f62009-11-15 23:12:43 +000028603 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028604fi
cristy8b350f62009-11-15 23:12:43 +000028605rm -f core conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028607LIBS=$ac_check_lib_save_LIBS
28608fi
cristy8b350f62009-11-15 23:12:43 +000028609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028611if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028612 LIB_DL='-ldl'
28613fi
28614
28615 LIBS="$LIB_DL $LIBS"
28616fi
28617
28618
28619
28620#
28621# Check for Autotrace delegate library.
28622#
28623
28624# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028625if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028626 withval=$with_autotrace; with_autotrace=$withval
28627else
28628 with_autotrace='no'
28629fi
28630
28631
28632if test "$with_autotrace" != 'yes'; then
28633 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28634fi
28635
28636have_autotrace='no'
28637AUTOTRACE_CFLAGS=""
28638AUTOTRACE_LIBS=""
28639AUTOTRACE_PKG=""
28640if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028641 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28642$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028643
28644pkg_failed=no
28645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28646$as_echo_n "checking for AUTOTRACE... " >&6; }
28647
28648if test -n "$AUTOTRACE_CFLAGS"; then
28649 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28650 elif test -n "$PKG_CONFIG"; then
28651 if test -n "$PKG_CONFIG" && \
28652 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28653 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28654 ac_status=$?
28655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28656 test $ac_status = 0; }; then
28657 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28658else
28659 pkg_failed=yes
28660fi
28661 else
28662 pkg_failed=untried
28663fi
28664if test -n "$AUTOTRACE_LIBS"; then
28665 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28666 elif test -n "$PKG_CONFIG"; then
28667 if test -n "$PKG_CONFIG" && \
28668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28669 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28670 ac_status=$?
28671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28672 test $ac_status = 0; }; then
28673 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28674else
28675 pkg_failed=yes
28676fi
28677 else
28678 pkg_failed=untried
28679fi
28680
28681
28682
28683if test $pkg_failed = yes; then
28684
28685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28686 _pkg_short_errors_supported=yes
28687else
28688 _pkg_short_errors_supported=no
28689fi
28690 if test $_pkg_short_errors_supported = yes; then
28691 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28692 else
28693 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28694 fi
28695 # Put the nasty error message in config.log where it belongs
28696 echo "$AUTOTRACE_PKG_ERRORS" >&5
28697
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28699$as_echo "no" >&6; }
28700 have_autotrace=no
28701elif test $pkg_failed = untried; then
28702 have_autotrace=no
28703else
28704 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28705 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28707$as_echo "yes" >&6; }
28708 have_autotrace=yes
28709fi
cristy09b53e12011-10-14 12:47:22 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28711$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028712fi
28713
28714if test "$have_autotrace" = 'yes'; then
28715 failed=0
28716
cristy8b350f62009-11-15 23:12:43 +000028717$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028718
28719 if test "$with_modules" = 'no'; then
28720 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28721 fi
28722fi
28723
cristy73bd4a52010-10-05 11:24:23 +000028724 if test "$have_autotrace" = 'yes'; then
28725 AUTOTRACE_DELEGATE_TRUE=
28726 AUTOTRACE_DELEGATE_FALSE='#'
28727else
28728 AUTOTRACE_DELEGATE_TRUE='#'
28729 AUTOTRACE_DELEGATE_FALSE=
28730fi
28731
cristy3ed852e2009-09-05 21:47:34 +000028732
28733
28734
28735
28736#
28737# Check for Display Postscript delegate library.
28738#
28739
28740# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028741if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028742 withval=$with_dps; with_dps=$withval
28743else
28744 with_dps='yes'
28745fi
28746
28747
28748if test "$with_dps" != 'yes'; then
28749 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28750fi
28751
28752have_dps='no'
28753DPS_LIBS=''
28754if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028755 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28756$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028758$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028759 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28760$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028761 failed=0
28762 passed=0
28763 PERSIST_CPPFLAGS="$CPPFLAGS"
28764 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028765 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 +000028766if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028767 passed=`expr $passed + 1`
28768else
28769 failed=`expr $failed + 1`
28770fi
28771
28772
28773 # DPS issues:
28774 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28775 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28776 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28777 # ImageMagick itself doesn't use -lXt.
28778 have_libdps='no'
28779 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028781$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028782if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028783 $as_echo_n "(cached) " >&6
28784else
28785 ac_check_lib_save_LIBS=$LIBS
28786LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028788/* end confdefs.h. */
28789
28790/* Override any GCC internal prototype to avoid an error.
28791 Use char because int might match the return type of a GCC
28792 builtin and then its argument prototype would still apply. */
28793#ifdef __cplusplus
28794extern "C"
28795#endif
28796char DPSInitialize ();
28797int
28798main ()
28799{
28800return DPSInitialize ();
28801 ;
28802 return 0;
28803}
28804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 ac_cv_lib_dps_DPSInitialize=yes
28807else
cristy8b350f62009-11-15 23:12:43 +000028808 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028809fi
cristy8b350f62009-11-15 23:12:43 +000028810rm -f core conftest.err conftest.$ac_objext \
28811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028812LIBS=$ac_check_lib_save_LIBS
28813fi
cristy8b350f62009-11-15 23:12:43 +000028814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028815$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028816if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 have_libdps='yes'
28818else
28819 have_libdps='no'
28820fi
28821
28822 if test "$have_libdps" != 'yes'; then
28823 # Unset cache variable so we can try again.
28824 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028826$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028827if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028828 $as_echo_n "(cached) " >&6
28829else
28830 ac_check_lib_save_LIBS=$LIBS
28831LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028833/* end confdefs.h. */
28834
28835/* Override any GCC internal prototype to avoid an error.
28836 Use char because int might match the return type of a GCC
28837 builtin and then its argument prototype would still apply. */
28838#ifdef __cplusplus
28839extern "C"
28840#endif
28841char DPSInitialize ();
28842int
28843main ()
28844{
28845return DPSInitialize ();
28846 ;
28847 return 0;
28848}
28849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028851 ac_cv_lib_dps_DPSInitialize=yes
28852else
cristy8b350f62009-11-15 23:12:43 +000028853 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028854fi
cristy8b350f62009-11-15 23:12:43 +000028855rm -f core conftest.err conftest.$ac_objext \
28856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028857LIBS=$ac_check_lib_save_LIBS
28858fi
cristy8b350f62009-11-15 23:12:43 +000028859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028861if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 have_libdps='yes'
28863else
28864 have_libdps='no'
28865fi
28866
28867 if test "$have_libdps" = 'yes'; then
28868 LIBDPS_XT='-lXt'
28869 fi
28870 fi
28871 if test "$have_libdps" = 'yes'; then
28872 passed=`expr $passed + 1`
28873 else
28874 failed=`expr $failed + 1`
28875 fi
cristy8b350f62009-11-15 23:12:43 +000028876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028877$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028878if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 $as_echo_n "(cached) " >&6
28880else
28881 ac_check_lib_save_LIBS=$LIBS
28882LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028884/* end confdefs.h. */
28885
28886/* Override any GCC internal prototype to avoid an error.
28887 Use char because int might match the return type of a GCC
28888 builtin and then its argument prototype would still apply. */
28889#ifdef __cplusplus
28890extern "C"
28891#endif
28892char XDPSPixelsPerPoint ();
28893int
28894main ()
28895{
28896return XDPSPixelsPerPoint ();
28897 ;
28898 return 0;
28899}
28900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28903else
cristy8b350f62009-11-15 23:12:43 +000028904 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028905fi
cristy8b350f62009-11-15 23:12:43 +000028906rm -f core conftest.err conftest.$ac_objext \
28907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028908LIBS=$ac_check_lib_save_LIBS
28909fi
cristy8b350f62009-11-15 23:12:43 +000028910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028912if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028913 passed=`expr $passed + 1`
28914else
28915 failed=`expr $failed + 1`
28916fi
28917
cristy8b350f62009-11-15 23:12:43 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028919$as_echo_n "checking if DPS package is complete... " >&6; }
28920 if test $passed -gt 0; then
28921 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28923$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028924 have_dps='no (failed tests)'
28925 CPPFLAGS="$PERSIST_CPPFLAGS"
28926 else
28927 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28928 LIBS="$DPS_LIBS $LIBS"
28929
cristy8b350f62009-11-15 23:12:43 +000028930$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028931
cristy09b53e12011-10-14 12:47:22 +000028932 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28933$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028934 have_dps='yes'
28935 fi
28936 else
cristy09b53e12011-10-14 12:47:22 +000028937 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28938$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028939 CPPFLAGS=$PERSIST_CPPFLAGS
28940 fi
28941fi
cristy73bd4a52010-10-05 11:24:23 +000028942 if test "$have_dps" = 'yes'; then
28943 DPS_DELEGATE_TRUE=
28944 DPS_DELEGATE_FALSE='#'
28945else
28946 DPS_DELEGATE_TRUE='#'
28947 DPS_DELEGATE_FALSE=
28948fi
28949
cristy3ed852e2009-09-05 21:47:34 +000028950
28951
28952
28953#
28954# Check for DJVU delegate library.
28955#
28956
28957# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028958if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 withval=$with_djvu; with_djvu=$withval
28960else
28961 with_djvu='yes'
28962fi
28963
28964
28965if test "$with_djvu" != 'yes'; then
28966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28967fi
28968
28969have_djvu='no'
28970DJVU_LIBS=''
28971if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28973$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028975$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28977$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028978 failed=0
28979 passed=0
cristy8b350f62009-11-15 23:12:43 +000028980 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 +000028981if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 passed=`expr $passed + 1`
28983else
28984 failed=`expr $failed + 1`
28985fi
28986
28987
cristy8b350f62009-11-15 23:12:43 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028989$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028990if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028991 $as_echo_n "(cached) " >&6
28992else
28993 ac_check_lib_save_LIBS=$LIBS
28994LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028996/* end confdefs.h. */
28997
28998/* Override any GCC internal prototype to avoid an error.
28999 Use char because int might match the return type of a GCC
29000 builtin and then its argument prototype would still apply. */
29001#ifdef __cplusplus
29002extern "C"
29003#endif
29004char ddjvu_context_create ();
29005int
29006main ()
29007{
29008return ddjvu_context_create ();
29009 ;
29010 return 0;
29011}
29012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029014 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29015else
cristy8b350f62009-11-15 23:12:43 +000029016 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029017fi
cristy8b350f62009-11-15 23:12:43 +000029018rm -f core conftest.err conftest.$ac_objext \
29019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029020LIBS=$ac_check_lib_save_LIBS
29021fi
cristy8b350f62009-11-15 23:12:43 +000029022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029024if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029025 passed=`expr $passed + 1`
29026else
29027 failed=`expr $failed + 1`
29028fi
29029
cristy8b350f62009-11-15 23:12:43 +000029030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029031$as_echo_n "checking if DJVU package is complete... " >&6; }
29032 if test $passed -gt 0; then
29033 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029034 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29035$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029036 have_djvu='no (failed tests)'
29037 else
29038 DJVU_LIBS='-ldjvulibre'
29039 LIBS="$DJVU_LIBS $LIBS"
29040
cristy8b350f62009-11-15 23:12:43 +000029041$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029042
cristy09b53e12011-10-14 12:47:22 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29044$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029045 have_djvu='yes'
29046 fi
29047 else
cristy09b53e12011-10-14 12:47:22 +000029048 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29049$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029050 fi
29051fi
cristy73bd4a52010-10-05 11:24:23 +000029052 if test "$have_djvu" = 'yes'; then
29053 DJVU_DELEGATE_TRUE=
29054 DJVU_DELEGATE_FALSE='#'
29055else
29056 DJVU_DELEGATE_TRUE='#'
29057 DJVU_DELEGATE_FALSE=
29058fi
29059
cristy3ed852e2009-09-05 21:47:34 +000029060
29061
29062
29063#
cristy430a7312010-01-21 20:44:04 +000029064# Set DejaVu font directory.
29065#
29066
29067# Check whether --with-dejavu-font-dir was given.
29068if test "${with_dejavu_font_dir+set}" = set; then :
29069 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29070else
29071 with_dejavu_font_dir='default'
29072fi
29073
29074
29075if test "$with_dejavu_font_dir" != 'default'; then
29076 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29077fi
29078
29079
29080#
cristy3ed852e2009-09-05 21:47:34 +000029081# Check for FFTW delegate library.
29082#
29083
29084# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029085if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029086 withval=$with_fftw; with_fftw=$withval
29087else
29088 with_fftw='yes'
29089fi
29090
29091
29092if test "$with_fftw" != 'yes'; then
29093 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29094fi
29095
cristy81beccd2011-10-03 18:17:24 +000029096have_fftw='no'
29097FFTW_LIBS=''
29098if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029099 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29100$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29102$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29104$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029105 failed=0
29106 passed=0
29107 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29108if test "x$ac_cv_header_fftw3_h" = xyes; then :
29109 passed=`expr $passed + 1`
29110else
29111 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029112fi
29113
cristy81beccd2011-10-03 18:17:24 +000029114
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29116$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29117if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29118 $as_echo_n "(cached) " >&6
29119else
29120 ac_check_lib_save_LIBS=$LIBS
29121LIBS="-lfftw3 $LIBS"
29122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29123/* end confdefs.h. */
29124
29125/* Override any GCC internal prototype to avoid an error.
29126 Use char because int might match the return type of a GCC
29127 builtin and then its argument prototype would still apply. */
29128#ifdef __cplusplus
29129extern "C"
29130#endif
29131char fftw_execute ();
29132int
29133main ()
29134{
29135return fftw_execute ();
29136 ;
29137 return 0;
29138}
29139_ACEOF
29140if ac_fn_c_try_link "$LINENO"; then :
29141 ac_cv_lib_fftw3_fftw_execute=yes
29142else
29143 ac_cv_lib_fftw3_fftw_execute=no
29144fi
29145rm -f core conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
29147LIBS=$ac_check_lib_save_LIBS
29148fi
29149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29150$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29151if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29152 passed=`expr $passed + 1`
29153else
29154 failed=`expr $failed + 1`
29155fi
29156
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29158$as_echo_n "checking if FFTW package is complete... " >&6; }
29159 if test $passed -gt 0; then
29160 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29162$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029163 have_fftw='no (failed tests)'
29164 else
29165 FFTW_LIBS='-lfftw3'
29166 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029167
cristy8b350f62009-11-15 23:12:43 +000029168$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029169
cristy09b53e12011-10-14 12:47:22 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29171$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029172 have_fftw='yes'
29173 fi
29174 else
cristy09b53e12011-10-14 12:47:22 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29176$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029177 fi
29178fi
cristy73bd4a52010-10-05 11:24:23 +000029179 if test "$have_fftw" = 'yes'; then
29180 FFTW_DELEGATE_TRUE=
29181 FFTW_DELEGATE_FALSE='#'
29182else
29183 FFTW_DELEGATE_TRUE='#'
29184 FFTW_DELEGATE_FALSE=
29185fi
29186
cristy3ed852e2009-09-05 21:47:34 +000029187
29188
29189
29190#
29191# Check for FlashPIX delegate library.
29192#
29193
29194# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029195if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029196 withval=$with_fpx; with_fpx=$withval
29197else
29198 with_fpx='yes'
29199fi
29200
29201
29202if test "$with_fpx" != 'yes'; then
29203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29204fi
29205
29206have_fpx='no'
29207FPX_LIBS=''
29208if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029209 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29210$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029212$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29214$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029215 failed=0
29216 passed=0
29217 ac_ext=cpp
29218ac_cpp='$CXXCPP $CPPFLAGS'
29219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29222
29223
cristy8b350f62009-11-15 23:12:43 +000029224ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029225if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 passed=`expr $passed + 1`
29227else
29228 failed=`expr $failed + 1`
29229fi
29230
29231
cristy8b350f62009-11-15 23:12:43 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029233$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029234if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029235 $as_echo_n "(cached) " >&6
29236else
29237 ac_check_lib_save_LIBS=$LIBS
29238LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029240/* end confdefs.h. */
29241
29242/* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29245#ifdef __cplusplus
29246extern "C"
29247#endif
29248char FPX_OpenImageByFilename ();
29249int
29250main ()
29251{
29252return FPX_OpenImageByFilename ();
29253 ;
29254 return 0;
29255}
29256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029257if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29259else
cristy8b350f62009-11-15 23:12:43 +000029260 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029261fi
cristy8b350f62009-11-15 23:12:43 +000029262rm -f core conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029264LIBS=$ac_check_lib_save_LIBS
29265fi
cristy8b350f62009-11-15 23:12:43 +000029266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029268if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 passed=`expr $passed + 1`
29270else
29271 failed=`expr $failed + 1`
29272fi
29273
29274 ac_ext=c
29275ac_cpp='$CPP $CPPFLAGS'
29276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29278ac_compiler_gnu=$ac_cv_c_compiler_gnu
29279
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29282 if test $passed -gt 0; then
29283 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29285$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029286 have_fpx='no (failed tests)'
29287 else
29288 FPX_LIBS='-lfpx'
29289
cristy8b350f62009-11-15 23:12:43 +000029290$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029291
cristy09b53e12011-10-14 12:47:22 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29293$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029294 have_fpx='yes'
29295 PERLMAINCC="$CXX"
29296 fi
29297 else
cristy09b53e12011-10-14 12:47:22 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29299$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029300 fi
29301fi
cristy73bd4a52010-10-05 11:24:23 +000029302 if test "$have_fpx" = 'yes'; then
29303 FPX_DELEGATE_TRUE=
29304 FPX_DELEGATE_FALSE='#'
29305else
29306 FPX_DELEGATE_TRUE='#'
29307 FPX_DELEGATE_FALSE=
29308fi
29309
cristy3ed852e2009-09-05 21:47:34 +000029310
29311
29312
29313#
29314# Check for fontconfig delegate library.
29315#
29316
29317# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029318if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029319 withval=$with_fontconfig; with_fontconfig=$withval
29320else
cristyfc3d0222012-02-07 15:05:57 +000029321 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029322fi
29323
29324
29325if test "$with_fontconfig" != 'yes'; then
29326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29327fi
29328
29329have_fontconfig='no'
29330FONTCONFIG_CFLAGS=""
29331FONTCONFIG_LIBS=""
29332FONTCONFIG_PKG=""
29333if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29335$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029336
29337pkg_failed=no
29338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29339$as_echo_n "checking for FONTCONFIG... " >&6; }
29340
29341if test -n "$FONTCONFIG_CFLAGS"; then
29342 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29343 elif test -n "$PKG_CONFIG"; then
29344 if test -n "$PKG_CONFIG" && \
29345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29346 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29347 ac_status=$?
29348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29349 test $ac_status = 0; }; then
29350 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29351else
29352 pkg_failed=yes
29353fi
29354 else
29355 pkg_failed=untried
29356fi
29357if test -n "$FONTCONFIG_LIBS"; then
29358 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29359 elif test -n "$PKG_CONFIG"; then
29360 if test -n "$PKG_CONFIG" && \
29361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29362 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29363 ac_status=$?
29364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29365 test $ac_status = 0; }; then
29366 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29367else
29368 pkg_failed=yes
29369fi
29370 else
29371 pkg_failed=untried
29372fi
29373
29374
29375
29376if test $pkg_failed = yes; then
29377
29378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29379 _pkg_short_errors_supported=yes
29380else
29381 _pkg_short_errors_supported=no
29382fi
29383 if test $_pkg_short_errors_supported = yes; then
29384 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29385 else
29386 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29387 fi
29388 # Put the nasty error message in config.log where it belongs
29389 echo "$FONTCONFIG_PKG_ERRORS" >&5
29390
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29392$as_echo "no" >&6; }
29393 have_fontconfig=no
29394elif test $pkg_failed = untried; then
29395 have_fontconfig=no
29396else
29397 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29398 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400$as_echo "yes" >&6; }
29401 have_fontconfig=yes
29402fi
cristy09b53e12011-10-14 12:47:22 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29404$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029405fi
29406
29407if test "$have_fontconfig" = 'yes'; then
29408
cristy8b350f62009-11-15 23:12:43 +000029409$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029410
cristyd09bcf92010-03-25 03:04:45 +000029411 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029412 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029413 fi
cristy3ed852e2009-09-05 21:47:34 +000029414fi
29415
cristy73bd4a52010-10-05 11:24:23 +000029416 if test "$have_fontconfig" = 'yes'; then
29417 FONTCONFIG_DELEGATE_TRUE=
29418 FONTCONFIG_DELEGATE_FALSE='#'
29419else
29420 FONTCONFIG_DELEGATE_TRUE='#'
29421 FONTCONFIG_DELEGATE_FALSE=
29422fi
29423
cristy3ed852e2009-09-05 21:47:34 +000029424
29425
29426
29427
29428#
cristy81beccd2011-10-03 18:17:24 +000029429# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029430#
29431
29432# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029433if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029434 withval=$with_freetype; with_freetype=$withval
29435else
29436 with_freetype='yes'
29437fi
29438
29439
cristy81beccd2011-10-03 18:17:24 +000029440
cristy3ed852e2009-09-05 21:47:34 +000029441if test "$with_freetype" != 'yes'; then
29442 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29443fi
29444
cristy81beccd2011-10-03 18:17:24 +000029445have_freetype='no'
29446FREETYPE_LIBS=''
29447if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029448 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29449$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29451$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29453$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029454 failed=0
29455 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029456 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029457 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029458 freetype_config=''
29459 # Allow the user to specify the location of freetype.
29460 if test "$with_freetype" != 'yes'; then
29461 if test -x "${with_freetype}/bin/freetype-config"; then
29462 freetype_config="${with_freetype}/bin/freetype-config"
29463 elif test -x "${with_freetype}"; then
29464 freetype_config=${with_freetype}
29465 fi
29466 fi
29467 if test -z "$freetype_config"; then
29468 # Extract the first word of "freetype-config", so it can be a program name with args.
29469set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29471$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029472if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029473 $as_echo_n "(cached) " >&6
29474else
cristy98ca0f52011-10-08 23:19:10 +000029475 case $freetype_config in
29476 [\\/]* | ?:[\\/]*)
29477 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29478 ;;
29479 *)
29480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029481for as_dir in $PATH
29482do
29483 IFS=$as_save_IFS
29484 test -z "$as_dir" && as_dir=.
29485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029487 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29489 break 2
29490 fi
29491done
29492 done
29493IFS=$as_save_IFS
29494
cristy98ca0f52011-10-08 23:19:10 +000029495 ;;
29496esac
cristy81beccd2011-10-03 18:17:24 +000029497fi
cristy98ca0f52011-10-08 23:19:10 +000029498freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029499if test -n "$freetype_config"; then
29500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29501$as_echo "$freetype_config" >&6; }
29502else
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029505fi
29506
cristy98ca0f52011-10-08 23:19:10 +000029507 fi
29508 if test -n "$freetype_config"; then
29509 freetype_prefix=`${freetype_config} --prefix`
29510 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29511 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29512 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029513 fi
29514
29515 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029517$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29518if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29519 $as_echo_n "(cached) " >&6
29520else
29521 ac_check_lib_save_LIBS=$LIBS
29522LIBS="-lfreetype $LIBS"
29523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524/* end confdefs.h. */
29525
29526/* Override any GCC internal prototype to avoid an error.
29527 Use char because int might match the return type of a GCC
29528 builtin and then its argument prototype would still apply. */
29529#ifdef __cplusplus
29530extern "C"
29531#endif
29532char FT_Init_FreeType ();
29533int
29534main ()
29535{
29536return FT_Init_FreeType ();
29537 ;
29538 return 0;
29539}
29540_ACEOF
29541if ac_fn_c_try_link "$LINENO"; then :
29542 ac_cv_lib_freetype_FT_Init_FreeType=yes
29543else
29544 ac_cv_lib_freetype_FT_Init_FreeType=no
29545fi
29546rm -f core conftest.err conftest.$ac_objext \
29547 conftest$ac_exeext conftest.$ac_ext
29548LIBS=$ac_check_lib_save_LIBS
29549fi
29550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29551$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29552if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29553 FREETYPE_LIBS='-lfreetype'
29554fi
29555
cristy98ca0f52011-10-08 23:19:10 +000029556 if test "$FREETYPE_LIBS" != ''; then
29557 passed=`expr $passed + 1`
29558 else
29559 failed=`expr $failed + 1`
29560 LDFLAGS="$PERSIST_LDFLAGS"
29561 fi
cristy81beccd2011-10-03 18:17:24 +000029562 fi
29563
29564 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29565if test "x$ac_cv_header_ft2build_h" = xyes; then :
29566 FT2BUILD_H='#include <ft2build.h>'
29567else
29568 ft2build=''
29569fi
29570
29571
29572 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29573"
29574if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29575 have_freetype_h='yes'
29576else
29577 have_freetype_h='no'
29578fi
29579
29580
cristy98ca0f52011-10-08 23:19:10 +000029581 if test "$have_freetype_h" = 'yes'; then
29582 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029583 else
cristy98ca0f52011-10-08 23:19:10 +000029584 failed=`expr $failed + 1`
29585 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029586 fi
29587
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29589$as_echo_n "checking if FreeType package is complete... " >&6; }
29590 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029591 if test $failed -gt 0; then
29592 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029593 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29594$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029595 have_freetype='no (failed tests)'
29596 else
29597 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029598
cristy8b350f62009-11-15 23:12:43 +000029599$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029600
cristy98ca0f52011-10-08 23:19:10 +000029601 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029602
29603$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29604
cristy81beccd2011-10-03 18:17:24 +000029605 fi
cristy09b53e12011-10-14 12:47:22 +000029606 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29607$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029608 have_freetype='yes'
29609 fi
cristy81beccd2011-10-03 18:17:24 +000029610 else
cristy09b53e12011-10-14 12:47:22 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29612$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029613 fi
29614fi
cristy73bd4a52010-10-05 11:24:23 +000029615 if test "$have_freetype" = 'yes'; then
29616 FREETYPE_DELEGATE_TRUE=
29617 FREETYPE_DELEGATE_FALSE='#'
29618else
29619 FREETYPE_DELEGATE_TRUE='#'
29620 FREETYPE_DELEGATE_FALSE=
29621fi
29622
cristy3ed852e2009-09-05 21:47:34 +000029623
29624
29625
cristy3ed852e2009-09-05 21:47:34 +000029626#
29627# Check for Ghostscript library or framework.
29628#
29629# Test for iapi.h & test for gsapi_new_instance in -lgs
29630# or -framework Ghostscript
29631
29632
29633# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029634if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029635 withval=$with_gslib; with_gslib=$withval
29636else
29637 with_gslib='no'
29638fi
29639
29640
cristyb7931f12009-09-25 10:22:21 +000029641gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029642if test "$with_gslib" != 'yes'; then
29643 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29644fi
29645
29646have_gslib='no'
29647GS_LIBS=''
29648if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29650$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29654$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029655 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029656 failed=0
29657 passed=0
cristy8b350f62009-11-15 23:12:43 +000029658 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 +000029659if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029660 passed=`expr $passed + 1`
29661else
29662 failed=`expr $failed + 1`
29663fi
29664
29665
cristy8b350f62009-11-15 23:12:43 +000029666 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 +000029667if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029668 passed=`expr $passed + 1`
29669else
29670 failed=`expr $failed + 1`
29671fi
29672
29673
cristy73bd4a52010-10-05 11:24:23 +000029674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29675$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029676if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029677 $as_echo_n "(cached) " >&6
29678else
29679 ac_check_framework_save_LIBS=$LIBS
29680LIBS="-framework Ghostscript $LIBS"
29681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29682/* end confdefs.h. */
29683
29684/* Override any GCC internal prototype to avoid an error.
29685 Use char because int might match the return type of a GCC
29686 builtin and then its argument prototype would still apply. */
29687#ifdef __cplusplus
29688extern "C"
29689#endif
29690char gsapi_new_instance ();
29691int
29692main ()
29693{
29694return gsapi_new_instance ();
29695 ;
29696 return 0;
29697}
29698_ACEOF
29699if ac_fn_c_try_link "$LINENO"; then :
29700 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29701else
29702 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29703fi
29704rm -f core conftest.err conftest.$ac_objext \
29705 conftest$ac_exeext conftest.$ac_ext
29706LIBS=$ac_check_framework_save_LIBS
29707fi
29708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29709$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29710if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29711 framework=`expr $framework + 1`
29712else
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029714$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029715if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029716 $as_echo_n "(cached) " >&6
29717else
29718 ac_check_lib_save_LIBS=$LIBS
29719LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029721/* end confdefs.h. */
29722
29723/* Override any GCC internal prototype to avoid an error.
29724 Use char because int might match the return type of a GCC
29725 builtin and then its argument prototype would still apply. */
29726#ifdef __cplusplus
29727extern "C"
29728#endif
29729char gsapi_new_instance ();
29730int
29731main ()
29732{
29733return gsapi_new_instance ();
29734 ;
29735 return 0;
29736}
29737_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029738if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 ac_cv_lib_gs_gsapi_new_instance=yes
29740else
cristy8b350f62009-11-15 23:12:43 +000029741 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029742fi
cristy8b350f62009-11-15 23:12:43 +000029743rm -f core conftest.err conftest.$ac_objext \
29744 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029745LIBS=$ac_check_lib_save_LIBS
29746fi
cristy8b350f62009-11-15 23:12:43 +000029747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029748$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029749if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029750 passed=`expr $passed + 1`
29751else
29752 failed=`expr $failed + 1`
29753fi
cristy73bd4a52010-10-05 11:24:23 +000029754
29755fi
cristy8b350f62009-11-15 23:12:43 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029757$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29758 if test $passed -gt 0; then
29759 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29761$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029762 have_gslib='no (failed tests)'
29763 else
29764 if test $framework -gt 0; then
29765 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029766 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029767 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29768$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029769 else
cristy09b53e12011-10-14 12:47:22 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29771$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029772 GS_LIBS='-lgs'
29773 fi
29774 LIBS="$GS_LIBS $LIBS"
29775
cristy8b350f62009-11-15 23:12:43 +000029776$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029777
29778 have_gslib='yes'
29779 fi
29780 else
cristy09b53e12011-10-14 12:47:22 +000029781 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29782$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029783 fi
29784fi
cristy73bd4a52010-10-05 11:24:23 +000029785 if test "$have_gslib" = 'yes'; then
29786 GS_DELEGATE_TRUE=
29787 GS_DELEGATE_FALSE='#'
29788else
29789 GS_DELEGATE_TRUE='#'
29790 GS_DELEGATE_FALSE=
29791fi
29792
cristy3ed852e2009-09-05 21:47:34 +000029793
29794
29795# Set default font search path
29796
29797# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029798if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029799 withval=$with_fontpath; with_fontpath=$withval
29800else
29801 with_fontpath=''
29802fi
29803
29804
29805if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29806 with_fontpath=''
29807else
29808
29809cat >>confdefs.h <<_ACEOF
29810#define MAGICK_FONT_PATH "$with_fontpath"
29811_ACEOF
29812
29813fi
29814if test "$with_fontpath=" != ''; then
29815 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29816fi
29817
29818# Set Ghostscript font directory
29819
29820# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029821if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029822 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29823else
29824 with_gs_font_dir='default'
29825fi
29826
29827
29828if test "$with_gs_font_dir" != 'default'; then
29829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29830fi
29831
29832
29833#
29834# Check for GVC delegate library.
29835#
29836
29837# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029838if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029839 withval=$with_gvc; with_gvc=$withval
29840else
cristy1b70dc82012-07-01 23:15:05 +000029841 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029842fi
29843
29844
29845if test "$with_gvc" != 'yes'; then
29846 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29847fi
29848
29849GVC_PKG=""
29850if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29852$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029853
29854pkg_failed=no
29855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29856$as_echo_n "checking for GVC... " >&6; }
29857
29858if test -n "$GVC_CFLAGS"; then
29859 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29860 elif test -n "$PKG_CONFIG"; then
29861 if test -n "$PKG_CONFIG" && \
29862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29863 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29864 ac_status=$?
29865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29866 test $ac_status = 0; }; then
29867 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29868else
29869 pkg_failed=yes
29870fi
29871 else
29872 pkg_failed=untried
29873fi
29874if test -n "$GVC_LIBS"; then
29875 pkg_cv_GVC_LIBS="$GVC_LIBS"
29876 elif test -n "$PKG_CONFIG"; then
29877 if test -n "$PKG_CONFIG" && \
29878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29879 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29880 ac_status=$?
29881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29882 test $ac_status = 0; }; then
29883 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29884else
29885 pkg_failed=yes
29886fi
29887 else
29888 pkg_failed=untried
29889fi
29890
29891
29892
29893if test $pkg_failed = yes; then
29894
29895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29896 _pkg_short_errors_supported=yes
29897else
29898 _pkg_short_errors_supported=no
29899fi
29900 if test $_pkg_short_errors_supported = yes; then
29901 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29902 else
29903 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29904 fi
29905 # Put the nasty error message in config.log where it belongs
29906 echo "$GVC_PKG_ERRORS" >&5
29907
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29909$as_echo "no" >&6; }
29910 have_gvc=no
29911elif test $pkg_failed = untried; then
29912 have_gvc=no
29913else
29914 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29915 GVC_LIBS=$pkg_cv_GVC_LIBS
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29917$as_echo "yes" >&6; }
29918 have_gvc=yes
29919fi
cristy09b53e12011-10-14 12:47:22 +000029920 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29921$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029922fi
29923
29924if test "$have_gvc" = 'yes'; then
29925
cristy8b350f62009-11-15 23:12:43 +000029926$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029927
29928 if test "$with_modules" = 'no'; then
29929 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29930 fi
29931fi
29932
cristy73bd4a52010-10-05 11:24:23 +000029933 if test "$have_gvc" = 'yes'; then
29934 GVC_DELEGATE_TRUE=
29935 GVC_DELEGATE_FALSE='#'
29936else
29937 GVC_DELEGATE_TRUE='#'
29938 GVC_DELEGATE_FALSE=
29939fi
29940
cristy3ed852e2009-09-05 21:47:34 +000029941
29942
29943
29944
29945#
29946# Check for JBIG delegate library.
29947#
29948
29949
29950# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029951if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029952 withval=$with_jbig; with_jbig=$withval
29953else
29954 with_jbig='yes'
29955fi
29956
29957
29958have_jbig='no'
29959JBIG_LIBS=''
29960if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29962$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029964$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029965 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29966$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029967 failed=0
29968 passed=0
cristy8b350f62009-11-15 23:12:43 +000029969 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029970if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029971 passed=`expr $passed + 1`
29972else
29973 failed=`expr $failed + 1`
29974fi
29975
29976
cristy8b350f62009-11-15 23:12:43 +000029977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029978$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029979if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029980 $as_echo_n "(cached) " >&6
29981else
29982 ac_check_lib_save_LIBS=$LIBS
29983LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029985/* end confdefs.h. */
29986
29987/* Override any GCC internal prototype to avoid an error.
29988 Use char because int might match the return type of a GCC
29989 builtin and then its argument prototype would still apply. */
29990#ifdef __cplusplus
29991extern "C"
29992#endif
29993char jbg_dec_init ();
29994int
29995main ()
29996{
29997return jbg_dec_init ();
29998 ;
29999 return 0;
30000}
30001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030003 ac_cv_lib_jbig_jbg_dec_init=yes
30004else
cristy8b350f62009-11-15 23:12:43 +000030005 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030006fi
cristy8b350f62009-11-15 23:12:43 +000030007rm -f core conftest.err conftest.$ac_objext \
30008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030009LIBS=$ac_check_lib_save_LIBS
30010fi
cristy8b350f62009-11-15 23:12:43 +000030011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030012$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030013if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030014 passed=`expr $passed + 1`
30015else
30016 failed=`expr $failed + 1`
30017fi
30018
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo_n "checking if JBIG package is complete... " >&6; }
30021 if test $passed -gt 0; then
30022 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030023 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30024$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030025 have_jbig='no (failed tests)'
30026 else
30027 JBIG_LIBS='-ljbig'
30028 LIBS="$JBIG_LIBS $LIBS"
30029
cristy8b350f62009-11-15 23:12:43 +000030030$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030031
cristy09b53e12011-10-14 12:47:22 +000030032 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30033$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030034 have_jbig='yes'
30035 fi
30036 else
cristy09b53e12011-10-14 12:47:22 +000030037 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30038$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030039 fi
30040fi
cristy73bd4a52010-10-05 11:24:23 +000030041 if test "$have_jbig" = 'yes'; then
30042 JBIG_DELEGATE_TRUE=
30043 JBIG_DELEGATE_FALSE='#'
30044else
30045 JBIG_DELEGATE_TRUE='#'
30046 JBIG_DELEGATE_FALSE=
30047fi
30048
cristy3ed852e2009-09-05 21:47:34 +000030049
30050
30051
30052#
30053# Check for JPEG delegate library.
30054#
30055
30056# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030057if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 withval=$with_jpeg; with_jpeg=$withval
30059else
30060 with_jpeg='yes'
30061fi
30062
30063
30064if test "$with_jpeg" != 'yes'; then
30065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30066fi
30067
30068have_jpeg='no'
30069JPEG_LIBS=''
30070if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30072$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30076$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030077 failed=0
30078 passed=0
cristy8b350f62009-11-15 23:12:43 +000030079 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030080if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030081 passed=`expr $passed + 1`
30082else
30083 failed=`expr $failed + 1`
30084fi
30085
30086
cristy8b350f62009-11-15 23:12:43 +000030087 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030088if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030089 passed=`expr $passed + 1`
30090else
30091 failed=`expr $failed + 1`
30092fi
30093
30094
cristy8b350f62009-11-15 23:12:43 +000030095 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030096if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030097 passed=`expr $passed + 1`
30098else
30099 failed=`expr $failed + 1`
30100fi
30101
30102
cristy8b350f62009-11-15 23:12:43 +000030103 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030104if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030105 passed=`expr $passed + 1`
30106else
30107 failed=`expr $failed + 1`
30108fi
30109
30110
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030113if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030114 $as_echo_n "(cached) " >&6
30115else
30116 ac_check_lib_save_LIBS=$LIBS
30117LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030119/* end confdefs.h. */
30120
30121/* Override any GCC internal prototype to avoid an error.
30122 Use char because int might match the return type of a GCC
30123 builtin and then its argument prototype would still apply. */
30124#ifdef __cplusplus
30125extern "C"
30126#endif
30127char jpeg_read_header ();
30128int
30129main ()
30130{
30131return jpeg_read_header ();
30132 ;
30133 return 0;
30134}
30135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030136if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 ac_cv_lib_jpeg_jpeg_read_header=yes
30138else
cristy8b350f62009-11-15 23:12:43 +000030139 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030140fi
cristy8b350f62009-11-15 23:12:43 +000030141rm -f core conftest.err conftest.$ac_objext \
30142 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030143LIBS=$ac_check_lib_save_LIBS
30144fi
cristy8b350f62009-11-15 23:12:43 +000030145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030147if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030148 passed=`expr $passed + 1`
30149else
30150 failed=`expr $failed + 1`
30151fi
30152
30153
30154# Test for compatible JPEG library
30155if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030157$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030158if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030159 $as_echo_n "(cached) " >&6
30160else
cristy8b350f62009-11-15 23:12:43 +000030161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030162/* end confdefs.h. */
30163#include <stdio.h>
30164#include <stdlib.h>
30165#include <jpeglib.h>
30166
30167int
30168main ()
30169{
30170
30171#if JPEG_LIB_VERSION < 62
30172#error IJG JPEG library must be version 6b or newer!
30173#endif
30174return 0;
30175
30176 ;
30177 return 0;
30178}
30179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030180if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030181 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30182else
cristy8b350f62009-11-15 23:12:43 +000030183 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030184fi
cristy3ed852e2009-09-05 21:47:34 +000030185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30186fi
cristy8b350f62009-11-15 23:12:43 +000030187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30189fi
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo_n "checking if JPEG package is complete... " >&6; }
30192 if test $passed -gt 0; then
30193 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30195$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030196 have_jpeg='no (failed tests)'
30197 else
30198 JPEG_LIBS='-ljpeg'
30199 LIBS="$JPEG_LIBS $LIBS"
30200
cristy8b350f62009-11-15 23:12:43 +000030201$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030202
cristy09b53e12011-10-14 12:47:22 +000030203 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30204$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030205 have_jpeg='yes'
30206 fi
30207 else
cristy09b53e12011-10-14 12:47:22 +000030208 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30209$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030210 fi
30211fi
cristy73bd4a52010-10-05 11:24:23 +000030212 if test "$have_jpeg" = 'yes'; then
30213 JPEG_DELEGATE_TRUE=
30214 JPEG_DELEGATE_FALSE='#'
30215else
30216 JPEG_DELEGATE_TRUE='#'
30217 JPEG_DELEGATE_FALSE=
30218fi
30219
cristy3ed852e2009-09-05 21:47:34 +000030220
30221
30222
30223#
30224# Check for JPEG Version 2 delegate library.
30225#
30226
30227# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030228if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030229 withval=$with_jp2; with_jp2=$withval
30230else
30231 with_jp2='yes'
30232fi
30233
30234
30235if test "$with_jp2" != 'yes'; then
30236 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30237fi
30238
30239have_jp2='no'
30240JP2_LIBS=''
30241if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030242 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30243$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030245$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030246 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30247$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030248 failed=0
30249 passed=0
cristy8b350f62009-11-15 23:12:43 +000030250 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 +000030251if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030252 passed=`expr $passed + 1`
30253else
30254 failed=`expr $failed + 1`
30255fi
30256
30257
cristy8b350f62009-11-15 23:12:43 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030259$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030260if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030261 $as_echo_n "(cached) " >&6
30262else
30263 ac_check_lib_save_LIBS=$LIBS
30264LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030266/* end confdefs.h. */
30267
30268/* Override any GCC internal prototype to avoid an error.
30269 Use char because int might match the return type of a GCC
30270 builtin and then its argument prototype would still apply. */
30271#ifdef __cplusplus
30272extern "C"
30273#endif
30274char jas_stream_fopen ();
30275int
30276main ()
30277{
30278return jas_stream_fopen ();
30279 ;
30280 return 0;
30281}
30282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030284 ac_cv_lib_jasper_jas_stream_fopen=yes
30285else
cristy8b350f62009-11-15 23:12:43 +000030286 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030287fi
cristy8b350f62009-11-15 23:12:43 +000030288rm -f core conftest.err conftest.$ac_objext \
30289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030290LIBS=$ac_check_lib_save_LIBS
30291fi
cristy8b350f62009-11-15 23:12:43 +000030292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030293$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030294if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030295 passed=`expr $passed + 1`
30296else
30297 failed=`expr $failed + 1`
30298fi
30299
cristy8b350f62009-11-15 23:12:43 +000030300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030301$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30302 if test $passed -gt 0; then
30303 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30305$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030306 have_jp2='no (failed tests)'
30307 else
30308 JP2_LIBS='-ljasper'
30309 LIBS="$JP2_LIBS $LIBS"
30310
cristy8b350f62009-11-15 23:12:43 +000030311$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030312
cristy09b53e12011-10-14 12:47:22 +000030313 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30314$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030315 have_jp2='yes'
30316 fi
30317 else
cristy09b53e12011-10-14 12:47:22 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30319$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030320 fi
30321fi
cristy73bd4a52010-10-05 11:24:23 +000030322 if test "$have_jp2" = 'yes'; then
30323 JP2_DELEGATE_TRUE=
30324 JP2_DELEGATE_FALSE='#'
30325else
30326 JP2_DELEGATE_TRUE='#'
30327 JP2_DELEGATE_FALSE=
30328fi
30329
cristy3ed852e2009-09-05 21:47:34 +000030330
30331
30332
30333#
30334# Check for LCMS delegate library.
30335#
cristy71203402010-06-18 13:12:03 +000030336# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030337
30338# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030339if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030340 withval=$with_lcms; with_lcms=$withval
30341else
30342 with_lcms='yes'
30343fi
30344
cristy71203402010-06-18 13:12:03 +000030345if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30347fi
30348
cristy71203402010-06-18 13:12:03 +000030349# Disable LCMS2.
30350
30351# Check whether --with-lcms2 was given.
30352if test "${with_lcms2+set}" = set; then :
30353 withval=$with_lcms2; with_lcms2=$withval
30354else
30355 with_lcms2='yes'
30356fi
30357
30358if test "$with_lcms2" != 'yes' ; then
30359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30360fi
30361
30362have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030363LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030364if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030365 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30366$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30368$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030369 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30370$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030371 failed=0
30372 passed=0
30373 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030374
30375 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030376 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030377if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030378 have_lcms_header='yes'
30379fi
30380
30381
30382 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030383
30384$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30385
cristy71203402010-06-18 13:12:03 +000030386 passed=`expr $passed + 1`
30387 fi
30388
30389 # Check for <lcms2/lcms2.h)
30390 if test "$have_lcms_header" != 'yes'; then
30391 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 +000030392if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030393 have_lcms_header='yes'
30394fi
30395
30396
cristy71203402010-06-18 13:12:03 +000030397 if test "$have_lcms_header" = 'yes'; then
30398 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030399
cristy71203402010-06-18 13:12:03 +000030400$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030401
cristy71203402010-06-18 13:12:03 +000030402 fi
cristyd09bcf92010-03-25 03:04:45 +000030403 fi
cristy71203402010-06-18 13:12:03 +000030404
30405 # Failed to find lcms header?
30406 if test "$have_lcms_header" != 'yes'; then
30407 failed=`expr $failed + 1`
30408 fi
30409
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30411$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030412if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030413 $as_echo_n "(cached) " >&6
30414else
30415 ac_check_lib_save_LIBS=$LIBS
30416LIBS="-llcms2 $LIBS"
30417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30418/* end confdefs.h. */
30419
30420/* Override any GCC internal prototype to avoid an error.
30421 Use char because int might match the return type of a GCC
30422 builtin and then its argument prototype would still apply. */
30423#ifdef __cplusplus
30424extern "C"
30425#endif
cristy71203402010-06-18 13:12:03 +000030426char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030427int
30428main ()
30429{
cristy71203402010-06-18 13:12:03 +000030430return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030431 ;
30432 return 0;
30433}
30434_ACEOF
30435if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030436 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030437else
cristy71203402010-06-18 13:12:03 +000030438 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030439fi
30440rm -f core conftest.err conftest.$ac_objext \
30441 conftest$ac_exeext conftest.$ac_ext
30442LIBS=$ac_check_lib_save_LIBS
30443fi
cristy71203402010-06-18 13:12:03 +000030444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30445$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030446if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030447 passed=`expr $passed + 1`
30448else
30449 failed=`expr $failed + 1`
30450fi
30451
cristy71203402010-06-18 13:12:03 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30453$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030454 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030455 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30457$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030458 have_lcms2='no (failed tests)'
30459 else
30460 LCMS_LIBS='-llcms2'
30461 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030462 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30463$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030464 have_lcms2='yes'
30465 fi
cristyd09bcf92010-03-25 03:04:45 +000030466 else
cristy09b53e12011-10-14 12:47:22 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30468$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030469 fi
30470fi
30471
cristy71203402010-06-18 13:12:03 +000030472#
30473# Check for LCMS v1 (1.11 or later)
30474#
30475if test $have_lcms2 = 'yes'; then
30476 with_lcms='no'
30477fi
30478
30479have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030480if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030481 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30482$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30484$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30486$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030487 failed=0
30488 passed=0
30489 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030490
30491 # Check for <lcms.h>
30492 if test "$have_lcms_header" != 'yes'; then
30493 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030494if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 have_lcms_header='yes'
30496fi
30497
30498
cristy71203402010-06-18 13:12:03 +000030499 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030500 passed=`expr $passed + 1`
30501
cristy8b350f62009-11-15 23:12:43 +000030502$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030503
cristy71203402010-06-18 13:12:03 +000030504 fi
30505 fi
30506
30507 # Check for <lcms/lcms.h>
30508 if test "$have_lcms_header" != 'yes'; then
30509 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 +000030510if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030511 have_lcms_header='yes'
30512fi
30513
30514
cristy71203402010-06-18 13:12:03 +000030515 if test "$have_lcms_header" = 'yes'; then
30516 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030517
cristy8b350f62009-11-15 23:12:43 +000030518$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030519
cristy71203402010-06-18 13:12:03 +000030520 fi
cristy3ed852e2009-09-05 21:47:34 +000030521 fi
cristy71203402010-06-18 13:12:03 +000030522
30523 # Failed to find lcms header?
30524 if test "$have_lcms_header" != 'yes'; then
30525 failed=`expr $failed + 1`
30526 fi
30527
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30529$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030530if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030531 $as_echo_n "(cached) " >&6
30532else
30533 ac_check_lib_save_LIBS=$LIBS
30534LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030536/* end confdefs.h. */
30537
30538/* Override any GCC internal prototype to avoid an error.
30539 Use char because int might match the return type of a GCC
30540 builtin and then its argument prototype would still apply. */
30541#ifdef __cplusplus
30542extern "C"
30543#endif
cristy71203402010-06-18 13:12:03 +000030544char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030545int
30546main ()
30547{
cristy71203402010-06-18 13:12:03 +000030548return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030549 ;
30550 return 0;
30551}
30552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030553if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030554 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030555else
cristy71203402010-06-18 13:12:03 +000030556 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030557fi
cristy8b350f62009-11-15 23:12:43 +000030558rm -f core conftest.err conftest.$ac_objext \
30559 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030560LIBS=$ac_check_lib_save_LIBS
30561fi
cristy71203402010-06-18 13:12:03 +000030562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30563$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030564if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030565 passed=`expr $passed + 1`
30566else
30567 failed=`expr $failed + 1`
30568fi
30569
cristy8b350f62009-11-15 23:12:43 +000030570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030571$as_echo_n "checking if LCMS package is complete... " >&6; }
30572 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030573 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030574 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30575$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030576 have_lcms='no (failed tests)'
30577 else
30578 LCMS_LIBS='-llcms'
30579 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030580 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30581$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030582 have_lcms='yes'
30583 fi
cristy3ed852e2009-09-05 21:47:34 +000030584 else
cristy09b53e12011-10-14 12:47:22 +000030585 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30586$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030587 fi
30588fi
cristy71203402010-06-18 13:12:03 +000030589
cristy73bd4a52010-10-05 11:24:23 +000030590 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30591 LCMS_DELEGATE_TRUE=
30592 LCMS_DELEGATE_FALSE='#'
30593else
30594 LCMS_DELEGATE_TRUE='#'
30595 LCMS_DELEGATE_FALSE=
30596fi
30597
cristy71203402010-06-18 13:12:03 +000030598if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30599
30600$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30601
30602fi
30603
cristy3ed852e2009-09-05 21:47:34 +000030604
30605
30606
30607#
30608# Check for the LQR (Liquid Rescale) delegate library.
30609#
30610
30611# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030612if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030613 withval=$with_lqr; with_lqr=$withval
30614else
30615 with_lqr='yes'
30616fi
30617
30618
30619if test "$with_lqr" != 'yes'; then
30620 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30621fi
30622
30623have_lqr='no'
30624LQR_CFLAGS=""
30625LQR_LIBS=""
30626LQR_PKG=""
30627if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030628 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30629$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030630
30631pkg_failed=no
30632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30633$as_echo_n "checking for LQR... " >&6; }
30634
30635if test -n "$LQR_CFLAGS"; then
30636 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30637 elif test -n "$PKG_CONFIG"; then
30638 if test -n "$PKG_CONFIG" && \
30639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30640 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30641 ac_status=$?
30642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30643 test $ac_status = 0; }; then
30644 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30645else
30646 pkg_failed=yes
30647fi
30648 else
30649 pkg_failed=untried
30650fi
30651if test -n "$LQR_LIBS"; then
30652 pkg_cv_LQR_LIBS="$LQR_LIBS"
30653 elif test -n "$PKG_CONFIG"; then
30654 if test -n "$PKG_CONFIG" && \
30655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30656 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30657 ac_status=$?
30658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30659 test $ac_status = 0; }; then
30660 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30661else
30662 pkg_failed=yes
30663fi
30664 else
30665 pkg_failed=untried
30666fi
30667
30668
30669
30670if test $pkg_failed = yes; then
30671
30672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30673 _pkg_short_errors_supported=yes
30674else
30675 _pkg_short_errors_supported=no
30676fi
30677 if test $_pkg_short_errors_supported = yes; then
30678 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30679 else
30680 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30681 fi
30682 # Put the nasty error message in config.log where it belongs
30683 echo "$LQR_PKG_ERRORS" >&5
30684
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686$as_echo "no" >&6; }
30687 have_lqr=no
30688elif test $pkg_failed = untried; then
30689 have_lqr=no
30690else
30691 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30692 LQR_LIBS=$pkg_cv_LQR_LIBS
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694$as_echo "yes" >&6; }
30695 have_lqr=yes
30696fi
cristy09b53e12011-10-14 12:47:22 +000030697 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30698$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030699fi
30700
30701if test "$have_lqr" = 'yes'; then
30702
cristy8b350f62009-11-15 23:12:43 +000030703$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030704
30705 CFLAGS="$LQR_CFLAGS $CFLAGS"
30706fi
30707
cristy73bd4a52010-10-05 11:24:23 +000030708 if test "$have_lqr" = 'yes'; then
30709 LQR_DELEGATE_TRUE=
30710 LQR_DELEGATE_FALSE='#'
30711else
30712 LQR_DELEGATE_TRUE='#'
30713 LQR_DELEGATE_FALSE=
30714fi
30715
cristy3ed852e2009-09-05 21:47:34 +000030716
30717
30718
30719
cristy81beccd2011-10-03 18:17:24 +000030720# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030721
30722# Check whether --with-lzma was given.
30723if test "${with_lzma+set}" = set; then :
30724 withval=$with_lzma; with_lzma=$withval
30725else
30726 with_lzma='yes'
30727fi
30728
cristy81beccd2011-10-03 18:17:24 +000030729if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30731fi
30732
cristyb94e5002011-11-14 13:20:10 +000030733LZMA_PKG=""
30734if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030735 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30736$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030737
30738pkg_failed=no
30739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030740$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030741
30742if test -n "$LZMA_CFLAGS"; then
30743 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30744 elif test -n "$PKG_CONFIG"; then
30745 if test -n "$PKG_CONFIG" && \
30746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30747 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30748 ac_status=$?
30749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30750 test $ac_status = 0; }; then
30751 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30752else
30753 pkg_failed=yes
30754fi
30755 else
30756 pkg_failed=untried
30757fi
30758if test -n "$LZMA_LIBS"; then
30759 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30760 elif test -n "$PKG_CONFIG"; then
30761 if test -n "$PKG_CONFIG" && \
30762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30763 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30764 ac_status=$?
30765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30766 test $ac_status = 0; }; then
30767 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30768else
30769 pkg_failed=yes
30770fi
30771 else
30772 pkg_failed=untried
30773fi
30774
30775
30776
30777if test $pkg_failed = yes; then
30778
30779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30780 _pkg_short_errors_supported=yes
30781else
30782 _pkg_short_errors_supported=no
30783fi
30784 if test $_pkg_short_errors_supported = yes; then
30785 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30786 else
30787 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30788 fi
30789 # Put the nasty error message in config.log where it belongs
30790 echo "$LZMA_PKG_ERRORS" >&5
30791
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30793$as_echo "no" >&6; }
30794 have_lzma=no
30795elif test $pkg_failed = untried; then
30796 have_lzma=no
30797else
30798 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30799 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30801$as_echo "yes" >&6; }
30802 have_lzma=yes
30803fi
30804 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030805$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030806fi
30807
cristyb94e5002011-11-14 13:20:10 +000030808if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030809
30810$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30811
cristyb94e5002011-11-14 13:20:10 +000030812 if test "$with_modules" = 'no'; then
30813 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030814 fi
cristyfbb0ef02010-12-19 02:32:11 +000030815fi
cristyb94e5002011-11-14 13:20:10 +000030816
cristyfbb0ef02010-12-19 02:32:11 +000030817 if test "$have_lzma" = 'yes'; then
30818 LZMA_DELEGATE_TRUE=
30819 LZMA_DELEGATE_FALSE='#'
30820else
30821 LZMA_DELEGATE_TRUE='#'
30822 LZMA_DELEGATE_FALSE=
30823fi
30824
30825
30826
30827
cristyb94e5002011-11-14 13:20:10 +000030828
cristy3ed852e2009-09-05 21:47:34 +000030829#
30830# Check for the OpenEXR delegate library.
30831#
30832
30833# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030834if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030835 withval=$with_openexr; with_openexr=$withval
30836else
30837 with_openexr='yes'
30838fi
30839
30840
30841if test "$with_openexr" != 'yes'; then
30842 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30843fi
30844
30845have_openexr='no'
30846OPENEXR_CFLAGS=""
30847OPENEXR_LIBS=""
30848OPENEXR_PKG=""
30849if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30851$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030852
30853pkg_failed=no
30854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30855$as_echo_n "checking for OPENEXR... " >&6; }
30856
30857if test -n "$OPENEXR_CFLAGS"; then
30858 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30859 elif test -n "$PKG_CONFIG"; then
30860 if test -n "$PKG_CONFIG" && \
30861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30862 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30863 ac_status=$?
30864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30865 test $ac_status = 0; }; then
30866 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30867else
30868 pkg_failed=yes
30869fi
30870 else
30871 pkg_failed=untried
30872fi
30873if test -n "$OPENEXR_LIBS"; then
30874 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30875 elif test -n "$PKG_CONFIG"; then
30876 if test -n "$PKG_CONFIG" && \
30877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30878 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30879 ac_status=$?
30880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30881 test $ac_status = 0; }; then
30882 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30883else
30884 pkg_failed=yes
30885fi
30886 else
30887 pkg_failed=untried
30888fi
30889
30890
30891
30892if test $pkg_failed = yes; then
30893
30894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30895 _pkg_short_errors_supported=yes
30896else
30897 _pkg_short_errors_supported=no
30898fi
30899 if test $_pkg_short_errors_supported = yes; then
30900 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30901 else
30902 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30903 fi
30904 # Put the nasty error message in config.log where it belongs
30905 echo "$OPENEXR_PKG_ERRORS" >&5
30906
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30908$as_echo "no" >&6; }
30909 have_openexr=no
30910elif test $pkg_failed = untried; then
30911 have_openexr=no
30912else
30913 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30914 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30916$as_echo "yes" >&6; }
30917 have_openexr=yes
30918fi
cristy09b53e12011-10-14 12:47:22 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30920$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030921fi
30922
30923if test "$have_openexr" = 'yes'; then
30924
cristy8b350f62009-11-15 23:12:43 +000030925$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030926
30927 if test "$with_modules" = 'no'; then
30928 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30929 fi
30930fi
30931
cristy73bd4a52010-10-05 11:24:23 +000030932 if test "$have_openexr" = 'yes'; then
30933 OPENEXR_DELEGATE_TRUE=
30934 OPENEXR_DELEGATE_FALSE='#'
30935else
30936 OPENEXR_DELEGATE_TRUE='#'
30937 OPENEXR_DELEGATE_FALSE=
30938fi
30939
cristy3ed852e2009-09-05 21:47:34 +000030940
30941
30942
30943
30944#
cristy41cbe8a2011-10-27 01:35:18 +000030945# Check for PANGO delegate library.
30946#
30947
30948# Check whether --with-pango was given.
30949if test "${with_pango+set}" = set; then :
30950 withval=$with_pango; with_pango=$withval
30951else
cristyfc3d0222012-02-07 15:05:57 +000030952 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030953fi
30954
30955
30956if test "$with_pango" != 'yes'; then
30957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30958fi
30959
30960have_pango='no'
cristya054b762012-03-26 23:16:00 +000030961have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030962PANGO_CFLAGS=""
30963PANGO_LIBS=""
30964PANGO_PKG=""
30965if test "x$with_pango" = "xyes"; then
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30967$as_echo "-------------------------------------------------------------" >&6; }
30968
30969pkg_failed=no
30970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30971$as_echo_n "checking for PANGO... " >&6; }
30972
30973if test -n "$PANGO_CFLAGS"; then
30974 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30975 elif test -n "$PKG_CONFIG"; then
30976 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30978 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030979 ac_status=$?
30980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30981 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030982 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030983else
30984 pkg_failed=yes
30985fi
30986 else
30987 pkg_failed=untried
30988fi
30989if test -n "$PANGO_LIBS"; then
30990 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30991 elif test -n "$PKG_CONFIG"; then
30992 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30994 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030995 ac_status=$?
30996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30997 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030998 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030999else
31000 pkg_failed=yes
31001fi
31002 else
31003 pkg_failed=untried
31004fi
31005
31006
31007
31008if test $pkg_failed = yes; then
31009
31010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31011 _pkg_short_errors_supported=yes
31012else
31013 _pkg_short_errors_supported=no
31014fi
31015 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031016 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031017 else
cristya054b762012-03-26 23:16:00 +000031018 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031019 fi
31020 # Put the nasty error message in config.log where it belongs
31021 echo "$PANGO_PKG_ERRORS" >&5
31022
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031025 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031026elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031027 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031028else
31029 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31030 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31032$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031033 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031034fi
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31036$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031037
31038pkg_failed=no
31039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31040$as_echo_n "checking for PANGO... " >&6; }
31041
31042if test -n "$PANGO_CFLAGS"; then
31043 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31044 elif test -n "$PKG_CONFIG"; then
31045 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31047 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031048 ac_status=$?
31049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31050 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031051 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031052else
31053 pkg_failed=yes
31054fi
31055 else
31056 pkg_failed=untried
31057fi
31058if test -n "$PANGO_LIBS"; then
31059 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31060 elif test -n "$PKG_CONFIG"; then
31061 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31063 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031064 ac_status=$?
31065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31066 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031067 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031068else
31069 pkg_failed=yes
31070fi
31071 else
31072 pkg_failed=untried
31073fi
31074
31075
31076
31077if test $pkg_failed = yes; then
31078
31079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31080 _pkg_short_errors_supported=yes
31081else
31082 _pkg_short_errors_supported=no
31083fi
31084 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031085 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031086 else
cristy2542fc62011-12-06 17:50:25 +000031087 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031088 fi
31089 # Put the nasty error message in config.log where it belongs
31090 echo "$PANGO_PKG_ERRORS" >&5
31091
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31093$as_echo "no" >&6; }
31094 have_pango=no
31095elif test $pkg_failed = untried; then
31096 have_pango=no
31097else
31098 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31099 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31101$as_echo "yes" >&6; }
31102 have_pango=yes
31103fi
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31105$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031106fi
31107
31108if test "$have_pango" = 'yes'; then
31109
31110$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31111
31112 if test "$with_modules" = 'no'; then
31113 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31114 fi
31115fi
31116
cristya054b762012-03-26 23:16:00 +000031117if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031118
cristya054b762012-03-26 23:16:00 +000031119$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031120
31121 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031122 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031123 fi
31124fi
31125
31126 if test "$have_pango" = 'yes'; then
31127 PANGO_DELEGATE_TRUE=
31128 PANGO_DELEGATE_FALSE='#'
31129else
31130 PANGO_DELEGATE_TRUE='#'
31131 PANGO_DELEGATE_FALSE=
31132fi
31133
cristya054b762012-03-26 23:16:00 +000031134 if test "$have_pangocairo" = 'yes'; then
31135 PANGOCAIRO_DELEGATE_TRUE=
31136 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031137else
cristya054b762012-03-26 23:16:00 +000031138 PANGOCAIRO_DELEGATE_TRUE='#'
31139 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031140fi
31141
31142
31143
31144
31145
31146#
cristy3ed852e2009-09-05 21:47:34 +000031147# Check for PNG delegate library.
31148#
31149
31150# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031151if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031152 withval=$with_png; with_png=$withval
31153else
31154 with_png='yes'
31155fi
31156
31157
31158if test "$with_png" != 'yes'; then
31159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31160fi
31161
cristy81beccd2011-10-03 18:17:24 +000031162have_png='no'
31163PNG_LIBS=''
31164
31165if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031166 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31167$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31169$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031170 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31171$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031172 failed=0
31173 passed=0
31174 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31175if test "x$ac_cv_header_png_h" = xyes; then :
31176 passed=`expr $passed + 1`
31177else
31178 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031179fi
31180
cristy81beccd2011-10-03 18:17:24 +000031181
31182
31183 if test $passed -gt 0; then
31184 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031185 if test "$have_png" = 'no' ; then
31186 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031187 pnglib='png'
31188 else
31189 pnglib="png1${var}"
31190 fi
31191
31192# Test for compatible LIBPNG library
31193 failed=0
31194 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031195 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031196 if test "${pnglib}" != 'png' ; then
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31198$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31200/* end confdefs.h. */
31201#include <stdio.h>
31202#include <stdlib.h>
31203#include <png.h>
31204
31205int
31206main ()
31207{
31208
31209#if PNG_LIBPNG_VER_MINOR != ${var}
31210#error LIBPNG library must be version 1${var}!
31211Kaboom, Kaboom
31212#endif
31213return 0;
31214
31215 ;
31216 return 0;
31217}
31218_ACEOF
31219if ac_fn_c_try_compile "$LINENO"; then :
31220 ac_cv_libpng_ok='yes'
31221else
31222 ac_cv_libpng_ok='no'
31223fi
31224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31225 if test "$ac_cv_libpng_ok" = 'yes' ; then
31226 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031227 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31228$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031229 else
31230 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031231 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31232$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031233 fi
31234 else
31235 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31237$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031238 fi
31239 fi
31240
31241 if test $passed -gt 0 -a $failed -le 0; then
31242 if test "1${var}" = '15' ; then
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31244$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31245if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31246 $as_echo_n "(cached) " >&6
31247else
31248 ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lpng15 $LIBS"
31250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251/* end confdefs.h. */
31252
31253/* Override any GCC internal prototype to avoid an error.
31254 Use char because int might match the return type of a GCC
31255 builtin and then its argument prototype would still apply. */
31256#ifdef __cplusplus
31257extern "C"
31258#endif
31259char png_get_io_ptr ();
31260int
31261main ()
31262{
31263return png_get_io_ptr ();
31264 ;
31265 return 0;
31266}
31267_ACEOF
31268if ac_fn_c_try_link "$LINENO"; then :
31269 ac_cv_lib_png15_png_get_io_ptr=yes
31270else
31271 ac_cv_lib_png15_png_get_io_ptr=no
31272fi
31273rm -f core conftest.err conftest.$ac_objext \
31274 conftest$ac_exeext conftest.$ac_ext
31275LIBS=$ac_check_lib_save_LIBS
31276fi
31277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31278$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31279if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31280 passed=`expr $passed + 1`
31281else
31282 failed=`expr $failed + 1`
31283fi
31284
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31286$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31287if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31288 $as_echo_n "(cached) " >&6
31289else
31290 ac_check_lib_save_LIBS=$LIBS
31291LIBS="-lpng15 $LIBS"
31292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31293/* end confdefs.h. */
31294
31295/* Override any GCC internal prototype to avoid an error.
31296 Use char because int might match the return type of a GCC
31297 builtin and then its argument prototype would still apply. */
31298#ifdef __cplusplus
31299extern "C"
31300#endif
31301char png_longjmp ();
31302int
31303main ()
31304{
31305return png_longjmp ();
31306 ;
31307 return 0;
31308}
31309_ACEOF
31310if ac_fn_c_try_link "$LINENO"; then :
31311 ac_cv_lib_png15_png_longjmp=yes
31312else
31313 ac_cv_lib_png15_png_longjmp=no
31314fi
31315rm -f core conftest.err conftest.$ac_objext \
31316 conftest$ac_exeext conftest.$ac_ext
31317LIBS=$ac_check_lib_save_LIBS
31318fi
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31320$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31321if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31322 passed=`expr $passed + 1`
31323else
31324 failed=`expr $failed + 1`
31325fi
31326
31327 fi
31328 if test "1${var}" = '14' ; then
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31330$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31331if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31332 $as_echo_n "(cached) " >&6
31333else
31334 ac_check_lib_save_LIBS=$LIBS
31335LIBS="-lpng14 $LIBS"
31336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31337/* end confdefs.h. */
31338
31339/* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31342#ifdef __cplusplus
31343extern "C"
31344#endif
31345char png_get_io_ptr ();
31346int
31347main ()
31348{
31349return png_get_io_ptr ();
31350 ;
31351 return 0;
31352}
31353_ACEOF
31354if ac_fn_c_try_link "$LINENO"; then :
31355 ac_cv_lib_png14_png_get_io_ptr=yes
31356else
31357 ac_cv_lib_png14_png_get_io_ptr=no
31358fi
31359rm -f core conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
31361LIBS=$ac_check_lib_save_LIBS
31362fi
31363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31364$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31365if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31366 passed=`expr $passed + 1`
31367else
31368 failed=`expr $failed + 1`
31369fi
31370
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31372$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31373if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31374 $as_echo_n "(cached) " >&6
31375else
31376 ac_check_lib_save_LIBS=$LIBS
31377LIBS="-lpng14 $LIBS"
31378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379/* end confdefs.h. */
31380
31381/* Override any GCC internal prototype to avoid an error.
31382 Use char because int might match the return type of a GCC
31383 builtin and then its argument prototype would still apply. */
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char png_get_io_state ();
31388int
31389main ()
31390{
31391return png_get_io_state ();
31392 ;
31393 return 0;
31394}
31395_ACEOF
31396if ac_fn_c_try_link "$LINENO"; then :
31397 ac_cv_lib_png14_png_get_io_state=yes
31398else
31399 ac_cv_lib_png14_png_get_io_state=no
31400fi
31401rm -f core conftest.err conftest.$ac_objext \
31402 conftest$ac_exeext conftest.$ac_ext
31403LIBS=$ac_check_lib_save_LIBS
31404fi
31405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31406$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31407if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31408 passed=`expr $passed + 1`
31409else
31410 failed=`expr $failed + 1`
31411fi
31412
31413 fi
31414 if test "1${var}" = '12' ; then
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31416$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31417if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31418 $as_echo_n "(cached) " >&6
31419else
31420 ac_check_lib_save_LIBS=$LIBS
31421LIBS="-lpng12 $LIBS"
31422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31423/* end confdefs.h. */
31424
31425/* Override any GCC internal prototype to avoid an error.
31426 Use char because int might match the return type of a GCC
31427 builtin and then its argument prototype would still apply. */
31428#ifdef __cplusplus
31429extern "C"
31430#endif
31431char png_get_io_ptr ();
31432int
31433main ()
31434{
31435return png_get_io_ptr ();
31436 ;
31437 return 0;
31438}
31439_ACEOF
31440if ac_fn_c_try_link "$LINENO"; then :
31441 ac_cv_lib_png12_png_get_io_ptr=yes
31442else
31443 ac_cv_lib_png12_png_get_io_ptr=no
31444fi
31445rm -f core conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext conftest.$ac_ext
31447LIBS=$ac_check_lib_save_LIBS
31448fi
31449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31450$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31451if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31452 passed=`expr $passed + 1`
31453else
31454 failed=`expr $failed + 1`
31455fi
31456
31457 fi
31458 if test "1${var}" = '1' ; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31460$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31461if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31462 $as_echo_n "(cached) " >&6
31463else
31464 ac_check_lib_save_LIBS=$LIBS
31465LIBS="-lpng $LIBS"
31466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31467/* end confdefs.h. */
31468
31469/* Override any GCC internal prototype to avoid an error.
31470 Use char because int might match the return type of a GCC
31471 builtin and then its argument prototype would still apply. */
31472#ifdef __cplusplus
31473extern "C"
31474#endif
31475char png_get_io_ptr ();
31476int
31477main ()
31478{
31479return png_get_io_ptr ();
31480 ;
31481 return 0;
31482}
31483_ACEOF
31484if ac_fn_c_try_link "$LINENO"; then :
31485 ac_cv_lib_png_png_get_io_ptr=yes
31486else
31487 ac_cv_lib_png_png_get_io_ptr=no
31488fi
31489rm -f core conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
31491LIBS=$ac_check_lib_save_LIBS
31492fi
31493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31494$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31495if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31496 passed=`expr $passed + 1`
31497else
31498 failed=`expr $failed + 1`
31499fi
31500
31501 fi
31502 if test $passed -gt 0 -a $failed -le 0 ; then
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31504$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31505 if test $passed -gt 0 ; then
31506 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31508$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031509 have_png='no (failed tests)'
31510 else
31511 PNG_LIBS="-l${pnglib}"
31512 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031513
cristy8b350f62009-11-15 23:12:43 +000031514$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031515
cristy09b53e12011-10-14 12:47:22 +000031516 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31517$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031518 have_png='yes'
31519 fi
31520 fi
31521 fi
31522 fi
31523 fi
31524 done
31525 fi
cristy3ed852e2009-09-05 21:47:34 +000031526fi
cristy64877302011-08-23 19:10:31 +000031527
cristy73bd4a52010-10-05 11:24:23 +000031528 if test "$have_png" = 'yes'; then
31529 PNG_DELEGATE_TRUE=
31530 PNG_DELEGATE_FALSE='#'
31531else
31532 PNG_DELEGATE_TRUE='#'
31533 PNG_DELEGATE_FALSE=
31534fi
31535
cristy3ed852e2009-09-05 21:47:34 +000031536
cristy50d3f5c2011-09-10 20:09:06 +000031537
cristy3ed852e2009-09-05 21:47:34 +000031538
31539
31540#
31541# Check for RSVG delegate library.
31542#
31543
31544# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031545if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031546 withval=$with_rsvg; with_rsvg=$withval
31547else
cristyfc3d0222012-02-07 15:05:57 +000031548 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031549fi
31550
31551
31552if test "$with_rsvg" != 'yes'; then
31553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31554fi
31555
31556have_rsvg='no'
31557have_cairo='no'
31558RSVG_CFLAGS=""
31559RSVG_LIBS=""
31560RSVG_PKG=""
31561if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031562 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31563$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031564
31565pkg_failed=no
31566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31567$as_echo_n "checking for RSVG... " >&6; }
31568
31569if test -n "$RSVG_CFLAGS"; then
31570 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31571 elif test -n "$PKG_CONFIG"; then
31572 if test -n "$PKG_CONFIG" && \
31573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31574 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31575 ac_status=$?
31576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31577 test $ac_status = 0; }; then
31578 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31579else
31580 pkg_failed=yes
31581fi
31582 else
31583 pkg_failed=untried
31584fi
31585if test -n "$RSVG_LIBS"; then
31586 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31587 elif test -n "$PKG_CONFIG"; then
31588 if test -n "$PKG_CONFIG" && \
31589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31590 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31591 ac_status=$?
31592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31593 test $ac_status = 0; }; then
31594 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31595else
31596 pkg_failed=yes
31597fi
31598 else
31599 pkg_failed=untried
31600fi
31601
31602
31603
31604if test $pkg_failed = yes; then
31605
31606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31607 _pkg_short_errors_supported=yes
31608else
31609 _pkg_short_errors_supported=no
31610fi
31611 if test $_pkg_short_errors_supported = yes; then
31612 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31613 else
31614 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31615 fi
31616 # Put the nasty error message in config.log where it belongs
31617 echo "$RSVG_PKG_ERRORS" >&5
31618
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31620$as_echo "no" >&6; }
31621 have_rsvg=no
31622elif test $pkg_failed = untried; then
31623 have_rsvg=no
31624else
31625 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31626 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31628$as_echo "yes" >&6; }
31629 have_rsvg=yes
31630fi
cristy09b53e12011-10-14 12:47:22 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31632$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031633
31634pkg_failed=no
31635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31636$as_echo_n "checking for CAIRO_SVG... " >&6; }
31637
31638if test -n "$CAIRO_SVG_CFLAGS"; then
31639 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31640 elif test -n "$PKG_CONFIG"; then
31641 if test -n "$PKG_CONFIG" && \
31642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31643 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31644 ac_status=$?
31645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31646 test $ac_status = 0; }; then
31647 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31648else
31649 pkg_failed=yes
31650fi
31651 else
31652 pkg_failed=untried
31653fi
31654if test -n "$CAIRO_SVG_LIBS"; then
31655 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31656 elif test -n "$PKG_CONFIG"; then
31657 if test -n "$PKG_CONFIG" && \
31658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31659 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31660 ac_status=$?
31661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31662 test $ac_status = 0; }; then
31663 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31664else
31665 pkg_failed=yes
31666fi
31667 else
31668 pkg_failed=untried
31669fi
31670
31671
31672
31673if test $pkg_failed = yes; then
31674
31675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31676 _pkg_short_errors_supported=yes
31677else
31678 _pkg_short_errors_supported=no
31679fi
31680 if test $_pkg_short_errors_supported = yes; then
31681 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31682 else
31683 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31684 fi
31685 # Put the nasty error message in config.log where it belongs
31686 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31687
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689$as_echo "no" >&6; }
31690 have_cairo=no
31691elif test $pkg_failed = untried; then
31692 have_cairo=no
31693else
31694 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31695 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31697$as_echo "yes" >&6; }
31698 have_cairo=yes
31699fi
cristy09b53e12011-10-14 12:47:22 +000031700 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31701$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031702fi
31703
31704if test "$have_rsvg" = 'yes'; then
31705
cristy8b350f62009-11-15 23:12:43 +000031706$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031707
31708 if test "$with_modules" = 'no'; then
31709 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31710 fi
31711fi
31712
31713if test "$have_cairo" = 'yes'; then
31714
cristy8b350f62009-11-15 23:12:43 +000031715$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031716
31717 if test "$with_modules" = 'no'; then
31718 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31719 fi
31720fi
31721
cristy73bd4a52010-10-05 11:24:23 +000031722 if test "$have_rsvg" = 'yes'; then
31723 RSVG_DELEGATE_TRUE=
31724 RSVG_DELEGATE_FALSE='#'
31725else
31726 RSVG_DELEGATE_TRUE='#'
31727 RSVG_DELEGATE_FALSE=
31728fi
31729
31730 if test "$have_cairo" = 'yes'; then
31731 CAIRO_DELEGATE_TRUE=
31732 CAIRO_DELEGATE_FALSE='#'
31733else
31734 CAIRO_DELEGATE_TRUE='#'
31735 CAIRO_DELEGATE_FALSE=
31736fi
31737
cristy3ed852e2009-09-05 21:47:34 +000031738
31739
31740
31741
31742#
31743# Check for TIFF delegate library.
31744#
31745
31746# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031747if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031748 withval=$with_tiff; with_tiff=$withval
31749else
31750 with_tiff='yes'
31751fi
31752
31753
31754if test "$with_tiff" != 'yes'; then
31755 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31756fi
31757
31758have_tiff='no'
31759TIFF_LIBS=''
31760if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031761 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31762$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031764$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031765 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31766$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031767 failed=0
31768 passed=0
cristy8b350f62009-11-15 23:12:43 +000031769 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031770if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031771 passed=`expr $passed + 1`
31772else
31773 failed=`expr $failed + 1`
31774fi
31775
31776
cristy8b350f62009-11-15 23:12:43 +000031777 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031778if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031779 passed=`expr $passed + 1`
31780else
31781 failed=`expr $failed + 1`
31782fi
31783
31784
cristy8b350f62009-11-15 23:12:43 +000031785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031786$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031787if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031788 $as_echo_n "(cached) " >&6
31789else
31790 ac_check_lib_save_LIBS=$LIBS
31791LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031793/* end confdefs.h. */
31794
31795/* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply. */
31798#ifdef __cplusplus
31799extern "C"
31800#endif
31801char TIFFOpen ();
31802int
31803main ()
31804{
31805return TIFFOpen ();
31806 ;
31807 return 0;
31808}
31809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031810if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 ac_cv_lib_tiff_TIFFOpen=yes
31812else
cristy8b350f62009-11-15 23:12:43 +000031813 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031814fi
cristy8b350f62009-11-15 23:12:43 +000031815rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031817LIBS=$ac_check_lib_save_LIBS
31818fi
cristy8b350f62009-11-15 23:12:43 +000031819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031820$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031821if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031822 passed=`expr $passed + 1`
31823else
31824 failed=`expr $failed + 1`
31825fi
31826
cristy8b350f62009-11-15 23:12:43 +000031827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031829if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031830 $as_echo_n "(cached) " >&6
31831else
31832 ac_check_lib_save_LIBS=$LIBS
31833LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031835/* end confdefs.h. */
31836
31837/* Override any GCC internal prototype to avoid an error.
31838 Use char because int might match the return type of a GCC
31839 builtin and then its argument prototype would still apply. */
31840#ifdef __cplusplus
31841extern "C"
31842#endif
31843char TIFFClientOpen ();
31844int
31845main ()
31846{
31847return TIFFClientOpen ();
31848 ;
31849 return 0;
31850}
31851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 ac_cv_lib_tiff_TIFFClientOpen=yes
31854else
cristy8b350f62009-11-15 23:12:43 +000031855 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031856fi
cristy8b350f62009-11-15 23:12:43 +000031857rm -f core conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031859LIBS=$ac_check_lib_save_LIBS
31860fi
cristy8b350f62009-11-15 23:12:43 +000031861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031862$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031863if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031864 passed=`expr $passed + 1`
31865else
31866 failed=`expr $failed + 1`
31867fi
31868
cristy8b350f62009-11-15 23:12:43 +000031869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031871if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031872 $as_echo_n "(cached) " >&6
31873else
31874 ac_check_lib_save_LIBS=$LIBS
31875LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031877/* end confdefs.h. */
31878
31879/* Override any GCC internal prototype to avoid an error.
31880 Use char because int might match the return type of a GCC
31881 builtin and then its argument prototype would still apply. */
31882#ifdef __cplusplus
31883extern "C"
31884#endif
31885char TIFFIsByteSwapped ();
31886int
31887main ()
31888{
31889return TIFFIsByteSwapped ();
31890 ;
31891 return 0;
31892}
31893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031895 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31896else
cristy8b350f62009-11-15 23:12:43 +000031897 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031898fi
cristy8b350f62009-11-15 23:12:43 +000031899rm -f core conftest.err conftest.$ac_objext \
31900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031901LIBS=$ac_check_lib_save_LIBS
31902fi
cristy8b350f62009-11-15 23:12:43 +000031903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031904$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031905if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031906 passed=`expr $passed + 1`
31907else
31908 failed=`expr $failed + 1`
31909fi
31910
cristy8b350f62009-11-15 23:12:43 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031913if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031914 $as_echo_n "(cached) " >&6
31915else
31916 ac_check_lib_save_LIBS=$LIBS
31917LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031919/* end confdefs.h. */
31920
31921/* Override any GCC internal prototype to avoid an error.
31922 Use char because int might match the return type of a GCC
31923 builtin and then its argument prototype would still apply. */
31924#ifdef __cplusplus
31925extern "C"
31926#endif
31927char TIFFReadRGBATile ();
31928int
31929main ()
31930{
31931return TIFFReadRGBATile ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31938else
cristy8b350f62009-11-15 23:12:43 +000031939 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031940fi
cristy8b350f62009-11-15 23:12:43 +000031941rm -f core conftest.err conftest.$ac_objext \
31942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031943LIBS=$ac_check_lib_save_LIBS
31944fi
cristy8b350f62009-11-15 23:12:43 +000031945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031946$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031947if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031948 passed=`expr $passed + 1`
31949else
31950 failed=`expr $failed + 1`
31951fi
31952
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031955if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031956 $as_echo_n "(cached) " >&6
31957else
31958 ac_check_lib_save_LIBS=$LIBS
31959LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031961/* end confdefs.h. */
31962
31963/* Override any GCC internal prototype to avoid an error.
31964 Use char because int might match the return type of a GCC
31965 builtin and then its argument prototype would still apply. */
31966#ifdef __cplusplus
31967extern "C"
31968#endif
31969char TIFFReadRGBAStrip ();
31970int
31971main ()
31972{
31973return TIFFReadRGBAStrip ();
31974 ;
31975 return 0;
31976}
31977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031979 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31980else
cristy8b350f62009-11-15 23:12:43 +000031981 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031982fi
cristy8b350f62009-11-15 23:12:43 +000031983rm -f core conftest.err conftest.$ac_objext \
31984 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031985LIBS=$ac_check_lib_save_LIBS
31986fi
cristy8b350f62009-11-15 23:12:43 +000031987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031989if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031990 passed=`expr $passed + 1`
31991else
31992 failed=`expr $failed + 1`
31993fi
31994
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking if TIFF package is complete... " >&6; }
31997 if test $passed -gt 0; then
31998 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32000$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032001 have_tiff='no (failed tests)'
32002 else
32003 TIFF_LIBS='-ltiff'
32004 LIBS="$TIFF_LIBS $LIBS"
32005
cristy8b350f62009-11-15 23:12:43 +000032006$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032007
cristy09b53e12011-10-14 12:47:22 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32009$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032010 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032011 for ac_header in tiffconf.h
32012do :
32013 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032014if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032015 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032016#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032017_ACEOF
32018
32019fi
32020
32021done
32022
cristy8b350f62009-11-15 23:12:43 +000032023 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032024 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32025 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32026 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032027do :
32028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032031 cat >>confdefs.h <<_ACEOF
32032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32033_ACEOF
32034
32035fi
32036done
32037
32038 fi
32039 else
cristy09b53e12011-10-14 12:47:22 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32041$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032042 fi
32043fi
cristy73bd4a52010-10-05 11:24:23 +000032044 if test "$have_tiff" = 'yes'; then
32045 TIFF_DELEGATE_TRUE=
32046 TIFF_DELEGATE_FALSE='#'
32047else
32048 TIFF_DELEGATE_TRUE='#'
32049 TIFF_DELEGATE_FALSE=
32050fi
32051
cristy3ed852e2009-09-05 21:47:34 +000032052
32053
32054
32055#
cristyb1860752011-03-14 00:27:46 +000032056# Check for WEBP delegate library.
32057#
32058
32059# Check whether --with-webp was given.
32060if test "${with_webp+set}" = set; then :
32061 withval=$with_webp; with_webp=$withval
32062else
32063 with_webp='yes'
32064fi
32065
32066
32067if test "$with_webp" != 'yes'; then
32068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32069fi
32070
32071have_webp='no'
32072WEBP_LIBS=''
32073if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32075$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32077$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32079$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032080 failed=0
32081 passed=0
32082 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32083if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32084 passed=`expr $passed + 1`
32085else
32086 failed=`expr $failed + 1`
32087fi
32088
32089
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32091$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32092if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32093 $as_echo_n "(cached) " >&6
32094else
32095 ac_check_lib_save_LIBS=$LIBS
32096LIBS="-lwebp $LIBS"
32097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32098/* end confdefs.h. */
32099
32100/* Override any GCC internal prototype to avoid an error.
32101 Use char because int might match the return type of a GCC
32102 builtin and then its argument prototype would still apply. */
32103#ifdef __cplusplus
32104extern "C"
32105#endif
32106char WebPDecodeRGB ();
32107int
32108main ()
32109{
32110return WebPDecodeRGB ();
32111 ;
32112 return 0;
32113}
32114_ACEOF
32115if ac_fn_c_try_link "$LINENO"; then :
32116 ac_cv_lib_webp_WebPDecodeRGB=yes
32117else
32118 ac_cv_lib_webp_WebPDecodeRGB=no
32119fi
32120rm -f core conftest.err conftest.$ac_objext \
32121 conftest$ac_exeext conftest.$ac_ext
32122LIBS=$ac_check_lib_save_LIBS
32123fi
32124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32125$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32126if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32127 passed=`expr $passed + 1`
32128else
32129 failed=`expr $failed + 1`
32130fi
32131
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32133$as_echo_n "checking if WEBP package is complete... " >&6; }
32134 if test $passed -gt 0; then
32135 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032136 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32137$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032138 have_webp='no (failed tests)'
32139 else
32140 WEBP_LIBS='-lwebp'
32141 LIBS="$WEBP_LIBS $LIBS"
32142
32143$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32144
cristy09b53e12011-10-14 12:47:22 +000032145 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32146$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032147 have_webp='yes'
32148 fi
32149 else
cristy09b53e12011-10-14 12:47:22 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32151$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032152 fi
32153fi
32154 if test "$have_webp" = 'yes'; then
32155 WEBP_DELEGATE_TRUE=
32156 WEBP_DELEGATE_FALSE='#'
32157else
32158 WEBP_DELEGATE_TRUE='#'
32159 WEBP_DELEGATE_FALSE=
32160fi
32161
32162
32163
32164
32165#
cristy3ed852e2009-09-05 21:47:34 +000032166# Set Windows font directory.
32167#
32168
32169# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032170if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032171 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32172else
32173 with_windows_font_dir=''
32174fi
32175
32176if test "$with_windows_font_dir" != '' ; then
32177 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32178fi
32179
32180
32181#
32182# Check for WMF delegate library.
32183#
32184
32185# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032186if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032187 withval=$with_wmf; with_wmf=$withval
32188else
cristyfc3d0222012-02-07 15:05:57 +000032189 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032190fi
32191
32192
32193if test "$with_wmf" != 'yes'; then
32194 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32195fi
32196
32197have_wmf='no'
32198WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032199WMF_LIBS_DEPS=''
32200OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032201if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32203$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32207$as_echo "" >&6; }
32208 have_libwmf='no'
32209 have_libwmflite='no'
32210 have_libwmf_ipa_h='no'
32211
32212 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32213"
32214if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32215 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032216fi
32217
32218
cristy03f7cf92011-12-15 01:40:41 +000032219 if test "$have_libwmf_ipa_h" = 'yes'; then
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32221$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32222if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032223 $as_echo_n "(cached) " >&6
32224else
32225 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032226LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032228/* end confdefs.h. */
32229
32230/* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply. */
32233#ifdef __cplusplus
32234extern "C"
32235#endif
cristy03f7cf92011-12-15 01:40:41 +000032236char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032237int
32238main ()
32239{
cristy03f7cf92011-12-15 01:40:41 +000032240return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032241 ;
32242 return 0;
32243}
32244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032245if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032246 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032247else
cristy03f7cf92011-12-15 01:40:41 +000032248 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032249fi
cristy8b350f62009-11-15 23:12:43 +000032250rm -f core conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032252LIBS=$ac_check_lib_save_LIBS
32253fi
cristy03f7cf92011-12-15 01:40:41 +000032254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32255$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32256if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32257 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032258fi
32259
cristy03f7cf92011-12-15 01:40:41 +000032260 if test "$have_libwmflite" = 'yes'; then
32261
32262$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32263
32264 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032265 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032266 have_wmf='yes'
32267 else
32268 WMF_LIBS_DEPS=''
32269 WMF_CONFIG_LIBS=`libwmf-config --libs`
32270 for lib in xml2 expat freetype jpeg png z; do
32271 testlib="-l${lib}"
32272 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32273 done
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32275$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32276if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32277 $as_echo_n "(cached) " >&6
32278else
32279 ac_check_lib_save_LIBS=$LIBS
32280LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32282/* end confdefs.h. */
32283
32284/* Override any GCC internal prototype to avoid an error.
32285 Use char because int might match the return type of a GCC
32286 builtin and then its argument prototype would still apply. */
32287#ifdef __cplusplus
32288extern "C"
32289#endif
32290char wmf_api_create ();
32291int
32292main ()
32293{
32294return wmf_api_create ();
32295 ;
32296 return 0;
32297}
32298_ACEOF
32299if ac_fn_c_try_link "$LINENO"; then :
32300 ac_cv_lib_wmf_wmf_api_create=yes
32301else
32302 ac_cv_lib_wmf_wmf_api_create=no
32303fi
32304rm -f core conftest.err conftest.$ac_objext \
32305 conftest$ac_exeext conftest.$ac_ext
32306LIBS=$ac_check_lib_save_LIBS
32307fi
32308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32309$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32310if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32311 have_libwmf='yes'
32312fi
32313
32314 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032315
cristy8b350f62009-11-15 23:12:43 +000032316$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032317
cristy03f7cf92011-12-15 01:40:41 +000032318 WMF_LIBS='-lwmf'
32319 LIBS="$WMF_LIBS $LIBS"
32320 have_wmf='yes'
32321 else
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32323$as_echo "no -- some components failed test" >&6; }
32324 have_wmf='no (failed tests)'
32325 have_wmflite='no (failed tests)'
32326 LIBS="$OLIBS"
32327 WMF_LIBS=''
32328 fi
glennrp33e524b2011-08-24 17:41:57 +000032329 fi
cristy03f7cf92011-12-15 01:40:41 +000032330 fi
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32332$as_echo_n "checking if WMF package is complete... " >&6; }
32333 if test "$have_wmf" = 'yes'; then
32334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32335$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032336 else
cristy03f7cf92011-12-15 01:40:41 +000032337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32338$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032339 fi
cristy3ed852e2009-09-05 21:47:34 +000032340fi
cristy73bd4a52010-10-05 11:24:23 +000032341 if test "$have_wmf" = 'yes'; then
32342 WMF_DELEGATE_TRUE=
32343 WMF_DELEGATE_FALSE='#'
32344else
32345 WMF_DELEGATE_TRUE='#'
32346 WMF_DELEGATE_FALSE=
32347fi
32348
cristy3ed852e2009-09-05 21:47:34 +000032349
32350
32351
cristy81beccd2011-10-03 18:17:24 +000032352
32353
cristy3ed852e2009-09-05 21:47:34 +000032354#
32355# Check for XML delegate library.
32356#
32357
32358# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032359if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032360 withval=$with_xml; with_xml=$withval
32361else
cristyfc3d0222012-02-07 15:05:57 +000032362 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032363fi
32364
32365
cristy81beccd2011-10-03 18:17:24 +000032366if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032367 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32368fi
32369
cristy81beccd2011-10-03 18:17:24 +000032370have_xml='no'
32371XML_LIBS=''
32372if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032373 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32374$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32376$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32378$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032379 PERSIST_LDFLAGS=$LDFLAGS
32380 PERSIST_CPPFLAGS=$CPPFLAGS
32381 xml2_config=''
32382 # Extract the first word of "xml2-config", so it can be a program name with args.
32383set dummy xml2-config; ac_word=$2
32384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32385$as_echo_n "checking for $ac_word... " >&6; }
32386if ${ac_cv_path_xml2_config+:} false; then :
32387 $as_echo_n "(cached) " >&6
32388else
32389 case $xml2_config in
32390 [\\/]* | ?:[\\/]*)
32391 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32392 ;;
32393 *)
32394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32395for as_dir in $PATH
32396do
32397 IFS=$as_save_IFS
32398 test -z "$as_dir" && as_dir=.
32399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032401 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32403 break 2
32404 fi
32405done
32406 done
32407IFS=$as_save_IFS
32408
32409 ;;
32410esac
32411fi
32412xml2_config=$ac_cv_path_xml2_config
32413if test -n "$xml2_config"; then
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32415$as_echo "$xml2_config" >&6; }
32416else
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32418$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032419fi
32420
cristy81beccd2011-10-03 18:17:24 +000032421 if test -n "$xml2_config"; then
32422 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32423 # the shared library installed under /usr/lib, whereas the package
32424 # installs itself under $prefix/libxml and $prefix/lib.
32425 xml2_prefix=`xml2-config --prefix`
32426 if test -d "${xml2_prefix}/include/libxml2"; then
32427 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32428 fi
32429 if test "${xml2_prefix}" != '/usr'; then
32430 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32431 fi
32432 fi
32433 failed=0
32434 passed=0
32435 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32436if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32437 passed=`expr $passed + 1`
32438else
32439 failed=`expr $failed + 1`
32440fi
32441
32442
32443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32444$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32445if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32446 $as_echo_n "(cached) " >&6
32447else
32448 ac_check_lib_save_LIBS=$LIBS
32449LIBS="-lxml2 $LIBS"
32450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32451/* end confdefs.h. */
32452
32453/* Override any GCC internal prototype to avoid an error.
32454 Use char because int might match the return type of a GCC
32455 builtin and then its argument prototype would still apply. */
32456#ifdef __cplusplus
32457extern "C"
32458#endif
32459char xmlSAXVersion ();
32460int
32461main ()
32462{
32463return xmlSAXVersion ();
32464 ;
32465 return 0;
32466}
32467_ACEOF
32468if ac_fn_c_try_link "$LINENO"; then :
32469 ac_cv_lib_xml2_xmlSAXVersion=yes
32470else
32471 ac_cv_lib_xml2_xmlSAXVersion=no
32472fi
32473rm -f core conftest.err conftest.$ac_objext \
32474 conftest$ac_exeext conftest.$ac_ext
32475LIBS=$ac_check_lib_save_LIBS
32476fi
32477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32478$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32479if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32480 passed=`expr $passed + 1`
32481else
32482 failed=`expr $failed + 1`
32483fi
32484
32485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32486$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32487if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32488 $as_echo_n "(cached) " >&6
32489else
32490 ac_check_lib_save_LIBS=$LIBS
32491LIBS="-lxml2 $LIBS"
32492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493/* end confdefs.h. */
32494
32495/* Override any GCC internal prototype to avoid an error.
32496 Use char because int might match the return type of a GCC
32497 builtin and then its argument prototype would still apply. */
32498#ifdef __cplusplus
32499extern "C"
32500#endif
32501char xmlParseChunk ();
32502int
32503main ()
32504{
32505return xmlParseChunk ();
32506 ;
32507 return 0;
32508}
32509_ACEOF
32510if ac_fn_c_try_link "$LINENO"; then :
32511 ac_cv_lib_xml2_xmlParseChunk=yes
32512else
32513 ac_cv_lib_xml2_xmlParseChunk=no
32514fi
32515rm -f core conftest.err conftest.$ac_objext \
32516 conftest$ac_exeext conftest.$ac_ext
32517LIBS=$ac_check_lib_save_LIBS
32518fi
32519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32520$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32521if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32522 passed=`expr $passed + 1`
32523else
32524 failed=`expr $failed + 1`
32525fi
32526
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32528$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32529if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32530 $as_echo_n "(cached) " >&6
32531else
32532 ac_check_lib_save_LIBS=$LIBS
32533LIBS="-lxml2 $LIBS"
32534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32535/* end confdefs.h. */
32536
32537/* Override any GCC internal prototype to avoid an error.
32538 Use char because int might match the return type of a GCC
32539 builtin and then its argument prototype would still apply. */
32540#ifdef __cplusplus
32541extern "C"
32542#endif
32543char xmlCreatePushParserCtxt ();
32544int
32545main ()
32546{
32547return xmlCreatePushParserCtxt ();
32548 ;
32549 return 0;
32550}
32551_ACEOF
32552if ac_fn_c_try_link "$LINENO"; then :
32553 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32554else
32555 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32556fi
32557rm -f core conftest.err conftest.$ac_objext \
32558 conftest$ac_exeext conftest.$ac_ext
32559LIBS=$ac_check_lib_save_LIBS
32560fi
32561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32562$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32563if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32564 passed=`expr $passed + 1`
32565else
32566 failed=`expr $failed + 1`
32567fi
32568
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32570$as_echo_n "checking if XML package is complete... " >&6; }
32571 if test $passed -gt 0; then
32572 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32574$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032575 have_xml='no (failed tests)'
32576 LDFLAGS="$PERSIST_LDFLAGS"
32577 CPPFLAGS="$PERSIST_CPPFLAGS"
32578 else
32579 XML_LIBS='-lxml2'
32580 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032581
cristy8b350f62009-11-15 23:12:43 +000032582$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032583
cristy09b53e12011-10-14 12:47:22 +000032584 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32585$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032586 have_xml='yes'
32587 fi
32588 else
cristy09b53e12011-10-14 12:47:22 +000032589 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32590$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032591 fi
32592fi
cristy73bd4a52010-10-05 11:24:23 +000032593 if test "$have_xml" = 'yes'; then
32594 XML_DELEGATE_TRUE=
32595 XML_DELEGATE_FALSE='#'
32596else
32597 XML_DELEGATE_TRUE='#'
32598 XML_DELEGATE_FALSE=
32599fi
32600
cristy3ed852e2009-09-05 21:47:34 +000032601
32602
32603
32604# Substitute compiler name to build/link PerlMagick
32605#
32606
32607
32608#
32609# Configure install Paths
32610#
cristy7def36a2011-10-28 19:04:41 +000032611
cristy2a11bef2011-10-28 18:33:11 +000032612# Path to ImageMagick header files
32613INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032614INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32615DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032616case "${build_os}" in
32617 mingw* )
32618 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32619 ;;
32620esac
32621
32622cat >>confdefs.h <<_ACEOF
32623#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32624_ACEOF
32625
32626
cristy3ed852e2009-09-05 21:47:34 +000032627
32628# Subdirectory under lib to place ImageMagick lib files
32629LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32630
32631cat >>confdefs.h <<_ACEOF
32632#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32633_ACEOF
32634
32635
32636# Path to ImageMagick bin directory
32637EXECUTABLE_PATH="${BIN_DIR}"
32638DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32639case "${build_os}" in
32640 mingw* )
32641 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32642 ;;
32643esac
32644
32645cat >>confdefs.h <<_ACEOF
32646#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32647_ACEOF
32648
32649
32650
32651# Path to ImageMagick lib
32652LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32653DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32654case "${build_os}" in
32655 mingw* )
32656 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32657 ;;
32658esac
32659
32660cat >>confdefs.h <<_ACEOF
32661#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32662_ACEOF
32663
32664
32665
cristy3ed852e2009-09-05 21:47:34 +000032666#
32667# Subdirectory under lib to place ImageMagick coder module files
32668CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32669
32670cat >>confdefs.h <<_ACEOF
32671#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32672_ACEOF
32673
32674CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32675DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32676case "${build_os}" in
32677 mingw* )
32678 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32679 ;;
32680esac
32681
32682cat >>confdefs.h <<_ACEOF
32683#define CODER_PATH "$DEFINE_CODER_PATH"
32684_ACEOF
32685
32686
32687
32688#
32689# Subdirectory under lib to place ImageMagick filter module files
32690FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32691
32692cat >>confdefs.h <<_ACEOF
32693#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32694_ACEOF
32695
32696FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32697DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32698case "${build_os}" in
32699 mingw* )
32700 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32701 ;;
32702esac
32703
32704cat >>confdefs.h <<_ACEOF
32705#define FILTER_PATH "$DEFINE_FILTER_PATH"
32706_ACEOF
32707
32708
32709
32710#
32711# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032712DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032713DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32714DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032715case "${build_os}" in
32716 mingw* )
32717 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32718 ;;
32719esac
32720
32721cat >>confdefs.h <<_ACEOF
32722#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32723_ACEOF
32724
32725
32726
cristy2a11bef2011-10-28 18:33:11 +000032727# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032728CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032729
32730cat >>confdefs.h <<_ACEOF
32731#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32732_ACEOF
32733
cristy7def36a2011-10-28 19:04:41 +000032734CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032735DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32736case "${build_os}" in
32737 mingw* )
32738 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32739 ;;
32740esac
32741
32742cat >>confdefs.h <<_ACEOF
32743#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32744_ACEOF
32745
32746
32747
cristy2a11bef2011-10-28 18:33:11 +000032748# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032749SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032750
32751cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032752#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032753_ACEOF
32754
cristy670aa3c2011-11-03 00:54:00 +000032755SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032756DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032757case "${build_os}" in
32758 mingw* )
cristy4f820712011-04-01 12:35:43 +000032759 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032760 ;;
32761esac
32762
32763cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032764#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032765_ACEOF
32766
32767
32768
cristy408ebcd2011-11-14 01:36:57 +000032769# Subdirectory to place architecture-dependent configuration files
32770SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032771
32772cat >>confdefs.h <<_ACEOF
32773#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32774_ACEOF
32775
cristy408ebcd2011-11-14 01:36:57 +000032776SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32777DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032778case "${build_os}" in
32779 mingw* )
32780 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32781 ;;
32782esac
32783
32784cat >>confdefs.h <<_ACEOF
32785#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32786_ACEOF
32787
32788
32789
cristy3ed852e2009-09-05 21:47:34 +000032790#
32791# program_transform_name is formed for use in a Makefile, so create a
32792# modified version for use in a shell script.
32793configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32794
32795# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032796{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32797$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032799$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032800{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32801$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032802AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032803BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032804BZIPDelegateDefault='bzip2'
32805BrowseDelegateDefault='xdg-open'
32806CGMDecodeDelegateDefault='ralcgm'
32807CatDelegateDefault='cat'
32808DNGDecodeDelegateDefault='ufraw-batch'
32809GVCDecodeDelegateDefault='dot'
32810DVIDecodeDelegateDefault='dvips'
32811EchoDelegateDefault='echo'
32812EditorDelegateDefault='xterm'
32813FIGDecodeDelegateDefault='fig2dev'
32814ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32815DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32816MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32817GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032818HPGLDecodeDelegateDefault='hp2xx'
32819HTMLDecodeDelegateDefault='html2ps'
32820ILBMDecodeDelegateDefault='ilbmtoppm'
32821ILBMEncodeDelegateDefault='ppmtoilbm'
32822LPDelegateDefault='lp'
32823LPRDelegateDefault='lpr'
32824LZWDecodeDelegateDefault='uncompress'
32825LZWEncodeDelegateDefault='compress'
32826LaunchDelegateDefault='gimp'
32827MANDelegateDefault='groff'
32828MPEGDecodeDelegateDefault='ffmpeg'
32829MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032830MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032831MVDelegateDefault='mv'
32832PCLDelegateDefault='pcl6'
32833PGPDecodeDelegateDefault='pgpv'
32834POVDelegateDefault='povray'
32835if test "$native_win32_build" = 'yes'; then
32836 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032837elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032838 PSDelegateDefault='gsc'
32839else
32840 PSDelegateDefault='gs'
32841fi
32842RLEEncodeDelegateDefault='rawtorle'
32843RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032844RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032845SCANDecodeDelegateDefault='scanimage'
32846TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032847UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032848WMFDecodeDelegateDefault='wmf2eps'
32849WWWDecodeDelegateDefault='curl'
32850XPSDelegateDefault='gxps'
32851ZipDelegateDefault='gzip'
32852
32853# Search for delegates
32854# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32855set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032858if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032859 $as_echo_n "(cached) " >&6
32860else
32861 case $AutotraceDecodeDelegate in
32862 [\\/]* | ?:[\\/]*)
32863 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32864 ;;
32865 *)
32866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32867for as_dir in $PATH
32868do
32869 IFS=$as_save_IFS
32870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032873 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875 break 2
32876 fi
32877done
cristy8b350f62009-11-15 23:12:43 +000032878 done
cristy3ed852e2009-09-05 21:47:34 +000032879IFS=$as_save_IFS
32880
32881 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32882 ;;
32883esac
32884fi
32885AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32886if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo "$AutotraceDecodeDelegate" >&6; }
32889else
cristy8b350f62009-11-15 23:12:43 +000032890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891$as_echo "no" >&6; }
32892fi
32893
32894
cristy3ed852e2009-09-05 21:47:34 +000032895# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32896set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032899if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032900 $as_echo_n "(cached) " >&6
32901else
32902 case $BlenderDecodeDelegate in
32903 [\\/]* | ?:[\\/]*)
32904 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32905 ;;
32906 *)
32907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910 IFS=$as_save_IFS
32911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032914 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916 break 2
32917 fi
32918done
cristy8b350f62009-11-15 23:12:43 +000032919 done
cristy3ed852e2009-09-05 21:47:34 +000032920IFS=$as_save_IFS
32921
32922 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32923 ;;
32924esac
32925fi
32926BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32927if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "$BlenderDecodeDelegate" >&6; }
32930else
cristy8b350f62009-11-15 23:12:43 +000032931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032932$as_echo "no" >&6; }
32933fi
32934
32935
32936# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32937set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032940if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032941 $as_echo_n "(cached) " >&6
32942else
32943 case $BZIPDelegate in
32944 [\\/]* | ?:[\\/]*)
32945 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32946 ;;
32947 *)
32948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32949for as_dir in $PATH
32950do
32951 IFS=$as_save_IFS
32952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032955 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957 break 2
32958 fi
32959done
cristy8b350f62009-11-15 23:12:43 +000032960 done
cristy3ed852e2009-09-05 21:47:34 +000032961IFS=$as_save_IFS
32962
32963 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32964 ;;
32965esac
32966fi
32967BZIPDelegate=$ac_cv_path_BZIPDelegate
32968if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "$BZIPDelegate" >&6; }
32971else
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "no" >&6; }
32974fi
32975
32976
32977# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32978set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032981if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032982 $as_echo_n "(cached) " >&6
32983else
32984 case $BrowseDelegate in
32985 [\\/]* | ?:[\\/]*)
32986 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32987 ;;
32988 *)
32989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32990for as_dir in $PATH
32991do
32992 IFS=$as_save_IFS
32993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032996 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998 break 2
32999 fi
33000done
cristy8b350f62009-11-15 23:12:43 +000033001 done
cristy3ed852e2009-09-05 21:47:34 +000033002IFS=$as_save_IFS
33003
33004 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
33005 ;;
33006esac
33007fi
33008BrowseDelegate=$ac_cv_path_BrowseDelegate
33009if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "$BrowseDelegate" >&6; }
33012else
cristy8b350f62009-11-15 23:12:43 +000033013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014$as_echo "no" >&6; }
33015fi
33016
33017
33018# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33019set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033022if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033023 $as_echo_n "(cached) " >&6
33024else
33025 case $CGMDecodeDelegate in
33026 [\\/]* | ?:[\\/]*)
33027 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33028 ;;
33029 *)
33030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33031for as_dir in $PATH
33032do
33033 IFS=$as_save_IFS
33034 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033037 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039 break 2
33040 fi
33041done
cristy8b350f62009-11-15 23:12:43 +000033042 done
cristy3ed852e2009-09-05 21:47:34 +000033043IFS=$as_save_IFS
33044
33045 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33046 ;;
33047esac
33048fi
33049CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33050if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "$CGMDecodeDelegate" >&6; }
33053else
cristy8b350f62009-11-15 23:12:43 +000033054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055$as_echo "no" >&6; }
33056fi
33057
33058
33059# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33060set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033063if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033064 $as_echo_n "(cached) " >&6
33065else
33066 case $CatDelegate in
33067 [\\/]* | ?:[\\/]*)
33068 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33069 ;;
33070 *)
33071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33072for as_dir in $PATH
33073do
33074 IFS=$as_save_IFS
33075 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033078 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080 break 2
33081 fi
33082done
cristy8b350f62009-11-15 23:12:43 +000033083 done
cristy3ed852e2009-09-05 21:47:34 +000033084IFS=$as_save_IFS
33085
33086 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33087 ;;
33088esac
33089fi
33090CatDelegate=$ac_cv_path_CatDelegate
33091if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "$CatDelegate" >&6; }
33094else
cristy8b350f62009-11-15 23:12:43 +000033095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo "no" >&6; }
33097fi
33098
33099
33100# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33101set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033104if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033105 $as_echo_n "(cached) " >&6
33106else
33107 case $DNGDecodeDelegate in
33108 [\\/]* | ?:[\\/]*)
33109 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33110 ;;
33111 *)
33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33113for as_dir in $PATH
33114do
33115 IFS=$as_save_IFS
33116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033119 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121 break 2
33122 fi
33123done
cristy8b350f62009-11-15 23:12:43 +000033124 done
cristy3ed852e2009-09-05 21:47:34 +000033125IFS=$as_save_IFS
33126
33127 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33128 ;;
33129esac
33130fi
33131DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33132if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "$DNGDecodeDelegate" >&6; }
33135else
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "no" >&6; }
33138fi
33139
33140
33141# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33142set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033145if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033146 $as_echo_n "(cached) " >&6
33147else
33148 case $GVCDecodeDelegate in
33149 [\\/]* | ?:[\\/]*)
33150 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33151 ;;
33152 *)
33153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154for as_dir in $PATH
33155do
33156 IFS=$as_save_IFS
33157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033160 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162 break 2
33163 fi
33164done
cristy8b350f62009-11-15 23:12:43 +000033165 done
cristy3ed852e2009-09-05 21:47:34 +000033166IFS=$as_save_IFS
33167
33168 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33169 ;;
33170esac
33171fi
33172GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33173if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "$GVCDecodeDelegate" >&6; }
33176else
cristy8b350f62009-11-15 23:12:43 +000033177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo "no" >&6; }
33179fi
33180
33181
33182# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33183set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033186if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033187 $as_echo_n "(cached) " >&6
33188else
33189 case $DVIDecodeDelegate in
33190 [\\/]* | ?:[\\/]*)
33191 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33192 ;;
33193 *)
33194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33195for as_dir in $PATH
33196do
33197 IFS=$as_save_IFS
33198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033201 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203 break 2
33204 fi
33205done
cristy8b350f62009-11-15 23:12:43 +000033206 done
cristy3ed852e2009-09-05 21:47:34 +000033207IFS=$as_save_IFS
33208
33209 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33210 ;;
33211esac
33212fi
33213DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33214if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "$DVIDecodeDelegate" >&6; }
33217else
cristy8b350f62009-11-15 23:12:43 +000033218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo "no" >&6; }
33220fi
33221
33222
33223# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33224set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033227if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033228 $as_echo_n "(cached) " >&6
33229else
33230 case $EchoDelegate in
33231 [\\/]* | ?:[\\/]*)
33232 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33233 ;;
33234 *)
33235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033242 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244 break 2
33245 fi
33246done
cristy8b350f62009-11-15 23:12:43 +000033247 done
cristy3ed852e2009-09-05 21:47:34 +000033248IFS=$as_save_IFS
33249
33250 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33251 ;;
33252esac
33253fi
33254EchoDelegate=$ac_cv_path_EchoDelegate
33255if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "$EchoDelegate" >&6; }
33258else
cristy8b350f62009-11-15 23:12:43 +000033259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo "no" >&6; }
33261fi
33262
33263
33264# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33265set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033268if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033269 $as_echo_n "(cached) " >&6
33270else
33271 case $EditorDelegate in
33272 [\\/]* | ?:[\\/]*)
33273 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33274 ;;
33275 *)
33276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33277for as_dir in $PATH
33278do
33279 IFS=$as_save_IFS
33280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033283 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285 break 2
33286 fi
33287done
cristy8b350f62009-11-15 23:12:43 +000033288 done
cristy3ed852e2009-09-05 21:47:34 +000033289IFS=$as_save_IFS
33290
33291 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33292 ;;
33293esac
33294fi
33295EditorDelegate=$ac_cv_path_EditorDelegate
33296if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "$EditorDelegate" >&6; }
33299else
cristy8b350f62009-11-15 23:12:43 +000033300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo "no" >&6; }
33302fi
33303
33304
33305# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33306set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033309if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033310 $as_echo_n "(cached) " >&6
33311else
33312 case $FIGDecodeDelegate in
33313 [\\/]* | ?:[\\/]*)
33314 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33315 ;;
33316 *)
33317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318for as_dir in $PATH
33319do
33320 IFS=$as_save_IFS
33321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033324 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326 break 2
33327 fi
33328done
cristy8b350f62009-11-15 23:12:43 +000033329 done
cristy3ed852e2009-09-05 21:47:34 +000033330IFS=$as_save_IFS
33331
33332 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33333 ;;
33334esac
33335fi
33336FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33337if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "$FIGDecodeDelegate" >&6; }
33340else
cristy8b350f62009-11-15 23:12:43 +000033341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo "no" >&6; }
33343fi
33344
33345
33346# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33347set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033350if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033351 $as_echo_n "(cached) " >&6
33352else
33353 case $ConvertDelegate in
33354 [\\/]* | ?:[\\/]*)
33355 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33356 ;;
33357 *)
33358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33359for as_dir in $PATH
33360do
33361 IFS=$as_save_IFS
33362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033365 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367 break 2
33368 fi
33369done
cristy8b350f62009-11-15 23:12:43 +000033370 done
cristy3ed852e2009-09-05 21:47:34 +000033371IFS=$as_save_IFS
33372
33373 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33374 ;;
33375esac
33376fi
33377ConvertDelegate=$ac_cv_path_ConvertDelegate
33378if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "$ConvertDelegate" >&6; }
33381else
cristy8b350f62009-11-15 23:12:43 +000033382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo "no" >&6; }
33384fi
33385
33386
33387# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33388set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $DisplayDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033406 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
33414 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33415 ;;
33416esac
33417fi
33418DisplayDelegate=$ac_cv_path_DisplayDelegate
33419if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "$DisplayDelegate" >&6; }
33422else
cristy8b350f62009-11-15 23:12:43 +000033423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo "no" >&6; }
33425fi
33426
33427
33428# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33429set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033432if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033433 $as_echo_n "(cached) " >&6
33434else
33435 case $MogrifyDelegate in
33436 [\\/]* | ?:[\\/]*)
33437 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33438 ;;
33439 *)
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441for as_dir in $PATH
33442do
33443 IFS=$as_save_IFS
33444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033447 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449 break 2
33450 fi
33451done
cristy8b350f62009-11-15 23:12:43 +000033452 done
cristy3ed852e2009-09-05 21:47:34 +000033453IFS=$as_save_IFS
33454
33455 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33456 ;;
33457esac
33458fi
33459MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33460if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "$MogrifyDelegate" >&6; }
33463else
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "no" >&6; }
33466fi
33467
33468
33469# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33470set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033473if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033474 $as_echo_n "(cached) " >&6
33475else
33476 case $GnuplotDecodeDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033488 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490 break 2
33491 fi
33492done
cristy8b350f62009-11-15 23:12:43 +000033493 done
cristy3ed852e2009-09-05 21:47:34 +000033494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33497 ;;
33498esac
33499fi
33500GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33501if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$GnuplotDecodeDelegate" >&6; }
33504else
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "no" >&6; }
33507fi
33508
33509
cristy3ed852e2009-09-05 21:47:34 +000033510# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33511set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033514if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033515 $as_echo_n "(cached) " >&6
33516else
33517 case $HPGLDecodeDelegate in
33518 [\\/]* | ?:[\\/]*)
33519 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33520 ;;
33521 *)
33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33523for as_dir in $PATH
33524do
33525 IFS=$as_save_IFS
33526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033529 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531 break 2
33532 fi
33533done
cristy8b350f62009-11-15 23:12:43 +000033534 done
cristy3ed852e2009-09-05 21:47:34 +000033535IFS=$as_save_IFS
33536
33537 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33538 ;;
33539esac
33540fi
33541HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33542if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "$HPGLDecodeDelegate" >&6; }
33545else
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo "no" >&6; }
33548fi
33549
33550
33551# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33552set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 case $HTMLDecodeDelegate in
33559 [\\/]* | ?:[\\/]*)
33560 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33561 ;;
33562 *)
33563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33564for as_dir in $PATH
33565do
33566 IFS=$as_save_IFS
33567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033570 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572 break 2
33573 fi
33574done
cristy8b350f62009-11-15 23:12:43 +000033575 done
cristy3ed852e2009-09-05 21:47:34 +000033576IFS=$as_save_IFS
33577
33578 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33579 ;;
33580esac
33581fi
33582HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33583if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$HTMLDecodeDelegate" >&6; }
33586else
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "no" >&6; }
33589fi
33590
33591
33592# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33593set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033596if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033597 $as_echo_n "(cached) " >&6
33598else
33599 case $ILBMDecodeDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033611 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613 break 2
33614 fi
33615done
cristy8b350f62009-11-15 23:12:43 +000033616 done
cristy3ed852e2009-09-05 21:47:34 +000033617IFS=$as_save_IFS
33618
33619 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33620 ;;
33621esac
33622fi
33623ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33624if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "$ILBMDecodeDelegate" >&6; }
33627else
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "no" >&6; }
33630fi
33631
33632
33633# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33634set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033637if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033638 $as_echo_n "(cached) " >&6
33639else
33640 case $ILBMEncodeDelegate in
33641 [\\/]* | ?:[\\/]*)
33642 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33643 ;;
33644 *)
33645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33646for as_dir in $PATH
33647do
33648 IFS=$as_save_IFS
33649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033652 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654 break 2
33655 fi
33656done
cristy8b350f62009-11-15 23:12:43 +000033657 done
cristy3ed852e2009-09-05 21:47:34 +000033658IFS=$as_save_IFS
33659
33660 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33661 ;;
33662esac
33663fi
33664ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33665if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "$ILBMEncodeDelegate" >&6; }
33668else
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "no" >&6; }
33671fi
33672
33673
33674# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33675set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033678if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033679 $as_echo_n "(cached) " >&6
33680else
33681 case $LPDelegate in
33682 [\\/]* | ?:[\\/]*)
33683 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33684 ;;
33685 *)
33686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33687for as_dir in $PATH
33688do
33689 IFS=$as_save_IFS
33690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033693 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695 break 2
33696 fi
33697done
cristy8b350f62009-11-15 23:12:43 +000033698 done
cristy3ed852e2009-09-05 21:47:34 +000033699IFS=$as_save_IFS
33700
33701 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33702 ;;
33703esac
33704fi
33705LPDelegate=$ac_cv_path_LPDelegate
33706if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "$LPDelegate" >&6; }
33709else
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "no" >&6; }
33712fi
33713
33714
33715# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33716set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033719if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033720 $as_echo_n "(cached) " >&6
33721else
33722 case $LPRDelegate in
33723 [\\/]* | ?:[\\/]*)
33724 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33725 ;;
33726 *)
33727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33728for as_dir in $PATH
33729do
33730 IFS=$as_save_IFS
33731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033734 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736 break 2
33737 fi
33738done
cristy8b350f62009-11-15 23:12:43 +000033739 done
cristy3ed852e2009-09-05 21:47:34 +000033740IFS=$as_save_IFS
33741
33742 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33743 ;;
33744esac
33745fi
33746LPRDelegate=$ac_cv_path_LPRDelegate
33747if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "$LPRDelegate" >&6; }
33750else
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo "no" >&6; }
33753fi
33754
33755
33756# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33757set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033760if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033761 $as_echo_n "(cached) " >&6
33762else
33763 case $LZWDecodeDelegate in
33764 [\\/]* | ?:[\\/]*)
33765 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33766 ;;
33767 *)
33768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33769for as_dir in $PATH
33770do
33771 IFS=$as_save_IFS
33772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033775 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777 break 2
33778 fi
33779done
cristy8b350f62009-11-15 23:12:43 +000033780 done
cristy3ed852e2009-09-05 21:47:34 +000033781IFS=$as_save_IFS
33782
33783 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33784 ;;
33785esac
33786fi
33787LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33788if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$LZWDecodeDelegate" >&6; }
33791else
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "no" >&6; }
33794fi
33795
33796
33797# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33798set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033801if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033802 $as_echo_n "(cached) " >&6
33803else
33804 case $LZWEncodeDelegate in
33805 [\\/]* | ?:[\\/]*)
33806 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33807 ;;
33808 *)
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812 IFS=$as_save_IFS
33813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033816 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818 break 2
33819 fi
33820done
cristy8b350f62009-11-15 23:12:43 +000033821 done
cristy3ed852e2009-09-05 21:47:34 +000033822IFS=$as_save_IFS
33823
33824 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33825 ;;
33826esac
33827fi
33828LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33829if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "$LZWEncodeDelegate" >&6; }
33832else
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "no" >&6; }
33835fi
33836
33837
33838# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33839set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033842if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033843 $as_echo_n "(cached) " >&6
33844else
33845 case $LaunchDelegate in
33846 [\\/]* | ?:[\\/]*)
33847 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33848 ;;
33849 *)
33850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033857 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33866 ;;
33867esac
33868fi
33869LaunchDelegate=$ac_cv_path_LaunchDelegate
33870if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$LaunchDelegate" >&6; }
33873else
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "no" >&6; }
33876fi
33877
33878
33879# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33880set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033883if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033884 $as_echo_n "(cached) " >&6
33885else
33886 case $MANDelegate in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033898 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900 break 2
33901 fi
33902done
cristy8b350f62009-11-15 23:12:43 +000033903 done
cristy3ed852e2009-09-05 21:47:34 +000033904IFS=$as_save_IFS
33905
33906 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33907 ;;
33908esac
33909fi
33910MANDelegate=$ac_cv_path_MANDelegate
33911if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "$MANDelegate" >&6; }
33914else
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "no" >&6; }
33917fi
33918
33919
33920# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33921set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033924if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033925 $as_echo_n "(cached) " >&6
33926else
33927 case $MPEGDecodeDelegate in
33928 [\\/]* | ?:[\\/]*)
33929 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33930 ;;
33931 *)
33932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935 IFS=$as_save_IFS
33936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033939 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941 break 2
33942 fi
33943done
cristy8b350f62009-11-15 23:12:43 +000033944 done
cristy3ed852e2009-09-05 21:47:34 +000033945IFS=$as_save_IFS
33946
33947 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33948 ;;
33949esac
33950fi
33951MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33952if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "$MPEGDecodeDelegate" >&6; }
33955else
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "no" >&6; }
33958fi
33959
33960
33961# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33962set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033965if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033966 $as_echo_n "(cached) " >&6
33967else
33968 case $MPEGEncodeDelegate in
33969 [\\/]* | ?:[\\/]*)
33970 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33971 ;;
33972 *)
33973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33974for as_dir in $PATH
33975do
33976 IFS=$as_save_IFS
33977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033980 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982 break 2
33983 fi
33984done
cristy8b350f62009-11-15 23:12:43 +000033985 done
cristy3ed852e2009-09-05 21:47:34 +000033986IFS=$as_save_IFS
33987
33988 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33989 ;;
33990esac
33991fi
33992MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33993if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo "$MPEGEncodeDelegate" >&6; }
33996else
cristy8b350f62009-11-15 23:12:43 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo "no" >&6; }
33999fi
34000
34001
cristy935c86e2010-06-05 23:50:07 +000034002# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34003set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034006if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034007 $as_echo_n "(cached) " >&6
34008else
34009 case $MrSIDDecodeDelegate in
34010 [\\/]* | ?:[\\/]*)
34011 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34012 ;;
34013 *)
34014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34015for as_dir in $PATH
34016do
34017 IFS=$as_save_IFS
34018 test -z "$as_dir" && as_dir=.
34019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034021 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34023 break 2
34024 fi
34025done
34026 done
34027IFS=$as_save_IFS
34028
34029 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34030 ;;
34031esac
34032fi
34033MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34034if test -n "$MrSIDDecodeDelegate"; then
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34036$as_echo "$MrSIDDecodeDelegate" >&6; }
34037else
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34039$as_echo "no" >&6; }
34040fi
34041
34042
cristy3ed852e2009-09-05 21:47:34 +000034043# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34044set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034047if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034048 $as_echo_n "(cached) " >&6
34049else
34050 case $MVDelegate in
34051 [\\/]* | ?:[\\/]*)
34052 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34053 ;;
34054 *)
34055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34056for as_dir in $PATH
34057do
34058 IFS=$as_save_IFS
34059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034062 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064 break 2
34065 fi
34066done
cristy8b350f62009-11-15 23:12:43 +000034067 done
cristy3ed852e2009-09-05 21:47:34 +000034068IFS=$as_save_IFS
34069
34070 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34071 ;;
34072esac
34073fi
34074MVDelegate=$ac_cv_path_MVDelegate
34075if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "$MVDelegate" >&6; }
34078else
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo "no" >&6; }
34081fi
34082
34083
34084# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34085set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034088if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034089 $as_echo_n "(cached) " >&6
34090else
34091 case $PCLDelegate in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034103 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105 break 2
34106 fi
34107done
cristy8b350f62009-11-15 23:12:43 +000034108 done
cristy3ed852e2009-09-05 21:47:34 +000034109IFS=$as_save_IFS
34110
34111 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34112 ;;
34113esac
34114fi
34115PCLDelegate=$ac_cv_path_PCLDelegate
34116if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo "$PCLDelegate" >&6; }
34119else
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "no" >&6; }
34122fi
34123
34124
34125# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34126set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034129if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034130 $as_echo_n "(cached) " >&6
34131else
34132 case $PGPDecodeDelegate in
34133 [\\/]* | ?:[\\/]*)
34134 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34135 ;;
34136 *)
34137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34138for as_dir in $PATH
34139do
34140 IFS=$as_save_IFS
34141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034144 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146 break 2
34147 fi
34148done
cristy8b350f62009-11-15 23:12:43 +000034149 done
cristy3ed852e2009-09-05 21:47:34 +000034150IFS=$as_save_IFS
34151
34152 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34153 ;;
34154esac
34155fi
34156PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34157if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$PGPDecodeDelegate" >&6; }
34160else
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "no" >&6; }
34163fi
34164
34165
34166# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34167set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034170if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034171 $as_echo_n "(cached) " >&6
34172else
34173 case $POVDelegate in
34174 [\\/]* | ?:[\\/]*)
34175 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34176 ;;
34177 *)
34178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34179for as_dir in $PATH
34180do
34181 IFS=$as_save_IFS
34182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034185 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187 break 2
34188 fi
34189done
cristy8b350f62009-11-15 23:12:43 +000034190 done
cristy3ed852e2009-09-05 21:47:34 +000034191IFS=$as_save_IFS
34192
34193 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34194 ;;
34195esac
34196fi
34197POVDelegate=$ac_cv_path_POVDelegate
34198if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034200$as_echo "$POVDelegate" >&6; }
34201else
cristy8b350f62009-11-15 23:12:43 +000034202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo "no" >&6; }
34204fi
34205
34206
34207for ac_prog in gsx gsc "$PSDelegateDefault"
34208do
34209 # Extract the first word of "$ac_prog", so it can be a program name with args.
34210set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034213if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034214 $as_echo_n "(cached) " >&6
34215else
34216 case $PSDelegate in
34217 [\\/]* | ?:[\\/]*)
34218 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34219 ;;
34220 *)
34221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34222for as_dir in $PATH
34223do
34224 IFS=$as_save_IFS
34225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034228 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230 break 2
34231 fi
34232done
cristy8b350f62009-11-15 23:12:43 +000034233 done
cristy3ed852e2009-09-05 21:47:34 +000034234IFS=$as_save_IFS
34235
34236 ;;
34237esac
34238fi
34239PSDelegate=$ac_cv_path_PSDelegate
34240if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo "$PSDelegate" >&6; }
34243else
cristy8b350f62009-11-15 23:12:43 +000034244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo "no" >&6; }
34246fi
34247
34248
34249 test -n "$PSDelegate" && break
34250done
34251test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34252
34253# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34254set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034257if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034258 $as_echo_n "(cached) " >&6
34259else
34260 case $RLEEncodeDelegate in
34261 [\\/]* | ?:[\\/]*)
34262 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34263 ;;
34264 *)
34265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34266for as_dir in $PATH
34267do
34268 IFS=$as_save_IFS
34269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034272 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274 break 2
34275 fi
34276done
cristy8b350f62009-11-15 23:12:43 +000034277 done
cristy3ed852e2009-09-05 21:47:34 +000034278IFS=$as_save_IFS
34279
34280 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34281 ;;
34282esac
34283fi
34284RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34285if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo "$RLEEncodeDelegate" >&6; }
34288else
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "no" >&6; }
34291fi
34292
34293
34294# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34295set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034298if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034299 $as_echo_n "(cached) " >&6
34300else
34301 case $RMDelegate in
34302 [\\/]* | ?:[\\/]*)
34303 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34304 ;;
34305 *)
34306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34307for as_dir in $PATH
34308do
34309 IFS=$as_save_IFS
34310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034313 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315 break 2
34316 fi
34317done
cristy8b350f62009-11-15 23:12:43 +000034318 done
cristy3ed852e2009-09-05 21:47:34 +000034319IFS=$as_save_IFS
34320
34321 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34322 ;;
34323esac
34324fi
34325RMDelegate=$ac_cv_path_RMDelegate
34326if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034328$as_echo "$RMDelegate" >&6; }
34329else
cristy8b350f62009-11-15 23:12:43 +000034330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034331$as_echo "no" >&6; }
34332fi
34333
34334
cristy4689cf02010-02-17 21:15:45 +000034335# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034339if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034340 $as_echo_n "(cached) " >&6
34341else
34342 case $RSVGDecodeDelegate in
34343 [\\/]* | ?:[\\/]*)
34344 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34345 ;;
34346 *)
34347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350 IFS=$as_save_IFS
34351 test -z "$as_dir" && as_dir=.
34352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034354 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356 break 2
34357 fi
34358done
34359 done
34360IFS=$as_save_IFS
34361
34362 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34363 ;;
34364esac
34365fi
34366RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34367if test -n "$RSVGDecodeDelegate"; then
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34369$as_echo "$RSVGDecodeDelegate" >&6; }
34370else
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
cristy3ed852e2009-09-05 21:47:34 +000034376# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34377set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034380if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034381 $as_echo_n "(cached) " >&6
34382else
34383 case $SCANDecodeDelegate in
34384 [\\/]* | ?:[\\/]*)
34385 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34386 ;;
34387 *)
34388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391 IFS=$as_save_IFS
34392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034395 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397 break 2
34398 fi
34399done
cristy8b350f62009-11-15 23:12:43 +000034400 done
cristy3ed852e2009-09-05 21:47:34 +000034401IFS=$as_save_IFS
34402
34403 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34404 ;;
34405esac
34406fi
34407SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34408if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo "$SCANDecodeDelegate" >&6; }
34411else
cristy8b350f62009-11-15 23:12:43 +000034412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034413$as_echo "no" >&6; }
34414fi
34415
34416
34417# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34418set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034421if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034422 $as_echo_n "(cached) " >&6
34423else
34424 case $TXTDelegate in
34425 [\\/]* | ?:[\\/]*)
34426 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34427 ;;
34428 *)
34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034436 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438 break 2
34439 fi
34440done
cristy8b350f62009-11-15 23:12:43 +000034441 done
cristy3ed852e2009-09-05 21:47:34 +000034442IFS=$as_save_IFS
34443
34444 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34445 ;;
34446esac
34447fi
34448TXTDelegate=$ac_cv_path_TXTDelegate
34449if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "$TXTDelegate" >&6; }
34452else
cristy8b350f62009-11-15 23:12:43 +000034453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034454$as_echo "no" >&6; }
34455fi
34456
34457
cristy5ac9ac82010-07-29 13:24:24 +000034458# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34459set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034462if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034463 $as_echo_n "(cached) " >&6
34464else
34465 case $UniconvertorDelegate in
34466 [\\/]* | ?:[\\/]*)
34467 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34468 ;;
34469 *)
34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473 IFS=$as_save_IFS
34474 test -z "$as_dir" && as_dir=.
34475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034477 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34479 break 2
34480 fi
34481done
34482 done
34483IFS=$as_save_IFS
34484
34485 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34486 ;;
34487esac
34488fi
34489UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34490if test -n "$UniconvertorDelegate"; then
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34492$as_echo "$UniconvertorDelegate" >&6; }
34493else
34494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495$as_echo "no" >&6; }
34496fi
34497
34498
cristy3ed852e2009-09-05 21:47:34 +000034499# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34500set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034503if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034504 $as_echo_n "(cached) " >&6
34505else
34506 case $WMFDecodeDelegate in
34507 [\\/]* | ?:[\\/]*)
34508 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34509 ;;
34510 *)
34511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514 IFS=$as_save_IFS
34515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034518 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520 break 2
34521 fi
34522done
cristy8b350f62009-11-15 23:12:43 +000034523 done
cristy3ed852e2009-09-05 21:47:34 +000034524IFS=$as_save_IFS
34525
34526 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34527 ;;
34528esac
34529fi
34530WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34531if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034533$as_echo "$WMFDecodeDelegate" >&6; }
34534else
cristy8b350f62009-11-15 23:12:43 +000034535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034536$as_echo "no" >&6; }
34537fi
34538
34539
34540# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34541set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 case $WWWDecodeDelegate in
34548 [\\/]* | ?:[\\/]*)
34549 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34550 ;;
34551 *)
34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555 IFS=$as_save_IFS
34556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034559 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561 break 2
34562 fi
34563done
cristy8b350f62009-11-15 23:12:43 +000034564 done
cristy3ed852e2009-09-05 21:47:34 +000034565IFS=$as_save_IFS
34566
34567 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34568 ;;
34569esac
34570fi
34571WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34572if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo "$WWWDecodeDelegate" >&6; }
34575else
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "no" >&6; }
34578fi
34579
34580
34581# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34582set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034585if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034586 $as_echo_n "(cached) " >&6
34587else
34588 case $XPSDelegate in
34589 [\\/]* | ?:[\\/]*)
34590 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34591 ;;
34592 *)
34593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34594for as_dir in $PATH
34595do
34596 IFS=$as_save_IFS
34597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034600 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602 break 2
34603 fi
34604done
cristy8b350f62009-11-15 23:12:43 +000034605 done
cristy3ed852e2009-09-05 21:47:34 +000034606IFS=$as_save_IFS
34607
34608 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34609 ;;
34610esac
34611fi
34612XPSDelegate=$ac_cv_path_XPSDelegate
34613if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "$XPSDelegate" >&6; }
34616else
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "no" >&6; }
34619fi
34620
34621
34622# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34623set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034626if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034627 $as_echo_n "(cached) " >&6
34628else
34629 case $ZipDelegate in
34630 [\\/]* | ?:[\\/]*)
34631 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34632 ;;
34633 *)
34634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637 IFS=$as_save_IFS
34638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034641 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643 break 2
34644 fi
34645done
cristy8b350f62009-11-15 23:12:43 +000034646 done
cristy3ed852e2009-09-05 21:47:34 +000034647IFS=$as_save_IFS
34648
34649 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34650 ;;
34651esac
34652fi
34653ZipDelegate=$ac_cv_path_ZipDelegate
34654if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo "$ZipDelegate" >&6; }
34657else
cristy8b350f62009-11-15 23:12:43 +000034658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo "no" >&6; }
34660fi
34661
34662
34663
34664# Prefer lpr to lp; lp needs options tacked on.
34665if test "$LPRDelegate" != no; then
34666 PrintDelegate="$LPRDelegate"
34667else
34668 PrintDelegate="$LPDelegate -c -s"
34669fi
34670
34671
34672# Installed ImageMagick utiltity paths
34673ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34674DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34675MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34676
34677# Set delegate booleans
34678have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34679have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34680have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34681have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34682have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034683have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034684have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34685have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034686have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34687have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34688
34689#
34690# Test for font directories
34691#
34692type_include_files=''
34693
cristy430a7312010-01-21 20:44:04 +000034694# Dejavu fonts.
34695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34696$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34697dejavu_font_dir=''
34698if test "${with_dejavu_font_dir}" != 'default'; then
34699 dejavu_font_dir="${with_dejavu_font_dir}/"
34700else
34701 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34702 if test -f "${font_dir}DejaVuSerif.ttf"; then
34703 dejavu_font_dir="${font_dir}"
34704 break 1
34705 fi
34706 done
34707fi
34708if test "${dejavu_font_dir}x" != 'x'; then
34709 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034710 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34711$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034712else
cristy09b53e12011-10-14 12:47:22 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34714$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034715fi
34716
34717
cristy3ed852e2009-09-05 21:47:34 +000034718# Windows
34719windows_font_dir=''
34720if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34721 windows_font_dir="${with_windows_font_dir}/"
34722fi
cristy430a7312010-01-21 20:44:04 +000034723if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034724 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34725 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34726 fi
34727 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34728 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34729 fi
34730 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34731 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34732 fi
34733fi
cristy430a7312010-01-21 20:44:04 +000034734if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034735 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34736fi
34737
34738
34739# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034741$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34742ghostscript_font_dir=''
34743if test "${with_gs_font_dir}" != 'default'; then
34744 ghostscript_font_dir="${with_gs_font_dir}/"
34745else
34746 if test "${native_win32_build}" = 'yes'; then
34747 # Native Windows Build
34748 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34749 if test -f "${font_dir}a010013l.pfb"; then
34750 ghostscript_font_dir="$font_dir"
34751 break 1
34752 fi
34753 done
34754 if test "${PSDelegate}" != 'gswin32c'; then
34755 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34756 fi
34757 else
34758 # Linux / Mac OS X / Unix Build
34759 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
34760 if test -f "${font_dir}a010013l.pfb"; then
34761 ghostscript_font_dir="${font_dir}"
34762 break 1
34763 fi
34764 done
34765 if test "${ghostscript_font_dir}x" = 'x'; then
34766 if test "$PSDelegate" != 'gs'; then
34767 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34768 fi
34769 fi
34770 fi
34771fi
34772if test "${ghostscript_font_dir}x" != 'x'; then
34773 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34775$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034776else
cristy09b53e12011-10-14 12:47:22 +000034777 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34778$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034779fi
34780
34781case "${build_os}" in
34782 mingw* )
34783 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34784 ;;
34785esac
34786
34787
34788
34789#
34790# Handle case where user doesn't want frozen paths
34791#
34792if test "$with_frozenpaths" != 'yes'; then
34793 # Re-set delegate definitions to default (no paths)
34794 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034795 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34796 BZIPDelegate="$BZIPDelegateDefault"
34797 BrowseDelegate="$BrowseDelegateDefault"
34798 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34799 CatDelegate="$CatDelegateDefault"
34800 ConvertDelegate="$ConvertDelegateDefault"
34801 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34802 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34803 EchoDelegate="$EchoDelegateDefault"
34804 EditorDelegate="$EditorDelegateDefault"
34805 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34806 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34807 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34808 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34809 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34810 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34811 LPDelegate="$LPDelegateDefault"
34812 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34813 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34814 LaunchDelegate="$LaunchDelegateDefault"
34815 MANDelegate="$MANDelegateDefault"
34816 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34817 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034818 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034819 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34820 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034821 PCLDelegate="$PCLDelegateDefault"
34822 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34823 POVDelegate="$POVDelegateDefault"
34824 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034825 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34826 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034827 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034828 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34829 ShowImageDelegate="$ShowImageDelegateDefault"
34830 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034831 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034832 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34833 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34834 XPSDelegate="$XPSDelegateDefault"
34835 ZipDelegate="$ZipDelegateDefault"
34836fi
34837
34838# Delegate substitutions
34839
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# RPM support.
34883#
34884RPM=''
34885for ac_prog in gnutar gtar tar
34886do
34887 # Extract the first word of "$ac_prog", so it can be a program name with args.
34888set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034891if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034892 $as_echo_n "(cached) " >&6
34893else
34894 if test -n "$TAR"; then
34895 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34896else
34897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34898for as_dir in $PATH
34899do
34900 IFS=$as_save_IFS
34901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034904 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034906 break 2
34907 fi
34908done
cristy8b350f62009-11-15 23:12:43 +000034909 done
cristy3ed852e2009-09-05 21:47:34 +000034910IFS=$as_save_IFS
34911
34912fi
34913fi
34914TAR=$ac_cv_prog_TAR
34915if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo "$TAR" >&6; }
34918else
cristy8b350f62009-11-15 23:12:43 +000034919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034920$as_echo "no" >&6; }
34921fi
34922
34923
34924 test -n "$TAR" && break
34925done
34926
34927for ac_prog in perl
34928do
34929 # Extract the first word of "$ac_prog", so it can be a program name with args.
34930set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034933if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034934 $as_echo_n "(cached) " >&6
34935else
34936 if test -n "$PERL"; then
34937 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34938else
34939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34940for as_dir in $PATH
34941do
34942 IFS=$as_save_IFS
34943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034946 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034948 break 2
34949 fi
34950done
cristy8b350f62009-11-15 23:12:43 +000034951 done
cristy3ed852e2009-09-05 21:47:34 +000034952IFS=$as_save_IFS
34953
34954fi
34955fi
34956PERL=$ac_cv_prog_PERL
34957if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034959$as_echo "$PERL" >&6; }
34960else
cristy8b350f62009-11-15 23:12:43 +000034961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034962$as_echo "no" >&6; }
34963fi
34964
34965
34966 test -n "$PERL" && break
34967done
34968
34969for ac_prog in rpmbuild rpm
34970do
34971 # Extract the first word of "$ac_prog", so it can be a program name with args.
34972set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034975if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034976 $as_echo_n "(cached) " >&6
34977else
34978 if test -n "$RPM"; then
34979 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34980else
34981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34982for as_dir in $PATH
34983do
34984 IFS=$as_save_IFS
34985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034988 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034990 break 2
34991 fi
34992done
cristy8b350f62009-11-15 23:12:43 +000034993 done
cristy3ed852e2009-09-05 21:47:34 +000034994IFS=$as_save_IFS
34995
34996fi
34997fi
34998RPM=$ac_cv_prog_RPM
34999if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo "$RPM" >&6; }
35002else
cristy8b350f62009-11-15 23:12:43 +000035003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035004$as_echo "no" >&6; }
35005fi
35006
35007
35008 test -n "$RPM" && break
35009done
35010
35011
cristy73bd4a52010-10-05 11:24:23 +000035012ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35013
35014
35015AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35016
35017
35018AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35019
35020
35021AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35022
35023
35024 if test "x$RPM" != "x" ; then
35025 RPM_DELEGATE_TRUE=
35026 RPM_DELEGATE_FALSE='#'
35027else
35028 RPM_DELEGATE_TRUE='#'
35029 RPM_DELEGATE_FALSE=
35030fi
35031
cristy3ed852e2009-09-05 21:47:34 +000035032
35033#
35034# 7ZIP support (http://p7zip.sourceforge.net/)
35035#
35036P7ZIP=''
35037for ac_prog in 7za
35038do
35039 # Extract the first word of "$ac_prog", so it can be a program name with args.
35040set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035043if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035044 $as_echo_n "(cached) " >&6
35045else
35046 if test -n "$P7ZIP"; then
35047 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35048else
35049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35050for as_dir in $PATH
35051do
35052 IFS=$as_save_IFS
35053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035056 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035058 break 2
35059 fi
35060done
cristy8b350f62009-11-15 23:12:43 +000035061 done
cristy3ed852e2009-09-05 21:47:34 +000035062IFS=$as_save_IFS
35063
35064fi
35065fi
35066P7ZIP=$ac_cv_prog_P7ZIP
35067if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035069$as_echo "$P7ZIP" >&6; }
35070else
cristy8b350f62009-11-15 23:12:43 +000035071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035072$as_echo "no" >&6; }
35073fi
35074
35075
35076 test -n "$P7ZIP" && break
35077done
35078
35079
cristy73bd4a52010-10-05 11:24:23 +000035080 if test "x$P7ZIP" != "x" ; then
35081 P7ZIP_DELEGATE_TRUE=
35082 P7ZIP_DELEGATE_FALSE='#'
35083else
35084 P7ZIP_DELEGATE_TRUE='#'
35085 P7ZIP_DELEGATE_FALSE=
35086fi
35087
cristy3ed852e2009-09-05 21:47:34 +000035088
35089#
35090# ZIP support (http://www.info-zip.org/Zip.html)
35091#
35092ZIP=''
35093for ac_prog in zip
35094do
35095 # Extract the first word of "$ac_prog", so it can be a program name with args.
35096set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035099if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035100 $as_echo_n "(cached) " >&6
35101else
35102 if test -n "$ZIP"; then
35103 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35104else
35105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35106for as_dir in $PATH
35107do
35108 IFS=$as_save_IFS
35109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035112 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114 break 2
35115 fi
35116done
cristy8b350f62009-11-15 23:12:43 +000035117 done
cristy3ed852e2009-09-05 21:47:34 +000035118IFS=$as_save_IFS
35119
35120fi
35121fi
35122ZIP=$ac_cv_prog_ZIP
35123if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035125$as_echo "$ZIP" >&6; }
35126else
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo "no" >&6; }
35129fi
35130
35131
35132 test -n "$ZIP" && break
35133done
35134
35135
cristy73bd4a52010-10-05 11:24:23 +000035136 if test "x$ZIP" != "x" ; then
35137 ZIP_DELEGATE_TRUE=
35138 ZIP_DELEGATE_FALSE='#'
35139else
35140 ZIP_DELEGATE_TRUE='#'
35141 ZIP_DELEGATE_FALSE=
35142fi
35143
cristy3ed852e2009-09-05 21:47:34 +000035144
35145#
35146# GhostPCL related configuration.
35147#
35148PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035149PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035150PCLMonoDevice=pbmraw
35151if test -z "$PCLVersion"; then
35152 PCLVersion='unknown'
35153fi
35154if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35156$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035158$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35160$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035161 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo_n "checking for pcl color device... " >&6; }
35164 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35165 :
35166 else
35167 PCLColorDevice=ppmraw
35168 fi
cristy09b53e12011-10-14 12:47:22 +000035169 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35170$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035171
35172 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for pcl CMYK device... " >&6; }
35175 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35176 :
35177 else
35178 PCLCMYKDevice=$PCLColorDevice
35179 fi
cristy09b53e12011-10-14 12:47:22 +000035180 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35181$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035182
35183 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo_n "checking for pcl mono device... " >&6; }
35186 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35187 :
35188 else
35189 PCLMonoDevice=$PCLColorDevice
35190 fi
cristy09b53e12011-10-14 12:47:22 +000035191 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35192$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035193fi
35194
35195
35196
35197
35198
35199
35200#
35201# GhostXPS related configuration.
35202#
35203XPSColorDevice=ppmraw
35204XPSCMYKDevice=bmpsep8
35205XPSMonoDevice=pbmraw
35206if test -z "$XPSVersion"; then
35207 XPSVersion='unknown'
35208fi
35209if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35211$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035213$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35215$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035216 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035218$as_echo_n "checking for xps color device... " >&6; }
35219 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35220 :
35221 else
35222 XPSColorDevice=ppmraw
35223 fi
cristy09b53e12011-10-14 12:47:22 +000035224 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35225$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035226
35227 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035229$as_echo_n "checking for xps CMYK device... " >&6; }
35230 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35231 :
35232 else
35233 XPSCMYKDevice=$XPSColorDevice
35234 fi
cristy09b53e12011-10-14 12:47:22 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35236$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035237
35238 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035240$as_echo_n "checking for xps mono device... " >&6; }
35241 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35242 :
35243 else
35244 XPSMonoDevice=$XPSColorDevice
35245 fi
cristy09b53e12011-10-14 12:47:22 +000035246 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35247$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035248fi
35249
35250
35251
35252
35253
35254
35255#
35256# Ghostscript related configuration.
35257#
cristya97426c2011-02-04 01:41:27 +000035258GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035259GSColorDevice=pnmraw
35260GSCMYKDevice=pam
35261GSMonoDevice=pbmraw
35262GSPDFDevice=pdfwrite
35263GSPSDevice=pswrite
35264GSEPSDevice=epswrite
35265GSVersion='unknown'
35266if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35268$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035270$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35272$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035274$as_echo_n "checking for Ghostscript version... " >&6; }
35275 if GSVersion=`$PSDelegate --version`; then
35276 :
35277 else
35278 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35279 fi
cristy09b53e12011-10-14 12:47:22 +000035280 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35281$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035282
35283 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035285$as_echo_n "checking for gs alpha device... " >&6; }
35286 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35287 :
35288 else
35289 GSAlphaDevice=pnmraw
35290 fi
cristy09b53e12011-10-14 12:47:22 +000035291 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35292$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035293
35294 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo_n "checking for gs color device... " >&6; }
35297 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35298 :
35299 else
35300 GSColorDevice=pnmraw
35301 fi
cristy09b53e12011-10-14 12:47:22 +000035302 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35303$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035304
35305 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035307$as_echo_n "checking for gs CMYK device... " >&6; }
35308 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35309 :
35310 else
35311 GSCMYKDevice=bmpsep8
35312 fi
cristy09b53e12011-10-14 12:47:22 +000035313 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35314$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035315
35316 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035318$as_echo_n "checking for gs mono device... " >&6; }
35319 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35320 :
35321 else
35322 GSMonoDevice=$GSColorDevice
35323 fi
cristy09b53e12011-10-14 12:47:22 +000035324 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35325$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035326
35327 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo_n "checking for gs PDF writing device... " >&6; }
35330 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35331 :
35332 else
35333 GSPDFDevice=nodevice
35334 fi
cristy09b53e12011-10-14 12:47:22 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35336$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035337
35338 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035340$as_echo_n "checking for gs PS writing device... " >&6; }
35341 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35342 :
35343 else
35344 GSPSDevice=nodevice
35345 fi
cristy09b53e12011-10-14 12:47:22 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35347$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035348
35349 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo_n "checking for gs EPS writing device... " >&6; }
35352 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35353 :
35354 else
35355 GSEPSDevice=nodevice
35356 fi
cristy09b53e12011-10-14 12:47:22 +000035357 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35358$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035359fi
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370#
35371# PerlMagick-related configuration
35372#
35373
35374# Look for PERL if PerlMagick requested
35375# If name/path of desired PERL interpreter is specified, look for that one first
35376have_perl='no'
35377if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035378 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35379$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035381$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35383$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035384 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035386$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035387if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035388 $as_echo_n "(cached) " >&6
35389else
35390 ac_cv_path_PERL="$with_perl"
35391fi
cristy8b350f62009-11-15 23:12:43 +000035392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035393$as_echo "$ac_cv_path_PERL" >&6; };
35394 PERL=$ac_cv_path_PERL
35395 have_perl="$ac_cv_path_PERL"
35396 else
35397 for ac_prog in perl perl5
35398do
35399 # Extract the first word of "$ac_prog", so it can be a program name with args.
35400set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035403if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035404 $as_echo_n "(cached) " >&6
35405else
35406 case $PERL in
35407 [\\/]* | ?:[\\/]*)
35408 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35409 ;;
35410 *)
35411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35412for as_dir in $PATH
35413do
35414 IFS=$as_save_IFS
35415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035418 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035420 break 2
35421 fi
35422done
cristy8b350f62009-11-15 23:12:43 +000035423 done
cristy3ed852e2009-09-05 21:47:34 +000035424IFS=$as_save_IFS
35425
35426 ;;
35427esac
35428fi
35429PERL=$ac_cv_path_PERL
35430if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035432$as_echo "$PERL" >&6; }
35433else
cristy8b350f62009-11-15 23:12:43 +000035434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435$as_echo "no" >&6; }
35436fi
35437
35438
35439 test -n "$PERL" && break
35440done
35441 if test "$ac_cv_path_PERL"; then
35442 have_perl="$ac_cv_path_PERL"
35443 fi
35444 fi
35445fi
35446
cristy949301e2010-01-06 01:38:40 +000035447if test "$with_perl" != 'yes' ; then
35448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35449fi
35450
35451PERL_SUPPORTS_DESTDIR='no'
35452
cristy3ed852e2009-09-05 21:47:34 +000035453with_perl_static='no'
35454with_perl_dynamic='no'
35455if test "$have_perl" != 'no'; then
35456 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35457 with_perl_static='yes'
35458 fi
35459 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35460 with_perl_dynamic='yes'
35461 fi
35462 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035463
35464
35465
35466
35467 if test -n "$PERL"; then :
35468
35469 ax_perl_version="5.8.1"
35470
35471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35472$as_echo_n "checking for perl version... " >&6; }
35473
35474 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35475
35476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35477$as_echo "$perl_version" >&6; }
35478
35479 PERL_VERSION=$perl_version
35480
35481
35482
35483
35484
35485 # Used to indicate true or false condition
35486 ax_compare_version=false
35487
35488 # Convert the two version strings to be compared into a format that
35489 # allows a simple string comparison. The end result is that a version
35490 # string of the form 1.12.5-r617 will be converted to the form
35491 # 0001001200050617. In other words, each number is zero padded to four
35492 # digits, and non digits are removed.
35493
35494 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35495 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35496 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35497 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35498 -e 's/[^0-9]//g'`
35499
35500
35501 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35502 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35503 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35504 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35505 -e 's/[^0-9]//g'`
35506
35507
35508 ax_compare_version=`echo "x$ax_compare_version_A
35509x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35510
35511
35512
35513 if test "$ax_compare_version" = "true" ; then
35514
35515 :
35516 PERL_SUPPORTS_DESTDIR='yes'
35517
35518 else
35519 :
35520 PERL_SUPPORTS_DESTDIR='no'
35521
35522 fi
35523
35524
35525else
35526
35527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35528$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35529 PERL_SUPPORTS_DESTDIR='no'
35530
cristy3ed852e2009-09-05 21:47:34 +000035531fi
cristy73bd4a52010-10-05 11:24:23 +000035532
35533fi
35534 if test "$have_perl" != 'no'; then
35535 WITH_PERL_TRUE=
35536 WITH_PERL_FALSE='#'
35537else
35538 WITH_PERL_TRUE='#'
35539 WITH_PERL_FALSE=
35540fi
35541
35542 if test $with_perl_static = 'yes'; then
35543 WITH_PERL_STATIC_TRUE=
35544 WITH_PERL_STATIC_FALSE='#'
35545else
35546 WITH_PERL_STATIC_TRUE='#'
35547 WITH_PERL_STATIC_FALSE=
35548fi
35549
35550 if test $with_perl_dynamic = 'yes'; then
35551 WITH_PERL_DYNAMIC_TRUE=
35552 WITH_PERL_DYNAMIC_FALSE='#'
35553else
35554 WITH_PERL_DYNAMIC_TRUE='#'
35555 WITH_PERL_DYNAMIC_FALSE=
35556fi
35557
cristy3ed852e2009-09-05 21:47:34 +000035558
35559
35560# Determine path to pick up MagickCore library from for use with building PerlMagick
35561MAGICKCORE_PATH="${LIB_DIR}"
35562if test $with_perl_static = 'yes'; then
35563 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35564 libtool_objdir=$objdir
35565
35566 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035567 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035568fi
35569
35570
35571# Create a simple string containing format names for all delegate libraries
35572DELEGATES=''
35573if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35574if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35575if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35576if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35577if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35578if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35579if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35580if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35581if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35582if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35583if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35584if test "$have_jpeg" = 'yes'; then
35585 DELEGATES="$DELEGATES jpeg";
35586 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35587fi
35588if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035589if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035590if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35591if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035592if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035593if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35594if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035595if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035596if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35597if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35598if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35599if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35600if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35601if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35602if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35603
35604
35605
35606#
35607# Handle special compiler flags
35608#
35609
35610# Add '-p' if prof source profiling support enabled
35611if test "$enable_prof" = 'yes'; then
35612 CFLAGS="-p $CFLAGS"
35613 CXXFLAGS="-p $CXXFLAGS"
35614 LDFLAGS="-p $LDFLAGS"
35615fi
35616
35617# Add '-pg' if gprof source profiling support enabled
35618if test "$enable_gprof" = 'yes'; then
35619 CFLAGS="-pg $CFLAGS"
35620 CXXFLAGS="-pg $CXXFLAGS"
35621 LDFLAGS="-pg $LDFLAGS"
35622fi
35623
35624# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35625# This is a gcc-specific feature
35626if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035628$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035629if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035630 $as_echo_n "(cached) " >&6
35631else
35632 ac_check_lib_save_LIBS=$LIBS
35633LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035635/* end confdefs.h. */
35636
35637/* Override any GCC internal prototype to avoid an error.
35638 Use char because int might match the return type of a GCC
35639 builtin and then its argument prototype would still apply. */
35640#ifdef __cplusplus
35641extern "C"
35642#endif
35643char _gcov_init ();
35644int
35645main ()
35646{
35647return _gcov_init ();
35648 ;
35649 return 0;
35650}
35651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035652if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035653 ac_cv_lib_gcov__gcov_init=yes
35654else
cristy8b350f62009-11-15 23:12:43 +000035655 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035656fi
cristy8b350f62009-11-15 23:12:43 +000035657rm -f core conftest.err conftest.$ac_objext \
35658 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035659LIBS=$ac_check_lib_save_LIBS
35660fi
cristy8b350f62009-11-15 23:12:43 +000035661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035662$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035663if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035664 cat >>confdefs.h <<_ACEOF
35665#define HAVE_LIBGCOV 1
35666_ACEOF
35667
35668 LIBS="-lgcov $LIBS"
35669
35670fi
35671
cristy8b350f62009-11-15 23:12:43 +000035672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035673$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035674if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035675 $as_echo_n "(cached) " >&6
35676else
35677 ac_check_lib_save_LIBS=$LIBS
35678LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035680/* end confdefs.h. */
35681
35682/* Override any GCC internal prototype to avoid an error.
35683 Use char because int might match the return type of a GCC
35684 builtin and then its argument prototype would still apply. */
35685#ifdef __cplusplus
35686extern "C"
35687#endif
35688char __gcov_init ();
35689int
35690main ()
35691{
35692return __gcov_init ();
35693 ;
35694 return 0;
35695}
35696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035697if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035698 ac_cv_lib_gcov___gcov_init=yes
35699else
cristy8b350f62009-11-15 23:12:43 +000035700 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035701fi
cristy8b350f62009-11-15 23:12:43 +000035702rm -f core conftest.err conftest.$ac_objext \
35703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035704LIBS=$ac_check_lib_save_LIBS
35705fi
cristy8b350f62009-11-15 23:12:43 +000035706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035707$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035708if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035709 cat >>confdefs.h <<_ACEOF
35710#define HAVE_LIBGCOV 1
35711_ACEOF
35712
35713 LIBS="-lgcov $LIBS"
35714
35715fi
35716
35717 case "$target_os" in
35718 darwin*)
35719 OSX_GCOV_LDFLAG="-Wl,-single_module"
35720 ;;
35721 *)
35722 OSX_GCOV_LDFLAG=""
35723 ;;
35724 esac
35725
35726 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35727 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35728 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35729fi
35730
35731#
35732# Build library dependency list for libMagickCore
35733#
35734
35735MAGICK_LIBLTDL='' # Libltdl for build
35736MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35737MAGICK_LTDLDEPS='' # extra libltdl dependencies
35738if test "$with_ltdl" != 'no'
35739then
35740 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35741 MAGICK_API_LIBLTDL='-lltdl'
35742 fi
35743 MAGICK_LIBLTDL=${LIBLTDL}
35744 MAGICK_LTDLDEPS=${LTDLDEPS}
35745fi
35746
35747
35748
35749if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035750 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 +000035751else
cristy41cbe8a2011-10-27 01:35:18 +000035752 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 +000035753fi
35754
35755
35756#
35757# Remove extraneous spaces from output variables (asthetic)
35758#
35759X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35760X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35761X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35762X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35763
35764CC=`echo $CC | sed -e 's/ */ /g'`
35765CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35766CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35767CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35768DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35769DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35770LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35771TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35772MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35773#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35774
35775# Pass only user-provided LIBS as "global" libraries
35776LIBS=$USER_LIBS
35777
35778#AC_SUBST(CPPFLAGS)
35779
35780#AC_SUBST(LDFLAGS)
35781#AC_SUBST(X_PRE_LIBS)
35782#AC_SUBST(X_LIBS)
35783#AC_SUBST(X_EXTRA_LIBS)
35784
35785MAGICK_CFLAGS=$CFLAGS
35786MAGICK_CXXFLAGS="$CXXFLAGS"
35787MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35788MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35789MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35790MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35791
35792
35793
35794
35795
35796
35797
35798
cristyfd9dcd42010-08-08 18:07:02 +000035799
cristy3ed852e2009-09-05 21:47:34 +000035800# Set configured scripts to executable.
35801ac_config_commands="$ac_config_commands default"
35802
cristy2bd4b6e2012-07-22 15:29:11 +000035803ac_config_commands="$ac_config_commands magick.sh.in"
35804
cristy3ed852e2009-09-05 21:47:34 +000035805ac_config_commands="$ac_config_commands MagickCore-config.in"
35806
cristy3ed852e2009-09-05 21:47:34 +000035807ac_config_commands="$ac_config_commands MagickWand-config.in"
35808
cristy3ed852e2009-09-05 21:47:34 +000035809ac_config_commands="$ac_config_commands Magick++-config.in"
35810
35811ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35812
35813
cristy09b53e12011-10-14 12:47:22 +000035814{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35815$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35816{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35817$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035818cat >confcache <<\_ACEOF
35819# This file is a shell script that caches the results of configure
35820# tests run on this system so they can be shared between configure
35821# scripts and configure runs, see configure's option --config-cache.
35822# It is not useful on other systems. If it contains results you don't
35823# want to keep, you may remove or edit it.
35824#
35825# config.status only pays attention to the cache file if you give it
35826# the --recheck option to rerun configure.
35827#
35828# `ac_cv_env_foo' variables (set or unset) will be overridden when
35829# loading this file, other *unset* `ac_cv_foo' will be assigned the
35830# following values.
35831
35832_ACEOF
35833
35834# The following way of writing the cache mishandles newlines in values,
35835# but we know of no workaround that is simple, portable, and efficient.
35836# So, we kill variables containing newlines.
35837# Ultrix sh set writes to stderr and can't be redirected directly,
35838# and sets the high bit in the cache file unless we assign to the vars.
35839(
35840 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35841 eval ac_val=\$$ac_var
35842 case $ac_val in #(
35843 *${as_nl}*)
35844 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035845 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035846$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35847 esac
35848 case $ac_var in #(
35849 _ | IFS | as_nl) ;; #(
35850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035851 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035852 esac ;;
35853 esac
35854 done
35855
35856 (set) 2>&1 |
35857 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35858 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035859 # `set' does not quote correctly, so add quotes: double-quote
35860 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035861 sed -n \
35862 "s/'/'\\\\''/g;
35863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35864 ;; #(
35865 *)
35866 # `set' quotes correctly as required by POSIX, so do not add quotes.
35867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35868 ;;
35869 esac |
35870 sort
35871) |
35872 sed '
35873 /^ac_cv_env_/b end
35874 t clear
35875 :clear
35876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35877 t end
35878 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35879 :end' >>confcache
35880if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35881 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035882 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035883 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035884$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035885 if test ! -f "$cache_file" || test -h "$cache_file"; then
35886 cat confcache >"$cache_file"
35887 else
35888 case $cache_file in #(
35889 */* | ?:*)
35890 mv -f confcache "$cache_file"$$ &&
35891 mv -f "$cache_file"$$ "$cache_file" ;; #(
35892 *)
35893 mv -f confcache "$cache_file" ;;
35894 esac
35895 fi
35896 fi
cristy3ed852e2009-09-05 21:47:34 +000035897 else
cristy8b350f62009-11-15 23:12:43 +000035898 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035899$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35900 fi
35901fi
35902rm -f confcache
35903
35904test "x$prefix" = xNONE && prefix=$ac_default_prefix
35905# Let make expand exec_prefix.
35906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35907
35908DEFS=-DHAVE_CONFIG_H
35909
35910ac_libobjs=
35911ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035912U=
cristy3ed852e2009-09-05 21:47:34 +000035913for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35914 # 1. Remove the extension, and $U if already installed.
35915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35916 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35918 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035919 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35920 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035921done
35922LIBOBJS=$ac_libobjs
35923
35924LTLIBOBJS=$ac_ltlibobjs
35925
35926
cristyc0890a62012-07-19 00:18:20 +000035927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35928$as_echo_n "checking that generated files are newer than configure... " >&6; }
35929 if test -n "$am_sleep_pid"; then
35930 # Hide warnings about reused PIDs.
35931 wait $am_sleep_pid 2>/dev/null
35932 fi
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35934$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035935 if test -n "$EXEEXT"; then
35936 am__EXEEXT_TRUE=
35937 am__EXEEXT_FALSE='#'
35938else
35939 am__EXEEXT_TRUE='#'
35940 am__EXEEXT_FALSE=
35941fi
cristy3ed852e2009-09-05 21:47:34 +000035942
cristy73bd4a52010-10-05 11:24:23 +000035943if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
35951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
35955if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035956 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
35959if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035960 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035961Usually this means the macro was only invoked conditionally." "$LINENO" 5
35962fi
35963if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035964 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035965Usually this means the macro was only invoked conditionally." "$LINENO" 5
35966fi
35967if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035968 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035969Usually this means the macro was only invoked conditionally." "$LINENO" 5
35970fi
35971if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035972 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035973Usually this means the macro was only invoked conditionally." "$LINENO" 5
35974fi
cristy73bd4a52010-10-05 11:24:23 +000035975if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035976 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035977Usually this means the macro was only invoked conditionally." "$LINENO" 5
35978fi
35979if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983LT_CONFIG_H=config/config.h
35984
35985 _ltdl_libobjs=
35986 _ltdl_ltlibobjs=
35987 if test -n "$_LT_LIBOBJS"; then
35988 # Remove the extension.
35989 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35990 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35991 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35992 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35993 done
35994 fi
35995 ltdl_LIBOBJS=$_ltdl_libobjs
35996
35997 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35998
35999
36000if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036002Usually this means the macro was only invoked conditionally." "$LINENO" 5
36003fi
36004if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036005 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036006Usually this means the macro was only invoked conditionally." "$LINENO" 5
36007fi
36008if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036009 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036010Usually this means the macro was only invoked conditionally." "$LINENO" 5
36011fi
36012if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036013 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036014Usually this means the macro was only invoked conditionally." "$LINENO" 5
36015fi
cristy71d8c202012-03-20 17:05:01 +000036016if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36017 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
cristy73bd4a52010-10-05 11:24:23 +000036020
36021if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
36033if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036034 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
36037if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
36041if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
36045if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036046 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
36049if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036050 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036051Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052fi
36053if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036054 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036055Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056fi
36057if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036058 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
36061if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036062 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
36065if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
36069if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036070 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
36073if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036074 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
36077if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
36085if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036086 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
36089if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
36093if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036094 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
36097if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036098 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
cristyfbb0ef02010-12-19 02:32:11 +000036101if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36102 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
cristy73bd4a52010-10-05 11:24:23 +000036105if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
cristy41cbe8a2011-10-27 01:35:18 +000036109if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36110 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
cristya054b762012-03-26 23:16:00 +000036113if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36114 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
cristy73bd4a52010-10-05 11:24:23 +000036117if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
36129if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
cristyb1860752011-03-14 00:27:46 +000036133if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36134 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
cristy73bd4a52010-10-05 11:24:23 +000036137if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036138 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
36141if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
36149if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
cristy3ed852e2009-09-05 21:47:34 +000036169
cristyda16f162011-02-19 23:52:17 +000036170: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036171ac_write_fail=0
36172ac_clean_files_save=$ac_clean_files
36173ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036176as_write_fail=0
36177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036178#! $SHELL
36179# Generated by $as_me.
36180# Run this file to recreate the current configuration.
36181# Compiler output produced by configure, useful for debugging
36182# configure, is in config.log if it exists.
36183
36184debug=false
36185ac_cs_recheck=false
36186ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036187
cristy8b350f62009-11-15 23:12:43 +000036188SHELL=\${CONFIG_SHELL-$SHELL}
36189export SHELL
36190_ASEOF
36191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36192## -------------------- ##
36193## M4sh Initialization. ##
36194## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036195
36196# Be more Bourne compatible
36197DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036199 emulate sh
36200 NULLCMD=:
36201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36202 # is contrary to our usage. Disable this feature.
36203 alias -g '${1+"$@"}'='"$@"'
36204 setopt NO_GLOB_SUBST
36205else
cristy8b350f62009-11-15 23:12:43 +000036206 case `(set -o) 2>/dev/null` in #(
36207 *posix*) :
36208 set -o posix ;; #(
36209 *) :
36210 ;;
cristy3ed852e2009-09-05 21:47:34 +000036211esac
cristy3ed852e2009-09-05 21:47:34 +000036212fi
36213
36214
cristy3ed852e2009-09-05 21:47:34 +000036215as_nl='
36216'
36217export as_nl
36218# Printing a long string crashes Solaris 7 /usr/bin/printf.
36219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036222# Prefer a ksh shell builtin over an external printf program on Solaris,
36223# but without wasting forks for bash or zsh.
36224if test -z "$BASH_VERSION$ZSH_VERSION" \
36225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36226 as_echo='print -r --'
36227 as_echo_n='print -rn --'
36228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036229 as_echo='printf %s\n'
36230 as_echo_n='printf %s'
36231else
36232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36234 as_echo_n='/usr/ucb/echo -n'
36235 else
36236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36237 as_echo_n_body='eval
36238 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036239 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036240 *"$as_nl"*)
36241 expr "X$arg" : "X\\(.*\\)$as_nl";
36242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36243 esac;
36244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36245 '
36246 export as_echo_n_body
36247 as_echo_n='sh -c $as_echo_n_body as_echo'
36248 fi
36249 export as_echo_body
36250 as_echo='sh -c $as_echo_body as_echo'
36251fi
36252
36253# The user is always right.
36254if test "${PATH_SEPARATOR+set}" != set; then
36255 PATH_SEPARATOR=:
36256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36258 PATH_SEPARATOR=';'
36259 }
36260fi
36261
cristy3ed852e2009-09-05 21:47:34 +000036262
36263# IFS
36264# We need space, tab and new line, in precisely that order. Quoting is
36265# there to prevent editors from complaining about space-tab.
36266# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36267# splitting by setting IFS to empty value.)
36268IFS=" "" $as_nl"
36269
36270# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036271as_myself=
cristy8b350f62009-11-15 23:12:43 +000036272case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036273 *[\\/]* ) as_myself=$0 ;;
36274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36275for as_dir in $PATH
36276do
36277 IFS=$as_save_IFS
36278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36280 done
cristy3ed852e2009-09-05 21:47:34 +000036281IFS=$as_save_IFS
36282
36283 ;;
36284esac
36285# We did not find ourselves, most probably we were run as `sh COMMAND'
36286# in which case we are not to be found in the path.
36287if test "x$as_myself" = x; then
36288 as_myself=$0
36289fi
36290if test ! -f "$as_myself"; then
36291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036292 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036293fi
36294
cristy8b350f62009-11-15 23:12:43 +000036295# Unset variables that we do not need and which cause bugs (e.g. in
36296# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36297# suppresses any "Segmentation fault" message there. '((' could
36298# trigger a bug in pdksh 5.2.14.
36299for as_var in BASH_ENV ENV MAIL MAILPATH
36300do eval test x\${$as_var+set} = xset \
36301 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036302done
36303PS1='$ '
36304PS2='> '
36305PS4='+ '
36306
36307# NLS nuisances.
36308LC_ALL=C
36309export LC_ALL
36310LANGUAGE=C
36311export LANGUAGE
36312
cristy8b350f62009-11-15 23:12:43 +000036313# CDPATH.
36314(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36315
36316
cristy98dddb52010-11-04 00:30:15 +000036317# as_fn_error STATUS ERROR [LINENO LOG_FD]
36318# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036319# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36320# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036321# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036322as_fn_error ()
36323{
cristy98dddb52010-11-04 00:30:15 +000036324 as_status=$1; test $as_status -eq 0 && as_status=1
36325 if test "$4"; then
36326 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36327 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036328 fi
cristy98dddb52010-11-04 00:30:15 +000036329 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036330 as_fn_exit $as_status
36331} # as_fn_error
36332
36333
36334# as_fn_set_status STATUS
36335# -----------------------
36336# Set $? to STATUS, without forking.
36337as_fn_set_status ()
36338{
36339 return $1
36340} # as_fn_set_status
36341
36342# as_fn_exit STATUS
36343# -----------------
36344# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36345as_fn_exit ()
36346{
36347 set +e
36348 as_fn_set_status $1
36349 exit $1
36350} # as_fn_exit
36351
36352# as_fn_unset VAR
36353# ---------------
36354# Portably unset VAR.
36355as_fn_unset ()
36356{
36357 { eval $1=; unset $1;}
36358}
36359as_unset=as_fn_unset
36360# as_fn_append VAR VALUE
36361# ----------------------
36362# Append the text in VALUE to the end of the definition contained in VAR. Take
36363# advantage of any shell optimizations that allow amortized linear growth over
36364# repeated appends, instead of the typical quadratic growth present in naive
36365# implementations.
36366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36367 eval 'as_fn_append ()
36368 {
36369 eval $1+=\$2
36370 }'
36371else
36372 as_fn_append ()
36373 {
36374 eval $1=\$$1\$2
36375 }
36376fi # as_fn_append
36377
36378# as_fn_arith ARG...
36379# ------------------
36380# Perform arithmetic evaluation on the ARGs, and store the result in the
36381# global $as_val. Take advantage of shells that can avoid forks. The arguments
36382# must be portable across $(()) and expr.
36383if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36384 eval 'as_fn_arith ()
36385 {
36386 as_val=$(( $* ))
36387 }'
36388else
36389 as_fn_arith ()
36390 {
36391 as_val=`expr "$@" || test $? -eq 1`
36392 }
36393fi # as_fn_arith
36394
36395
cristy3ed852e2009-09-05 21:47:34 +000036396if expr a : '\(a\)' >/dev/null 2>&1 &&
36397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36398 as_expr=expr
36399else
36400 as_expr=false
36401fi
36402
36403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36404 as_basename=basename
36405else
36406 as_basename=false
36407fi
36408
cristy8b350f62009-11-15 23:12:43 +000036409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36410 as_dirname=dirname
36411else
36412 as_dirname=false
36413fi
cristy3ed852e2009-09-05 21:47:34 +000036414
cristy3ed852e2009-09-05 21:47:34 +000036415as_me=`$as_basename -- "$0" ||
36416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36417 X"$0" : 'X\(//\)$' \| \
36418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36419$as_echo X/"$0" |
36420 sed '/^.*\/\([^/][^/]*\)\/*$/{
36421 s//\1/
36422 q
36423 }
36424 /^X\/\(\/\/\)$/{
36425 s//\1/
36426 q
36427 }
36428 /^X\/\(\/\).*/{
36429 s//\1/
36430 q
36431 }
36432 s/.*/./; q'`
36433
cristy8b350f62009-11-15 23:12:43 +000036434# Avoid depending upon Character Ranges.
36435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36438as_cr_digits='0123456789'
36439as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036440
36441ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036442case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036443-n*)
cristy8b350f62009-11-15 23:12:43 +000036444 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036445 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036446 xy) ECHO_C='\c';;
36447 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36448 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036449 esac;;
36450*)
36451 ECHO_N='-n';;
36452esac
cristy3ed852e2009-09-05 21:47:34 +000036453
36454rm -f conf$$ conf$$.exe conf$$.file
36455if test -d conf$$.dir; then
36456 rm -f conf$$.dir/conf$$.file
36457else
36458 rm -f conf$$.dir
36459 mkdir conf$$.dir 2>/dev/null
36460fi
36461if (echo >conf$$.file) 2>/dev/null; then
36462 if ln -s conf$$.file conf$$ 2>/dev/null; then
36463 as_ln_s='ln -s'
36464 # ... but there are two gotchas:
36465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036467 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036469 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036470 elif ln conf$$.file conf$$ 2>/dev/null; then
36471 as_ln_s=ln
36472 else
cristy14fefe52012-05-21 00:59:18 +000036473 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036474 fi
36475else
cristy14fefe52012-05-21 00:59:18 +000036476 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036477fi
36478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36479rmdir conf$$.dir 2>/dev/null
36480
cristy8b350f62009-11-15 23:12:43 +000036481
36482# as_fn_mkdir_p
36483# -------------
36484# Create "$as_dir" as a directory, including parents if necessary.
36485as_fn_mkdir_p ()
36486{
36487
36488 case $as_dir in #(
36489 -*) as_dir=./$as_dir;;
36490 esac
36491 test -d "$as_dir" || eval $as_mkdir_p || {
36492 as_dirs=
36493 while :; do
36494 case $as_dir in #(
36495 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36496 *) as_qdir=$as_dir;;
36497 esac
36498 as_dirs="'$as_qdir' $as_dirs"
36499 as_dir=`$as_dirname -- "$as_dir" ||
36500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36501 X"$as_dir" : 'X\(//\)[^/]' \| \
36502 X"$as_dir" : 'X\(//\)$' \| \
36503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36504$as_echo X"$as_dir" |
36505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36506 s//\1/
36507 q
36508 }
36509 /^X\(\/\/\)[^/].*/{
36510 s//\1/
36511 q
36512 }
36513 /^X\(\/\/\)$/{
36514 s//\1/
36515 q
36516 }
36517 /^X\(\/\).*/{
36518 s//\1/
36519 q
36520 }
36521 s/.*/./; q'`
36522 test -d "$as_dir" && break
36523 done
36524 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036525 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036526
36527
36528} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036529if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036530 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036531else
36532 test -d ./-p && rmdir ./-p
36533 as_mkdir_p=false
36534fi
36535
cristy14fefe52012-05-21 00:59:18 +000036536
36537# as_fn_executable_p FILE
36538# -----------------------
36539# Test if FILE is an executable regular file.
36540as_fn_executable_p ()
36541{
36542 test -f "$1" && test -x "$1"
36543} # as_fn_executable_p
36544as_test_x='test -x'
36545as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036546
36547# Sed expression to map a string onto a valid CPP name.
36548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36549
36550# Sed expression to map a string onto a valid variable name.
36551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36552
36553
36554exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036555## ----------------------------------- ##
36556## Main body of $CONFIG_STATUS script. ##
36557## ----------------------------------- ##
36558_ASEOF
36559test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036560
cristy8b350f62009-11-15 23:12:43 +000036561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36562# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036563# report actual input values of CONFIG_FILES etc. instead of their
36564# values after options handling.
36565ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036566This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036567generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036568
36569 CONFIG_FILES = $CONFIG_FILES
36570 CONFIG_HEADERS = $CONFIG_HEADERS
36571 CONFIG_LINKS = $CONFIG_LINKS
36572 CONFIG_COMMANDS = $CONFIG_COMMANDS
36573 $ $0 $@
36574
36575on `(hostname || uname -n) 2>/dev/null | sed 1q`
36576"
36577
36578_ACEOF
36579
36580case $ac_config_files in *"
36581"*) set x $ac_config_files; shift; ac_config_files=$*;;
36582esac
36583
36584case $ac_config_headers in *"
36585"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36586esac
36587
36588
36589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36590# Files that config.status was made for.
36591config_files="$ac_config_files"
36592config_headers="$ac_config_headers"
36593config_commands="$ac_config_commands"
36594
36595_ACEOF
36596
36597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36598ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036599\`$as_me' instantiates files and other configuration actions
36600from templates according to the current configuration. Unless the files
36601and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036602
cristy8b350f62009-11-15 23:12:43 +000036603Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036604
36605 -h, --help print this help, then exit
36606 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036607 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036608 -q, --quiet, --silent
36609 do not print progress messages
36610 -d, --debug don't remove temporary files
36611 --recheck update $as_me by reconfiguring in the same conditions
36612 --file=FILE[:TEMPLATE]
36613 instantiate the configuration file FILE
36614 --header=FILE[:TEMPLATE]
36615 instantiate the configuration header FILE
36616
36617Configuration files:
36618$config_files
36619
36620Configuration headers:
36621$config_headers
36622
36623Configuration commands:
36624$config_commands
36625
cristy8b350f62009-11-15 23:12:43 +000036626Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036627
36628_ACEOF
36629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036630ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036631ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036632ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036633configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036634 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036635
cristy14fefe52012-05-21 00:59:18 +000036636Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036637This config.status script is free software; the Free Software Foundation
36638gives unlimited permission to copy, distribute and modify it."
36639
36640ac_pwd='$ac_pwd'
36641srcdir='$srcdir'
36642INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036643MKDIR_P='$MKDIR_P'
36644AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036645test -n "\$AWK" || AWK=awk
36646_ACEOF
36647
36648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36649# The default lists apply if the user does not specify any file.
36650ac_need_defaults=:
36651while test $# != 0
36652do
36653 case $1 in
cristyda16f162011-02-19 23:52:17 +000036654 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36657 ac_shift=:
36658 ;;
cristyda16f162011-02-19 23:52:17 +000036659 --*=)
36660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36661 ac_optarg=
36662 ac_shift=:
36663 ;;
cristy3ed852e2009-09-05 21:47:34 +000036664 *)
36665 ac_option=$1
36666 ac_optarg=$2
36667 ac_shift=shift
36668 ;;
36669 esac
36670
36671 case $ac_option in
36672 # Handling of the options.
36673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36674 ac_cs_recheck=: ;;
36675 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36676 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036677 --config | --confi | --conf | --con | --co | --c )
36678 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036679 --debug | --debu | --deb | --de | --d | -d )
36680 debug=: ;;
36681 --file | --fil | --fi | --f )
36682 $ac_shift
36683 case $ac_optarg in
36684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036685 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036686 esac
cristy8b350f62009-11-15 23:12:43 +000036687 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036688 ac_need_defaults=false;;
36689 --header | --heade | --head | --hea )
36690 $ac_shift
36691 case $ac_optarg in
36692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36693 esac
cristy8b350f62009-11-15 23:12:43 +000036694 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036695 ac_need_defaults=false;;
36696 --he | --h)
36697 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036698 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036699Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036700 --help | --hel | -h )
36701 $as_echo "$ac_cs_usage"; exit ;;
36702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36704 ac_cs_silent=: ;;
36705
36706 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036707 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036708Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036709
cristy8b350f62009-11-15 23:12:43 +000036710 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036711 ac_need_defaults=false ;;
36712
36713 esac
36714 shift
36715done
36716
36717ac_configure_extra_args=
36718
36719if $ac_cs_silent; then
36720 exec 6>/dev/null
36721 ac_configure_extra_args="$ac_configure_extra_args --silent"
36722fi
36723
36724_ACEOF
36725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36726if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036727 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036728 shift
36729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36730 CONFIG_SHELL='$SHELL'
36731 export CONFIG_SHELL
36732 exec "\$@"
36733fi
36734
36735_ACEOF
36736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36737exec 5>>config.log
36738{
36739 echo
36740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36741## Running $as_me. ##
36742_ASBOX
36743 $as_echo "$ac_log"
36744} >&5
36745
36746_ACEOF
36747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036748#
36749# INIT-COMMANDS
36750#
36751PACKAGE="$PACKAGE"
36752AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36753
36754
36755# The HP-UX ksh and POSIX shell print the target directory to stdout
36756# if CDPATH is set.
36757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36758
36759sed_quote_subst='$sed_quote_subst'
36760double_quote_subst='$double_quote_subst'
36761delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036762SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36763Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36764GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36765EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36766FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36767SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36768ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36769LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36770macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36771macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36772AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36773DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36774OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36775enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36776enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36777pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36778enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036779PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036780host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36781host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36782host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36783build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36784build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36785build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36786NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36787LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36788max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36789ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36790exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36791lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36792lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36793lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036794lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36795lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036796reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36797reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36798deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36799file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036800file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36801want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36802sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036803AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36804AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036805archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036806STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36807RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36808old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36809old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36810old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36811lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36812CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36813CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36814compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36815GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36816lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36817lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36819lt_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 +000036820nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36821lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036822objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36823MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36824lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036825lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036826lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036827lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36828lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36829need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036830MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036831DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36832NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36833LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36834OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36835OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36836libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36837shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36838extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36839archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36840enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36841export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36842whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36843compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36844old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36845old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36846archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36847archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36848module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36849module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36850with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36851allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36852no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36853hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036854hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36855hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36856hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36857hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36858hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36859hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36860inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36861link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036862always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36863export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36864exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36865include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36866prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036867postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036868file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36869variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36870need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36871need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36872version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36873runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36874shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36875shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36876libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36877library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36878soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36879install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36880postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36881postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36882finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36883finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36884hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36885sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36886sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36887hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36888enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36889enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36890enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36891old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36892striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36893compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36894predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36895postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36896predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36897postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36898compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36899LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36900reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36901reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36902old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36903compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36904GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36905lt_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 +000036906lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036907lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036908lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36909lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36910archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36911enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36912export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36913whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36914compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36915old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36916old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36917archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36918archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36919module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36920module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36921with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36922allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36923no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36924hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036925hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36926hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36927hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36928hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36929hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36930hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36931inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36932link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036933always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36934export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36935exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36936include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36937prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036938postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036939file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36940hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36941compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36942predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36943postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36944predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36945postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36946compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036947
36948LTCC='$LTCC'
36949LTCFLAGS='$LTCFLAGS'
36950compiler='$compiler_DEFAULT'
36951
cristy0c60a692010-11-04 01:09:47 +000036952# A function that is used when there is no print builtin or printf.
36953func_fallback_echo ()
36954{
36955 eval 'cat <<_LTECHO_EOF
36956\$1
36957_LTECHO_EOF'
36958}
36959
cristy73bd4a52010-10-05 11:24:23 +000036960# Quote evaled strings.
36961for var in SED \
36962GREP \
36963EGREP \
36964FGREP \
cristy0c60a692010-11-04 01:09:47 +000036965SHELL \
36966ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036967LD \
cristy0c60a692010-11-04 01:09:47 +000036968AS \
36969DLLTOOL \
36970OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036971PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036972NM \
36973LN_S \
36974lt_SP2NL \
36975lt_NL2SP \
36976reload_flag \
36977deplibs_check_method \
36978file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036979file_magic_glob \
36980want_nocaseglob \
36981sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036982AR \
36983AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036984archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036985STRIP \
36986RANLIB \
36987CC \
36988CFLAGS \
36989compiler \
36990lt_cv_sys_global_symbol_pipe \
36991lt_cv_sys_global_symbol_to_cdecl \
36992lt_cv_sys_global_symbol_to_c_name_address \
36993lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036994nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036995lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036996lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036997lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036998lt_prog_compiler_static \
36999lt_cv_prog_compiler_c_o \
37000need_locks \
cristyda16f162011-02-19 23:52:17 +000037001MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037002DSYMUTIL \
37003NMEDIT \
37004LIPO \
37005OTOOL \
37006OTOOL64 \
37007shrext_cmds \
37008export_dynamic_flag_spec \
37009whole_archive_flag_spec \
37010compiler_needs_object \
37011with_gnu_ld \
37012allow_undefined_flag \
37013no_undefined_flag \
37014hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037015hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037016exclude_expsyms \
37017include_expsyms \
37018file_list_spec \
37019variables_saved_for_relink \
37020libname_spec \
37021library_names_spec \
37022soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037023install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037024finish_eval \
37025old_striplib \
37026striplib \
37027compiler_lib_search_dirs \
37028predep_objects \
37029postdep_objects \
37030predeps \
37031postdeps \
37032compiler_lib_search_path \
37033LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037034reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037035compiler_CXX \
37036lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037037lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037038lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037039lt_prog_compiler_static_CXX \
37040lt_cv_prog_compiler_c_o_CXX \
37041export_dynamic_flag_spec_CXX \
37042whole_archive_flag_spec_CXX \
37043compiler_needs_object_CXX \
37044with_gnu_ld_CXX \
37045allow_undefined_flag_CXX \
37046no_undefined_flag_CXX \
37047hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037048hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037049exclude_expsyms_CXX \
37050include_expsyms_CXX \
37051file_list_spec_CXX \
37052compiler_lib_search_dirs_CXX \
37053predep_objects_CXX \
37054postdep_objects_CXX \
37055predeps_CXX \
37056postdeps_CXX \
37057compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037058 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037059 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037061 ;;
37062 *)
37063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37064 ;;
37065 esac
37066done
37067
37068# Double-quote double-evaled strings.
37069for var in reload_cmds \
37070old_postinstall_cmds \
37071old_postuninstall_cmds \
37072old_archive_cmds \
37073extract_expsyms_cmds \
37074old_archive_from_new_cmds \
37075old_archive_from_expsyms_cmds \
37076archive_cmds \
37077archive_expsym_cmds \
37078module_cmds \
37079module_expsym_cmds \
37080export_symbols_cmds \
37081prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037082postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037083postinstall_cmds \
37084postuninstall_cmds \
37085finish_cmds \
37086sys_lib_search_path_spec \
37087sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037088reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037089old_archive_cmds_CXX \
37090old_archive_from_new_cmds_CXX \
37091old_archive_from_expsyms_cmds_CXX \
37092archive_cmds_CXX \
37093archive_expsym_cmds_CXX \
37094module_cmds_CXX \
37095module_expsym_cmds_CXX \
37096export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037097prelink_cmds_CXX \
37098postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037100 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037102 ;;
37103 *)
37104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37105 ;;
37106 esac
37107done
37108
cristy73bd4a52010-10-05 11:24:23 +000037109ac_aux_dir='$ac_aux_dir'
37110xsi_shell='$xsi_shell'
37111lt_shell_append='$lt_shell_append'
37112
37113# See if we are running on zsh, and set the options which allow our
37114# commands through without removal of \ escapes INIT.
37115if test -n "\${ZSH_VERSION+set}" ; then
37116 setopt NO_GLOB_SUBST
37117fi
37118
37119
37120 PACKAGE='$PACKAGE'
37121 VERSION='$VERSION'
37122 TIMESTAMP='$TIMESTAMP'
37123 RM='$RM'
37124 ofile='$ofile'
37125
37126
37127
37128
37129
37130
cristy3ed852e2009-09-05 21:47:34 +000037131_ACEOF
37132
37133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37134
37135# Handling of arguments.
37136for ac_config_target in $ac_config_targets
37137do
37138 case $ac_config_target in
37139 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037140 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037141 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37142 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37143 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37144 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37145 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037146 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037147 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37148 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37149 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37150 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37151 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037152 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037153 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37154 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037155 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37156 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37157 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037158 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37159 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37160 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37161 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37162 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37163 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37164 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37165 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37166 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37167 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37168 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37169 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37170 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37171 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37172 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37173 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37174 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037175 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37176 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037177 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37178 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037179 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037180 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037181 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037182 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037183 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37184 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37185
cristy98dddb52010-11-04 00:30:15 +000037186 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037187 esac
37188done
37189
37190
37191# If the user did not use the arguments to specify the items to instantiate,
37192# then the envvar interface is used. Set only those that are not.
37193# We use the long form for the default assignment because of an extremely
37194# bizarre bug on SunOS 4.1.3.
37195if $ac_need_defaults; then
37196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37199fi
37200
37201# Have a temporary directory for convenience. Make it in the build tree
37202# simply because there is no reason against having it here, and in addition,
37203# creating and moving files from /tmp can sometimes cause problems.
37204# Hook for its removal unless debugging.
37205# Note that there is a small window in which the directory will not be cleaned:
37206# after its creation but before its name has been assigned to `$tmp'.
37207$debug ||
37208{
cristyda16f162011-02-19 23:52:17 +000037209 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037210 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037211 : "${ac_tmp:=$tmp}"
37212 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037213' 0
cristy8b350f62009-11-15 23:12:43 +000037214 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037215}
37216# Create a (secure) tmp directory for tmp files.
37217
37218{
37219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037220 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037221} ||
37222{
37223 tmp=./conf$$-$RANDOM
37224 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037225} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037226ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037227
37228# Set up the scripts for CONFIG_FILES section.
37229# No need to generate them if there are no CONFIG_FILES.
37230# This happens for instance with `./config.status config.h'.
37231if test -n "$CONFIG_FILES"; then
37232
37233
cristy8b350f62009-11-15 23:12:43 +000037234ac_cr=`echo X | tr X '\015'`
37235# On cygwin, bash can eat \r inside `` if the user requested igncr.
37236# But we know of no other shell where ac_cr would be empty at this
37237# point, so we can use a bashism as a fallback.
37238if test "x$ac_cr" = x; then
37239 eval ac_cr=\$\'\\r\'
37240fi
cristy3ed852e2009-09-05 21:47:34 +000037241ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37242if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037243 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037244else
37245 ac_cs_awk_cr=$ac_cr
37246fi
37247
cristyda16f162011-02-19 23:52:17 +000037248echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037249_ACEOF
37250
37251
37252{
37253 echo "cat >conf$$subs.awk <<_ACEOF" &&
37254 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37255 echo "_ACEOF"
37256} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37258ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037259ac_delim='%!_!# '
37260for ac_last_try in false false false false false :; do
37261 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037263
37264 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37265 if test $ac_delim_n = $ac_delim_num; then
37266 break
37267 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037269 else
37270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37271 fi
37272done
37273rm -f conf$$subs.sh
37274
37275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037276cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037277_ACEOF
37278sed -n '
37279h
37280s/^/S["/; s/!.*/"]=/
37281p
37282g
37283s/^[^!]*!//
37284:repl
37285t repl
37286s/'"$ac_delim"'$//
37287t delim
37288:nl
37289h
cristycd4c5312009-11-22 01:19:08 +000037290s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037291t more1
37292s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37293p
37294n
37295b repl
37296:more1
37297s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37298p
37299g
37300s/.\{148\}//
37301t nl
37302:delim
37303h
cristycd4c5312009-11-22 01:19:08 +000037304s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037305t more2
37306s/["\\]/\\&/g; s/^/"/; s/$/"/
37307p
37308b
37309:more2
37310s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37311p
37312g
37313s/.\{148\}//
37314t delim
37315' <conf$$subs.awk | sed '
37316/^[^""]/{
37317 N
37318 s/\n//
37319}
37320' >>$CONFIG_STATUS || ac_write_fail=1
37321rm -f conf$$subs.awk
37322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37323_ACAWK
cristyda16f162011-02-19 23:52:17 +000037324cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037325 for (key in S) S_is_set[key] = 1
37326 FS = ""
37327
37328}
37329{
37330 line = $ 0
37331 nfields = split(line, field, "@")
37332 substed = 0
37333 len = length(field[1])
37334 for (i = 2; i < nfields; i++) {
37335 key = field[i]
37336 keylen = length(key)
37337 if (S_is_set[key]) {
37338 value = S[key]
37339 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37340 len += length(value) + length(field[++i])
37341 substed = 1
37342 } else
37343 len += 1 + keylen
37344 }
37345
37346 print line
37347}
37348
37349_ACAWK
37350_ACEOF
37351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37352if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37353 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37354else
37355 cat
cristyda16f162011-02-19 23:52:17 +000037356fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037357 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037358_ACEOF
37359
cristy98dddb52010-11-04 00:30:15 +000037360# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37361# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037362# trailing colons and then remove the whole line if VPATH becomes empty
37363# (actually we leave an empty line to preserve line numbers).
37364if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037365 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37366h
37367s///
37368s/^/:/
37369s/[ ]*$/:/
37370s/:\$(srcdir):/:/g
37371s/:\${srcdir}:/:/g
37372s/:@srcdir@:/:/g
37373s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037374s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037375x
37376s/\(=[ ]*\).*/\1/
37377G
37378s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037379s/^[^=]*=[ ]*$//
37380}'
37381fi
37382
37383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37384fi # test -n "$CONFIG_FILES"
37385
37386# Set up the scripts for CONFIG_HEADERS section.
37387# No need to generate them if there are no CONFIG_HEADERS.
37388# This happens for instance with `./config.status Makefile'.
37389if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037390cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037391BEGIN {
37392_ACEOF
37393
37394# Transform confdefs.h into an awk script `defines.awk', embedded as
37395# here-document in config.status, that substitutes the proper values into
37396# config.h.in to produce config.h.
37397
37398# Create a delimiter string that does not exist in confdefs.h, to ease
37399# handling of long lines.
37400ac_delim='%!_!# '
37401for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037402 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37403 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037404 break
37405 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037406 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037407 else
37408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37409 fi
37410done
37411
37412# For the awk script, D is an array of macro values keyed by name,
37413# likewise P contains macro parameters if any. Preserve backslash
37414# newline sequences.
37415
37416ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37417sed -n '
37418s/.\{148\}/&'"$ac_delim"'/g
37419t rset
37420:rset
37421s/^[ ]*#[ ]*define[ ][ ]*/ /
37422t def
37423d
37424:def
37425s/\\$//
37426t bsnl
37427s/["\\]/\\&/g
37428s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37429D["\1"]=" \3"/p
37430s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37431d
37432:bsnl
37433s/["\\]/\\&/g
37434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37435D["\1"]=" \3\\\\\\n"\\/p
37436t cont
37437s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37438t cont
37439d
37440:cont
37441n
37442s/.\{148\}/&'"$ac_delim"'/g
37443t clear
37444:clear
37445s/\\$//
37446t bsnlc
37447s/["\\]/\\&/g; s/^/"/; s/$/"/p
37448d
37449:bsnlc
37450s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37451b cont
37452' <confdefs.h | sed '
37453s/'"$ac_delim"'/"\\\
37454"/g' >>$CONFIG_STATUS || ac_write_fail=1
37455
37456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37457 for (key in D) D_is_set[key] = 1
37458 FS = ""
37459}
37460/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37461 line = \$ 0
37462 split(line, arg, " ")
37463 if (arg[1] == "#") {
37464 defundef = arg[2]
37465 mac1 = arg[3]
37466 } else {
37467 defundef = substr(arg[1], 2)
37468 mac1 = arg[2]
37469 }
37470 split(mac1, mac2, "(") #)
37471 macro = mac2[1]
37472 prefix = substr(line, 1, index(line, defundef) - 1)
37473 if (D_is_set[macro]) {
37474 # Preserve the white space surrounding the "#".
37475 print prefix "define", macro P[macro] D[macro]
37476 next
37477 } else {
37478 # Replace #undef with comments. This is necessary, for example,
37479 # in the case of _POSIX_SOURCE, which is predefined and required
37480 # on some systems where configure will not decide to define it.
37481 if (defundef == "undef") {
37482 print "/*", prefix defundef, macro, "*/"
37483 next
37484 }
37485 }
37486}
37487{ print }
37488_ACAWK
37489_ACEOF
37490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037491 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037492fi # test -n "$CONFIG_HEADERS"
37493
37494
37495eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37496shift
37497for ac_tag
37498do
37499 case $ac_tag in
37500 :[FHLC]) ac_mode=$ac_tag; continue;;
37501 esac
37502 case $ac_mode$ac_tag in
37503 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037504 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037505 :[FH]-) ac_tag=-:-;;
37506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37507 esac
37508 ac_save_IFS=$IFS
37509 IFS=:
37510 set x $ac_tag
37511 IFS=$ac_save_IFS
37512 shift
37513 ac_file=$1
37514 shift
37515
37516 case $ac_mode in
37517 :L) ac_source=$1;;
37518 :[FH])
37519 ac_file_inputs=
37520 for ac_f
37521 do
37522 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037523 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037524 *) # Look for the file first in the build tree, then in the source tree
37525 # (if the path is not absolute). The absolute path cannot be DOS-style,
37526 # because $ac_f cannot contain `:'.
37527 test -f "$ac_f" ||
37528 case $ac_f in
37529 [\\/$]*) false;;
37530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37531 esac ||
cristy98dddb52010-11-04 00:30:15 +000037532 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037533 esac
37534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037535 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037536 done
37537
37538 # Let's still pretend it is `configure' which instantiates (i.e., don't
37539 # use $as_me), people would be surprised to read:
37540 # /* config.h. Generated by config.status. */
37541 configure_input='Generated from '`
37542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37543 `' by configure.'
37544 if test x"$ac_file" != x-; then
37545 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037547$as_echo "$as_me: creating $ac_file" >&6;}
37548 fi
37549 # Neutralize special characters interpreted by sed in replacement strings.
37550 case $configure_input in #(
37551 *\&* | *\|* | *\\* )
37552 ac_sed_conf_input=`$as_echo "$configure_input" |
37553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37554 *) ac_sed_conf_input=$configure_input;;
37555 esac
37556
37557 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037558 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037560 esac
37561 ;;
37562 esac
37563
37564 ac_dir=`$as_dirname -- "$ac_file" ||
37565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37566 X"$ac_file" : 'X\(//\)[^/]' \| \
37567 X"$ac_file" : 'X\(//\)$' \| \
37568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37569$as_echo X"$ac_file" |
37570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37571 s//\1/
37572 q
37573 }
37574 /^X\(\/\/\)[^/].*/{
37575 s//\1/
37576 q
37577 }
37578 /^X\(\/\/\)$/{
37579 s//\1/
37580 q
37581 }
37582 /^X\(\/\).*/{
37583 s//\1/
37584 q
37585 }
37586 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037587 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037588 ac_builddir=.
37589
37590case "$ac_dir" in
37591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37592*)
37593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37594 # A ".." for each directory in $ac_dir_suffix.
37595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37596 case $ac_top_builddir_sub in
37597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37599 esac ;;
37600esac
37601ac_abs_top_builddir=$ac_pwd
37602ac_abs_builddir=$ac_pwd$ac_dir_suffix
37603# for backward compatibility:
37604ac_top_builddir=$ac_top_build_prefix
37605
37606case $srcdir in
37607 .) # We are building in place.
37608 ac_srcdir=.
37609 ac_top_srcdir=$ac_top_builddir_sub
37610 ac_abs_top_srcdir=$ac_pwd ;;
37611 [\\/]* | ?:[\\/]* ) # Absolute name.
37612 ac_srcdir=$srcdir$ac_dir_suffix;
37613 ac_top_srcdir=$srcdir
37614 ac_abs_top_srcdir=$srcdir ;;
37615 *) # Relative name.
37616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37617 ac_top_srcdir=$ac_top_build_prefix$srcdir
37618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37619esac
37620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37621
37622
37623 case $ac_mode in
37624 :F)
37625 #
37626 # CONFIG_FILE
37627 #
37628
37629 case $INSTALL in
37630 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37631 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37632 esac
cristy73bd4a52010-10-05 11:24:23 +000037633 ac_MKDIR_P=$MKDIR_P
37634 case $MKDIR_P in
37635 [\\/$]* | ?:[\\/]* ) ;;
37636 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37637 esac
cristy3ed852e2009-09-05 21:47:34 +000037638_ACEOF
37639
37640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37641# If the template does not know about datarootdir, expand it.
37642# FIXME: This hack should be removed a few years after 2.60.
37643ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037644ac_sed_dataroot='
37645/datarootdir/ {
37646 p
37647 q
37648}
37649/@datadir@/p
37650/@docdir@/p
37651/@infodir@/p
37652/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037653/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037654case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37655*datarootdir*) ac_datarootdir_seen=yes;;
37656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037658$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37659_ACEOF
37660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37661 ac_datarootdir_hack='
37662 s&@datadir@&$datadir&g
37663 s&@docdir@&$docdir&g
37664 s&@infodir@&$infodir&g
37665 s&@localedir@&$localedir&g
37666 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037667 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037668esac
37669_ACEOF
37670
37671# Neutralize VPATH when `$srcdir' = `.'.
37672# Shell code in configure.ac might set extrasub.
37673# FIXME: do we really want to maintain this feature?
37674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37675ac_sed_extra="$ac_vpsub
37676$extrasub
37677_ACEOF
37678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37679:t
37680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37681s|@configure_input@|$ac_sed_conf_input|;t t
37682s&@top_builddir@&$ac_top_builddir_sub&;t t
37683s&@top_build_prefix@&$ac_top_build_prefix&;t t
37684s&@srcdir@&$ac_srcdir&;t t
37685s&@abs_srcdir@&$ac_abs_srcdir&;t t
37686s&@top_srcdir@&$ac_top_srcdir&;t t
37687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37688s&@builddir@&$ac_builddir&;t t
37689s&@abs_builddir@&$ac_abs_builddir&;t t
37690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37691s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037692s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037693$ac_datarootdir_hack
37694"
cristyda16f162011-02-19 23:52:17 +000037695eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37696 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037697
37698test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037699 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37701 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037703which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037704$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037705which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037706
cristyda16f162011-02-19 23:52:17 +000037707 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037708 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037709 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37710 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037711 esac \
cristy98dddb52010-11-04 00:30:15 +000037712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037713 ;;
37714 :H)
37715 #
37716 # CONFIG_HEADER
37717 #
37718 if test x"$ac_file" != x-; then
37719 {
37720 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37722 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037724 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037726$as_echo "$as_me: $ac_file is unchanged" >&6;}
37727 else
37728 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037729 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037731 fi
37732 else
37733 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037734 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037735 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037736 fi
cristy73bd4a52010-10-05 11:24:23 +000037737# Compute "$ac_file"'s index in $config_headers.
37738_am_arg="$ac_file"
37739_am_stamp_count=1
37740for _am_header in $config_headers :; do
37741 case $_am_header in
37742 $_am_arg | $_am_arg:* )
37743 break ;;
37744 * )
37745 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37746 esac
37747done
37748echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37749$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37750 X"$_am_arg" : 'X\(//\)[^/]' \| \
37751 X"$_am_arg" : 'X\(//\)$' \| \
37752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37753$as_echo X"$_am_arg" |
37754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37755 s//\1/
37756 q
37757 }
37758 /^X\(\/\/\)[^/].*/{
37759 s//\1/
37760 q
37761 }
37762 /^X\(\/\/\)$/{
37763 s//\1/
37764 q
37765 }
37766 /^X\(\/\).*/{
37767 s//\1/
37768 q
37769 }
37770 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037771 ;;
37772
cristy8b350f62009-11-15 23:12:43 +000037773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037774$as_echo "$as_me: executing $ac_file commands" >&6;}
37775 ;;
37776 esac
37777
37778
37779 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037780 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037781ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37782ac_prefix_conf_PKG=`echo MagickCore`
37783ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37784ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37785ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37786if test ".$ac_prefix_conf_INP" = "."; then
37787 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37788 case "$ac_file" in
37789 *.h) ac_prefix_conf_INP=$ac_file ;;
37790 *)
37791 esac
37792 test ".$ac_prefix_conf_INP" != "." && break
37793 done
37794fi
37795if test ".$ac_prefix_conf_INP" = "."; then
37796 case "$ac_prefix_conf_OUT" in
37797 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37798 ;;
37799 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37800 ;;
37801 *) ac_prefix_conf_INP=config.h
37802 ;;
37803 esac
37804fi
37805if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037806 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037807else
37808 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37809 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37810 fi fi
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37812$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37813 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037814 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37815 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37816 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37817 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37818 $as_echo "#endif/" >> conftest.prefix
37819 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37820 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37821 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037822 # now executing _script on _DEF input to create _OUT output file
37823 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37824 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37825 echo ' ' >>$tmp/pconfig.h
37826 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37827
37828 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37829 echo ' ' >>$tmp/pconfig.h
37830 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37831 echo "#endif" >>$tmp/pconfig.h
37832 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37834$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37835 else
37836 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37837$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37838 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37839 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37840 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37841$as_echo X"$ac_prefix_conf_OUT" |
37842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37843 s//\1/
37844 q
37845 }
37846 /^X\(\/\/\)[^/].*/{
37847 s//\1/
37848 q
37849 }
37850 /^X\(\/\/\)$/{
37851 s//\1/
37852 q
37853 }
37854 /^X\(\/\).*/{
37855 s//\1/
37856 q
37857 }
37858 s/.*/./; q'`
37859 as_dir="$ac_dir"; as_fn_mkdir_p
37860 rm -f "$ac_prefix_conf_OUT"
37861 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37862 fi
37863 cp conftest.prefix _configs.sed
37864 else
cristy98dddb52010-11-04 00:30:15 +000037865 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 +000037866 fi
37867 rm -f conftest.*
37868fi
37869 ;;
37870 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37871 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37872 # are listed without --file. Let's play safe and only enable the eval
37873 # if we detect the quoting.
37874 case $CONFIG_FILES in
37875 *\'*) eval set x "$CONFIG_FILES" ;;
37876 *) set x $CONFIG_FILES ;;
37877 esac
37878 shift
37879 for mf
37880 do
37881 # Strip MF so we end up with the name of the file.
37882 mf=`echo "$mf" | sed -e 's/:.*$//'`
37883 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037884 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037885 # some people rename them; so instead we look at the file content.
37886 # Grep'ing the first line is not enough: some people post-process
37887 # each Makefile.in and add a new line on top of each file to say so.
37888 # Grep'ing the whole file is not good either: AIX grep has a line
37889 # limit of 2048, but all sed's we know have understand at least 4000.
37890 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37891 dirpart=`$as_dirname -- "$mf" ||
37892$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37893 X"$mf" : 'X\(//\)[^/]' \| \
37894 X"$mf" : 'X\(//\)$' \| \
37895 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37896$as_echo X"$mf" |
37897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37898 s//\1/
37899 q
37900 }
37901 /^X\(\/\/\)[^/].*/{
37902 s//\1/
37903 q
37904 }
37905 /^X\(\/\/\)$/{
37906 s//\1/
37907 q
37908 }
37909 /^X\(\/\).*/{
37910 s//\1/
37911 q
37912 }
37913 s/.*/./; q'`
37914 else
37915 continue
37916 fi
37917 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037918 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037919 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37920 test -z "$DEPDIR" && continue
37921 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37922 test -z "am__include" && continue
37923 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037924 # Find all dependency output files, they are included files with
37925 # $(DEPDIR) in their names. We invoke sed twice because it is the
37926 # simplest approach to changing $(DEPDIR) to its actual value in the
37927 # expansion.
37928 for file in `sed -n "
37929 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037930 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037931 # Make sure the directory exists.
37932 test -f "$dirpart/$file" && continue
37933 fdir=`$as_dirname -- "$file" ||
37934$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37935 X"$file" : 'X\(//\)[^/]' \| \
37936 X"$file" : 'X\(//\)$' \| \
37937 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37938$as_echo X"$file" |
37939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37940 s//\1/
37941 q
37942 }
37943 /^X\(\/\/\)[^/].*/{
37944 s//\1/
37945 q
37946 }
37947 /^X\(\/\/\)$/{
37948 s//\1/
37949 q
37950 }
37951 /^X\(\/\).*/{
37952 s//\1/
37953 q
37954 }
37955 s/.*/./; q'`
37956 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37957 # echo "creating $dirpart/$file"
37958 echo '# dummy' > "$dirpart/$file"
37959 done
37960 done
37961}
37962 ;;
37963 "libtool":C)
37964
37965 # See if we are running on zsh, and set the options which allow our
37966 # commands through without removal of \ escapes.
37967 if test -n "${ZSH_VERSION+set}" ; then
37968 setopt NO_GLOB_SUBST
37969 fi
37970
37971 cfgfile="${ofile}T"
37972 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37973 $RM "$cfgfile"
37974
37975 cat <<_LT_EOF >> "$cfgfile"
37976#! $SHELL
37977
37978# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37979# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37980# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37981# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37982#
37983# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037984# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37985# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037986# Written by Gordon Matzigkeit, 1996
37987#
37988# This file is part of GNU Libtool.
37989#
37990# GNU Libtool is free software; you can redistribute it and/or
37991# modify it under the terms of the GNU General Public License as
37992# published by the Free Software Foundation; either version 2 of
37993# the License, or (at your option) any later version.
37994#
37995# As a special exception to the GNU General Public License,
37996# if you distribute this file as part of a program or library that
37997# is built using GNU Libtool, you may include this file under the
37998# same distribution terms that you use for the rest of that program.
37999#
38000# GNU Libtool is distributed in the hope that it will be useful,
38001# but WITHOUT ANY WARRANTY; without even the implied warranty of
38002# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38003# GNU General Public License for more details.
38004#
38005# You should have received a copy of the GNU General Public License
38006# along with GNU Libtool; see the file COPYING. If not, a copy
38007# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38008# obtained by writing to the Free Software Foundation, Inc.,
38009# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38010
38011
38012# The names of the tagged configurations supported by this script.
38013available_tags="CXX "
38014
38015# ### BEGIN LIBTOOL CONFIG
38016
38017# A sed program that does not truncate output.
38018SED=$lt_SED
38019
38020# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38021Xsed="\$SED -e 1s/^X//"
38022
38023# A grep program that handles long lines.
38024GREP=$lt_GREP
38025
38026# An ERE matcher.
38027EGREP=$lt_EGREP
38028
38029# A literal string matcher.
38030FGREP=$lt_FGREP
38031
cristy0c60a692010-11-04 01:09:47 +000038032# Shell to use when invoking shell scripts.
38033SHELL=$lt_SHELL
38034
38035# An echo program that protects backslashes.
38036ECHO=$lt_ECHO
38037
cristy73bd4a52010-10-05 11:24:23 +000038038# Which release of libtool.m4 was used?
38039macro_version=$macro_version
38040macro_revision=$macro_revision
38041
38042# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038043AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038044
38045# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038046DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038047
38048# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038049OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038050
38051# Whether or not to build shared libraries.
38052build_libtool_libs=$enable_shared
38053
38054# Whether or not to build static libraries.
38055build_old_libs=$enable_static
38056
38057# What type of objects to build.
38058pic_mode=$pic_mode
38059
38060# Whether or not to optimize for fast installation.
38061fast_install=$enable_fast_install
38062
cristy99bd5232011-12-07 14:38:20 +000038063# The PATH separator for the build system.
38064PATH_SEPARATOR=$lt_PATH_SEPARATOR
38065
cristy73bd4a52010-10-05 11:24:23 +000038066# The host system.
38067host_alias=$host_alias
38068host=$host
38069host_os=$host_os
38070
38071# The build system.
38072build_alias=$build_alias
38073build=$build
38074build_os=$build_os
38075
38076# A BSD- or MS-compatible name lister.
38077NM=$lt_NM
38078
38079# Whether we need soft or hard links.
38080LN_S=$lt_LN_S
38081
38082# What is the maximum length of a command?
38083max_cmd_len=$max_cmd_len
38084
38085# Object file suffix (normally "o").
38086objext=$ac_objext
38087
38088# Executable file suffix (normally "").
38089exeext=$exeext
38090
38091# whether the shell understands "unset".
38092lt_unset=$lt_unset
38093
38094# turn spaces into newlines.
38095SP2NL=$lt_lt_SP2NL
38096
38097# turn newlines into spaces.
38098NL2SP=$lt_lt_NL2SP
38099
cristyda16f162011-02-19 23:52:17 +000038100# convert \$build file names to \$host format.
38101to_host_file_cmd=$lt_cv_to_host_file_cmd
38102
38103# convert \$build files to toolchain format.
38104to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38105
cristy73bd4a52010-10-05 11:24:23 +000038106# Method to check whether dependent libraries are shared objects.
38107deplibs_check_method=$lt_deplibs_check_method
38108
cristyda16f162011-02-19 23:52:17 +000038109# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038110file_magic_cmd=$lt_file_magic_cmd
38111
cristyda16f162011-02-19 23:52:17 +000038112# How to find potential files when deplibs_check_method = "file_magic".
38113file_magic_glob=$lt_file_magic_glob
38114
38115# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38116want_nocaseglob=$lt_want_nocaseglob
38117
38118# Command to associate shared and link libraries.
38119sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38120
cristy73bd4a52010-10-05 11:24:23 +000038121# The archiver.
38122AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038123
38124# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038125AR_FLAGS=$lt_AR_FLAGS
38126
cristyda16f162011-02-19 23:52:17 +000038127# How to feed a file listing to the archiver.
38128archiver_list_spec=$lt_archiver_list_spec
38129
cristy73bd4a52010-10-05 11:24:23 +000038130# A symbol stripping program.
38131STRIP=$lt_STRIP
38132
38133# Commands used to install an old-style archive.
38134RANLIB=$lt_RANLIB
38135old_postinstall_cmds=$lt_old_postinstall_cmds
38136old_postuninstall_cmds=$lt_old_postuninstall_cmds
38137
cristy0c60a692010-11-04 01:09:47 +000038138# Whether to use a lock for old archive extraction.
38139lock_old_archive_extraction=$lock_old_archive_extraction
38140
cristy73bd4a52010-10-05 11:24:23 +000038141# A C compiler.
38142LTCC=$lt_CC
38143
38144# LTCC compiler flags.
38145LTCFLAGS=$lt_CFLAGS
38146
38147# Take the output of nm and produce a listing of raw symbols and C names.
38148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38149
38150# Transform the output of nm in a proper C declaration.
38151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38152
38153# Transform the output of nm in a C name address pair.
38154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38155
38156# Transform the output of nm in a C name address pair when lib prefix is needed.
38157global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38158
cristyda16f162011-02-19 23:52:17 +000038159# Specify filename containing input files for \$NM.
38160nm_file_list_spec=$lt_nm_file_list_spec
38161
38162# The root where to search for dependent libraries,and in which our libraries should be installed.
38163lt_sysroot=$lt_sysroot
38164
cristy73bd4a52010-10-05 11:24:23 +000038165# The name of the directory that contains temporary libtool files.
38166objdir=$objdir
38167
cristy73bd4a52010-10-05 11:24:23 +000038168# Used to examine libraries when file_magic_cmd begins with "file".
38169MAGIC_CMD=$MAGIC_CMD
38170
38171# Must we lock files when doing compilation?
38172need_locks=$lt_need_locks
38173
cristyda16f162011-02-19 23:52:17 +000038174# Manifest tool.
38175MANIFEST_TOOL=$lt_MANIFEST_TOOL
38176
cristy73bd4a52010-10-05 11:24:23 +000038177# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38178DSYMUTIL=$lt_DSYMUTIL
38179
38180# Tool to change global to local symbols on Mac OS X.
38181NMEDIT=$lt_NMEDIT
38182
38183# Tool to manipulate fat objects and archives on Mac OS X.
38184LIPO=$lt_LIPO
38185
38186# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38187OTOOL=$lt_OTOOL
38188
38189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38190OTOOL64=$lt_OTOOL64
38191
38192# Old archive suffix (normally "a").
38193libext=$libext
38194
38195# Shared library suffix (normally ".so").
38196shrext_cmds=$lt_shrext_cmds
38197
38198# The commands to extract the exported symbol list from a shared archive.
38199extract_expsyms_cmds=$lt_extract_expsyms_cmds
38200
38201# Variables whose values should be saved in libtool wrapper scripts and
38202# restored at link time.
38203variables_saved_for_relink=$lt_variables_saved_for_relink
38204
38205# Do we need the "lib" prefix for modules?
38206need_lib_prefix=$need_lib_prefix
38207
38208# Do we need a version for libraries?
38209need_version=$need_version
38210
38211# Library versioning type.
38212version_type=$version_type
38213
38214# Shared library runtime path variable.
38215runpath_var=$runpath_var
38216
38217# Shared library path variable.
38218shlibpath_var=$shlibpath_var
38219
38220# Is shlibpath searched before the hard-coded library search path?
38221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38222
38223# Format of library name prefix.
38224libname_spec=$lt_libname_spec
38225
38226# List of archive names. First name is the real one, the rest are links.
38227# The last name is the one that the linker finds with -lNAME
38228library_names_spec=$lt_library_names_spec
38229
38230# The coded name of the library, if different from the real name.
38231soname_spec=$lt_soname_spec
38232
cristy0c60a692010-11-04 01:09:47 +000038233# Permission mode override for installation of shared libraries.
38234install_override_mode=$lt_install_override_mode
38235
cristy73bd4a52010-10-05 11:24:23 +000038236# Command to use after installation of a shared archive.
38237postinstall_cmds=$lt_postinstall_cmds
38238
38239# Command to use after uninstallation of a shared archive.
38240postuninstall_cmds=$lt_postuninstall_cmds
38241
38242# Commands used to finish a libtool library installation in a directory.
38243finish_cmds=$lt_finish_cmds
38244
38245# As "finish_cmds", except a single script fragment to be evaled but
38246# not shown.
38247finish_eval=$lt_finish_eval
38248
38249# Whether we should hardcode library paths into libraries.
38250hardcode_into_libs=$hardcode_into_libs
38251
38252# Compile-time system search path for libraries.
38253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38254
38255# Run-time system search path for libraries.
38256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38257
38258# Whether dlopen is supported.
38259dlopen_support=$enable_dlopen
38260
38261# Whether dlopen of programs is supported.
38262dlopen_self=$enable_dlopen_self
38263
38264# Whether dlopen of statically linked programs is supported.
38265dlopen_self_static=$enable_dlopen_self_static
38266
38267# Commands to strip libraries.
38268old_striplib=$lt_old_striplib
38269striplib=$lt_striplib
38270
38271
38272# The linker used to build libraries.
38273LD=$lt_LD
38274
cristy0c60a692010-11-04 01:09:47 +000038275# How to create reloadable object files.
38276reload_flag=$lt_reload_flag
38277reload_cmds=$lt_reload_cmds
38278
cristy73bd4a52010-10-05 11:24:23 +000038279# Commands used to build an old-style archive.
38280old_archive_cmds=$lt_old_archive_cmds
38281
38282# A language specific compiler.
38283CC=$lt_compiler
38284
38285# Is the compiler the GNU compiler?
38286with_gcc=$GCC
38287
38288# Compiler flag to turn off builtin functions.
38289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38290
cristy73bd4a52010-10-05 11:24:23 +000038291# Additional compiler flags for building library objects.
38292pic_flag=$lt_lt_prog_compiler_pic
38293
cristyda16f162011-02-19 23:52:17 +000038294# How to pass a linker flag through the compiler.
38295wl=$lt_lt_prog_compiler_wl
38296
cristy73bd4a52010-10-05 11:24:23 +000038297# Compiler flag to prevent dynamic linking.
38298link_static_flag=$lt_lt_prog_compiler_static
38299
38300# Does compiler simultaneously support -c and -o options?
38301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38302
38303# Whether or not to add -lc for building shared libraries.
38304build_libtool_need_lc=$archive_cmds_need_lc
38305
38306# Whether or not to disallow shared libs when runtime libs are static.
38307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38308
38309# Compiler flag to allow reflexive dlopens.
38310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38311
38312# Compiler flag to generate shared objects directly from archives.
38313whole_archive_flag_spec=$lt_whole_archive_flag_spec
38314
38315# Whether the compiler copes with passing no objects directly.
38316compiler_needs_object=$lt_compiler_needs_object
38317
38318# Create an old-style archive from a shared archive.
38319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38320
38321# Create a temporary old-style archive to link instead of a shared archive.
38322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38323
38324# Commands used to build a shared archive.
38325archive_cmds=$lt_archive_cmds
38326archive_expsym_cmds=$lt_archive_expsym_cmds
38327
38328# Commands used to build a loadable module if different from building
38329# a shared archive.
38330module_cmds=$lt_module_cmds
38331module_expsym_cmds=$lt_module_expsym_cmds
38332
38333# Whether we are building with GNU ld or not.
38334with_gnu_ld=$lt_with_gnu_ld
38335
38336# Flag that allows shared libraries with undefined symbols to be built.
38337allow_undefined_flag=$lt_allow_undefined_flag
38338
38339# Flag that enforces no undefined symbols.
38340no_undefined_flag=$lt_no_undefined_flag
38341
38342# Flag to hardcode \$libdir into a binary during linking.
38343# This must work even if \$libdir does not exist
38344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38345
cristy73bd4a52010-10-05 11:24:23 +000038346# Whether we need a single "-rpath" flag with a separated argument.
38347hardcode_libdir_separator=$lt_hardcode_libdir_separator
38348
38349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38350# DIR into the resulting binary.
38351hardcode_direct=$hardcode_direct
38352
38353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38354# DIR into the resulting binary and the resulting library dependency is
38355# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38356# library is relocated.
38357hardcode_direct_absolute=$hardcode_direct_absolute
38358
38359# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38360# into the resulting binary.
38361hardcode_minus_L=$hardcode_minus_L
38362
38363# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38364# into the resulting binary.
38365hardcode_shlibpath_var=$hardcode_shlibpath_var
38366
38367# Set to "yes" if building a shared library automatically hardcodes DIR
38368# into the library and all subsequent libraries and executables linked
38369# against it.
38370hardcode_automatic=$hardcode_automatic
38371
38372# Set to yes if linker adds runtime paths of dependent libraries
38373# to runtime path list.
38374inherit_rpath=$inherit_rpath
38375
38376# Whether libtool must link a program against all its dependency libraries.
38377link_all_deplibs=$link_all_deplibs
38378
cristy73bd4a52010-10-05 11:24:23 +000038379# Set to "yes" if exported symbols are required.
38380always_export_symbols=$always_export_symbols
38381
38382# The commands to list exported symbols.
38383export_symbols_cmds=$lt_export_symbols_cmds
38384
38385# Symbols that should not be listed in the preloaded symbols.
38386exclude_expsyms=$lt_exclude_expsyms
38387
38388# Symbols that must always be exported.
38389include_expsyms=$lt_include_expsyms
38390
38391# Commands necessary for linking programs (against libraries) with templates.
38392prelink_cmds=$lt_prelink_cmds
38393
cristyda16f162011-02-19 23:52:17 +000038394# Commands necessary for finishing linking programs.
38395postlink_cmds=$lt_postlink_cmds
38396
cristy73bd4a52010-10-05 11:24:23 +000038397# Specify filename containing input files.
38398file_list_spec=$lt_file_list_spec
38399
38400# How to hardcode a shared library path into an executable.
38401hardcode_action=$hardcode_action
38402
38403# The directories searched by this compiler when creating a shared library.
38404compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38405
38406# Dependencies to place before and after the objects being linked to
38407# create a shared library.
38408predep_objects=$lt_predep_objects
38409postdep_objects=$lt_postdep_objects
38410predeps=$lt_predeps
38411postdeps=$lt_postdeps
38412
38413# The library search path used internally by the compiler when linking
38414# a shared library.
38415compiler_lib_search_path=$lt_compiler_lib_search_path
38416
38417# ### END LIBTOOL CONFIG
38418
38419_LT_EOF
38420
38421 case $host_os in
38422 aix3*)
38423 cat <<\_LT_EOF >> "$cfgfile"
38424# AIX sometimes has problems with the GCC collect2 program. For some
38425# reason, if we set the COLLECT_NAMES environment variable, the problems
38426# vanish in a puff of smoke.
38427if test "X${COLLECT_NAMES+set}" != Xset; then
38428 COLLECT_NAMES=
38429 export COLLECT_NAMES
38430fi
38431_LT_EOF
38432 ;;
38433 esac
38434
38435
38436ltmain="$ac_aux_dir/ltmain.sh"
38437
38438
38439 # We use sed instead of cat because bash on DJGPP gets confused if
38440 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38441 # text mode, it properly converts lines to CR/LF. This bash problem
38442 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038443 sed '$q' "$ltmain" >> "$cfgfile" \
38444 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038445
cristyda16f162011-02-19 23:52:17 +000038446 if test x"$xsi_shell" = xyes; then
38447 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38448func_dirname ()\
38449{\
38450\ case ${1} in\
38451\ */*) func_dirname_result="${1%/*}${2}" ;;\
38452\ * ) func_dirname_result="${3}" ;;\
38453\ esac\
38454} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38455 && mv -f "$cfgfile.tmp" "$cfgfile" \
38456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38457test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038458
38459
cristyda16f162011-02-19 23:52:17 +000038460 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38461func_basename ()\
38462{\
38463\ func_basename_result="${1##*/}"\
38464} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38465 && mv -f "$cfgfile.tmp" "$cfgfile" \
38466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38467test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038468
38469
cristyda16f162011-02-19 23:52:17 +000038470 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38471func_dirname_and_basename ()\
38472{\
38473\ case ${1} in\
38474\ */*) func_dirname_result="${1%/*}${2}" ;;\
38475\ * ) func_dirname_result="${3}" ;;\
38476\ esac\
38477\ func_basename_result="${1##*/}"\
38478} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38479 && mv -f "$cfgfile.tmp" "$cfgfile" \
38480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38481test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038482
cristyda16f162011-02-19 23:52:17 +000038483
38484 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38485func_stripname ()\
38486{\
38487\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38488\ # positional parameters, so assign one to ordinary parameter first.\
38489\ func_stripname_result=${3}\
38490\ func_stripname_result=${func_stripname_result#"${1}"}\
38491\ func_stripname_result=${func_stripname_result%"${2}"}\
38492} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38493 && mv -f "$cfgfile.tmp" "$cfgfile" \
38494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38495test 0 -eq $? || _lt_function_replace_fail=:
38496
38497
38498 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38499func_split_long_opt ()\
38500{\
38501\ func_split_long_opt_name=${1%%=*}\
38502\ func_split_long_opt_arg=${1#*=}\
38503} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38504 && mv -f "$cfgfile.tmp" "$cfgfile" \
38505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38506test 0 -eq $? || _lt_function_replace_fail=:
38507
38508
38509 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38510func_split_short_opt ()\
38511{\
38512\ func_split_short_opt_arg=${1#??}\
38513\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38514} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38515 && mv -f "$cfgfile.tmp" "$cfgfile" \
38516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38517test 0 -eq $? || _lt_function_replace_fail=:
38518
38519
38520 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38521func_lo2o ()\
38522{\
38523\ case ${1} in\
38524\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38525\ *) func_lo2o_result=${1} ;;\
38526\ esac\
38527} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38528 && mv -f "$cfgfile.tmp" "$cfgfile" \
38529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38530test 0 -eq $? || _lt_function_replace_fail=:
38531
38532
38533 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38534func_xform ()\
38535{\
38536 func_xform_result=${1%.*}.lo\
38537} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38538 && mv -f "$cfgfile.tmp" "$cfgfile" \
38539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38540test 0 -eq $? || _lt_function_replace_fail=:
38541
38542
38543 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38544func_arith ()\
38545{\
38546 func_arith_result=$(( $* ))\
38547} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38548 && mv -f "$cfgfile.tmp" "$cfgfile" \
38549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38550test 0 -eq $? || _lt_function_replace_fail=:
38551
38552
38553 sed -e '/^func_len ()$/,/^} # func_len /c\
38554func_len ()\
38555{\
38556 func_len_result=${#1}\
38557} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38558 && mv -f "$cfgfile.tmp" "$cfgfile" \
38559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38560test 0 -eq $? || _lt_function_replace_fail=:
38561
38562fi
38563
38564if test x"$lt_shell_append" = xyes; then
38565 sed -e '/^func_append ()$/,/^} # func_append /c\
38566func_append ()\
38567{\
38568 eval "${1}+=\\${2}"\
38569} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38570 && mv -f "$cfgfile.tmp" "$cfgfile" \
38571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38572test 0 -eq $? || _lt_function_replace_fail=:
38573
38574
38575 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38576func_append_quoted ()\
38577{\
38578\ func_quote_for_eval "${2}"\
38579\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38580} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38581 && mv -f "$cfgfile.tmp" "$cfgfile" \
38582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38583test 0 -eq $? || _lt_function_replace_fail=:
38584
38585
38586 # Save a `func_append' function call where possible by direct use of '+='
38587 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38588 && mv -f "$cfgfile.tmp" "$cfgfile" \
38589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38590 test 0 -eq $? || _lt_function_replace_fail=:
38591else
38592 # Save a `func_append' function call even when '+=' is not available
38593 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38594 && mv -f "$cfgfile.tmp" "$cfgfile" \
38595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38596 test 0 -eq $? || _lt_function_replace_fail=:
38597fi
38598
38599if test x"$_lt_function_replace_fail" = x":"; then
38600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38601$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38602fi
38603
38604
38605 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038606 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38607 chmod +x "$ofile"
38608
38609
38610 cat <<_LT_EOF >> "$ofile"
38611
38612# ### BEGIN LIBTOOL TAG CONFIG: CXX
38613
38614# The linker used to build libraries.
38615LD=$lt_LD_CXX
38616
cristy0c60a692010-11-04 01:09:47 +000038617# How to create reloadable object files.
38618reload_flag=$lt_reload_flag_CXX
38619reload_cmds=$lt_reload_cmds_CXX
38620
cristy73bd4a52010-10-05 11:24:23 +000038621# Commands used to build an old-style archive.
38622old_archive_cmds=$lt_old_archive_cmds_CXX
38623
38624# A language specific compiler.
38625CC=$lt_compiler_CXX
38626
38627# Is the compiler the GNU compiler?
38628with_gcc=$GCC_CXX
38629
38630# Compiler flag to turn off builtin functions.
38631no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38632
cristy73bd4a52010-10-05 11:24:23 +000038633# Additional compiler flags for building library objects.
38634pic_flag=$lt_lt_prog_compiler_pic_CXX
38635
cristyda16f162011-02-19 23:52:17 +000038636# How to pass a linker flag through the compiler.
38637wl=$lt_lt_prog_compiler_wl_CXX
38638
cristy73bd4a52010-10-05 11:24:23 +000038639# Compiler flag to prevent dynamic linking.
38640link_static_flag=$lt_lt_prog_compiler_static_CXX
38641
38642# Does compiler simultaneously support -c and -o options?
38643compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38644
38645# Whether or not to add -lc for building shared libraries.
38646build_libtool_need_lc=$archive_cmds_need_lc_CXX
38647
38648# Whether or not to disallow shared libs when runtime libs are static.
38649allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38650
38651# Compiler flag to allow reflexive dlopens.
38652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38653
38654# Compiler flag to generate shared objects directly from archives.
38655whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38656
38657# Whether the compiler copes with passing no objects directly.
38658compiler_needs_object=$lt_compiler_needs_object_CXX
38659
38660# Create an old-style archive from a shared archive.
38661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38662
38663# Create a temporary old-style archive to link instead of a shared archive.
38664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38665
38666# Commands used to build a shared archive.
38667archive_cmds=$lt_archive_cmds_CXX
38668archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38669
38670# Commands used to build a loadable module if different from building
38671# a shared archive.
38672module_cmds=$lt_module_cmds_CXX
38673module_expsym_cmds=$lt_module_expsym_cmds_CXX
38674
38675# Whether we are building with GNU ld or not.
38676with_gnu_ld=$lt_with_gnu_ld_CXX
38677
38678# Flag that allows shared libraries with undefined symbols to be built.
38679allow_undefined_flag=$lt_allow_undefined_flag_CXX
38680
38681# Flag that enforces no undefined symbols.
38682no_undefined_flag=$lt_no_undefined_flag_CXX
38683
38684# Flag to hardcode \$libdir into a binary during linking.
38685# This must work even if \$libdir does not exist
38686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38687
cristy73bd4a52010-10-05 11:24:23 +000038688# Whether we need a single "-rpath" flag with a separated argument.
38689hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38690
38691# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38692# DIR into the resulting binary.
38693hardcode_direct=$hardcode_direct_CXX
38694
38695# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38696# DIR into the resulting binary and the resulting library dependency is
38697# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38698# library is relocated.
38699hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38700
38701# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38702# into the resulting binary.
38703hardcode_minus_L=$hardcode_minus_L_CXX
38704
38705# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38706# into the resulting binary.
38707hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38708
38709# Set to "yes" if building a shared library automatically hardcodes DIR
38710# into the library and all subsequent libraries and executables linked
38711# against it.
38712hardcode_automatic=$hardcode_automatic_CXX
38713
38714# Set to yes if linker adds runtime paths of dependent libraries
38715# to runtime path list.
38716inherit_rpath=$inherit_rpath_CXX
38717
38718# Whether libtool must link a program against all its dependency libraries.
38719link_all_deplibs=$link_all_deplibs_CXX
38720
cristy73bd4a52010-10-05 11:24:23 +000038721# Set to "yes" if exported symbols are required.
38722always_export_symbols=$always_export_symbols_CXX
38723
38724# The commands to list exported symbols.
38725export_symbols_cmds=$lt_export_symbols_cmds_CXX
38726
38727# Symbols that should not be listed in the preloaded symbols.
38728exclude_expsyms=$lt_exclude_expsyms_CXX
38729
38730# Symbols that must always be exported.
38731include_expsyms=$lt_include_expsyms_CXX
38732
38733# Commands necessary for linking programs (against libraries) with templates.
38734prelink_cmds=$lt_prelink_cmds_CXX
38735
cristyda16f162011-02-19 23:52:17 +000038736# Commands necessary for finishing linking programs.
38737postlink_cmds=$lt_postlink_cmds_CXX
38738
cristy73bd4a52010-10-05 11:24:23 +000038739# Specify filename containing input files.
38740file_list_spec=$lt_file_list_spec_CXX
38741
38742# How to hardcode a shared library path into an executable.
38743hardcode_action=$hardcode_action_CXX
38744
38745# The directories searched by this compiler when creating a shared library.
38746compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38747
38748# Dependencies to place before and after the objects being linked to
38749# create a shared library.
38750predep_objects=$lt_predep_objects_CXX
38751postdep_objects=$lt_postdep_objects_CXX
38752predeps=$lt_predeps_CXX
38753postdeps=$lt_postdeps_CXX
38754
38755# The library search path used internally by the compiler when linking
38756# a shared library.
38757compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38758
38759# ### END LIBTOOL TAG CONFIG: CXX
38760_LT_EOF
38761
38762 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038763 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038764 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038765 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038766 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38767 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38768
38769 esac
38770done # for ac_tag
38771
38772
cristy8b350f62009-11-15 23:12:43 +000038773as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038774_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038775ac_clean_files=$ac_clean_files_save
38776
38777test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038778 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038779
38780
38781# configure is writing to config.log, and then calls config.status.
38782# config.status does its own redirection, appending to config.log.
38783# Unfortunately, on DOS this fails, as config.log is still kept open
38784# by configure, so config.status won't be able to write to it; its
38785# output is simply discarded. So we exec the FD to /dev/null,
38786# effectively closing config.log, so it can be properly (re)opened and
38787# appended to by config.status. When coming back to configure, we
38788# need to make the FD available again.
38789if test "$no_create" != yes; then
38790 ac_cs_success=:
38791 ac_config_status_args=
38792 test "$silent" = yes &&
38793 ac_config_status_args="$ac_config_status_args --quiet"
38794 exec 5>/dev/null
38795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38796 exec 5>>config.log
38797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38798 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038799 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038800fi
38801if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038803$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38804fi
38805
38806
38807rm -f magick-version
38808
cristy430a7312010-01-21 20:44:04 +000038809result_dejavu_font_dir='none'
38810if test "${dejavu_font_dir}x" != 'x'; then
38811 result_dejavu_font_dir=$dejavu_font_dir
38812fi
38813
cristy3ed852e2009-09-05 21:47:34 +000038814result_ghostscript_font_dir='none'
38815if test "${ghostscript_font_dir}x" != 'x'; then
38816 result_ghostscript_font_dir=$ghostscript_font_dir
38817fi
38818
38819result_windows_font_dir='none'
38820if test "${windows_font_dir}x" != 'x'; then
38821 result_windows_font_dir=${windows_font_dir}
38822fi
38823
cristy09b53e12011-10-14 12:47:22 +000038824{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038825ImageMagick is configured as follows. Please verify that this configuration
38826matches your expectations.
38827
38828Host system type: $host
38829Build system type: $build
38830
38831 Option Value
38832-------------------------------------------------------------------------------
38833Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38834Static libraries --enable-static=$enable_static $libtool_build_static_libs
38835Module support --with-modules=$with_modules $with_modules
38836GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38837Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38838High Dynamic Range Imagery
38839 --enable-hdri=$enable_hdri $enable_hdri
38840
38841Delegate Configuration:
38842BZLIB --with-bzlib=$with_bzlib $have_bzlib
38843Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038844Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038845DJVU --with-djvu=$with_djvu $have_djvu
38846DPS --with-dps=$with_dps $have_dps
38847FFTW --with-fftw=$with_fftw $have_fftw
38848FlashPIX --with-fpx=$with_fpx $have_fpx
38849FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38850FreeType --with-freetype=$with_freetype $have_freetype
38851GhostPCL None $PCLDelegate ($PCLVersion)
38852GhostXPS None $XPSDelegate ($XPSVersion)
38853Ghostscript None $PSDelegate ($GSVersion)
38854Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38855Ghostscript lib --with-gslib=$with_gslib $have_gslib
38856Graphviz --with-gvc=$with_gvc $have_gvc
38857JBIG --with-jbig=$with_jbig $have_jbig
38858JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38859JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038860LCMS v1 --with-lcms=$with_lcms $have_lcms
38861LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038862LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038863LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038864Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38865OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038866PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038867PERL --with-perl=$with_perl $have_perl
38868PNG --with-png=$with_png $have_png
38869RSVG --with-rsvg=$with_rsvg $have_rsvg
38870TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038871WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038872Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38873WMF --with-wmf=$with_wmf $have_wmf
38874X11 --with-x=$with_x $have_x
38875XML --with-xml=$with_xml $have_xml
38876ZLIB --with-zlib=$with_zlib $have_zlib
38877
38878X11 Configuration:
38879 X_CFLAGS = $X_CFLAGS
38880 X_PRE_LIBS = $X_PRE_LIBS
38881 X_LIBS = $X_LIBS
38882 X_EXTRA_LIBS = $X_EXTRA_LIBS
38883
38884Options used to compile and link:
38885 PREFIX = $PREFIX_DIR
38886 EXEC-PREFIX = $EXEC_PREFIX_DIR
38887 VERSION = $PACKAGE_VERSION
38888 CC = $CC
38889 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038890 CPPFLAGS = $MAGICK_CPPFLAGS
38891 PCFLAGS = $MAGICK_PCFLAGS
38892 DEFS = $DEFS
38893 LDFLAGS = $LDFLAGS
38894 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38895 LIBS = $MAGICK_LIBS
38896 CXX = $CXX
38897 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038898 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038899" >&5
cristy09b53e12011-10-14 12:47:22 +000038900$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038901ImageMagick is configured as follows. Please verify that this configuration
38902matches your expectations.
38903
38904Host system type: $host
38905Build system type: $build
38906
38907 Option Value
38908-------------------------------------------------------------------------------
38909Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38910Static libraries --enable-static=$enable_static $libtool_build_static_libs
38911Module support --with-modules=$with_modules $with_modules
38912GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38913Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38914High Dynamic Range Imagery
38915 --enable-hdri=$enable_hdri $enable_hdri
38916
38917Delegate Configuration:
38918BZLIB --with-bzlib=$with_bzlib $have_bzlib
38919Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038920Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038921DJVU --with-djvu=$with_djvu $have_djvu
38922DPS --with-dps=$with_dps $have_dps
38923FFTW --with-fftw=$with_fftw $have_fftw
38924FlashPIX --with-fpx=$with_fpx $have_fpx
38925FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38926FreeType --with-freetype=$with_freetype $have_freetype
38927GhostPCL None $PCLDelegate ($PCLVersion)
38928GhostXPS None $XPSDelegate ($XPSVersion)
38929Ghostscript None $PSDelegate ($GSVersion)
38930Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38931Ghostscript lib --with-gslib=$with_gslib $have_gslib
38932Graphviz --with-gvc=$with_gvc $have_gvc
38933JBIG --with-jbig=$with_jbig $have_jbig
38934JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38935JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038936LCMS v1 --with-lcms=$with_lcms $have_lcms
38937LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038938LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038939LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038940Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38941OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038942PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038943PERL --with-perl=$with_perl $have_perl
38944PNG --with-png=$with_png $have_png
38945RSVG --with-rsvg=$with_rsvg $have_rsvg
38946TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038947WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038948Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38949WMF --with-wmf=$with_wmf $have_wmf
38950X11 --with-x=$with_x $have_x
38951XML --with-xml=$with_xml $have_xml
38952ZLIB --with-zlib=$with_zlib $have_zlib
38953
38954X11 Configuration:
38955 X_CFLAGS = $X_CFLAGS
38956 X_PRE_LIBS = $X_PRE_LIBS
38957 X_LIBS = $X_LIBS
38958 X_EXTRA_LIBS = $X_EXTRA_LIBS
38959
38960Options used to compile and link:
38961 PREFIX = $PREFIX_DIR
38962 EXEC-PREFIX = $EXEC_PREFIX_DIR
38963 VERSION = $PACKAGE_VERSION
38964 CC = $CC
38965 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038966 CPPFLAGS = $MAGICK_CPPFLAGS
38967 PCFLAGS = $MAGICK_PCFLAGS
38968 DEFS = $DEFS
38969 LDFLAGS = $LDFLAGS
38970 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38971 LIBS = $MAGICK_LIBS
38972 CXX = $CXX
38973 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038974 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038975" >&6;}